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
|
"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",
|
"type": "ha-entity-config",
|
||||||
"server": "9e87348d.9c1c48",
|
"server": "9e87348d.9c1c48",
|
||||||
"deviceConfig": "",
|
"deviceConfig": "61d19879e4bd1c55",
|
||||||
"name": "Tornado Possible",
|
"name": "Severe Thunderstorm Warning",
|
||||||
"version": 6,
|
"version": 6,
|
||||||
"entityType": "binary_sensor",
|
"entityType": "binary_sensor",
|
||||||
"haConfig": [
|
"haConfig": [
|
||||||
{
|
{
|
||||||
"property": "name",
|
"property": "name",
|
||||||
"value": "Tornado Possible"
|
"value": "Severe Thunderstorm Warning"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "icon",
|
"property": "icon",
|
||||||
"value": "mdi:weather-tornado"
|
"value": "mdi:weather-lightning"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "entity_picture",
|
"property": "entity_picture",
|
||||||
@ -29484,61 +29493,67 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "d1174b9e62e02408",
|
"id": "8f8450555dd6ac73",
|
||||||
"type": "mqtt in",
|
"type": "mqtt in",
|
||||||
"z": "ebd5561c4f077718",
|
"z": "ebd5561c4f077718",
|
||||||
"name": "Tornado Possible",
|
"name": "Severe Thunderstorm Warning",
|
||||||
"topic": "weather/alerts/defiance/severe_thunderstorm_warning/tornado_possible",
|
"topic": "weather/alerts/defiance/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": 160,
|
"x": 210,
|
||||||
"y": 640,
|
"y": 620,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"205fe5192ed90a99"
|
"c8a8f9eb6f370ae2"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "205fe5192ed90a99",
|
"id": "c8a8f9eb6f370ae2",
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"z": "ebd5561c4f077718",
|
"z": "ebd5561c4f077718",
|
||||||
"name": "Processing",
|
"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,
|
"outputs": 1,
|
||||||
"timeout": 0,
|
"timeout": 0,
|
||||||
"noerr": 0,
|
"noerr": 0,
|
||||||
"initialize": "",
|
"initialize": "",
|
||||||
"finalize": "",
|
"finalize": "",
|
||||||
"libs": [],
|
"libs": [],
|
||||||
"x": 295,
|
"x": 395,
|
||||||
"y": 640,
|
"y": 620,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"426c7aed27dd2185"
|
"ad598f14adf7a284"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"l": false
|
"l": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "426c7aed27dd2185",
|
"id": "ad598f14adf7a284",
|
||||||
"type": "ha-binary-sensor",
|
"type": "ha-binary-sensor",
|
||||||
"z": "ebd5561c4f077718",
|
"z": "ebd5561c4f077718",
|
||||||
"name": "Tornado Possible",
|
"name": "Severe Thunderstorm Warning",
|
||||||
"entityConfig": "351ed2425ad19fc4",
|
"entityConfig": "d8ea9407aa2cf6a5",
|
||||||
"version": 0,
|
"version": 0,
|
||||||
"state": "payload",
|
"state": "new_state",
|
||||||
"stateType": "msg",
|
"stateType": "msg",
|
||||||
"attributes": [],
|
"attributes": [
|
||||||
|
{
|
||||||
|
"property": "tornado_possible",
|
||||||
|
"value": "payload.tornado_possible",
|
||||||
|
"valueType": "msg"
|
||||||
|
}
|
||||||
|
],
|
||||||
"inputOverride": "allow",
|
"inputOverride": "allow",
|
||||||
"outputProperties": [],
|
"outputProperties": [],
|
||||||
"x": 450,
|
"x": 590,
|
||||||
"y": 640,
|
"y": 620,
|
||||||
"wires": [
|
"wires": [
|
||||||
[]
|
[]
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user