Rollladen_Alle: Kleiner Rollladen im SZ mit dem neuen IP-Wandtaster steuern
This commit is contained in:
251
flows.json
251
flows.json
@@ -578,6 +578,18 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "80f9225c7314df4f",
|
||||
"type": "junction",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"x": 1060,
|
||||
"y": 2560,
|
||||
"wires": [
|
||||
[
|
||||
"319767102ece53fb"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c46833d59903b816",
|
||||
"type": "mqtt-broker",
|
||||
@@ -7835,8 +7847,8 @@
|
||||
"complete": "false",
|
||||
"statusVal": "",
|
||||
"statusType": "auto",
|
||||
"x": 610,
|
||||
"y": 2600,
|
||||
"x": 630,
|
||||
"y": 2440,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
@@ -7915,6 +7927,241 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "b965a87ea3c8ed6e",
|
||||
"type": "comment",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "Rollladen SZ klein per WandTaster",
|
||||
"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": 2520,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
"id": "f85db79d181819ac",
|
||||
"type": "mqtt in",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "",
|
||||
"topic": "hm/status/#",
|
||||
"qos": "2",
|
||||
"datatype": "auto-detect",
|
||||
"broker": "c46833d59903b816",
|
||||
"nl": false,
|
||||
"rap": true,
|
||||
"rh": 0,
|
||||
"inputs": 0,
|
||||
"x": 290,
|
||||
"y": 2580,
|
||||
"wires": [
|
||||
[
|
||||
"e2f3a46fa9f5ce72"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "d277b2fc65eb166c",
|
||||
"type": "function",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "block first message",
|
||||
"func": "// function node\nlet alreadySeen = context.get(\"alreadySeen\") || false;\n\nif (!alreadySeen) {\n // erste Message blockieren\n context.set(\"alreadySeen\", true);\n return null;\n} else {\n // alle weiteren durchlassen\n return msg;\n}\n",
|
||||
"outputs": 1,
|
||||
"noerr": 0,
|
||||
"initialize": "",
|
||||
"finalize": "",
|
||||
"libs": [],
|
||||
"x": 470,
|
||||
"y": 2640,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "23dbcf7311cd422d",
|
||||
"type": "comment",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "evtl. passend einfügen",
|
||||
"info": "",
|
||||
"x": 480,
|
||||
"y": 2680,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
"id": "e2f3a46fa9f5ce72",
|
||||
"type": "switch",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "",
|
||||
"property": "topic",
|
||||
"propertyType": "msg",
|
||||
"rules": [
|
||||
{
|
||||
"t": "regex",
|
||||
"v": "hm/status/Rollladen_SZ_klein_Taster:1/PRESS_SHORT",
|
||||
"vt": "str",
|
||||
"case": false
|
||||
},
|
||||
{
|
||||
"t": "regex",
|
||||
"v": "hm/status/Rollladen_SZ_klein_Taster:2/PRESS_SHORT",
|
||||
"vt": "str",
|
||||
"case": false
|
||||
},
|
||||
{
|
||||
"t": "regex",
|
||||
"v": "hm/status/Rollladen_SZ_klein:1/WORKING",
|
||||
"vt": "str",
|
||||
"case": false
|
||||
}
|
||||
],
|
||||
"checkall": "true",
|
||||
"repair": false,
|
||||
"outputs": 3,
|
||||
"x": 650,
|
||||
"y": 2580,
|
||||
"wires": [
|
||||
[
|
||||
"cd91d141df98baed"
|
||||
],
|
||||
[
|
||||
"698e9cf53136dbc7"
|
||||
],
|
||||
[
|
||||
"8b5b54a3f4935199",
|
||||
"a9f1d162e5f51668"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "fa1ffb5c8ba0d243",
|
||||
"type": "mqtt out",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "Rollladen_SZ_klein",
|
||||
"topic": "",
|
||||
"qos": "0",
|
||||
"retain": "",
|
||||
"respTopic": "",
|
||||
"contentType": "",
|
||||
"userProps": "",
|
||||
"correl": "",
|
||||
"expiry": "",
|
||||
"broker": "c46833d59903b816",
|
||||
"x": 1490,
|
||||
"y": 2560,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
"id": "698e9cf53136dbc7",
|
||||
"type": "change",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "",
|
||||
"rules": [
|
||||
{
|
||||
"t": "set",
|
||||
"p": "payload",
|
||||
"pt": "msg",
|
||||
"to": "0.0",
|
||||
"tot": "num"
|
||||
}
|
||||
],
|
||||
"action": "",
|
||||
"property": "",
|
||||
"from": "",
|
||||
"to": "",
|
||||
"reg": false,
|
||||
"x": 840,
|
||||
"y": 2600,
|
||||
"wires": [
|
||||
[
|
||||
"80f9225c7314df4f"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "cd91d141df98baed",
|
||||
"type": "change",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "",
|
||||
"rules": [
|
||||
{
|
||||
"t": "set",
|
||||
"p": "payload",
|
||||
"pt": "msg",
|
||||
"to": "1.0",
|
||||
"tot": "num"
|
||||
}
|
||||
],
|
||||
"action": "",
|
||||
"property": "",
|
||||
"from": "",
|
||||
"to": "",
|
||||
"reg": false,
|
||||
"x": 840,
|
||||
"y": 2540,
|
||||
"wires": [
|
||||
[
|
||||
"80f9225c7314df4f"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "8b5b54a3f4935199",
|
||||
"type": "debug",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "debug 195",
|
||||
"active": true,
|
||||
"tosidebar": true,
|
||||
"console": false,
|
||||
"tostatus": false,
|
||||
"complete": "false",
|
||||
"statusVal": "",
|
||||
"statusType": "auto",
|
||||
"x": 830,
|
||||
"y": 2720,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
"id": "a9f1d162e5f51668",
|
||||
"type": "change",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "",
|
||||
"rules": [
|
||||
{
|
||||
"t": "set",
|
||||
"p": "szk_move",
|
||||
"pt": "flow",
|
||||
"to": "payload.val",
|
||||
"tot": "msg"
|
||||
}
|
||||
],
|
||||
"action": "",
|
||||
"property": "",
|
||||
"from": "",
|
||||
"to": "",
|
||||
"reg": false,
|
||||
"x": 850,
|
||||
"y": 2660,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "319767102ece53fb",
|
||||
"type": "function",
|
||||
"z": "85bb16dbe6fb391c",
|
||||
"name": "function 72",
|
||||
"func": "let moving = flow.get(\"szk_move\")\nif (moving) {\n msg.topic = \"hm/set/Rollladen_SZ_klein:1/STOP\"\n msg.payload = true\n} else {\n msg.topic = \"hm/set/Rollladen_SZ_klein:1/LEVEL\"\n}\nreturn msg",
|
||||
"outputs": 1,
|
||||
"noerr": 0,
|
||||
"initialize": "",
|
||||
"finalize": "",
|
||||
"libs": [],
|
||||
"x": 1190,
|
||||
"y": 2560,
|
||||
"wires": [
|
||||
[
|
||||
"fa1ffb5c8ba0d243"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "9e617dec92526da1",
|
||||
"type": "comment",
|
||||
|
||||
Reference in New Issue
Block a user