Compare commits
2 Commits
89eb603ffd
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b2a2651527 | |||
| 5fe4b27a82 |
+74
-8
@@ -251,7 +251,7 @@
|
||||
"id": "c46bc662805c3ea3",
|
||||
"type": "junction",
|
||||
"z": "86a9e7aa0c304b46",
|
||||
"x": 540,
|
||||
"x": 560,
|
||||
"y": 2280,
|
||||
"wires": [
|
||||
[
|
||||
@@ -2025,8 +2025,9 @@
|
||||
"type": "function",
|
||||
"z": "86a9e7aa0c304b46",
|
||||
"name": "function 2",
|
||||
"func": "const s2r = [\n { name: \"TH_1\", room: \"SZ\" }, \n { name: \"TH_2\", room: \"KT\" },\n { name: \"TH_3\", room: \"CL\" }, \n { name: \"TH_4\", room: \"KU\" },\n { name: \"TH_5\", room: \"WZ\" },\n { name: \"TH_6\", room: \"EZ\" },\n { name: \"TH_7\", room: \"FL\" },\n { name: \"TH_8\", room: \"KO\" },\n { name: \"TH_9\", room: \"AU\" },\n { name: \"Temp_Feuchte_Mini_1\", room: \"BA\" },\n { name: \"Licht_Sensor\", room: \"BD\" }\n]\nlet room = \"\"\nlet s = msg.topic.split('/')\nfor (let x of s2r) {\n if (x.name === s[1]) {\n room = x.room\n break\n }\n}\nmsg.measurement = room\ndelete msg.payload.linkquality\nreturn msg;",
|
||||
"func": "const s2r = [\n { name: \"TH_1\", room: \"SZ\" }, \n { name: \"TH_2\", room: \"KT\" },\n { name: \"TH_3\", room: \"CL\" }, \n { name: \"TH_4\", room: \"KU\" },\n { name: \"TH_5\", room: \"WZ\" },\n { name: \"TH_6\", room: \"EZ\" },\n { name: \"TH_7\", room: \"FL\" },\n { name: \"TH_8\", room: \"KO\" },\n { name: \"TH_9\", room: \"AU\" },\n { name: \"TH_10\", room: \"AU1\" },\n { name: \"Temp_Feuchte_Mini_1\", room: \"BA\" },\n { name: \"Licht_Sensor\", room: \"BD\" }\n]\nlet room = \"\"\nlet s = msg.topic.split('/')\nfor (let x of s2r) {\n if (x.name === s[1]) {\n room = x.room\n break\n }\n}\nmsg.measurement = room\ndelete msg.payload.linkquality\nreturn msg;",
|
||||
"outputs": 1,
|
||||
"timeout": "",
|
||||
"noerr": 0,
|
||||
"initialize": "",
|
||||
"finalize": "",
|
||||
@@ -2126,7 +2127,7 @@
|
||||
"type": "debug",
|
||||
"z": "86a9e7aa0c304b46",
|
||||
"name": "debug 28",
|
||||
"active": false,
|
||||
"active": true,
|
||||
"tosidebar": true,
|
||||
"console": false,
|
||||
"tostatus": false,
|
||||
@@ -2995,7 +2996,7 @@
|
||||
"type": "debug",
|
||||
"z": "86a9e7aa0c304b46",
|
||||
"name": "debug 98",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"tosidebar": true,
|
||||
"console": false,
|
||||
"tostatus": false,
|
||||
@@ -3134,7 +3135,7 @@
|
||||
"type": "debug",
|
||||
"z": "86a9e7aa0c304b46",
|
||||
"name": "debug 11",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"tosidebar": true,
|
||||
"console": false,
|
||||
"tostatus": false,
|
||||
@@ -3151,7 +3152,7 @@
|
||||
"type": "function",
|
||||
"z": "86a9e7aa0c304b46",
|
||||
"name": "extract die Messwerte",
|
||||
"func": "msg.measurement = 'kuehlschrank'\nif (msg.topic == \"hm/status/Kuehlschrank_Messwerte:2/ENERGY_COUNTER\")\n{\n msg.payload = {\"energy\": msg.payload.val}\n return msg\n}\nif (msg.topic == \"hm/status/Kuehlschrank_Messwerte:2/POWER\") {\n msg.payload = { \"power\": msg.payload.val }\n return msg\n}\nif (msg.topic == \"hm/status/Kuehlschrank_Messwerte:2/CURRENT\") {\n msg.payload = { \"current\": msg.payload.val }\n return msg\n}\nif (msg.topic == \"hm/status/Kuehlschrank_Messwerte:2/VOLTAGE\") {\n msg.payload = { \"voltage\": msg.payload.val }\n return msg\n}\nreturn;\n",
|
||||
"func": "msg.measurement = 'kuehlschrank'\nif (msg.topic == \"hm/status/Kuehlschrank_Messwerte:2/ENERGY_COUNTER\")\n{\n msg.payload = {\"arbeit\": msg.payload.val}\n return msg\n}\nif (msg.topic == \"hm/status/Kuehlschrank_Messwerte:2/POWER\") {\n msg.payload = { \"leistung\": msg.payload.val }\n return msg\n}\nif (msg.topic == \"hm/status/Kuehlschrank_Messwerte:2/CURRENT\") {\n msg.payload = { \"strom\": msg.payload.val }\n return msg\n}\nif (msg.topic == \"hm/status/Kuehlschrank_Messwerte:2/VOLTAGE\") {\n msg.payload = { \"spannung\": msg.payload.val }\n return msg\n}\nreturn;\n",
|
||||
"outputs": 1,
|
||||
"timeout": "",
|
||||
"noerr": 0,
|
||||
@@ -3193,7 +3194,7 @@
|
||||
"type": "function",
|
||||
"z": "86a9e7aa0c304b46",
|
||||
"name": "function 73",
|
||||
"func": "const total = msg.payload.ENERGY.Total\nconst power = msg.payload.ENERGY.Power\nconst voltage = msg.payload.ENERGY.Voltage\nconst current = msg.payload.ENERGY.Current\nconst datetime = new Date(msg.payload.Time)\nmsg.payload = { arbeit: total, power: power, voltage: voltage, current: current, datetime: datetime}\nreturn msg;",
|
||||
"func": "const total = msg.payload.ENERGY.Total\nconst power = msg.payload.ENERGY.Power\nconst voltage = msg.payload.ENERGY.Voltage\nconst current = msg.payload.ENERGY.Current\nmsg.measurement=\"kaffeemaschine\"\nmsg.payload = { \"arbeit\": total, \"leistung\": power, \"spannung\": voltage, \"strom\": current}\nreturn msg;",
|
||||
"outputs": 1,
|
||||
"timeout": "",
|
||||
"noerr": 0,
|
||||
@@ -3224,6 +3225,27 @@
|
||||
"y": 1200,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
"id": "55932211b99a22d1",
|
||||
"type": "mqtt in",
|
||||
"z": "86a9e7aa0c304b46",
|
||||
"name": "AU-TH_10",
|
||||
"topic": "zigbee2mqtt/TH_10",
|
||||
"qos": "0",
|
||||
"datatype": "auto-detect",
|
||||
"broker": "c46833d59903b816",
|
||||
"nl": false,
|
||||
"rap": true,
|
||||
"rh": 0,
|
||||
"inputs": 0,
|
||||
"x": 240,
|
||||
"y": 2680,
|
||||
"wires": [
|
||||
[
|
||||
"c46bc662805c3ea3"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "e094b15a0b12dd71",
|
||||
"type": "mqtt in",
|
||||
@@ -7471,6 +7493,50 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "d09814fba249cf91",
|
||||
"type": "cronplus",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "",
|
||||
"outputField": "payload",
|
||||
"timeZone": "Europe/Berlin",
|
||||
"storeName": "",
|
||||
"commandResponseMsgOutput": "output1",
|
||||
"defaultLocation": "48.804783197350694 9.19624328613281",
|
||||
"defaultLocationType": "fixed",
|
||||
"outputs": 1,
|
||||
"options": [
|
||||
{
|
||||
"name": "schedule1",
|
||||
"topic": "topic1",
|
||||
"payloadType": "num",
|
||||
"payload": "1",
|
||||
"expressionType": "cron",
|
||||
"expression": "0 0 5 * * *",
|
||||
"location": "48.776826823252065 9.12689208984375",
|
||||
"offset": "1",
|
||||
"solarType": "selected",
|
||||
"solarEvents": "sunset"
|
||||
}
|
||||
],
|
||||
"x": 289,
|
||||
"y": 2838,
|
||||
"wires": [
|
||||
[
|
||||
"80f9225c7314df4f"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "5253d7a68f1ba892",
|
||||
"type": "comment",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "tägl. um 5 den SZ_klein ZU machen",
|
||||
"info": "Da der Wandtaster ein IP-Taster ist, der Rollladenaktor aber nicht,\nkann keine Direktverknüpfung eingestellt werden.\nDeshalb muss über diese Konstruktion hier gegangen werden.\nrxf 2026-01-21",
|
||||
"x": 360,
|
||||
"y": 2780,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
"id": "9e617dec92526da1",
|
||||
"type": "comment",
|
||||
@@ -11901,7 +11967,7 @@
|
||||
"type": "debug",
|
||||
"z": "958848d44d119e45",
|
||||
"name": "Push an Handy",
|
||||
"active": false,
|
||||
"active": true,
|
||||
"tosidebar": true,
|
||||
"console": false,
|
||||
"tostatus": false,
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"$": "527a21f99029715e546d8a088c880014izVg2qvEKu61/KoRFAeNHeFH39htTn+wiJD51EbrqAH44jpnJX/aPA6+bZ4Xylxn0NLQ+VPctLnO3w=="
|
||||
"$": "2aa616640b3ba48fd35b16f66fdff8b7Hpe629jmBOriUk5biPZnodXIyxGC8X113RY4xAt8UV8qta5pYmK+29bnPYEeklvaAP9oVPMe9T1MXHQTGK6MUQ0cBixaWoMROF3d9hIcQNVhNgqLgVXCwzxD3xMe5GAdXTweT5ZSq2acAa5s8vYcoKn3EBE8DNg9ebfK64ersDgfLxHLQJM/PV8i7iLv9B/EcwBRO/ASvOsPN+kn5CqHje5OiTdWpsZpm+5IpNMcOdm4nwsc0pPe0j99our8KmDXaT29RIW5t/ImRESCysI46mGd5boxU7dqUPp5kq5W3bWb1o+cgMP95xTwWePFWnuhw3FE2FZcFPzMPbvjAx6irUONlEge5bcfWxNDPAkwSkcngIcCT39GAn7ZeA=="
|
||||
}
|
||||
Reference in New Issue
Block a user