Group Defiance weather alerts

This commit is contained in:
2025-03-18 01:24:30 -04:00
parent 93814447f6
commit 2b3397e248

View File

@ -2158,6 +2158,24 @@
"w": 1292, "w": 1292,
"h": 162 "h": 162
}, },
{
"id": "d782e62a03a086e0",
"type": "group",
"z": "ebd5561c4f077718",
"name": "Defiance Weather Alerts",
"style": {
"label": true
},
"nodes": [
"8f8450555dd6ac73",
"c8a8f9eb6f370ae2",
"ad598f14adf7a284"
],
"x": 34,
"y": 579,
"w": 692,
"h": 82
},
{ {
"id": "fba69dfc80829db7", "id": "fba69dfc80829db7",
"type": "junction", "type": "junction",
@ -29496,6 +29514,7 @@
"id": "8f8450555dd6ac73", "id": "8f8450555dd6ac73",
"type": "mqtt in", "type": "mqtt in",
"z": "ebd5561c4f077718", "z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Severe Thunderstorm Warning", "name": "Severe Thunderstorm Warning",
"topic": "weather/alerts/defiance/severe_thunderstorm_warning", "topic": "weather/alerts/defiance/severe_thunderstorm_warning",
"qos": "2", "qos": "2",
@ -29505,7 +29524,7 @@
"rap": true, "rap": true,
"rh": 0, "rh": 0,
"inputs": 0, "inputs": 0,
"x": 210, "x": 190,
"y": 620, "y": 620,
"wires": [ "wires": [
[ [
@ -29517,6 +29536,7 @@
"id": "c8a8f9eb6f370ae2", "id": "c8a8f9eb6f370ae2",
"type": "function", "type": "function",
"z": "ebd5561c4f077718", "z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Processing", "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", "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, "outputs": 1,
@ -29525,7 +29545,7 @@
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",
"libs": [], "libs": [],
"x": 395, "x": 375,
"y": 620, "y": 620,
"wires": [ "wires": [
[ [
@ -29538,6 +29558,7 @@
"id": "ad598f14adf7a284", "id": "ad598f14adf7a284",
"type": "ha-binary-sensor", "type": "ha-binary-sensor",
"z": "ebd5561c4f077718", "z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Severe Thunderstorm Warning", "name": "Severe Thunderstorm Warning",
"entityConfig": "d8ea9407aa2cf6a5", "entityConfig": "d8ea9407aa2cf6a5",
"version": 0, "version": 0,
@ -29552,7 +29573,7 @@
], ],
"inputOverride": "allow", "inputOverride": "allow",
"outputProperties": [], "outputProperties": [],
"x": 590, "x": 570,
"y": 620, "y": 620,
"wires": [ "wires": [
[] []