Merge severe thunderstorm warning related sensors
Tornado possible is now an attribute of the severe thunderstorm warning sensor, rather than being a separate sensor by itself.
This commit is contained in:
63
flows.json
63
flows.json
@ -4646,21 +4646,30 @@
|
||||
"resend": false
|
||||
},
|
||||
{
|
||||
"id": "351ed2425ad19fc4",
|
||||
"id": "61d19879e4bd1c55",
|
||||
"type": "ha-device-config",
|
||||
"name": "Defiance Weather Alerts",
|
||||
"hwVersion": "",
|
||||
"manufacturer": "Node-RED",
|
||||
"model": "",
|
||||
"swVersion": ""
|
||||
},
|
||||
{
|
||||
"id": "d8ea9407aa2cf6a5",
|
||||
"type": "ha-entity-config",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"deviceConfig": "",
|
||||
"name": "Tornado Possible",
|
||||
"deviceConfig": "61d19879e4bd1c55",
|
||||
"name": "Severe Thunderstorm Warning",
|
||||
"version": 6,
|
||||
"entityType": "binary_sensor",
|
||||
"haConfig": [
|
||||
{
|
||||
"property": "name",
|
||||
"value": "Tornado Possible"
|
||||
"value": "Severe Thunderstorm Warning"
|
||||
},
|
||||
{
|
||||
"property": "icon",
|
||||
"value": "mdi:weather-tornado"
|
||||
"value": "mdi:weather-lightning"
|
||||
},
|
||||
{
|
||||
"property": "entity_picture",
|
||||
@ -29484,61 +29493,67 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "d1174b9e62e02408",
|
||||
"id": "8f8450555dd6ac73",
|
||||
"type": "mqtt in",
|
||||
"z": "ebd5561c4f077718",
|
||||
"name": "Tornado Possible",
|
||||
"topic": "weather/alerts/defiance/severe_thunderstorm_warning/tornado_possible",
|
||||
"name": "Severe Thunderstorm Warning",
|
||||
"topic": "weather/alerts/defiance/severe_thunderstorm_warning",
|
||||
"qos": "2",
|
||||
"datatype": "auto-detect",
|
||||
"datatype": "json",
|
||||
"broker": "fd29421fc00140a8",
|
||||
"nl": false,
|
||||
"rap": true,
|
||||
"rh": 0,
|
||||
"inputs": 0,
|
||||
"x": 160,
|
||||
"y": 640,
|
||||
"x": 210,
|
||||
"y": 620,
|
||||
"wires": [
|
||||
[
|
||||
"205fe5192ed90a99"
|
||||
"c8a8f9eb6f370ae2"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "205fe5192ed90a99",
|
||||
"id": "c8a8f9eb6f370ae2",
|
||||
"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",
|
||||
"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": 295,
|
||||
"y": 640,
|
||||
"x": 395,
|
||||
"y": 620,
|
||||
"wires": [
|
||||
[
|
||||
"426c7aed27dd2185"
|
||||
"ad598f14adf7a284"
|
||||
]
|
||||
],
|
||||
"l": false
|
||||
},
|
||||
{
|
||||
"id": "426c7aed27dd2185",
|
||||
"id": "ad598f14adf7a284",
|
||||
"type": "ha-binary-sensor",
|
||||
"z": "ebd5561c4f077718",
|
||||
"name": "Tornado Possible",
|
||||
"entityConfig": "351ed2425ad19fc4",
|
||||
"name": "Severe Thunderstorm Warning",
|
||||
"entityConfig": "d8ea9407aa2cf6a5",
|
||||
"version": 0,
|
||||
"state": "payload",
|
||||
"state": "new_state",
|
||||
"stateType": "msg",
|
||||
"attributes": [],
|
||||
"attributes": [
|
||||
{
|
||||
"property": "tornado_possible",
|
||||
"value": "payload.tornado_possible",
|
||||
"valueType": "msg"
|
||||
}
|
||||
],
|
||||
"inputOverride": "allow",
|
||||
"outputProperties": [],
|
||||
"x": 450,
|
||||
"y": 640,
|
||||
"x": 590,
|
||||
"y": 620,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
|
Reference in New Issue
Block a user