Add watches for Defiance

This commit is contained in:
2025-03-19 18:18:57 -04:00
parent 146c49f40c
commit 76085d91f1

View File

@ -2172,12 +2172,18 @@
"ad598f14adf7a284",
"895863cc6c4cc732",
"724bd8b20f6442fd",
"26c646de6e0b35d7"
"26c646de6e0b35d7",
"b3e4269945739cfd",
"90a129b1d1a3f1c0",
"b004375f406eccef",
"86435078e9067a09",
"a2af8db4d82d572c",
"9958da4d6712625b"
],
"x": 34,
"y": 579,
"w": 692,
"h": 142
"h": 262
},
{
"id": "d96ff91f5f860dcc",
@ -2194,7 +2200,7 @@
"6e65ea4c68e8520c"
],
"x": 34,
"y": 739,
"y": 859,
"w": 732,
"h": 142
},
@ -4851,6 +4857,72 @@
"resend": false,
"debugEnabled": false
},
{
"id": "920ee00b5ff0ba8b",
"type": "ha-entity-config",
"server": "9e87348d.9c1c48",
"deviceConfig": "61d19879e4bd1c55",
"name": "Tornado Watch",
"version": 6,
"entityType": "binary_sensor",
"haConfig": [
{
"property": "name",
"value": "Tornado Watch"
},
{
"property": "icon",
"value": "mdi:weather-tornado"
},
{
"property": "entity_picture",
"value": ""
},
{
"property": "entity_category",
"value": ""
},
{
"property": "device_class",
"value": "safety"
}
],
"resend": false,
"debugEnabled": false
},
{
"id": "e7ae774638e7cc11",
"type": "ha-entity-config",
"server": "9e87348d.9c1c48",
"deviceConfig": "61d19879e4bd1c55",
"name": "Severe Thunderstorm Watch",
"version": 6,
"entityType": "binary_sensor",
"haConfig": [
{
"property": "name",
"value": "Severe Thunderstorm Watch"
},
{
"property": "icon",
"value": "mdi:weather-lightning"
},
{
"property": "entity_picture",
"value": ""
},
{
"property": "entity_category",
"value": ""
},
{
"property": "device_class",
"value": ""
}
],
"resend": false,
"debugEnabled": false
},
{
"id": "afead614fabc01bb",
"type": "function",
@ -29745,7 +29817,7 @@
"rh": 0,
"inputs": 0,
"x": 220,
"y": 780,
"y": 900,
"wires": [
[
"9825ebb82719c364"
@ -29782,7 +29854,7 @@
"inputOverride": "allow",
"outputProperties": [],
"x": 580,
"y": 780,
"y": 900,
"wires": [
[]
]
@ -29802,7 +29874,7 @@
"rh": 0,
"inputs": 0,
"x": 170,
"y": 840,
"y": 960,
"wires": [
[
"6e65ea4c68e8520c"
@ -29834,7 +29906,7 @@
"inputOverride": "allow",
"outputProperties": [],
"x": 540,
"y": 840,
"y": 960,
"wires": [
[]
]
@ -29913,6 +29985,144 @@
[]
]
},
{
"id": "b3e4269945739cfd",
"type": "mqtt in",
"z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Tornado Watch",
"topic": "weather/alerts/defiance/tornado_watch",
"qos": "2",
"datatype": "json",
"broker": "fd29421fc00140a8",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 140,
"y": 740,
"wires": [
[
"b004375f406eccef"
]
]
},
{
"id": "90a129b1d1a3f1c0",
"type": "mqtt in",
"z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Severe Thunderstorm Watch",
"topic": "weather/alerts/defiance/severe_thunderstorm_watch",
"qos": "2",
"datatype": "json",
"broker": "fd29421fc00140a8",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 180,
"y": 800,
"wires": [
[
"86435078e9067a09"
]
]
},
{
"id": "b004375f406eccef",
"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": 740,
"wires": [
[
"a2af8db4d82d572c"
]
],
"l": false
},
{
"id": "86435078e9067a09",
"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": 800,
"wires": [
[
"9958da4d6712625b"
]
],
"l": false
},
{
"id": "a2af8db4d82d572c",
"type": "ha-binary-sensor",
"z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Tornado Watch",
"entityConfig": "920ee00b5ff0ba8b",
"version": 0,
"state": "new_state",
"stateType": "msg",
"attributes": [
{
"property": "alerts",
"value": "payload.alerts",
"valueType": "msg"
}
],
"inputOverride": "allow",
"outputProperties": [],
"x": 520,
"y": 740,
"wires": [
[]
]
},
{
"id": "9958da4d6712625b",
"type": "ha-binary-sensor",
"z": "ebd5561c4f077718",
"g": "d782e62a03a086e0",
"name": "Severe Thunderstorm Watch",
"entityConfig": "e7ae774638e7cc11",
"version": 0,
"state": "new_state",
"stateType": "msg",
"attributes": [
{
"property": "alerts",
"value": "payload.alerts",
"valueType": "msg"
}
],
"inputOverride": "allow",
"outputProperties": [],
"x": 560,
"y": 800,
"wires": [
[]
]
},
{
"id": "1f7af146c06b8b85",
"type": "ha-select",