Statt des Blocks "Testräume" wird eine "ccu rpc event node" genommen, die z.B. alle Fensterkontakte aus einem bestimmten Gewerk ausgibt.
Damit reduziert sich das ganze auf die 3 Standard Nodes in der Mitte.
Code: Alles auswählen
[
{
"id": "a1d358a73b61e873",
"type": "group",
"z": "ac6a9bc0.042738",
"name": "Testräume",
"style": {
"label": true
},
"nodes": [
"7292273398973169",
"10cf6c8448211ac4",
"d38baa4b2720abd4",
"2050d0f4335a0e97",
"91ccfe53312e9de4",
"419feece341c2a02",
"3bfb724b10506119",
"9717e7ee1fe826fd"
],
"x": 1214,
"y": 359,
"w": 332,
"h": 402
},
{
"id": "7292273398973169",
"type": "inject",
"z": "ac6a9bc0.042738",
"g": "a1d358a73b61e873",
"name": "Zu",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 1310,
"y": 600,
"wires": [
[
"2050d0f4335a0e97"
]
]
},
{
"id": "10cf6c8448211ac4",
"type": "inject",
"z": "ac6a9bc0.042738",
"g": "a1d358a73b61e873",
"name": "Mitte",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 1310,
"y": 660,
"wires": [
[
"2050d0f4335a0e97"
]
]
},
{
"id": "d38baa4b2720abd4",
"type": "inject",
"z": "ac6a9bc0.042738",
"g": "a1d358a73b61e873",
"name": "Auf",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "2",
"payloadType": "num",
"x": 1310,
"y": 720,
"wires": [
[
"2050d0f4335a0e97"
]
]
},
{
"id": "2050d0f4335a0e97",
"type": "change",
"z": "ac6a9bc0.042738",
"g": "a1d358a73b61e873",
"name": "Bad",
"rules": [
{
"t": "set",
"p": "room",
"pt": "msg",
"to": "Bad",
"tot": "str"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "Bad",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1470,
"y": 660,
"wires": [
[
"d9a5eb5954bec856"
]
]
},
{
"id": "91ccfe53312e9de4",
"type": "change",
"z": "ac6a9bc0.042738",
"g": "a1d358a73b61e873",
"name": "Küche",
"rules": [
{
"t": "set",
"p": "room",
"pt": "msg",
"to": "Küche",
"tot": "str"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "Küche",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1470,
"y": 460,
"wires": [
[
"d9a5eb5954bec856"
]
]
},
{
"id": "419feece341c2a02",
"type": "inject",
"z": "ac6a9bc0.042738",
"g": "a1d358a73b61e873",
"name": "Zu",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 1310,
"y": 400,
"wires": [
[
"91ccfe53312e9de4"
]
]
},
{
"id": "3bfb724b10506119",
"type": "inject",
"z": "ac6a9bc0.042738",
"g": "a1d358a73b61e873",
"name": "Mitte",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 1310,
"y": 460,
"wires": [
[
"91ccfe53312e9de4"
]
]
},
{
"id": "9717e7ee1fe826fd",
"type": "inject",
"z": "ac6a9bc0.042738",
"g": "a1d358a73b61e873",
"name": "Auf",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "2",
"payloadType": "num",
"x": 1310,
"y": 520,
"wires": [
[
"91ccfe53312e9de4"
]
]
},
{
"id": "9b9eeb05d413e29a",
"type": "group",
"z": "ac6a9bc0.042738",
"name": "Statt Script",
"style": {
"label": true
},
"nodes": [
"d9a5eb5954bec856",
"9f1fce200157e08e",
"5391cdeb547f1c2f"
],
"x": 1594,
"y": 499,
"w": 392,
"h": 142
},
{
"id": "d9a5eb5954bec856",
"type": "switch",
"z": "ac6a9bc0.042738",
"g": "9b9eeb05d413e29a",
"name": "Fenster zu?",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "neq",
"v": "0",
"vt": "num"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 1690,
"y": 560,
"wires": [
[
"9f1fce200157e08e"
],
[
"5391cdeb547f1c2f"
]
]
},
{
"id": "9f1fce200157e08e",
"type": "trigger",
"z": "ac6a9bc0.042738",
"g": "9b9eeb05d413e29a",
"name": "",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "10",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "topic",
"topic": "topic",
"outputs": 1,
"x": 1890,
"y": 540,
"wires": [
[
"f264f10966b3ce18"
]
]
},
{
"id": "5391cdeb547f1c2f",
"type": "change",
"z": "ac6a9bc0.042738",
"g": "9b9eeb05d413e29a",
"name": "Reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1870,
"y": 600,
"wires": [
[
"9f1fce200157e08e"
]
]
},
{
"id": "95b0c0a8d7eb57c5",
"type": "group",
"z": "ac6a9bc0.042738",
"name": "Ausgabe -> weiterleiten an Push",
"style": {
"label": true
},
"nodes": [
"f264f10966b3ce18"
],
"x": 2034,
"y": 519,
"w": 210,
"h": 82
},
{
"id": "f264f10966b3ce18",
"type": "debug",
"z": "ac6a9bc0.042738",
"g": "95b0c0a8d7eb57c5",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "room",
"statusType": "msg",
"x": 2110,
"y": 560,
"wires": []
}
]