From 774676ae552f430d22748c63d0fcdcc09ee40f20 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 17 Mar 2025 01:36:12 -0400 Subject: [PATCH] Add sensor for severe thunderstorm warnings with tornado possible --- flows.json | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/flows.json b/flows.json index 93ca427..d5bf9f4 100644 --- a/flows.json +++ b/flows.json @@ -4644,6 +4644,39 @@ ], "resend": false }, + { + "id": "351ed2425ad19fc4", + "type": "ha-entity-config", + "server": "9e87348d.9c1c48", + "deviceConfig": "", + "name": "Tornado Possible", + "version": 6, + "entityType": "binary_sensor", + "haConfig": [ + { + "property": "name", + "value": "Tornado Possible" + }, + { + "property": "icon", + "value": "mdi:weather-tornado" + }, + { + "property": "entity_picture", + "value": "" + }, + { + "property": "entity_category", + "value": "" + }, + { + "property": "device_class", + "value": "safety" + } + ], + "resend": false, + "debugEnabled": false + }, { "id": "afead614fabc01bb", "type": "function", @@ -29449,6 +29482,66 @@ ] ] }, + { + "id": "d1174b9e62e02408", + "type": "mqtt in", + "z": "ebd5561c4f077718", + "name": "Tornado Possible", + "topic": "weather/alerts/defiance/severe_thunderstorm_warning/tornado_possible", + "qos": "2", + "datatype": "auto-detect", + "broker": "fd29421fc00140a8", + "nl": false, + "rap": true, + "rh": 0, + "inputs": 0, + "x": 160, + "y": 640, + "wires": [ + [ + "205fe5192ed90a99" + ] + ] + }, + { + "id": "205fe5192ed90a99", + "type": "function", + "z": "ebd5561c4f077718", + "name": "Processing", + "func": "let payload = msg.payload\nlet newPayload = {}\n\nif (payload > 0) {\n newPayload = \"on\"\n} else {\n newPayload = \"off\"\n}\n\nmsg.payload = newPayload\nreturn msg", + "outputs": 1, + "timeout": 0, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 295, + "y": 640, + "wires": [ + [ + "426c7aed27dd2185" + ] + ], + "l": false + }, + { + "id": "426c7aed27dd2185", + "type": "ha-binary-sensor", + "z": "ebd5561c4f077718", + "name": "Tornado Possible", + "entityConfig": "351ed2425ad19fc4", + "version": 0, + "state": "payload", + "stateType": "msg", + "attributes": [], + "inputOverride": "allow", + "outputProperties": [], + "x": 450, + "y": 640, + "wires": [ + [] + ] + }, { "id": "1f7af146c06b8b85", "type": "ha-select",