Group Defiance weather alerts
This commit is contained in:
27
flows.json
27
flows.json
@ -2158,6 +2158,24 @@
|
||||
"w": 1292,
|
||||
"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",
|
||||
"type": "junction",
|
||||
@ -29496,6 +29514,7 @@
|
||||
"id": "8f8450555dd6ac73",
|
||||
"type": "mqtt in",
|
||||
"z": "ebd5561c4f077718",
|
||||
"g": "d782e62a03a086e0",
|
||||
"name": "Severe Thunderstorm Warning",
|
||||
"topic": "weather/alerts/defiance/severe_thunderstorm_warning",
|
||||
"qos": "2",
|
||||
@ -29505,7 +29524,7 @@
|
||||
"rap": true,
|
||||
"rh": 0,
|
||||
"inputs": 0,
|
||||
"x": 210,
|
||||
"x": 190,
|
||||
"y": 620,
|
||||
"wires": [
|
||||
[
|
||||
@ -29517,6 +29536,7 @@
|
||||
"id": "c8a8f9eb6f370ae2",
|
||||
"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,
|
||||
@ -29525,7 +29545,7 @@
|
||||
"initialize": "",
|
||||
"finalize": "",
|
||||
"libs": [],
|
||||
"x": 395,
|
||||
"x": 375,
|
||||
"y": 620,
|
||||
"wires": [
|
||||
[
|
||||
@ -29538,6 +29558,7 @@
|
||||
"id": "ad598f14adf7a284",
|
||||
"type": "ha-binary-sensor",
|
||||
"z": "ebd5561c4f077718",
|
||||
"g": "d782e62a03a086e0",
|
||||
"name": "Severe Thunderstorm Warning",
|
||||
"entityConfig": "d8ea9407aa2cf6a5",
|
||||
"version": 0,
|
||||
@ -29552,7 +29573,7 @@
|
||||
],
|
||||
"inputOverride": "allow",
|
||||
"outputProperties": [],
|
||||
"x": 590,
|
||||
"x": 570,
|
||||
"y": 620,
|
||||
"wires": [
|
||||
[]
|
||||
|
Reference in New Issue
Block a user