Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexdelprete/4a26abe1f6c69522d86bba7c824012c8 to your computer and use it in GitHub Desktop.
Save alexdelprete/4a26abe1f6c69522d86bba7c824012c8 to your computer and use it in GitHub Desktop.
WF Tempest Node-Red Flow (HA+MQTT)
[
{
"id": "7725e362.54641c",
"type": "tab",
"label": "WeatherFlow Tempest (HA+MQTT) ",
"disabled": false,
"info": ""
},
{
"id": "e4e51e81.61592",
"type": "udp in",
"z": "7725e362.54641c",
"name": "Tempest PWS",
"iface": "",
"port": "50222",
"ipv": "udp4",
"multicast": "false",
"group": "",
"datatype": "utf8",
"x": 130,
"y": 1720,
"wires": [
[
"20786630.dd2e9a"
]
]
},
{
"id": "20786630.dd2e9a",
"type": "json",
"z": "7725e362.54641c",
"name": "jsonconverter",
"property": "payload",
"action": "",
"pretty": true,
"x": 300,
"y": 1720,
"wires": [
[
"2572dc3b.a924c4"
]
],
"inputLabels": [
"udpIn"
],
"outputLabels": [
"jsonOut"
]
},
{
"id": "86aee084.e145f",
"type": "switch",
"z": "7725e362.54641c",
"name": "Payload Divider",
"property": "payload.type",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "obs_st",
"vt": "str"
},
{
"t": "eq",
"v": "rapid_wind",
"vt": "str"
},
{
"t": "eq",
"v": "device_status",
"vt": "str"
},
{
"t": "eq",
"v": "hub_status",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 4,
"x": 1280,
"y": 1740,
"wires": [
[
"a8995140.903dc"
],
[
"89e78852.3864c8"
],
[
"f7ba94e0.f071f8",
"c192e021.f7c8b",
"2a676b39.44b3b4",
"963e9bc5.51ef38"
],
[
"8c1e64bb.25d0d8",
"35ee49bd.018056",
"f5e64dd4.e8dae",
"8dd9e03f.0e794"
]
],
"inputLabels": [
"jsonIn"
],
"outputLabels": [
"Station Metrics",
"Wind Realtime",
"Station Status",
"Hub Status"
]
},
{
"id": "83b6984b.3ce4b8",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Speed RT (km/h)",
"func": "msg.payload = Number((msg.payload[1] * 3.6).toFixed(1));\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2080,
"y": 1940,
"wires": [
[
"4ea6cfb6.99539"
]
],
"outputLabels": [
"mph"
]
},
{
"id": "1d9ac631.e7ddda",
"type": "function",
"z": "7725e362.54641c",
"name": "Pressure (mbar)",
"func": "msg.payload = Number((msg.payload || 0).toFixed(0));\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2640,
"y": 660,
"wires": [
[
"b2b2dec6.75ebd"
]
]
},
{
"id": "dc6e4a0c.1f3128",
"type": "function",
"z": "7725e362.54641c",
"name": "Lightning Count",
"func": "msg.lcount = msg.payload;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2640,
"y": 1820,
"wires": [
[
"608fdddd.ae9b24"
]
]
},
{
"id": "5cd53510.0c1eec",
"type": "function",
"z": "7725e362.54641c",
"name": "Lightning Distance (km)",
"func": "msg.ldist = msg.payload;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2670,
"y": 1760,
"wires": [
[
"f2185d05.cc202"
]
]
},
{
"id": "359bc9f2.e2bf16",
"type": "function",
"z": "7725e362.54641c",
"name": "Battery (V)",
"func": "volt = Number((msg.payload).toFixed(2));\nmsg.volt = volt;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2630,
"y": 1620,
"wires": [
[
"580ad777.b52198",
"4ab4a06a.be041"
]
]
},
{
"id": "81b873d2.6bbe9",
"type": "function",
"z": "7725e362.54641c",
"name": "Illuminance (Lux)",
"func": "msg.lux = msg.payload;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2670,
"y": 1200,
"wires": [
[
"84c5ccc0.7439a"
]
]
},
{
"id": "b7983c07.c01fe",
"type": "function",
"z": "7725e362.54641c",
"name": "UV Index",
"func": "msg.uv = Number((msg.payload).toFixed(1));\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2640,
"y": 1280,
"wires": [
[
"a343c2ed.c359b"
]
]
},
{
"id": "20eb0e2e.75ca72",
"type": "function",
"z": "7725e362.54641c",
"name": "Solar Radiation (W/m^2)",
"func": "msg.rad = msg.payload;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2690,
"y": 1360,
"wires": [
[
"a132ae21.0156f",
"5f324db4.d8a524"
]
]
},
{
"id": "c4e5feb2.6d263",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Gust (km/h)",
"func": "msg.payload = Number((msg.payload * 3.6).toFixed(1));\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2650,
"y": 480,
"wires": [
[
"2867ea92.a2a736"
]
]
},
{
"id": "b0af4993.09b828",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Dir RT (°)",
"func": "msg.payload = msg.payload[2];\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2060,
"y": 2000,
"wires": [
[
"9f0036db.892408",
"17325b67.783255"
]
],
"outputLabels": [
"degrees"
]
},
{
"id": "963e9bc5.51ef38",
"type": "function",
"z": "7725e362.54641c",
"name": "Sensor Status",
"func": "binaryStr = Number(msg.payload.sensor_status).toString(2);\n\nif(binaryStr.length < 9)\n{\n while(binaryStr.length < 9) \n {\n binaryStr = \"0\" + binaryStr;\n }\n}\nelse if(binaryStr.length > 9)\n{\n binaryStr = binaryStr.slice(-9);\n}\nelse if(binaryStr.length == 9)\n{\n binaryStr = binaryStr;\n}\nmsg.payload = binaryStr;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 1760,
"y": 2420,
"wires": [
[
"2e1ea865.879498",
"c13943c.a1ef6c"
]
]
},
{
"id": "c84bb9dd.eca608",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Lull (km/h)",
"func": "msg.payload = Number((msg.payload * 3.6).toFixed(1));\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2640,
"y": 60,
"wires": [
[
"ff193601.719818"
]
]
},
{
"id": "779f1054.5c9b7",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Dir (°)",
"func": "msg.dir = msg.payload;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2630,
"y": 540,
"wires": [
[
"bc329217.e05d9",
"a8b2d751.23ac18"
]
]
},
{
"id": "6bdb6fa8.b3583",
"type": "function",
"z": "7725e362.54641c",
"name": "Precipitazioni (Tipo)",
"func": "type = msg.payload;\nvar t = \"\";\n if (type==0)\n {\n t = \"Nessuna\";\n }\n else if (type==1)\n {\n t = \"Pioggia\";\n }\n else if (type==2)\n {\n t = \"Grandine\";\n }\nmsg.rtype = t;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2650,
"y": 1700,
"wires": [
[
"cc76c7b.ea4b738"
]
]
},
{
"id": "2e1ea865.879498",
"type": "split",
"z": "7725e362.54641c",
"name": "Binary Splitter",
"splt": "1",
"spltType": "len",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 2560,
"y": 2420,
"wires": [
[
"d1bfb929.22f858"
]
]
},
{
"id": "d1bfb929.22f858",
"type": "switch",
"z": "7725e362.54641c",
"name": "Sensors Status",
"property": "parts.index",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "8",
"vt": "num"
},
{
"t": "eq",
"v": "7",
"vt": "num"
},
{
"t": "eq",
"v": "6",
"vt": "num"
},
{
"t": "eq",
"v": "5",
"vt": "num"
},
{
"t": "eq",
"v": "4",
"vt": "num"
},
{
"t": "eq",
"v": "3",
"vt": "num"
},
{
"t": "eq",
"v": "2",
"vt": "num"
},
{
"t": "eq",
"v": "1",
"vt": "num"
},
{
"t": "eq",
"v": "0",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 9,
"x": 3060,
"y": 2420,
"wires": [
[
"77a74a18.8f6814"
],
[
"9c9a52ce.a969"
],
[
"8553fadd.57db68"
],
[
"3363f856.215508"
],
[
"cacd8afa.30d938"
],
[
"a2b0a2b6.9aa95"
],
[
"9ea3e1ee.1f578"
],
[
"8d686d63.68f7b"
],
[
"8afd1732.e227d8"
]
],
"outputLabels": [
"Lightning Failed",
"Lightning Noise",
"Lightning Disturber",
"Pressure Failed",
"Temperature Failed",
"Humidity Failed",
"Wind Failed",
"Rain Failed",
"Light Failed"
]
},
{
"id": "ff193601.719818",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Wind Lull",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Bonaccia"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:windsock"
},
{
"property": "unit_of_measurement",
"value": "km/h"
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3580,
"y": 60,
"wires": [
[
"94c7db10.ea3788",
"1a425be1.6fc574"
]
]
},
{
"id": "9f9b6b62.dc4ad8",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Wind Speed",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Velocità del Vento"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:weather-windy"
},
{
"property": "unit_of_measurement",
"value": "km/h"
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3590,
"y": 140,
"wires": [
[
"b004ffb5.7bc3",
"dcf30b5.d253ff8"
]
]
},
{
"id": "2867ea92.a2a736",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Wind Gust",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Raffiche"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:windsock"
},
{
"property": "unit_of_measurement",
"value": "km/h"
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3590,
"y": 480,
"wires": [
[
"b0a63511.8aa8b8",
"c38ecdbc.7ddd3"
]
]
},
{
"id": "bc329217.e05d9",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Wind Dir",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Direzione del Vento"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:compass-outline"
},
{
"property": "unit_of_measurement",
"value": "°"
}
],
"state": "dir",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3580,
"y": 540,
"wires": [
[
"ac3fa511.107268",
"4b95711.8ac6e9"
]
]
},
{
"id": "4ea6cfb6.99539",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Wind Speed RT",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Velocità del Vento RT"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:weather-windy"
},
{
"property": "unit_of_measurement",
"value": "km/h"
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 2580,
"y": 1940,
"wires": [
[
"acfc5547.a9f458",
"b7bd1589.f42c28"
]
]
},
{
"id": "9f0036db.892408",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Wind Dir RT",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Direzione del Vento RT"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:compass-outline"
},
{
"property": "unit_of_measurement",
"value": "°"
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 2570,
"y": 2000,
"wires": [
[
"8fb78d26.cc6ef",
"7e61a8f0.8883a8"
]
]
},
{
"id": "b2b2dec6.75ebd",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Pressure",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Pressione Atmosferica"
},
{
"property": "device_class",
"value": "pressure"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": "mbar"
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "merge",
"x": 3580,
"y": 660,
"wires": [
[
"1dcc367d.6a531a",
"6780d339.b922fc"
]
]
},
{
"id": "11954279.3de3de",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Temperature",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Temperatura"
},
{
"property": "device_class",
"value": "temperature"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": "°C"
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3590,
"y": 720,
"wires": [
[
"b89db056.13e6b",
"f1f63cd3.cc20e"
]
]
},
{
"id": "caac9cd3.4bf75",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Humidity",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Umidità"
},
{
"property": "device_class",
"value": "humidity"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": "%H"
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3580,
"y": 1140,
"wires": [
[
"2a3b7d0f.2f4452",
"1cb01e2e.468e22"
]
]
},
{
"id": "84c5ccc0.7439a",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Illuminance",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Luminosità"
},
{
"property": "device_class",
"value": "illuminance"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": "lux"
}
],
"state": "lux",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3590,
"y": 1200,
"wires": [
[
"93a450b7.b65f8",
"e816a843.347568"
]
]
},
{
"id": "35a67ef8.686c92",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "UV Index",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Indice UV"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:shield-sun-outline"
},
{
"property": "unit_of_measurement",
"value": "index"
}
],
"state": "uv",
"stateType": "msg",
"attributes": [
{
"property": "esposizione",
"value": "uvi",
"valueType": "msg"
}
],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3580,
"y": 1280,
"wires": [
[
"51ff91d1.6fc17",
"d185eaa2.ccd4e8",
"f87dfa0a.cc3728"
]
]
},
{
"id": "a132ae21.0156f",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Solar Radiation",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Irraggiamento"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:solar-power"
},
{
"property": "unit_of_measurement",
"value": "W/m^2"
}
],
"state": "rad",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3600,
"y": 1360,
"wires": [
[
"81b12488.535888",
"9cd025bf.8b9b58"
]
]
},
{
"id": "26fc6f65.aaef3",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Battery Perc",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Batteria"
},
{
"property": "device_class",
"value": "battery"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": "%"
}
],
"state": "batperc",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3590,
"y": 1580,
"wires": [
[
"3cab44ac.5433bc",
"3283e364.f10fcc"
]
]
},
{
"id": "f7ba94e0.f071f8",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Tempest S/N",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Station S/N"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:barcode"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.serial_number",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1750,
"y": 2180,
"wires": [
[
"7745494e.9d7668",
"ea6f9cb1.2986d"
]
]
},
{
"id": "8c1e64bb.25d0d8",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Hub S/N",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Hub S/N"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:qrcode"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.serial_number",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1740,
"y": 2540,
"wires": [
[
"1e2656d2.353f49",
"611aeb12.3f4c24"
]
]
},
{
"id": "77a74a18.8f6814",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "LIGHTNING FAILED",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Tempest - Avaria Sensore Fulmini"
},
{
"property": "device_class",
"value": "problem"
},
{
"property": "icon",
"value": "mdi:image-broken-variant"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3360,
"y": 2180,
"wires": [
[
"f4bb5878.727e48",
"751beb52.258284"
]
]
},
{
"id": "9c9a52ce.a969",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "LIGHTNING NOISE",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Tempest - Rumore Sensore Fulmini"
},
{
"property": "device_class",
"value": "problem"
},
{
"property": "icon",
"value": "mdi:vibrate"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3350,
"y": 2240,
"wires": [
[
"4735317f.1c4bb",
"359dbb13.899e44"
]
]
},
{
"id": "8553fadd.57db68",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "LIGHTNING DISTURBER",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Tempest - Disturbo Sensore Fulmini"
},
{
"property": "device_class",
"value": "problem"
},
{
"property": "icon",
"value": "mdi:car-light-high"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3370,
"y": 2300,
"wires": [
[
"87b27e68.f0eaf",
"c59a150a.732fe8"
]
]
},
{
"id": "3363f856.215508",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "PRESSURE FAILED",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Tempest - Avaria Sensore Pressione"
},
{
"property": "device_class",
"value": "problem"
},
{
"property": "icon",
"value": "mdi:image-broken-variant"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3360,
"y": 2360,
"wires": [
[
"74267369.ce91bc",
"74f1e50a.77745c"
]
]
},
{
"id": "cacd8afa.30d938",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "TEMPERATURE FAILED",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Tempest - Avaria Sensore Temperatura"
},
{
"property": "device_class",
"value": "problem"
},
{
"property": "icon",
"value": "mdi:image-broken-variant"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3370,
"y": 2420,
"wires": [
[
"3dfb1d9d.a0d772",
"c1a928e1.c35768"
]
]
},
{
"id": "a2b0a2b6.9aa95",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "HUMIDITY FAILED",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Tempest - Avaria Sensore Umidità"
},
{
"property": "device_class",
"value": "problem"
},
{
"property": "icon",
"value": "mdi:image-broken-variant"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3350,
"y": 2480,
"wires": [
[
"b93d59e2.06ea88",
"bcd99c13.453d2"
]
]
},
{
"id": "9ea3e1ee.1f578",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "WIND FAILED",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Tempest - Avaria Sensore Vento"
},
{
"property": "device_class",
"value": "problem"
},
{
"property": "icon",
"value": "mdi:image-broken-variant"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3340,
"y": 2540,
"wires": [
[
"570c5ba8.3daec4",
"a6cb6bb7.d0f838"
]
]
},
{
"id": "8d686d63.68f7b",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "RAIN FAILED",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Tempest - Avaria Sensore Pioggia"
},
{
"property": "device_class",
"value": "problem"
},
{
"property": "icon",
"value": "mdi:image-broken-variant"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3330,
"y": 2600,
"wires": [
[
"a55ba297.30541",
"2e959c69.e03834"
]
]
},
{
"id": "8afd1732.e227d8",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "LIGHT FAILED",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "binary_sensor",
"config": [
{
"property": "name",
"value": "Tempest - Avaria Sensore Luce/UV"
},
{
"property": "device_class",
"value": "problem"
},
{
"property": "icon",
"value": "mdi:image-broken-variant"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3340,
"y": 2660,
"wires": [
[
"9d32f2df.2db2e",
"7ca5b9ea.796e68"
]
]
},
{
"id": "8d831714.9f5a38",
"type": "function",
"z": "7725e362.54641c",
"name": "Beaufort Calculus",
"func": "bf = Math.round(Math.cbrt(Math.pow(msg.payload,2)/9));\nmsg.bf = bf;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2990,
"y": 200,
"wires": [
[
"243918a6.e89028"
]
]
},
{
"id": "84b5b308.12abc",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Beaufort Index",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Indice Beaufort"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:tailwind"
},
{
"property": "unit_of_measurement",
"value": "index"
}
],
"state": "bf",
"stateType": "msg",
"attributes": [
{
"property": "condizione",
"value": "state",
"valueType": "msg"
}
],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3600,
"y": 200,
"wires": [
[
"1f44899e.f56506",
"dbad766f.74cee8",
"db56eb1.95d3818"
]
]
},
{
"id": "8f90f4ae.220268",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Dew Point",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Punto di Rugiada"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:water"
},
{
"property": "unit_of_measurement",
"value": "°C"
}
],
"state": "dp",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3590,
"y": 1080,
"wires": [
[
"e23a485b.7ad288",
"8e2f1aa1.7f3318"
]
]
},
{
"id": "a55ad59a.881ba8",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Thom Index",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Thom Index"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:cow"
},
{
"property": "unit_of_measurement",
"value": "°C"
}
],
"state": "thi",
"stateType": "msg",
"attributes": [
{
"property": "condizione",
"value": "state",
"valueType": "msg"
}
],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3590,
"y": 1000,
"wires": [
[
"4f2ddc0b.8a6284",
"db28ff4f.7a41d",
"93bc1f3f.11436"
]
]
},
{
"id": "a788685d.0b6388",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Indice di Calore",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Indice di Calore"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:weather-sunny-alert"
},
{
"property": "unit_of_measurement",
"value": "°C"
}
],
"state": "hi",
"stateType": "msg",
"attributes": [
{
"property": "condizione",
"value": "state",
"valueType": "msg"
}
],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3600,
"y": 900,
"wires": [
[
"80b975e6.38b758",
"5be278d3.2a0668",
"d36805db.4ef208"
]
]
},
{
"id": "e4e9404d.53bb",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Wind Chill",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Wind Chill"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:thermometer-chevron-down"
},
{
"property": "unit_of_measurement",
"value": "°C"
}
],
"state": "wci",
"stateType": "msg",
"attributes": [
{
"property": "condizione",
"value": "state",
"valueType": "msg"
}
],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3580,
"y": 300,
"wires": [
[
"bf53d528.943648",
"3519269e.285a5a",
"52da4e49.517ea"
]
]
},
{
"id": "3daf69eb.1dc336",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Humidex",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Umidex"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:format-header-pound"
},
{
"property": "unit_of_measurement",
"value": "°C"
}
],
"state": "udx",
"stateType": "msg",
"attributes": [
{
"property": "condizione",
"value": "state",
"valueType": "msg"
}
],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3580,
"y": 800,
"wires": [
[
"caf844df.882898",
"27600ca4.b02f34",
"b0cb11cd.32bd"
]
]
},
{
"id": "c13943c.a1ef6c",
"type": "debug",
"z": "7725e362.54641c",
"name": "SENSORS STATUS",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2030,
"y": 2420,
"wires": []
},
{
"id": "cc76c7b.ea4b738",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Precipitation Type",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Tipo Precipitazione"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:weather-snowy-rainy"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "rtype",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3610,
"y": 1700,
"wires": [
[
"1ca9617.cd4299f",
"b1dfcccc.04866"
]
]
},
{
"id": "a8b2d751.23ac18",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Cardinal",
"func": "deg = msg.dir;\nvar dir = \"\";\n if (deg>11.25 && deg<=33.75)\n {\n dir = \"NNE\";\n }\n else if (deg>33.75 && deg<=56.25)\n {\n dir = \"ENE\";\n }\n else if (deg>56.25 && deg<=78.75)\n {\n dir = \"E\";\n }\n else if (deg>78.75 && deg<=101.25)\n {\n dir = \"ESE\";\n }\n else if (deg>101.25 && deg<=123.75)\n {\n dir = \"ESE\";\n }\n else if (deg>123.75 && deg<=146.25)\n {\n dir = \"SE\";\n }\n else if (deg>146.25 && deg<=168.75)\n {\n dir = \"SSE\";\n }\n else if (deg>168.75 && deg<=191.25)\n {\n dir = \"S\";\n }\n else if (deg>191.25 && deg<=213.75)\n {\n dir = \"SSW\";\n }\n else if (deg>213.75 && deg<=236.25)\n {\n dir = \"SW\";\n }\n else if (deg>236.25 && deg<=258.75)\n {\n dir = \"WSW\";\n }\n else if (deg>258.75 && deg<=281.25)\n {\n dir = \"W\";\n }\n else if (deg>281.25 && deg<=303.75)\n {\n dir = \"WNW\";\n }\n else if (deg>303.75 && deg<=326.25)\n {\n dir = \"NW\";\n }\n else if (deg>326.25 && deg<=348.75)\n {\n dir = \"NNW\";\n }\n else\n {\n dir = \"N\"; \n }\nmsg.payload = dir;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3120,
"y": 600,
"wires": [
[
"1e8bf942.f7c967"
]
]
},
{
"id": "17325b67.783255",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Cardinal RT",
"func": "deg = msg.payload;\nvar dir = \"\";\n if (deg>11.25 && deg<=33.75)\n {\n dir = \"NNE\";\n }\n else if (deg>33.75 && deg<=56.25)\n {\n dir = \"ENE\";\n }\n else if (deg>56.25 && deg<=78.75)\n {\n dir = \"E\";\n }\n else if (deg>78.75 && deg<=101.25)\n {\n dir = \"ESE\";\n }\n else if (deg>101.25 && deg<=123.75)\n {\n dir = \"ESE\";\n }\n else if (deg>123.75 && deg<=146.25)\n {\n dir = \"SE\";\n }\n else if (deg>146.25 && deg<=168.75)\n {\n dir = \"SSE\";\n }\n else if (deg>168.75 && deg<=191.25)\n {\n dir = \"S\";\n }\n else if (deg>191.25 && deg<=213.75)\n {\n dir = \"SSW\";\n }\n else if (deg>213.75 && deg<=236.25)\n {\n dir = \"SW\";\n }\n else if (deg>236.25 && deg<=258.75)\n {\n dir = \"WSW\";\n }\n else if (deg>258.75 && deg<=281.25)\n {\n dir = \"W\";\n }\n else if (deg>281.25 && deg<=303.75)\n {\n dir = \"WNW\";\n }\n else if (deg>303.75 && deg<=326.25)\n {\n dir = \"NW\";\n }\n else if (deg>326.25 && deg<=348.75)\n {\n dir = \"NNW\";\n }\n else\n {\n dir = \"N\"; \n }\nmsg.payload = dir;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2330,
"y": 2040,
"wires": [
[
"69b4bec0.b07bb"
]
]
},
{
"id": "1e8bf942.f7c967",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Wind Cardinal",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Cardinale"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:compass-rose"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3600,
"y": 600,
"wires": [
[
"634b691c.9b5198",
"ffa9a871.3cf8d8"
]
]
},
{
"id": "69b4bec0.b07bb",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Wind Cardinal RT",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Cardinale RT"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:compass-rose"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 2590,
"y": 2060,
"wires": [
[
"15c0995b.37f3e7",
"8e24c890.61fd38"
]
]
},
{
"id": "243918a6.e89028",
"type": "function",
"z": "7725e362.54641c",
"name": "BF Desc",
"func": "i = msg.bf;\nvar gr = \"\";\n if (i == 0)\n {\n gr = \"Calma\";\n }\n else if (i == 1)\n {\n gr = \"Bava di Vento\";\n }\n else if (i == 2)\n {\n gr = \"Brezza Leggera\";\n }\n else if (i == 3)\n {\n gr = \"Brezza\";\n }\n else if (i == 4)\n {\n gr = \"Brezza Vivace\";\n }\n else if (i == 5)\n {\n gr = \"Brezza Tesa\";\n }\n else if (i == 6)\n {\n gr = \"Vento Fresco\";\n }\n else if (i == 7)\n {\n gr = \"Vento Forte\";\n }\n else if (i == 8)\n {\n gr = \"Burrasca Moderata\";\n }\n else if (i == 9)\n {\n gr = \"Burrasca Forte\";\n }\n else if (i == 10)\n {\n gr = \"Tempesta\";\n }\n else if (i == 11)\n {\n gr = \"Fortunale\";\n }\n else if (i == 12)\n {\n gr = \"Uragano\";\n }\nmsg.state = gr;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3280,
"y": 200,
"wires": [
[
"84b5b308.12abc"
]
]
},
{
"id": "e70cf555.1bdef8",
"type": "function",
"z": "7725e362.54641c",
"name": "WC Desc",
"func": "var gr = \"\";\ni = msg.wci;\n\nif (msg.w == -1)\n{\n gr = \"Non Calcolabile\";\n}\nelse\n{\n if (i > 4)\n {\n gr = \"Gradevole\";\n }\n else if (i > -6 && i <= 4)\n {\n gr = \"Freddo\";\n }\n else if (i > -17 && i <= -7)\n {\n gr = \"Molto Freddo\";\n }\n else if (i > -28 && i <= -17)\n {\n gr = \"Gelido\";\n }\n else if (i > -56 && i <= -28)\n {\n gr = \"Estremamente Freddo\";\n }\n else if (i <= -56)\n {\n gr = \"Gelato\";\n }\n}\nmsg.state = gr;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3400,
"y": 300,
"wires": [
[
"e4e9404d.53bb"
]
]
},
{
"id": "118217a6.5db5c8",
"type": "function",
"z": "7725e362.54641c",
"name": "WC Desc",
"func": "i = msg.wci;\nvar gr = \"\";\n if (i > 10)\n {\n gr = \"Nessun Disagio\";\n }\n else if (i > -1 && i <= 10)\n {\n gr = \"Lieve Disagio\";\n }\n else if (i > -10 && i <= -1)\n {\n gr = \"Disagio\";\n }\n else if (i > -18 && i <= -10)\n {\n gr = \"Molto Freddo\";\n }\n else if (i > -29 && i <= -18)\n {\n gr = \"Possibile Congelamento\";\n }\n else if (i > -50 && i <= -29)\n {\n gr = \"Congelamento\";\n }\n else if (i <= -50)\n {\n gr = \"Rapido Congelamento\";\n }\nmsg.state = gr;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3400,
"y": 400,
"wires": [
[
"a2abba79.1a0478",
"d91c18ca.0dcfc8",
"52de69ba.ad14f8"
]
]
},
{
"id": "3997999e.f868b6",
"type": "function",
"z": "7725e362.54641c",
"name": "HI Desc",
"func": "i = msg.hi;\nvar gr = \"\";\n if (i < 27 && i != 0)\n {\n gr = \"Confortevole\";\n }\n else if (i >= 27 && i <= 32)\n {\n gr = \"Caldo\";\n }\n else if (i > 32 && i <= 39)\n {\n gr = \"Molto Caldo\";\n }\n else if (i > 39 && i <= 54)\n {\n gr = \"Attenzione\";\n }\n else if (i > 54)\n {\n gr = \"Pericolo\";\n }\n else if (i == 0)\n {\n gr = \"Non Calcolabile\";\n }\nmsg.state = gr;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3340,
"y": 900,
"wires": [
[
"a788685d.0b6388"
]
]
},
{
"id": "bcbe7d29.9b0fa",
"type": "function",
"z": "7725e362.54641c",
"name": "H Desc",
"func": "i = msg.udx;\nvar gr = \"\";\nif (i == 0)\n{\n gr = \"Non Calcolabile\";\n}\nelse if (i >= 20 && i < 27)\n{\n gr = \"Benessere\";\n}\nelse if (i >= 27 && i < 30)\n{\n gr = \"Cautela\";\n}\nelse if (i >= 30 && i < 40)\n{\n gr = \"Estrema Cautela\";\n}\nelse if (i >= 40 && i < 55)\n{ \n gr = \"Pericolo\";\n}\nelse if (i >= 55)\n{\n gr = \"Elevato Pericolo\";\n}\nmsg.state = gr;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3340,
"y": 800,
"wires": [
[
"3daf69eb.1dc336"
]
]
},
{
"id": "5f324db4.d8a524",
"type": "function",
"z": "7725e362.54641c",
"name": "Charge Status",
"func": "i = msg.rad;\nvar gr = \"\";\n if (i <= 50)\n {\n gr = \"Not Charging\";\n }\n else if (i > 50 && i <= 150)\n {\n gr = \"Slow Charging\";\n }\n else if (i > 150 && i <= 250)\n {\n gr = \"Normal Charging\";\n }\n else if (i >250)\n {\n gr = \"Fast Charging\";\n }\nmsg.state = gr;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3240,
"y": 1420,
"wires": [
[
"77c25d98.836d34"
]
]
},
{
"id": "580ad777.b52198",
"type": "function",
"z": "7725e362.54641c",
"name": "battery_level",
"func": "xMax = 100;\nxMin = 1;\nyMax = 2.75;\nyMin = 2.30;\nvar n = msg.volt;\n\nvar percent = (n - yMin) / (yMax - yMin);\nvar val = Math.round(percent * (xMax - xMin) + xMin);\n\nif (val < 0)\n {\n val = 0;\n }\nelse if (val > 100)\n {\n val = 100;\n }\nmsg.batperc = val;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3230,
"y": 1620,
"wires": [
[
"26fc6f65.aaef3",
"a68c78c4.788b78"
]
]
},
{
"id": "e3d7e35d.ed8e7",
"type": "function",
"z": "7725e362.54641c",
"name": "THI Desc",
"func": "i = msg.thi;\nvar gr = \"\";\n if (i >= 30)\n {\n gr = \"Torrido\";\n }\n else if (i >= 26.5 && i < 30)\n {\n gr = \"Molto Caldo\";\n }\n else if (i >= 20 && i < 26.5)\n {\n gr = \"Caldo\";\n }\n else if (i >= 15 && i < 20)\n {\n gr = \"Confortevole\";\n }\n else if (i >= 13 && i < 15)\n {\n gr = \"Fresco\";\n }\n else if (i > -1.8 && i < 13)\n {\n gr = \"Freddo\";\n }\n else if (i > -10 && i <= -1.8)\n {\n gr = \"Molto Freddo\";\n }\n else if (i > -20 && i <= -10)\n {\n gr = \"Estr. Freddo\";\n }\n else if (i > -40 && i <= 20)\n {\n gr = \"Glaciale\";\n }\n else if (i <= -40)\n {\n gr = \"Iperglaciale\";\n }\nmsg.state = gr;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3340,
"y": 1000,
"wires": [
[
"a55ad59a.881ba8"
]
]
},
{
"id": "a343c2ed.c359b",
"type": "function",
"z": "7725e362.54641c",
"name": "UV Desc",
"func": "i = msg.uv\nvar uvi = \"\";\n\nif (i < 3)\n {\n uvi = \"Bassa\";\n }\nelse if (i >= 3 && i <= 5)\n {\n uvi = \"Moderata\";\n }\nelse if (i > 5 && i <= 7)\n {\n uvi = \"Alta\";\n }\nelse if (i > 7 && i <= 10)\n {\n uvi = \"Molto Alta\";\n }\nelse if (i > 10)\n {\n uvi = \"Estrema\";\n }\nmsg.uvi = uvi;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3220,
"y": 1280,
"wires": [
[
"35a67ef8.686c92"
]
]
},
{
"id": "2173086.044b6f8",
"type": "http request",
"z": "7725e362.54641c",
"name": "WeatherFlow Tempest REST Request",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 690,
"y": 3320,
"wires": [
[
"8755338f.a8c17"
]
]
},
{
"id": "6a798b96.efd914",
"type": "comment",
"z": "7725e362.54641c",
"name": "WEATHERFLOW TEMPEST - LOCAL UDP POLL",
"info": "WEATHERFLOW TEMPEST - LOCAL UDP POLL",
"x": 240,
"y": 1680,
"wires": []
},
{
"id": "9f37a9ef.1315f8",
"type": "comment",
"z": "7725e362.54641c",
"name": "WEATHERFLOW TEMPEST - REMOTE REST POLL",
"info": "WEATHERFLOW TEMPEST - LOCAL UDP POLL",
"x": 450,
"y": 3220,
"wires": []
},
{
"id": "d4fc5c43.8f0d1",
"type": "debug",
"z": "7725e362.54641c",
"name": "REST API PAYLOAD",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1820,
"y": 3320,
"wires": []
},
{
"id": "24fda6df.47ef9a",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Quantità Precipitazioni Oggi",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Quantità Precipitazioni Oggi"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:weather-pouring"
},
{
"property": "unit_of_measurement",
"value": "mm"
}
],
"state": "payload.precip_accum_local_day",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2340,
"y": 3420,
"wires": [
[
"3202cf91.fd934",
"71f7dbfe.439214"
]
]
},
{
"id": "4544e16b.45831",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Durata Precipitazioni Oggi",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Durata Precipitazioni Oggi"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:timer-outline"
},
{
"property": "unit_of_measurement",
"value": "min"
}
],
"state": "payload.precip_minutes_local_day",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2330,
"y": 3480,
"wires": [
[
"4b23955e.ded32c",
"1c6fbc53.f70454"
]
]
},
{
"id": "448aa04b.2323c",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Tendenza Pressione",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Tendenza Pressione"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:swap-vertical-bold"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.pressure_trend",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2320,
"y": 3740,
"wires": [
[
"d635d3bc.e9989",
"de073c24.cfc6e"
]
]
},
{
"id": "557154aa.28b99c",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Nome Stazione",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Nome Stazione"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:tag-text-outline"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.station_name",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2300,
"y": 2900,
"wires": [
[
"de307dd0.2cc78",
"a0c1f53c.e37068"
]
]
},
{
"id": "fb6563d.8b9e0a",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Nome Pubblico Stazione",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Nome Pubblico Stazione"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:map-marker"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.public_name",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2330,
"y": 2960,
"wires": [
[
"1ab3ecab.275663",
"41c4fbbf.59d094"
]
]
},
{
"id": "d47be71d.a515e8",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Latitudine Stazione",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Latitudine"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:latitude"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.latitude",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2310,
"y": 3020,
"wires": [
[
"9042b7d3.376078",
"7f4708e7.3956b8"
]
]
},
{
"id": "feb8fe4a.eb8c7",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Longitudine Stazione",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Longitudine"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:longitude"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.longitude",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2320,
"y": 3080,
"wires": [
[
"a797a941.d5f9c8",
"e1ce76cd.8423a8"
]
]
},
{
"id": "d5c2fbfe.2e2ce8",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Elevazione Stazione",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Elevazione"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:human-male-height"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.elevation",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2320,
"y": 3140,
"wires": [
[
"91a2b3ac.8909a",
"edd536fc.101eb8"
]
]
},
{
"id": "bf53d528.943648",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND CHILL (NEW)",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "wci",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3870,
"y": 280,
"wires": []
},
{
"id": "b004ffb5.7bc3",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND SPEED",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3860,
"y": 120,
"wires": []
},
{
"id": "acfc5547.a9f458",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND SPEED RT",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2830,
"y": 1940,
"wires": []
},
{
"id": "94c7db10.ea3788",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND LULL",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3850,
"y": 60,
"wires": []
},
{
"id": "b0a63511.8aa8b8",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND GUST",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3850,
"y": 480,
"wires": []
},
{
"id": "ac3fa511.107268",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND DIRECTION",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "dir",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3870,
"y": 540,
"wires": []
},
{
"id": "8fb78d26.cc6ef",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND DIRECTION RT",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2840,
"y": 2000,
"wires": []
},
{
"id": "1dcc367d.6a531a",
"type": "debug",
"z": "7725e362.54641c",
"name": "PRESSURE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3850,
"y": 660,
"wires": []
},
{
"id": "b89db056.13e6b",
"type": "debug",
"z": "7725e362.54641c",
"name": "TEMPERATURE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3860,
"y": 720,
"wires": []
},
{
"id": "caf844df.882898",
"type": "debug",
"z": "7725e362.54641c",
"name": "HUMIDEX",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "udx",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3840,
"y": 780,
"wires": []
},
{
"id": "80b975e6.38b758",
"type": "debug",
"z": "7725e362.54641c",
"name": "HEAT INDEX",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "hi",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3850,
"y": 880,
"wires": []
},
{
"id": "4f2ddc0b.8a6284",
"type": "debug",
"z": "7725e362.54641c",
"name": "THOM",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "thi",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3830,
"y": 980,
"wires": []
},
{
"id": "e23a485b.7ad288",
"type": "debug",
"z": "7725e362.54641c",
"name": "DEW POINT",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "dp",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3850,
"y": 1080,
"wires": []
},
{
"id": "2a3b7d0f.2f4452",
"type": "debug",
"z": "7725e362.54641c",
"name": "HUMIDITY",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3850,
"y": 1140,
"wires": []
},
{
"id": "93a450b7.b65f8",
"type": "debug",
"z": "7725e362.54641c",
"name": "ILLUMINANCE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "lux",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3860,
"y": 1200,
"wires": []
},
{
"id": "51ff91d1.6fc17",
"type": "debug",
"z": "7725e362.54641c",
"name": "UV INDEX",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "uv",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3840,
"y": 1260,
"wires": []
},
{
"id": "81b12488.535888",
"type": "debug",
"z": "7725e362.54641c",
"name": "SOLAR RADIATION",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "rad",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3870,
"y": 1360,
"wires": []
},
{
"id": "1f44899e.f56506",
"type": "debug",
"z": "7725e362.54641c",
"name": "BEAUFORT",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "bf",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3850,
"y": 180,
"wires": []
},
{
"id": "a2abba79.1a0478",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND CHILL (OLD)",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "wci",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3870,
"y": 380,
"wires": []
},
{
"id": "d91c18ca.0dcfc8",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND CHILL DESC.",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "state",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3880,
"y": 420,
"wires": []
},
{
"id": "3519269e.285a5a",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND CHILL DESC.",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "state",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3880,
"y": 320,
"wires": []
},
{
"id": "dbad766f.74cee8",
"type": "debug",
"z": "7725e362.54641c",
"name": "BEAUFORT DESC.",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "state",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3870,
"y": 220,
"wires": []
},
{
"id": "634b691c.9b5198",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND CARDINAL",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3870,
"y": 600,
"wires": []
},
{
"id": "15c0995b.37f3e7",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND CARDINAL RT",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2840,
"y": 2060,
"wires": []
},
{
"id": "27600ca4.b02f34",
"type": "debug",
"z": "7725e362.54641c",
"name": "HUMIDEX DESC.",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "state",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3870,
"y": 820,
"wires": []
},
{
"id": "5be278d3.2a0668",
"type": "debug",
"z": "7725e362.54641c",
"name": "HEAT INDEX DESC.",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "state",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3880,
"y": 920,
"wires": []
},
{
"id": "db28ff4f.7a41d",
"type": "debug",
"z": "7725e362.54641c",
"name": "THOM DESC.",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "state",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3860,
"y": 1020,
"wires": []
},
{
"id": "d185eaa2.ccd4e8",
"type": "debug",
"z": "7725e362.54641c",
"name": "UV DESC.",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "uvi",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3850,
"y": 1300,
"wires": []
},
{
"id": "1ca9617.cd4299f",
"type": "debug",
"z": "7725e362.54641c",
"name": "PRECIPITATION TYPE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "rtype",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3880,
"y": 1700,
"wires": []
},
{
"id": "7745494e.9d7668",
"type": "debug",
"z": "7725e362.54641c",
"name": "TEMPEST S/N",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.serial_number",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2020,
"y": 2180,
"wires": []
},
{
"id": "1e2656d2.353f49",
"type": "debug",
"z": "7725e362.54641c",
"name": "HUB S/N",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.serial_number",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2000,
"y": 2540,
"wires": []
},
{
"id": "3cab44ac.5433bc",
"type": "debug",
"z": "7725e362.54641c",
"name": "BATTERY (%)",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "batperc",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3860,
"y": 1580,
"wires": []
},
{
"id": "342e7a2e.12c3b6",
"type": "switch",
"z": "7725e362.54641c",
"name": "Metrics",
"property": "parts.index",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "0",
"vt": "num"
},
{
"t": "eq",
"v": "1",
"vt": "num"
},
{
"t": "eq",
"v": "2",
"vt": "num"
},
{
"t": "eq",
"v": "3",
"vt": "num"
},
{
"t": "eq",
"v": "4",
"vt": "num"
},
{
"t": "eq",
"v": "5",
"vt": "num"
},
{
"t": "eq",
"v": "6",
"vt": "num"
},
{
"t": "eq",
"v": "7",
"vt": "num"
},
{
"t": "eq",
"v": "8",
"vt": "num"
},
{
"t": "eq",
"v": "9",
"vt": "num"
},
{
"t": "eq",
"v": "10",
"vt": "num"
},
{
"t": "eq",
"v": "11",
"vt": "num"
},
{
"t": "eq",
"v": "12",
"vt": "num"
},
{
"t": "eq",
"v": "13",
"vt": "num"
},
{
"t": "eq",
"v": "14",
"vt": "num"
},
{
"t": "eq",
"v": "15",
"vt": "num"
},
{
"t": "eq",
"v": "16",
"vt": "num"
},
{
"t": "eq",
"v": "17",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 18,
"x": 2320,
"y": 1100,
"wires": [
[],
[
"c84bb9dd.eca608"
],
[
"e5019f26.59962"
],
[
"c4e5feb2.6d263"
],
[
"779f1054.5c9b7"
],
[],
[
"1d9ac631.e7ddda"
],
[
"6fca9bc2.850f34"
],
[
"615a143a.f2e61c"
],
[
"81b873d2.6bbe9"
],
[
"b7983c07.c01fe"
],
[
"20eb0e2e.75ca72"
],
[],
[
"6bdb6fa8.b3583"
],
[
"5cd53510.0c1eec"
],
[
"dc6e4a0c.1f3128"
],
[
"359bc9f2.e2bf16"
],
[]
],
"inputLabels": [
"Splitted Payload"
],
"outputLabels": [
"Time Epoch",
"Wind Lull (m/s)",
"Wind Avg (m/s)",
"Wind Gust (m/s)",
"Wind Direction (deg)",
"Wind Sample Interval (s)",
"Station Pressure (mbar)",
"Air Temperature (°C)",
"Relative Humidity (%H)",
"Illuminance (Lux)",
"UV (Index)",
"Solar Radiation (W/m^2)",
"Precip Accumulated (mm)",
"Precipitation Type (0/1/2)",
"Lightning Strike Avg Distance (km)",
"Lightning Strike Count",
"Battery (V)",
"Report Interval (min)"
]
},
{
"id": "a8995140.903dc",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.obs[0]",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1790,
"y": 1100,
"wires": [
[
"d0355a99.3449a8"
]
]
},
{
"id": "d0355a99.3449a8",
"type": "split",
"z": "7725e362.54641c",
"name": "Metrics Array Splitter",
"splt": "\\n",
"spltType": "str",
"arraySplt": "1",
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 2080,
"y": 1100,
"wires": [
[
"342e7a2e.12c3b6"
]
]
},
{
"id": "89e78852.3864c8",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.ob",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1780,
"y": 1940,
"wires": [
[
"83b6984b.3ce4b8",
"b0af4993.09b828"
]
]
},
{
"id": "c6f15303.a5cf1",
"type": "debug",
"z": "7725e362.54641c",
"name": "HUB FW",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.firmware_revision",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2000,
"y": 2600,
"wires": []
},
{
"id": "8b06a90.447c558",
"type": "debug",
"z": "7725e362.54641c",
"name": "TEMPEST FW",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.firmware_revision",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2020,
"y": 2240,
"wires": []
},
{
"id": "ceb48e02.1cecc",
"type": "debug",
"z": "7725e362.54641c",
"name": "TEMPEST RSSI",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.rssi",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2020,
"y": 2300,
"wires": []
},
{
"id": "74847f65.8d6d3",
"type": "debug",
"z": "7725e362.54641c",
"name": "HUB RSSI",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.rssi",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2010,
"y": 2660,
"wires": []
},
{
"id": "7581939f.ecfe5c",
"type": "debug",
"z": "7725e362.54641c",
"name": "BATTERY (V)",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "volt",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3850,
"y": 1640,
"wires": []
},
{
"id": "26e94050.b26f1",
"type": "debug",
"z": "7725e362.54641c",
"name": "CHARGE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "state",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3840,
"y": 1420,
"wires": []
},
{
"id": "24ca9af0.1ff666",
"type": "change",
"z": "7725e362.54641c",
"name": "Change",
"rules": [
{
"t": "move",
"p": "payload.obs[0]",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1800,
"y": 3660,
"wires": [
[
"ad9b6b2.c89aa98",
"24fda6df.47ef9a",
"4544e16b.45831",
"bf2ce2eb.ebcaa",
"fcef9c80.bbb2d",
"9e40abbb.69a768",
"448aa04b.2323c",
"acb9ebb5.df05b8",
"b6fd333f.3a122",
"63d693d4.7826bc",
"28a8bb84.7a5d74"
]
]
},
{
"id": "2ca0aa5d.da4316",
"type": "change",
"z": "7725e362.54641c",
"name": " obs Clear",
"rules": [
{
"t": "delete",
"p": "payload.obs",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1800,
"y": 3020,
"wires": [
[
"6aa9faa2.1c79c4",
"e7a02e4f.68f4",
"557154aa.28b99c",
"fb6563d.8b9e0a",
"d47be71d.a515e8",
"feb8fe4a.eb8c7",
"d5c2fbfe.2e2ce8"
]
]
},
{
"id": "d635d3bc.e9989",
"type": "debug",
"z": "7725e362.54641c",
"name": "TENDENZA PRESSIONE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.pressure_trend",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2850,
"y": 3740,
"wires": []
},
{
"id": "3202cf91.fd934",
"type": "debug",
"z": "7725e362.54641c",
"name": "QUANTITA' PRECIPITAZIONI OGGI",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.precip_accum_local_day",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2880,
"y": 3420,
"wires": []
},
{
"id": "4b23955e.ded32c",
"type": "debug",
"z": "7725e362.54641c",
"name": "DURATA PRECIPITAZIONI OGGI",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.precip_minutes_local_day",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2870,
"y": 3480,
"wires": []
},
{
"id": "9042b7d3.376078",
"type": "debug",
"z": "7725e362.54641c",
"name": "LATITUDINE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.latitude",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2810,
"y": 3020,
"wires": []
},
{
"id": "a797a941.d5f9c8",
"type": "debug",
"z": "7725e362.54641c",
"name": "LONGITUDINE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.longitude",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2820,
"y": 3080,
"wires": []
},
{
"id": "91a2b3ac.8909a",
"type": "debug",
"z": "7725e362.54641c",
"name": "ELEVAZIONE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.elevation",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2810,
"y": 3140,
"wires": []
},
{
"id": "de307dd0.2cc78",
"type": "debug",
"z": "7725e362.54641c",
"name": "NOME STAZIONE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.station_name",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2830,
"y": 2900,
"wires": []
},
{
"id": "1ab3ecab.275663",
"type": "debug",
"z": "7725e362.54641c",
"name": "NOME PUBBLICO STAZIONE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.public_name",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2870,
"y": 2960,
"wires": []
},
{
"id": "a68c78c4.788b78",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Battery Volt",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Tensione Batteria"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:battery-charging-high"
},
{
"property": "unit_of_measurement",
"value": "V"
}
],
"state": "volt",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3590,
"y": 1640,
"wires": [
[
"7581939f.ecfe5c",
"16b3819c.14eebe"
]
]
},
{
"id": "77c25d98.836d34",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Charging Status",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Charging Status"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:battery-charging"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "state",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3600,
"y": 1420,
"wires": [
[
"26e94050.b26f1",
"b2948f52.3ddf7"
]
]
},
{
"id": "c192e021.f7c8b",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Tempest FW",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Station Firmware"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:cloud-download"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.firmware_revision",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1750,
"y": 2240,
"wires": [
[
"8b06a90.447c558",
"e222c62d.4449b8"
]
]
},
{
"id": "2a676b39.44b3b4",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Tempest RSSI",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Station RSSI"
},
{
"property": "device_class",
"value": "signal_strength"
},
{
"property": "icon",
"value": "mdi:radio-tower"
},
{
"property": "unit_of_measurement",
"value": "dB"
}
],
"state": "payload.rssi",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1760,
"y": 2300,
"wires": [
[
"ceb48e02.1cecc",
"d4fc2bb9.8dee48"
]
]
},
{
"id": "35ee49bd.018056",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Hub FW",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Hub Firmware"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:cloud-download"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.firmware_revision",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1740,
"y": 2600,
"wires": [
[
"c6f15303.a5cf1",
"ede53b8b.fb5678"
]
]
},
{
"id": "f5e64dd4.e8dae",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Hub RSSI",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Hub RSSI"
},
{
"property": "device_class",
"value": "signal_strength"
},
{
"property": "icon",
"value": "mdi:wifi"
},
{
"property": "unit_of_measurement",
"value": "dB"
}
],
"state": "payload.rssi",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1740,
"y": 2660,
"wires": [
[
"74847f65.8d6d3",
"ac382841.e34508"
]
]
},
{
"id": "e7a02e4f.68f4",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Tempest ID",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Station ID"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:source-branch-check"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.station_id",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2290,
"y": 2840,
"wires": [
[
"dfb5a59c.07e888",
"490b5950.d34398"
]
]
},
{
"id": "dfb5a59c.07e888",
"type": "debug",
"z": "7725e362.54641c",
"name": "STATION ID",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.station_id",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2810,
"y": 2840,
"wires": []
},
{
"id": "2572dc3b.a924c4",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "fromip",
"pt": "msg"
},
{
"t": "move",
"p": "ip",
"pt": "msg",
"to": "payload.ip",
"tot": "msg"
},
{
"t": "delete",
"p": "port",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 540,
"y": 1720,
"wires": [
[
"4080210d.ec11d"
]
]
},
{
"id": "469ea979.6cbcb8",
"type": "change",
"z": "7725e362.54641c",
"name": "Clear",
"rules": [
{
"t": "delete",
"p": "responseUrl",
"pt": "msg"
},
{
"t": "delete",
"p": "redirectList",
"pt": "msg"
},
{
"t": "delete",
"p": "headers",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.timezone",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.is_public",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.status",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.station_units",
"pt": "msg"
},
{
"t": "delete",
"p": "payload.outdoor_keys",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1570,
"y": 3320,
"wires": [
[
"d4fc5c43.8f0d1",
"2ca0aa5d.da4316",
"24ca9af0.1ff666"
]
]
},
{
"id": "29901e95.cf2442",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Lightning Count",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Fulmini Caduti"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:flash"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "topic.count",
"stateType": "msg",
"attributes": [
{
"property": "Caduti in 1 Ora",
"value": "topic.1h",
"valueType": "msg"
},
{
"property": "Caduti in 3 Ore",
"value": "topic.3h",
"valueType": "msg"
}
],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 2880,
"y": 3640,
"wires": [
[
"5a2fec6a.e8a824",
"c9668d75.e925f",
"39f7122.a913dee",
"c1d3097f.c542f8"
]
]
},
{
"id": "5a2fec6a.e8a824",
"type": "debug",
"z": "7725e362.54641c",
"name": "FULMINI CADUTI",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "topic.count",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3090,
"y": 3600,
"wires": []
},
{
"id": "c9668d75.e925f",
"type": "debug",
"z": "7725e362.54641c",
"name": "FULMINI IN 1 ORA",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "topic.1h",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3090,
"y": 3640,
"wires": []
},
{
"id": "39f7122.a913dee",
"type": "debug",
"z": "7725e362.54641c",
"name": "FULMINI IN 3 ORE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "topic.3h",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3090,
"y": 3680,
"wires": []
},
{
"id": "bf2ce2eb.ebcaa",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.lightning_strike_count",
"pt": "msg",
"to": "topic.count",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2380,
"y": 3600,
"wires": [
[
"1048a4e6.befcab"
]
]
},
{
"id": "fcef9c80.bbb2d",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.lightning_strike_count_last_1hr",
"pt": "msg",
"to": "topic.1h",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2410,
"y": 3640,
"wires": [
[
"1048a4e6.befcab"
]
]
},
{
"id": "9e40abbb.69a768",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.lightning_strike_count_last_3hr",
"pt": "msg",
"to": "topic.3h",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2410,
"y": 3680,
"wires": [
[
"1048a4e6.befcab"
]
]
},
{
"id": "1048a4e6.befcab",
"type": "join",
"z": "7725e362.54641c",
"name": "",
"mode": "custom",
"build": "merged",
"property": "topic",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "3",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 2710,
"y": 3640,
"wires": [
[
"29901e95.cf2442"
]
]
},
{
"id": "608fdddd.ae9b24",
"type": "debug",
"z": "7725e362.54641c",
"name": "LIGHTNING COUNT ST",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "lcount",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3890,
"y": 1820,
"wires": []
},
{
"id": "f2185d05.cc202",
"type": "debug",
"z": "7725e362.54641c",
"name": "LIGHTNING DISTANTE ST",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "ldist",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3900,
"y": 1760,
"wires": []
},
{
"id": "8dd9e03f.0e794",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Tempest IP Address",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - IP Address"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:ip-network"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "payload.ip",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1780,
"y": 2720,
"wires": [
[
"f916750d.b6d968",
"1ede16be.e76d49"
]
]
},
{
"id": "f916750d.b6d968",
"type": "debug",
"z": "7725e362.54641c",
"name": "IP ADDRESS",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.ip",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2010,
"y": 2720,
"wires": []
},
{
"id": "f74da507.0cc728",
"type": "status",
"z": "7725e362.54641c",
"name": "",
"scope": [
"ff193601.719818",
"9f9b6b62.dc4ad8",
"2867ea92.a2a736",
"bc329217.e05d9",
"4ea6cfb6.99539",
"9f0036db.892408",
"b2b2dec6.75ebd",
"11954279.3de3de",
"caac9cd3.4bf75",
"84c5ccc0.7439a",
"35a67ef8.686c92",
"a132ae21.0156f",
"26fc6f65.aaef3",
"f7ba94e0.f071f8",
"8c1e64bb.25d0d8",
"77a74a18.8f6814",
"9c9a52ce.a969",
"8553fadd.57db68",
"3363f856.215508",
"cacd8afa.30d938",
"a2b0a2b6.9aa95",
"9ea3e1ee.1f578",
"8d686d63.68f7b",
"8afd1732.e227d8",
"84b5b308.12abc",
"8f90f4ae.220268",
"a55ad59a.881ba8",
"a788685d.0b6388",
"e4e9404d.53bb",
"3daf69eb.1dc336",
"cc76c7b.ea4b738",
"1e8bf942.f7c967",
"69b4bec0.b07bb",
"24fda6df.47ef9a",
"4544e16b.45831",
"448aa04b.2323c",
"557154aa.28b99c",
"fb6563d.8b9e0a",
"d47be71d.a515e8",
"feb8fe4a.eb8c7",
"d5c2fbfe.2e2ce8",
"a68c78c4.788b78",
"77c25d98.836d34",
"c192e021.f7c8b",
"2a676b39.44b3b4",
"35ee49bd.018056",
"f5e64dd4.e8dae",
"e7a02e4f.68f4",
"29901e95.cf2442",
"8dd9e03f.0e794",
"362705cf.09834a",
"acb9ebb5.df05b8",
"b6fd333f.3a122",
"63d693d4.7826bc",
"28a8bb84.7a5d74"
],
"x": 300,
"y": 2540,
"wires": [
[
"4d4e5886.ddd0d8"
]
]
},
{
"id": "4d4e5886.ddd0d8",
"type": "join",
"z": "7725e362.54641c",
"name": "",
"mode": "custom",
"build": "array",
"property": "status.fill",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "55",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 450,
"y": 2540,
"wires": [
[
"f6a30a99.4ab108"
]
]
},
{
"id": "f6a30a99.4ab108",
"type": "function",
"z": "7725e362.54641c",
"name": "",
"func": "const arrayToCount = msg.status.fill;\nconst result = arrayToCount.filter(i => i === \"green\").length;\nif (result == 55)\n {\n msg.go = true;\n return msg;\n }\nelse\n {\n msg.go = false;\n return msg;\n }",
"outputs": 1,
"noerr": 0,
"initialize": "flow.set(\"go\", false);\nreturn;",
"finalize": "",
"x": 600,
"y": 2540,
"wires": [
[
"5d9c6c22.675fe4"
]
]
},
{
"id": "bbdd3e00.a4866",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "set",
"p": "payload.go",
"pt": "msg",
"to": "go",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 910,
"y": 1740,
"wires": [
[
"9b8a66fb.fb0568"
]
]
},
{
"id": "5d9c6c22.675fe4",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "set",
"p": "go",
"pt": "flow",
"to": "go",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 770,
"y": 2540,
"wires": [
[
"cbfd54a.cba84a8"
]
]
},
{
"id": "9b8a66fb.fb0568",
"type": "traffic",
"z": "7725e362.54641c",
"name": "",
"property_allow": "payload.go",
"filter_allow": "true",
"ignore_case_allow": false,
"negate_allow": false,
"send_allow": true,
"property_stop": "payload.go",
"filter_stop": "false",
"ignore_case_stop": false,
"negate_stop": false,
"send_stop": false,
"default_start": false,
"differ": false,
"x": 1110,
"y": 1740,
"wires": [
[
"86aee084.e145f"
]
]
},
{
"id": "4080210d.ec11d",
"type": "join",
"z": "7725e362.54641c",
"name": "",
"mode": "custom",
"build": "merged",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 750,
"y": 1740,
"wires": [
[
"bbdd3e00.a4866"
]
]
},
{
"id": "4d39b7.8dda6648",
"type": "inject",
"z": "7725e362.54641c",
"name": "",
"props": [
{
"p": "payload.go",
"v": "false",
"vt": "bool"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payloadType": "str",
"x": 570,
"y": 1760,
"wires": [
[
"4080210d.ec11d"
]
]
},
{
"id": "8755338f.a8c17",
"type": "join",
"z": "7725e362.54641c",
"name": "",
"mode": "custom",
"build": "merged",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 930,
"y": 3320,
"wires": [
[
"bfb41271.9903b"
]
]
},
{
"id": "bfb41271.9903b",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "set",
"p": "payload.go",
"pt": "msg",
"to": "go",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1090,
"y": 3320,
"wires": [
[
"6782bd15.57dde4"
]
]
},
{
"id": "b792c71f.3062a8",
"type": "traffic",
"z": "7725e362.54641c",
"name": "",
"property_allow": "payload.go",
"filter_allow": "true",
"ignore_case_allow": false,
"negate_allow": false,
"send_allow": true,
"property_stop": "payload.go",
"filter_stop": "false",
"ignore_case_stop": false,
"negate_stop": false,
"send_stop": false,
"default_start": false,
"differ": false,
"x": 1410,
"y": 3320,
"wires": [
[
"469ea979.6cbcb8"
]
]
},
{
"id": "5a4fbca5.788c24",
"type": "inject",
"z": "7725e362.54641c",
"name": "",
"props": [
{
"p": "payload.go",
"v": "false",
"vt": "bool"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payloadType": "str",
"x": 790,
"y": 3360,
"wires": [
[
"8755338f.a8c17"
]
]
},
{
"id": "6782bd15.57dde4",
"type": "function",
"z": "7725e362.54641c",
"name": "",
"func": "if (msg.payload.go == true && msg.statusCode == 200)\n{\n msg.payload.go = true;\n}\nelse\n{\n msg.payload.go = false;\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 1260,
"y": 3320,
"wires": [
[
"b792c71f.3062a8",
"4ee2984e.f92ff8"
]
]
},
{
"id": "7aee868e.cc44f8",
"type": "comment",
"z": "7725e362.54641c",
"name": "ENTITY READY AND REST SERVER CONNECTED CONTROL GO/NO-GO",
"info": "",
"x": 1140,
"y": 3280,
"wires": []
},
{
"id": "6c64c0e2.a586e",
"type": "comment",
"z": "7725e362.54641c",
"name": "ENTITY READY CONTROL - GO/NO-GO",
"info": "",
"x": 900,
"y": 1700,
"wires": []
},
{
"id": "c43775a5.b639a8",
"type": "comment",
"z": "7725e362.54641c",
"name": "HA-ENTITY READY CHECK",
"info": "",
"x": 580,
"y": 2500,
"wires": []
},
{
"id": "cbfd54a.cba84a8",
"type": "debug",
"z": "7725e362.54641c",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "go",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 940,
"y": 2540,
"wires": []
},
{
"id": "f4bb5878.727e48",
"type": "debug",
"z": "7725e362.54641c",
"name": "LIGHTNING FAILED",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3620,
"y": 2180,
"wires": []
},
{
"id": "4735317f.1c4bb",
"type": "debug",
"z": "7725e362.54641c",
"name": "LIGHTNING NOISE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3610,
"y": 2240,
"wires": []
},
{
"id": "87b27e68.f0eaf",
"type": "debug",
"z": "7725e362.54641c",
"name": "LIGHTNING DISTURBER",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3630,
"y": 2300,
"wires": []
},
{
"id": "74267369.ce91bc",
"type": "debug",
"z": "7725e362.54641c",
"name": "PRESSURE FAILED",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3620,
"y": 2360,
"wires": []
},
{
"id": "3dfb1d9d.a0d772",
"type": "debug",
"z": "7725e362.54641c",
"name": "TEMPERATURE FAILED",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3630,
"y": 2420,
"wires": []
},
{
"id": "b93d59e2.06ea88",
"type": "debug",
"z": "7725e362.54641c",
"name": "HUMIDITY FAILED",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3610,
"y": 2480,
"wires": []
},
{
"id": "570c5ba8.3daec4",
"type": "debug",
"z": "7725e362.54641c",
"name": "WIND FAILED",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3600,
"y": 2540,
"wires": []
},
{
"id": "a55ba297.30541",
"type": "debug",
"z": "7725e362.54641c",
"name": "RAIN FAILED",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3590,
"y": 2600,
"wires": []
},
{
"id": "9d32f2df.2db2e",
"type": "debug",
"z": "7725e362.54641c",
"name": "LIGHT/UV FAILED",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3610,
"y": 2660,
"wires": []
},
{
"id": "deb6a1cd.e1248",
"type": "inject",
"z": "7725e362.54641c",
"name": "API KEY",
"props": [
{
"p": "payload.key",
"v": "YOUR API KEY",
"vt": "str"
}
],
"repeat": "60",
"crontab": "",
"once": true,
"onceDelay": "2",
"topic": "",
"x": 140,
"y": 3300,
"wires": [
[
"c329c66f.397a78"
]
]
},
{
"id": "4db8401d.2aadb",
"type": "inject",
"z": "7725e362.54641c",
"name": "STATION ID",
"props": [
{
"p": "payload.id",
"v": "YOUR STATION ID",
"vt": "str"
}
],
"repeat": "60",
"crontab": "",
"once": true,
"onceDelay": "2",
"topic": "",
"x": 130,
"y": 3340,
"wires": [
[
"c329c66f.397a78"
]
]
},
{
"id": "b9efae56.081c7",
"type": "function",
"z": "7725e362.54641c",
"name": "",
"func": "const API_KEY = msg.payload.key;\nconst STATION_ID = msg.payload.id;\n\nmsg.url = \"https://swd.weatherflow.com/swd/rest/observations/station/\" + STATION_ID + \"?token=\" + API_KEY;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 420,
"y": 3320,
"wires": [
[
"aaef63a0.a77e3",
"2173086.044b6f8"
]
]
},
{
"id": "c329c66f.397a78",
"type": "join",
"z": "7725e362.54641c",
"name": "",
"mode": "custom",
"build": "merged",
"property": "payload",
"propertyType": "msg",
"key": "payload",
"joiner": "\\n",
"joinerType": "str",
"accumulate": true,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 290,
"y": 3320,
"wires": [
[
"b9efae56.081c7"
]
]
},
{
"id": "aaef63a0.a77e3",
"type": "debug",
"z": "7725e362.54641c",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "url",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 600,
"y": 3280,
"wires": []
},
{
"id": "4ee2984e.f92ff8",
"type": "debug",
"z": "7725e362.54641c",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1390,
"y": 3380,
"wires": []
},
{
"id": "31525bab.8e5244",
"type": "comment",
"z": "7725e362.54641c",
"name": "TEMPEST FLOW",
"info": "",
"x": 340,
"y": 200,
"wires": []
},
{
"id": "4ab4a06a.be041",
"type": "function",
"z": "7725e362.54641c",
"name": "Power Saving Mode",
"func": "var v = msg.volt;\nvar mode = \"\";\n\nif (v <= 2.355)\n {\n mode = \"Mode 3\";\n }\nelse if (v > 2.355 && v <= 2.400)\n {\n mode = \"Mode 2\";\n }\nelse if (v > 2.400 && v <= 2.425)\n {\n mode = \"Mode 1\";\n }\nelse if (v > 2.425)\n {\n mode = \"Mode 0\";\n }\nmsg.mode = mode;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2980,
"y": 1500,
"wires": [
[
"4758547a.35cc5c"
]
]
},
{
"id": "4758547a.35cc5c",
"type": "function",
"z": "7725e362.54641c",
"name": "Power Saving Description",
"func": "var mode = msg.mode;\nvar st = \"\";\n\nif (mode == \"Mode 0\")\n {\n st = \"Full Performance\";\n }\nelse if (mode == \"Mode 1\")\n {\n st = \"Wind @ 6 s\";\n }\nelse if (mode == \"Mode 2\")\n {\n st = \"Wind @ 1 min\";\n }\nelse if (mode == \"Mode 3\")\n {\n st = \"Sensors @ 5 min, Lightning & Rain Off\";\n }\nmsg.mode_desc = st;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 3270,
"y": 1500,
"wires": [
[
"362705cf.09834a"
]
]
},
{
"id": "aa20cb4f.ee52a8",
"type": "debug",
"z": "7725e362.54641c",
"name": "POWER SAVING MODE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "mode",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3890,
"y": 1480,
"wires": []
},
{
"id": "7b18732d.461c9c",
"type": "debug",
"z": "7725e362.54641c",
"name": "POWER SAVING DESCRIPTION",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "mode_desc",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 3910,
"y": 1520,
"wires": []
},
{
"id": "362705cf.09834a",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Power Saving",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Power Saving Mode"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:battery-plus"
},
{
"property": "unit_of_measurement",
"value": ""
}
],
"state": "mode",
"stateType": "msg",
"attributes": [
{
"property": "Descrizione",
"value": "mode_desc",
"valueType": "msg"
}
],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"x": 3600,
"y": 1500,
"wires": [
[
"aa20cb4f.ee52a8",
"7b18732d.461c9c",
"5320bece.c6a8d"
]
]
},
{
"id": "1a425be1.6fc574",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/lull",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4510,
"y": 60,
"wires": []
},
{
"id": "dcf30b5.d253ff8",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/speed",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4520,
"y": 140,
"wires": []
},
{
"id": "582bb09f.f5746",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/beaufort",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4530,
"y": 200,
"wires": []
},
{
"id": "db56eb1.95d3818",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "parts",
"pt": "msg"
},
{
"t": "move",
"p": "bf",
"pt": "msg",
"to": "payload.beaufort",
"tot": "msg"
},
{
"t": "move",
"p": "state",
"pt": "msg",
"to": "payload.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 200,
"wires": [
[
"8892f5ba.8f6fb8"
]
]
},
{
"id": "8892f5ba.8f6fb8",
"type": "json",
"z": "7725e362.54641c",
"name": "",
"property": "payload",
"action": "str",
"pretty": true,
"x": 4290,
"y": 200,
"wires": [
[
"582bb09f.f5746"
]
]
},
{
"id": "fe1aacf6.7ccfe",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/windchill_new",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4550,
"y": 300,
"wires": []
},
{
"id": "52da4e49.517ea",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "parts",
"pt": "msg"
},
{
"t": "move",
"p": "wci",
"pt": "msg",
"to": "payload.windchill",
"tot": "msg"
},
{
"t": "move",
"p": "state",
"pt": "msg",
"to": "payload.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 300,
"wires": [
[
"f22756bd.dd9d88"
]
]
},
{
"id": "f22756bd.dd9d88",
"type": "json",
"z": "7725e362.54641c",
"name": "",
"property": "payload",
"action": "str",
"pretty": true,
"x": 4290,
"y": 300,
"wires": [
[
"fe1aacf6.7ccfe"
]
]
},
{
"id": "7c0681ba.7b8b9",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/windchill_old",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4540,
"y": 400,
"wires": []
},
{
"id": "52de69ba.ad14f8",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "parts",
"pt": "msg"
},
{
"t": "move",
"p": "wci",
"pt": "msg",
"to": "payload.windchill",
"tot": "msg"
},
{
"t": "move",
"p": "state",
"pt": "msg",
"to": "payload.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 400,
"wires": [
[
"4f701cc4.025754"
]
]
},
{
"id": "4f701cc4.025754",
"type": "json",
"z": "7725e362.54641c",
"name": "",
"property": "payload",
"action": "str",
"pretty": true,
"x": 4290,
"y": 400,
"wires": [
[
"7c0681ba.7b8b9"
]
]
},
{
"id": "c38ecdbc.7ddd3",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/gust",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4520,
"y": 480,
"wires": []
},
{
"id": "4b95711.8ac6e9",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/direction",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4530,
"y": 540,
"wires": []
},
{
"id": "ffa9a871.3cf8d8",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/cardinal",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4530,
"y": 600,
"wires": []
},
{
"id": "6780d339.b922fc",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/pressure/pressure",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4540,
"y": 660,
"wires": []
},
{
"id": "f1f63cd3.cc20e",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/temperature/air",
"qos": "2",
"retain": "true",
"broker": "4cb98ab5.4b27c4",
"x": 4530,
"y": 720,
"wires": []
},
{
"id": "a74cc262.cd805",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/bioclimatics/humidex",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4550,
"y": 800,
"wires": []
},
{
"id": "b0cb11cd.32bd",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "parts",
"pt": "msg"
},
{
"t": "move",
"p": "udx",
"pt": "msg",
"to": "payload.humidex",
"tot": "msg"
},
{
"t": "move",
"p": "state",
"pt": "msg",
"to": "payload.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 800,
"wires": [
[
"41f388ad.a6ae48"
]
]
},
{
"id": "41f388ad.a6ae48",
"type": "json",
"z": "7725e362.54641c",
"name": "",
"property": "payload",
"action": "str",
"pretty": true,
"x": 4290,
"y": 800,
"wires": [
[
"a74cc262.cd805"
]
]
},
{
"id": "7f0abf1c.e5b32",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/bioclimatics/heat_index",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4560,
"y": 900,
"wires": []
},
{
"id": "d36805db.4ef208",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "parts",
"pt": "msg"
},
{
"t": "move",
"p": "hi",
"pt": "msg",
"to": "payload.heat_index",
"tot": "msg"
},
{
"t": "move",
"p": "state",
"pt": "msg",
"to": "payload.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 900,
"wires": [
[
"31b8ef3c.824f"
]
]
},
{
"id": "31b8ef3c.824f",
"type": "json",
"z": "7725e362.54641c",
"name": "",
"property": "payload",
"action": "str",
"pretty": true,
"x": 4290,
"y": 900,
"wires": [
[
"7f0abf1c.e5b32"
]
]
},
{
"id": "3d5689bf.cecde6",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/bioclimatics/thom",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4540,
"y": 1000,
"wires": []
},
{
"id": "93bc1f3f.11436",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "parts",
"pt": "msg"
},
{
"t": "move",
"p": "thi",
"pt": "msg",
"to": "payload.thom",
"tot": "msg"
},
{
"t": "move",
"p": "state",
"pt": "msg",
"to": "payload.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 1000,
"wires": [
[
"4d15dbc8.b11e44"
]
]
},
{
"id": "4d15dbc8.b11e44",
"type": "json",
"z": "7725e362.54641c",
"name": "",
"property": "payload",
"action": "str",
"pretty": true,
"x": 4290,
"y": 1000,
"wires": [
[
"3d5689bf.cecde6"
]
]
},
{
"id": "8e2f1aa1.7f3318",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "move",
"p": "dp",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 1080,
"wires": [
[
"842e9e8e.a44e"
]
]
},
{
"id": "842e9e8e.a44e",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/bioclimatics/dewpoint",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4560,
"y": 1080,
"wires": []
},
{
"id": "1cb01e2e.468e22",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/humidity",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4510,
"y": 1140,
"wires": []
},
{
"id": "d528949b.978848",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/illuminance",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4520,
"y": 1200,
"wires": []
},
{
"id": "e816a843.347568",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "move",
"p": "lux",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 1200,
"wires": [
[
"d528949b.978848"
]
]
},
{
"id": "15097651.599eda",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/uv",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4490,
"y": 1280,
"wires": []
},
{
"id": "f87dfa0a.cc3728",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "parts",
"pt": "msg"
},
{
"t": "move",
"p": "uv",
"pt": "msg",
"to": "payload.index",
"tot": "msg"
},
{
"t": "move",
"p": "uvi",
"pt": "msg",
"to": "payload.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 1280,
"wires": [
[
"a4aa7c94.18621"
]
]
},
{
"id": "a4aa7c94.18621",
"type": "json",
"z": "7725e362.54641c",
"name": "",
"property": "payload",
"action": "str",
"pretty": true,
"x": 4290,
"y": 1280,
"wires": [
[
"15097651.599eda"
]
]
},
{
"id": "e7ee4d76.8bdd",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/solar_radiation",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4530,
"y": 1360,
"wires": []
},
{
"id": "9cd025bf.8b9b58",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "move",
"p": "rad",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 1360,
"wires": [
[
"e7ee4d76.8bdd"
]
]
},
{
"id": "86bc9dfb.7ed47",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/charging_status",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4540,
"y": 1420,
"wires": []
},
{
"id": "b2948f52.3ddf7",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "move",
"p": "state",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4120,
"y": 1420,
"wires": [
[
"86bc9dfb.7ed47"
]
]
},
{
"id": "86b8cf65.9ad71",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/power_saving",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4530,
"y": 1500,
"wires": []
},
{
"id": "5320bece.c6a8d",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "parts",
"pt": "msg"
},
{
"t": "move",
"p": "mode",
"pt": "msg",
"to": "payload.mode",
"tot": "msg"
},
{
"t": "move",
"p": "mode_desc",
"pt": "msg",
"to": "payload.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4160,
"y": 1500,
"wires": [
[
"62227370.12adbc"
]
]
},
{
"id": "62227370.12adbc",
"type": "json",
"z": "7725e362.54641c",
"name": "",
"property": "payload",
"action": "str",
"pretty": true,
"x": 4310,
"y": 1500,
"wires": [
[
"86b8cf65.9ad71"
]
]
},
{
"id": "e2b019a7.82e918",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/battery_perc",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4530,
"y": 1580,
"wires": []
},
{
"id": "3283e364.f10fcc",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "move",
"p": "batperc",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4180,
"y": 1580,
"wires": [
[
"e2b019a7.82e918"
]
]
},
{
"id": "e9a5de73.42f36",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/battery_volt",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4520,
"y": 1640,
"wires": []
},
{
"id": "16b3819c.14eebe",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "move",
"p": "volt",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4180,
"y": 1640,
"wires": [
[
"e9a5de73.42f36"
]
]
},
{
"id": "c2b7147b.7fb118",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/precipitation/type",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4540,
"y": 1700,
"wires": []
},
{
"id": "b1dfcccc.04866",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "move",
"p": "rtype",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 4180,
"y": 1700,
"wires": [
[
"c2b7147b.7fb118"
]
]
},
{
"id": "b7bd1589.f42c28",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/speed_rt",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3170,
"y": 1940,
"wires": []
},
{
"id": "7e61a8f0.8883a8",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/direction_rt",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3180,
"y": 2000,
"wires": []
},
{
"id": "8e24c890.61fd38",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/wind/cardinal_rt",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3180,
"y": 2060,
"wires": []
},
{
"id": "4d22fd7b.82a704",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/station_sn",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 2760,
"y": 2180,
"wires": []
},
{
"id": "8c62669f.3c0388",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/station_fw",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 2760,
"y": 2240,
"wires": []
},
{
"id": "8993994.aaeca68",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/station_rssi",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 2760,
"y": 2300,
"wires": []
},
{
"id": "f96956fb.2b2db8",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/hub_sn",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 2750,
"y": 2540,
"wires": []
},
{
"id": "2f605fbd.f12fc",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/hub_fw",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 2750,
"y": 2600,
"wires": []
},
{
"id": "e9c3b87f.abf0a8",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/hub_rssi",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 2750,
"y": 2660,
"wires": []
},
{
"id": "27a58bc2.e47944",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/ip",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 2730,
"y": 2720,
"wires": []
},
{
"id": "74431174.d648d",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/station_id",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3720,
"y": 2840,
"wires": []
},
{
"id": "a5578ded.bd25d",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/name",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3700,
"y": 2900,
"wires": []
},
{
"id": "f11eb040.236a4",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/public_name",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3730,
"y": 2960,
"wires": []
},
{
"id": "5a7a561d.0c08f8",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/latitude",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3710,
"y": 3020,
"wires": []
},
{
"id": "c9b3c2c5.e52eb",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/longitude",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3720,
"y": 3080,
"wires": []
},
{
"id": "9b171612.227f18",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/elevation",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3710,
"y": 3140,
"wires": []
},
{
"id": "e7110d6b.84d08",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/pressure/trend",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3730,
"y": 3740,
"wires": []
},
{
"id": "e0386f38.9c5c8",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/precipitation/quantity_today",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3770,
"y": 3420,
"wires": []
},
{
"id": "93e87595.3d4108",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/precipitation/duration_today",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3770,
"y": 3480,
"wires": []
},
{
"id": "c1d3097f.c542f8",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "parts",
"pt": "msg"
},
{
"t": "move",
"p": "topic.count",
"pt": "msg",
"to": "payload.count",
"tot": "msg"
},
{
"t": "move",
"p": "topic.1h",
"pt": "msg",
"to": "payload.last_hour",
"tot": "msg"
},
{
"t": "move",
"p": "topic.3h",
"pt": "msg",
"to": "payload.last_3_hours",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3320,
"y": 3640,
"wires": [
[
"140f5a8d.540f35"
]
]
},
{
"id": "140f5a8d.540f35",
"type": "json",
"z": "7725e362.54641c",
"name": "",
"property": "payload",
"action": "str",
"pretty": true,
"x": 3490,
"y": 3640,
"wires": [
[
"c9d99038.4178b"
]
]
},
{
"id": "c9d99038.4178b",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/lightning/count",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3730,
"y": 3640,
"wires": []
},
{
"id": "751beb52.258284",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/sensor_status/lightning_failed",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4080,
"y": 2180,
"wires": []
},
{
"id": "359dbb13.899e44",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/sensor_status/lightning_noise",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4080,
"y": 2240,
"wires": []
},
{
"id": "c59a150a.732fe8",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/sensor_status/lightning_disturber",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4090,
"y": 2300,
"wires": []
},
{
"id": "74f1e50a.77745c",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/sensor_status/pressure_failed",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4080,
"y": 2360,
"wires": []
},
{
"id": "c1a928e1.c35768",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/sensor_status/temperature_failed",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4090,
"y": 2420,
"wires": []
},
{
"id": "bcd99c13.453d2",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/sensor_status/humidity_failed",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4080,
"y": 2480,
"wires": []
},
{
"id": "a6cb6bb7.d0f838",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/sensor_status/wind_failed",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4070,
"y": 2540,
"wires": []
},
{
"id": "2e959c69.e03834",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/sensor_status/rain_failed",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4060,
"y": 2600,
"wires": []
},
{
"id": "7ca5b9ea.796e68",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/system/sensor_status/light_uv_failed",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 4080,
"y": 2660,
"wires": []
},
{
"id": "ad9b6b2.c89aa98",
"type": "debug",
"z": "7725e362.54641c",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 2290,
"y": 3980,
"wires": []
},
{
"id": "acb9ebb5.df05b8",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Densità dell'Aria",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Densità Aria"
},
{
"property": "device_class",
"value": ""
},
{
"property": "icon",
"value": "mdi:weight-kilogram"
},
{
"property": "unit_of_measurement",
"value": "kg/m^3"
}
],
"state": "payload.air_density",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2300,
"y": 3540,
"wires": [
[
"26b1310b.51831e",
"d03e017b.7c623"
]
]
},
{
"id": "f349153.9a09fe8",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/air_density",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3720,
"y": 3540,
"wires": []
},
{
"id": "26b1310b.51831e",
"type": "debug",
"z": "7725e362.54641c",
"name": "DENSITA' DELL'ARIA",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.air_density",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2840,
"y": 3540,
"wires": []
},
{
"id": "b6fd333f.3a122",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Pressione al Livello del Mare",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Pressione Livello del Mare"
},
{
"property": "device_class",
"value": "pressure"
},
{
"property": "icon",
"value": "mdi:beach"
},
{
"property": "unit_of_measurement",
"value": "mbar"
}
],
"state": "payload.sea_level_pressure",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2340,
"y": 3800,
"wires": [
[
"9cedfe19.a67a4",
"eedaf7c1.d8c068"
]
]
},
{
"id": "9cedfe19.a67a4",
"type": "debug",
"z": "7725e362.54641c",
"name": "PRESSIONE LIVELLO DEL MARE",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.sea_level_pressure",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2880,
"y": 3800,
"wires": []
},
{
"id": "16d6d67a.75460a",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/pressure/sea_level",
"qos": "2",
"retain": "false",
"broker": "4cb98ab5.4b27c4",
"x": 3740,
"y": 3800,
"wires": []
},
{
"id": "63d693d4.7826bc",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Temperatura Bulbo Umido",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Temperatura Bulbo Umido"
},
{
"property": "device_class",
"value": "temperature"
},
{
"property": "icon",
"value": "mdi:coolant-temperature"
},
{
"property": "unit_of_measurement",
"value": "°C"
}
],
"state": "payload.wet_bulb_temperature",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2340,
"y": 3860,
"wires": [
[
"eff7d135.ff643",
"c0e80be0.aac898"
]
]
},
{
"id": "eff7d135.ff643",
"type": "debug",
"z": "7725e362.54641c",
"name": "TEMPERATURA BULBO UMIDO",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.wet_bulb_temperature",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2870,
"y": 3860,
"wires": []
},
{
"id": "68e9d16.58a513",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/temperature/wet_bulb",
"qos": "2",
"retain": "true",
"broker": "4cb98ab5.4b27c4",
"x": 3760,
"y": 3860,
"wires": []
},
{
"id": "28a8bb84.7a5d74",
"type": "ha-entity",
"z": "7725e362.54641c",
"name": "Delta Temperatura",
"server": "d363b0d5.73262",
"version": 1,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Tempest - Delta Temperatura"
},
{
"property": "device_class",
"value": "temperature"
},
{
"property": "icon",
"value": "mdi:delta"
},
{
"property": "unit_of_measurement",
"value": "°C"
}
],
"state": "payload.delta_t",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 2310,
"y": 3920,
"wires": [
[
"cb3c9fca.6a1fe",
"fa827da9.66aac"
]
]
},
{
"id": "cb3c9fca.6a1fe",
"type": "debug",
"z": "7725e362.54641c",
"name": "DELTA TEMPERATURA",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.delta_t",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2850,
"y": 3920,
"wires": []
},
{
"id": "4411c74f.c71428",
"type": "mqtt out",
"z": "7725e362.54641c",
"name": "",
"topic": "Tempest_PWS/metrics/temperature/delta_t",
"qos": "2",
"retain": "true",
"broker": "4cb98ab5.4b27c4",
"x": 3750,
"y": 3920,
"wires": []
},
{
"id": "71f7dbfe.439214",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.precip_accum_local_day",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3310,
"y": 3420,
"wires": [
[
"e0386f38.9c5c8"
]
]
},
{
"id": "1c6fbc53.f70454",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.precip_minutes_local_day",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3320,
"y": 3480,
"wires": [
[
"93e87595.3d4108"
]
]
},
{
"id": "d03e017b.7c623",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.air_density",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3270,
"y": 3540,
"wires": [
[
"f349153.9a09fe8"
]
]
},
{
"id": "de073c24.cfc6e",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.pressure_trend",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3280,
"y": 3740,
"wires": [
[
"e7110d6b.84d08"
]
]
},
{
"id": "eedaf7c1.d8c068",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.sea_level_pressure",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3290,
"y": 3800,
"wires": [
[
"16d6d67a.75460a"
]
]
},
{
"id": "c0e80be0.aac898",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.wet_bulb_temperature",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3300,
"y": 3860,
"wires": [
[
"68e9d16.58a513"
]
]
},
{
"id": "fa827da9.66aac",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.delta_t",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3260,
"y": 3920,
"wires": [
[
"4411c74f.c71428"
]
]
},
{
"id": "6aa9faa2.1c79c4",
"type": "debug",
"z": "7725e362.54641c",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2290,
"y": 3200,
"wires": []
},
{
"id": "edd536fc.101eb8",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.elevation",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3260,
"y": 3140,
"wires": [
[
"9b171612.227f18"
]
]
},
{
"id": "e1ce76cd.8423a8",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.longitude",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3260,
"y": 3080,
"wires": [
[
"c9b3c2c5.e52eb"
]
]
},
{
"id": "7f4708e7.3956b8",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.latitude",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3260,
"y": 3020,
"wires": [
[
"5a7a561d.0c08f8"
]
]
},
{
"id": "41c4fbbf.59d094",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.public_name",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3270,
"y": 2960,
"wires": [
[
"f11eb040.236a4"
]
]
},
{
"id": "a0c1f53c.e37068",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.station_name",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3280,
"y": 2900,
"wires": [
[
"a5578ded.bd25d"
]
]
},
{
"id": "490b5950.d34398",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.station_id",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3270,
"y": 2840,
"wires": [
[
"74431174.d648d"
]
]
},
{
"id": "611aeb12.3f4c24",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.serial_number",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2340,
"y": 2540,
"wires": [
[
"f96956fb.2b2db8"
]
]
},
{
"id": "ede53b8b.fb5678",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.firmware_revision",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2350,
"y": 2600,
"wires": [
[
"2f605fbd.f12fc"
]
]
},
{
"id": "ac382841.e34508",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.rssi",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2310,
"y": 2660,
"wires": [
[
"e9c3b87f.abf0a8"
]
]
},
{
"id": "1ede16be.e76d49",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.ip",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2300,
"y": 2720,
"wires": [
[
"27a58bc2.e47944"
]
]
},
{
"id": "ea6f9cb1.2986d",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.serial_number",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2340,
"y": 2180,
"wires": [
[
"4d22fd7b.82a704"
]
]
},
{
"id": "e222c62d.4449b8",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.firmware_revision",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2350,
"y": 2240,
"wires": [
[
"8c62669f.3c0388"
]
]
},
{
"id": "d4fc2bb9.8dee48",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "move",
"p": "payload.rssi",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2310,
"y": 2300,
"wires": [
[
"8993994.aaeca68"
]
]
},
{
"id": "e5019f26.59962",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Speed (km/h)",
"func": "msg.payload = Number((msg.payload * 3.6).toFixed(1));\nnode.status({fill:\"green\",shape:\"dot\",text:msg.payload + \" km/h\"});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2650,
"y": 140,
"wires": [
[
"8d831714.9f5a38",
"9f9b6b62.dc4ad8",
"26c89917.4160a6"
]
]
},
{
"id": "4103bd00.730804",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Chill - New Formula",
"func": "var W = msg.payload.wind_speed;\nvar Ta = msg.payload.temperature;\nvar a = Math.pow(W, 0.16);\nWCI = (13.12 + 0.6215 * Ta) - (11.37 * a) + (0.3965 * Ta * a);\nif (W < 3.7)\n{\n msg.w = -1;\n}\nelse\n{\n msg.w = 0;\n}\nmsg.wci = Number(WCI.toFixed(1));\nnode.status({fill:\"green\",shape:\"dot\",text:msg.wci + \" °C\"});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 3130,
"y": 300,
"wires": [
[
"e70cf555.1bdef8"
]
]
},
{
"id": "f73d44c8.a161c8",
"type": "function",
"z": "7725e362.54641c",
"name": "Wind Chill - Old Formula",
"func": "var W = msg.payload.wind_speed;\nvar T = msg.payload.temperature;\nvar a = Math.sqrt(W);\nWCI = 33 - (33 - T) * (0.474266 + 0.453843 * a - 0.0453843 * W);\nmsg.wci = Number(WCI.toFixed(1));\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 3130,
"y": 400,
"wires": [
[
"118217a6.5db5c8"
]
]
},
{
"id": "41682544.c2abfc",
"type": "join",
"z": "7725e362.54641c",
"name": "",
"mode": "custom",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "num",
"reduceFixup": "",
"x": 2870,
"y": 340,
"wires": [
[
"4103bd00.730804",
"f73d44c8.a161c8"
]
]
},
{
"id": "6fca9bc2.850f34",
"type": "function",
"z": "7725e362.54641c",
"name": "Temperature (°C)",
"func": "msg.payload = Number((msg.payload || 0).toFixed(1));\nnode.status({fill:\"green\",shape:\"dot\",text:msg.payload + \" °C\"});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2650,
"y": 720,
"wires": [
[
"11954279.3de3de",
"5569a895.84bcb8"
]
]
},
{
"id": "615a143a.f2e61c",
"type": "function",
"z": "7725e362.54641c",
"name": "Humidity (%)",
"func": "msg.payload = Number((msg.payload || 0).toFixed(1));\nnode.status({fill:\"green\",shape:\"dot\",text:msg.payload + \" %\"});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 2650,
"y": 1140,
"wires": [
[
"caac9cd3.4bf75",
"fa9e171.1037be8"
]
]
},
{
"id": "3b34c589.37403a",
"type": "join",
"z": "7725e362.54641c",
"name": "",
"mode": "custom",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 2870,
"y": 940,
"wires": [
[
"2c74abcb.7f6654",
"46296928.9f1628",
"71f81c37.d9dfa4",
"1fe86051.5235"
]
]
},
{
"id": "2c74abcb.7f6654",
"type": "function",
"z": "7725e362.54641c",
"name": "Humidex",
"func": "var Ta = msg.payload.temperature;\nvar UR = msg.payload.humidity;\n\nk1 = Math.pow(10, (7.5 * Ta / (237.7 + Ta)));\nk = 6.112 * k1 * UR / 100;\nUmidex = 1 * Ta + 0.5555 * (k - 10);\nmsg.udx = Number(Umidex.toFixed(1));\n\nnode.status({fill:\"green\",shape:\"dot\",text:msg.udx + \" °C\"});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 3060,
"y": 800,
"wires": [
[
"bcbe7d29.9b0fa"
]
]
},
{
"id": "46296928.9f1628",
"type": "function",
"z": "7725e362.54641c",
"name": "Heat Index",
"func": "var temp = msg.payload.temperature * 1.8 + 32;\nvar hum = msg.payload.humidity;\n\nhi = 0.5 * (temp + 61.0 + ((temp - 68.0) * 1.2) + (hum * 0.094));\nif (hi > 79) \n {\n hi = -42.379 + 2.04901523 * temp + 10.14333127 * hum + -0.22475541 * temp * hum + -0.00683783 * Math.pow(temp, 2) + -0.05481717 * Math.pow(hum, 2) + 0.00122874 * Math.pow(temp, 2) * hum + 0.00085282 * temp * Math.pow(hum, 2) + -0.00000199 * Math.pow(temp, 2) * Math.pow(hum, 2);\n if((hum < 13) && (temp >= 80.0) && (temp <= 112.0))\n hi -= ((13.0 - hum) * 0.25) * Math.sqrt((17.0 - Math.abs(temp - 95.0)) * 0.05882);\n else if((hum > 85.0) && (temp >= 80.0) && (temp <= 87.0))\n hi += ((hum - 85.0) * 0.1) * ((87.0 - temp) * 0.2);\n }\nmsg.hi = Number(((hi - 32) / 1.8).toFixed(1));\n\nnode.status({fill:\"green\",shape:\"dot\",text:msg.hi + \" °C\"});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 3070,
"y": 900,
"wires": [
[
"3997999e.f868b6"
]
]
},
{
"id": "71f81c37.d9dfa4",
"type": "function",
"z": "7725e362.54641c",
"name": "Thom Index",
"func": "var temp = msg.payload.temperature;\nvar hum = msg.payload.humidity;\nTHI = temp - (0.55 - 0.0055 * hum) * (temp - 14.5);\nmsg.thi = Number(THI.toFixed(1));\nnode.status({fill:\"green\",shape:\"dot\",text:msg.thi + \" °C\"});\nreturn msg;\n\n\n\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 3070,
"y": 1000,
"wires": [
[
"e3d7e35d.ed8e7"
]
]
},
{
"id": "1fe86051.5235",
"type": "function",
"z": "7725e362.54641c",
"name": "Dew Point Calculus",
"func": "var a = 17.271;\nvar b = 237.7;\nvar temp = Math.log(msg.payload.humidity * 0.01) + ((a * msg.payload.temperature) / (b + msg.payload.temperature));\nvar Td = (b * temp) / (a - temp);\nmsg.dp = Number(Td.toFixed(1));\nnode.status({fill:\"green\",shape:\"dot\",text:msg.dp + \" °C\"});\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 3090,
"y": 1080,
"wires": [
[
"8f90f4ae.220268"
]
]
},
{
"id": "26c89917.4160a6",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "wind_speed",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2690,
"y": 300,
"wires": [
[
"41682544.c2abfc"
]
]
},
{
"id": "5569a895.84bcb8",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "temperature",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2710,
"y": 840,
"wires": [
[
"3b34c589.37403a",
"41682544.c2abfc"
]
]
},
{
"id": "fa9e171.1037be8",
"type": "change",
"z": "7725e362.54641c",
"name": "",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "humidity",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2710,
"y": 1020,
"wires": [
[
"3b34c589.37403a"
]
]
},
{
"id": "d363b0d5.73262",
"type": "server",
"name": "Home Assistant",
"legacy": false,
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true
},
{
"id": "4cb98ab5.4b27c4",
"type": "mqtt-broker",
"name": "MQTT Server",
"broker": "mqtt.local.dom",
"port": "1883",
"clientid": "NodeRED",
"usetls": false,
"compatmode": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"sessionExpiry": ""
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment