Add sensor for severe thunderstorm warnings with tornado possible

This commit is contained in:
2025-03-17 01:36:12 -04:00
parent 0a719b9ab7
commit 774676ae55

View File

@ -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",