This is a flow for receiving warnings sent out by the MeteoAlarm integration in Home Assistant. Once an alarm is triggered, a message will appear on the screen. The message will display the headline of the warning, followed by the description provided by MeteoAlarm. Additionally, a colored flag will be shown to indicate the warning level.
To configure this flow you need to get the right entity with the data from MeteoAlarm. You also need to change the topic in the MQTT node.
rPegM5V8ov3p.json
[{"id":"905698ec22f37a85","type":"group","z":"9458479eb6e80eb3","style":{"stroke":"#3a3a3a","stroke-opacity":"1","fill":"#1e1e1e","fill-opacity":"0.5","label":true,"label-position":"nw","color":"#cccccc"},"nodes":["a0aa797b9d1642e3","634d8b959a579a30","928d4550dfb2534b","17f3fa8d1f956323","370123f0b568ef2f"],"x":374,"y":819,"w":892,"h":122},{"id":"a0aa797b9d1642e3","type":"api-current-state","z":"9458479eb6e80eb3","g":"905698ec22f37a85","name":"Get MeteoAlarm","server":"9fabb57e.d4eeb8","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.meteoalarm","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":640,"y":900,"wires":[["928d4550dfb2534b"]]},{"id":"634d8b959a579a30","type":"inject","z":"9458479eb6e80eb3","g":"905698ec22f37a85","name":"inject","props":[],"repeat":"60","crontab":"","once":true,"onceDelay":"10","topic":"","x":470,"y":900,"wires":[["a0aa797b9d1642e3"]]},{"id":"928d4550dfb2534b","type":"function","z":"9458479eb6e80eb3","g":"905698ec22f37a85","name":"Create Message","func":"if (msg.payload == \"on\"){\n\n var icon = msg.data.attributes.awareness_level\n var headline = msg.data.attributes.headline\n var description = msg.data.attributes.description\n\n msg.payload = { \n \"text\": headline + ' : ' + description,\n \"icon\": icon, \n // \"duration\": 20,\n \"repeat\": 2, \n \"pushIcon\": 2, \n \"textCase\" : 0\n };\n} else {\n msg.payload = \"\"\n}\n\nnode.status({ fill: 'green', shape: 'ring', text: headline + ' : ' + description });\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":850,"y":900,"wires":[["17f3fa8d1f956323"]]},{"id":"17f3fa8d1f956323","type":"mqtt out","z":"9458479eb6e80eb3","g":"905698ec22f37a85","name":"","topic":"awtrix_id/custom/MeteoAlarm","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"11ca2309265fca75","x":1120,"y":900,"wires":[]},{"id":"370123f0b568ef2f","type":"comment","z":"9458479eb6e80eb3","g":"905698ec22f37a85","name":"MeteoAlarm","info":"","x":470,"y":860,"wires":[]},{"id":"9fabb57e.d4eeb8","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true,"credentials":{}},{"id":"11ca2309265fca75","type":"mqtt-broker","name":"","broker":"192.168.0.32","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]
These icons belong on the device, in /ICONS. Each one is at
most 32×8
pixels — shown here magnified, at their real proportions.
8×8 px
8×8 px
8×8 px