Add stats for considerable destructive t-storm, confirmed tornado

This commit is contained in:
2025-03-19 17:10:28 -04:00
parent 26d2594add
commit 146c49f40c

View File

@ -2169,12 +2169,15 @@
"nodes": [ "nodes": [
"8f8450555dd6ac73", "8f8450555dd6ac73",
"c8a8f9eb6f370ae2", "c8a8f9eb6f370ae2",
"ad598f14adf7a284" "ad598f14adf7a284",
"895863cc6c4cc732",
"724bd8b20f6442fd",
"26c646de6e0b35d7"
], ],
"x": 34, "x": 34,
"y": 579, "y": 579,
"w": 692, "w": 692,
"h": 82 "h": 142
}, },
{ {
"id": "d96ff91f5f860dcc", "id": "d96ff91f5f860dcc",
@ -2191,7 +2194,7 @@
"6e65ea4c68e8520c" "6e65ea4c68e8520c"
], ],
"x": 34, "x": 34,
"y": 679, "y": 739,
"w": 732, "w": 732,
"h": 142 "h": 142
}, },
@ -4815,6 +4818,39 @@
"resend": false, "resend": false,
"debugEnabled": false "debugEnabled": false
}, },
{
"id": "294b242ba5cfb3fb",
"type": "ha-entity-config",
"server": "9e87348d.9c1c48",
"deviceConfig": "61d19879e4bd1c55",
"name": "Tornado Warning",
"version": 6,
"entityType": "binary_sensor",
"haConfig": [
{
"property": "name",
"value": "Tornado Warning"
},
{
"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", "id": "afead614fabc01bb",
"type": "function", "type": "function",
@ -29679,6 +29715,11 @@
"property": "tornado_possible", "property": "tornado_possible",
"value": "payload.tornado_possible", "value": "payload.tornado_possible",
"valueType": "msg" "valueType": "msg"
},
{
"property": "considerable_destructive",
"value": "payload.considerable_destructive",
"valueType": "msg"
} }
], ],
"inputOverride": "allow", "inputOverride": "allow",
@ -29697,14 +29738,14 @@
"name": "Severe Thunderstorm Warning - National", "name": "Severe Thunderstorm Warning - National",
"topic": "weather/alerts/general/severe_thunderstorm_warning", "topic": "weather/alerts/general/severe_thunderstorm_warning",
"qos": "2", "qos": "2",
"datatype": "auto-detect", "datatype": "json",
"broker": "fd29421fc00140a8", "broker": "fd29421fc00140a8",
"nl": false, "nl": false,
"rap": true, "rap": true,
"rh": 0, "rh": 0,
"inputs": 0, "inputs": 0,
"x": 220, "x": 220,
"y": 720, "y": 780,
"wires": [ "wires": [
[ [
"9825ebb82719c364" "9825ebb82719c364"
@ -29731,12 +29772,17 @@
"property": "tornado_possible", "property": "tornado_possible",
"value": "payload.tornado_possible", "value": "payload.tornado_possible",
"valueType": "msg" "valueType": "msg"
},
{
"property": "considerable_destructive",
"value": "payload.considerable_destructive",
"valueType": "msg"
} }
], ],
"inputOverride": "allow", "inputOverride": "allow",
"outputProperties": [], "outputProperties": [],
"x": 580, "x": 580,
"y": 720, "y": 780,
"wires": [ "wires": [
[] []
] ]
@ -29749,14 +29795,14 @@
"name": "Tornado Warning - National", "name": "Tornado Warning - National",
"topic": "weather/alerts/general/tornado_warning", "topic": "weather/alerts/general/tornado_warning",
"qos": "2", "qos": "2",
"datatype": "auto-detect", "datatype": "json",
"broker": "fd29421fc00140a8", "broker": "fd29421fc00140a8",
"nl": false, "nl": false,
"rap": true, "rap": true,
"rh": 0, "rh": 0,
"inputs": 0, "inputs": 0,
"x": 170, "x": 170,
"y": 780, "y": 840,
"wires": [ "wires": [
[ [
"6e65ea4c68e8520c" "6e65ea4c68e8520c"
@ -29778,12 +29824,91 @@
"property": "alerts", "property": "alerts",
"value": "payload.alerts", "value": "payload.alerts",
"valueType": "msg" "valueType": "msg"
},
{
"property": "confirmed",
"value": "payload.confirmed",
"valueType": "msg"
} }
], ],
"inputOverride": "allow", "inputOverride": "allow",
"outputProperties": [], "outputProperties": [],
"x": 540, "x": 540,
"y": 780, "y": 840,
"wires": [
[]
]
},
{
"id": "895863cc6c4cc732",
"type": "mqtt in",
"z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Tornado Warning",
"topic": "weather/alerts/defiance/tornado_warning",
"qos": "2",
"datatype": "json",
"broker": "fd29421fc00140a8",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 140,
"y": 680,
"wires": [
[
"724bd8b20f6442fd"
]
]
},
{
"id": "724bd8b20f6442fd",
"type": "function",
"z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Processing",
"func": "let count = msg.payload.count\nlet newState = {}\n\nif (count > 0) {\n newState = \"on\"\n} else {\n newState = \"off\"\n}\n\nmsg.new_state = newState\nreturn msg",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 375,
"y": 680,
"wires": [
[
"26c646de6e0b35d7"
]
],
"l": false
},
{
"id": "26c646de6e0b35d7",
"type": "ha-binary-sensor",
"z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Tornado Warning",
"entityConfig": "294b242ba5cfb3fb",
"version": 0,
"state": "new_state",
"stateType": "msg",
"attributes": [
{
"property": "alerts",
"value": "payload.alerts",
"valueType": "msg"
},
{
"property": "confirmed",
"value": "payload.confirmed",
"valueType": "msg"
}
],
"inputOverride": "allow",
"outputProperties": [],
"x": 530,
"y": 680,
"wires": [ "wires": [
[] []
] ]