- Home
- Deutsch
- Skripten / Logik
- Node-Red
- Lichtsteuerungen zusammenführen
Lichtsteuerungen zusammenführen
This topic has been deleted. Only users with topic management privileges can see it.
-
Ich habe da zwei Licht Steuerungen, die würde ich gerne zusammenführen.
Doch wie genau weiß ich nicht!
[ { "id": "f40fbc4eb5ac4f7a", "type": "tab", "label": "Küche", "disabled": false, "info": "", "env": [] }, { "id": "fc88c77c4424af2c", "type": "junction", "z": "f40fbc4eb5ac4f7a", "x": 860, "y": 160, "wires": [ [ "b49be6e032cde881" ] ] }, { "id": "b49be6e032cde881", "type": "junction", "z": "f40fbc4eb5ac4f7a", "x": 900, "y": 220, "wires": [ [ "7d73947c87e35f57", "dcc353217425630f", "1f07037a23094e99" ] ] }, { "id": "6e6e711ff5777b71", "type": "junction", "z": "f40fbc4eb5ac4f7a", "x": 320, "y": 340, "wires": [ [ "4f455781e0a33218" ] ] }, { "id": "4f455781e0a33218", "type": "junction", "z": "f40fbc4eb5ac4f7a", "x": 460, "y": 340, "wires": [ [ "26ce938c1bbd0c58", "0182de9c40db9d98" ] ] }, { "id": "a6e05a1f2404586c", "type": "junction", "z": "f40fbc4eb5ac4f7a", "x": 580, "y": 160, "wires": [ [ "194dc1820494d39c" ] ] }, { "id": "8b1f768c5ac55fb7", "type": "junction", "z": "f40fbc4eb5ac4f7a", "x": 260, "y": 960, "wires": [ [ "b3d8036a64457411", "f553aaa3706983a3", "14bf32a96a32b1c7" ] ] }, { "id": "1dcf234734c3df9c", "type": "junction", "z": "f40fbc4eb5ac4f7a", "x": 860, "y": 300, "wires": [ [ "b49be6e032cde881" ] ] }, { "id": "a9a291ef92812c32", "type": "junction", "z": "f40fbc4eb5ac4f7a", "x": 780, "y": 480, "wires": [ [ "589ac75a5e32f1d9", "0d321e0ed699fec1", "138c91dc2bbc1ae3" ] ] }, { "id": "9f1e5b8e50507105", "type": "junction", "z": "f40fbc4eb5ac4f7a", "x": 680, "y": 480, "wires": [ [ "a9a291ef92812c32" ] ] }, { "id": "84d4bb451aa3dab5", "type": "ioBroker get", "z": "f40fbc4eb5ac4f7a", "name": "Robi Status", "topic": "roborock.0.Devices.7Fc43lXlk5X7fmVJtBkqnZ.deviceStatus.state", "attrname": "roborock", "payloadType": "value", "errOnInvalidState": "nothing", "x": 610, "y": 80, "wires": [ [ "3061bfad7aebe323" ] ] }, { "id": "7673c7cc73600166", "type": "switch", "z": "f40fbc4eb5ac4f7a", "name": "Bewegung", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 430, "y": 100, "wires": [ [ "84d4bb451aa3dab5", "a6e05a1f2404586c" ], [ "a6e05a1f2404586c" ] ] }, { "id": "3061bfad7aebe323", "type": "switch", "z": "f40fbc4eb5ac4f7a", "name": "Robi nicht 18", "property": "roborock", "propertyType": "msg", "rules": [ { "t": "neq", "v": "18", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 770, "y": 80, "wires": [ [ "fc88c77c4424af2c" ] ] }, { "id": "194dc1820494d39c", "type": "trigger", "z": "f40fbc4eb5ac4f7a", "name": "", "op1": "", "op2": "false", "op1type": "nul", "op2type": "bool", "duration": "3", "extend": true, "overrideDelay": false, "units": "min", "reset": "true", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 690, "y": 160, "wires": [ [ "fc88c77c4424af2c" ] ] }, { "id": "be371d6d59f9ad07", "type": "ioBroker in", "z": "f40fbc4eb5ac4f7a", "name": "Lichtschalter Küche", "attrname": "payload", "topic": "tuya.0.bfa31f81841589e9aerhgk.1", "payloadType": "value", "onlyack": "", "func": "rbe-preinitvalue", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 110, "y": 160, "wires": [ [ "94d93835fe8a25be", "3d21d9610456f9ab" ] ] }, { "id": "a2f5c4868e48c194", "type": "switch", "z": "f40fbc4eb5ac4f7a", "name": "", "property": "Schalter.Küche", "propertyType": "flow", "rules": [ { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 290, "y": 100, "wires": [ [ "7673c7cc73600166" ] ] }, { "id": "94d93835fe8a25be", "type": "change", "z": "f40fbc4eb5ac4f7a", "name": "", "rules": [ { "t": "set", "p": "reset", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 410, "y": 160, "wires": [ [ "a6e05a1f2404586c" ] ] }, { "id": "342657ba818c17e7", "type": "change", "z": "f40fbc4eb5ac4f7a", "name": "", "rules": [ { "t": "set", "p": "reset", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 410, "y": 220, "wires": [ [ "a6e05a1f2404586c" ] ] }, { "id": "3d21d9610456f9ab", "type": "switch", "z": "f40fbc4eb5ac4f7a", "name": "true/false?", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 150, "y": 260, "wires": [ [ "1706332e7fed829e", "342657ba818c17e7" ], [ "6e6e711ff5777b71" ] ] }, { "id": "1706332e7fed829e", "type": "change", "z": "f40fbc4eb5ac4f7a", "name": "Setze Schalter", "rules": [ { "t": "set", "p": "Schalter.Küche", "pt": "flow", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 400, "y": 300, "wires": [ [ "26ce938c1bbd0c58" ] ] }, { "id": "26ce938c1bbd0c58", "type": "trigger", "z": "f40fbc4eb5ac4f7a", "name": "", "op1": "true", "op2": "false", "op1type": "bool", "op2type": "bool", "duration": "45", "extend": false, "overrideDelay": false, "units": "min", "reset": "false", "bytopic": "all", "topic": "topic", "outputs": 2, "x": 580, "y": 300, "wires": [ [ "1dcf234734c3df9c" ], [ "0182de9c40db9d98" ] ] }, { "id": "0182de9c40db9d98", "type": "change", "z": "f40fbc4eb5ac4f7a", "name": "setze Schalter", "rules": [ { "t": "set", "p": "Schalter.Küche", "pt": "flow", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 760, "y": 340, "wires": [ [ "1dcf234734c3df9c" ] ] }, { "id": "a97a226b3f474ea9", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "U rechts", "topic": "tuya.0.bfcdbb4059ddda6838ujep.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1260, "y": 260, "wires": [] }, { "id": "03869dfcbce2b0af", "type": "ioBroker in", "z": "f40fbc4eb5ac4f7a", "name": "Küche Motion", "attrname": "payload", "topic": "hue.0.Küche_Motion_Sensor.presence", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 110, "y": 40, "wires": [ [ "a2f5c4868e48c194" ] ] }, { "id": "3f0890b72c3d6dd1", "type": "ioBroker in", "z": "f40fbc4eb5ac4f7a", "name": "Lichtschalter Küche", "attrname": "payload", "topic": "tuya.0.bf36dedbf6c5bdc5c9mm42.1", "payloadType": "value", "onlyack": "", "func": "rbe-preinitvalue", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 110, "y": 960, "wires": [ [ "8b1f768c5ac55fb7" ] ] }, { "id": "6430d85efdcb66b1", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "Unters. links", "topic": "hue.0.Küche_Unterschr_Links.on", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 610, "y": 900, "wires": [] }, { "id": "0cfd2dfdb7fd9d73", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "Unters. rechts", "topic": "tuya.0.bfcdbb4059ddda6838ujep.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 620, "y": 960, "wires": [] }, { "id": "b3d8036a64457411", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "Küche Decke", "topic": "tuya.0.bf36dedbf6c5bdc5c9mm42.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 380, "y": 1020, "wires": [] }, { "id": "ded301b5b49c0551", "type": "inject", "z": "f40fbc4eb5ac4f7a", "name": "true", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "true", "payloadType": "bool", "x": 150, "y": 900, "wires": [ [ "8b1f768c5ac55fb7" ] ] }, { "id": "2f524036a6f06b95", "type": "inject", "z": "f40fbc4eb5ac4f7a", "name": "false", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "false", "payloadType": "bool", "x": 150, "y": 1020, "wires": [ [ "8b1f768c5ac55fb7" ] ] }, { "id": "54287ad8a665fae3", "type": "ioBroker in", "z": "f40fbc4eb5ac4f7a", "name": "Küche Motion", "attrname": "payload", "topic": "tuya.0.bf15a2489964bff33bavvv.1", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 110, "y": 100, "wires": [ [ "a2f5c4868e48c194" ] ] }, { "id": "7d73947c87e35f57", "type": "delay", "z": "f40fbc4eb5ac4f7a", "name": "", "pauseType": "delay", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1060, "y": 200, "wires": [ [ "b631d852bc867db6" ] ] }, { "id": "dcc353217425630f", "type": "delay", "z": "f40fbc4eb5ac4f7a", "name": "", "pauseType": "delay", "timeout": "800", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 1060, "y": 260, "wires": [ [ "a97a226b3f474ea9" ] ] }, { "id": "1f07037a23094e99", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "Lichtschalter", "topic": "tuya.0.bf36dedbf6c5bdc5c9mm42.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1010, "y": 140, "wires": [] }, { "id": "f553aaa3706983a3", "type": "delay", "z": "f40fbc4eb5ac4f7a", "name": "", "pauseType": "delay", "timeout": "800", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 400, "y": 900, "wires": [ [ "6430d85efdcb66b1" ] ] }, { "id": "14bf32a96a32b1c7", "type": "delay", "z": "f40fbc4eb5ac4f7a", "name": "", "pauseType": "delay", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "allowrate": false, "outputs": 1, "x": 400, "y": 960, "wires": [ [ "0cfd2dfdb7fd9d73" ] ] }, { "id": "b631d852bc867db6", "type": "hue-scene", "z": "f40fbc4eb5ac4f7a", "name": "U links", "bridge": "cbd54dbabf6f65be", "sceneid": "f4ba5d03-53aa-43a0-b1df-d27e787952f0", "x": 1270, "y": 200, "wires": [ [] ] }, { "id": "609d7e40dff76810", "type": "ioBroker in", "z": "f40fbc4eb5ac4f7a", "name": "Küche Schalter", "attrname": "payload", "topic": "hue.0.Küche_Schalter.buttonevent", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 100, "y": 700, "wires": [ [ "492203889ad083cc" ] ] }, { "id": "202c49953d235813", "type": "ioBroker get", "z": "f40fbc4eb5ac4f7a", "name": "Switch 2", "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_2", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 420, "y": 660, "wires": [ [ "5f856636064395a8" ] ] }, { "id": "5f856636064395a8", "type": "change", "z": "f40fbc4eb5ac4f7a", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 660, "wires": [ [ "167c3d9534071cfb" ] ] }, { "id": "167c3d9534071cfb", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "Virtuel Switch 2", "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_2", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 660, "wires": [] }, { "id": "f4b15ec716491f99", "type": "ioBroker get", "z": "f40fbc4eb5ac4f7a", "name": "Switch 3", "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_3", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 420, "y": 720, "wires": [ [ "5c2fda12ba92680a" ] ] }, { "id": "5c2fda12ba92680a", "type": "change", "z": "f40fbc4eb5ac4f7a", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 720, "wires": [ [ "8be32882ca318f17" ] ] }, { "id": "8be32882ca318f17", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "Virtuel Switch 3", "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_3", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 720, "wires": [] }, { "id": "a90667c051825ea4", "type": "ioBroker get", "z": "f40fbc4eb5ac4f7a", "name": "Switch 4", "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_4", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 420, "y": 780, "wires": [ [ "284a521baee930b8" ] ] }, { "id": "284a521baee930b8", "type": "change", "z": "f40fbc4eb5ac4f7a", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 780, "wires": [ [ "b141e44072331e6d" ] ] }, { "id": "b141e44072331e6d", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "Virtuel Switch 4", "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_4", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 700, "y": 780, "wires": [] }, { "id": "bffd16b00cfde14d", "type": "ioBroker get", "z": "f40fbc4eb5ac4f7a", "name": "Switch 1", "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 420, "y": 600, "wires": [ [ "c2ccf4efb123db4a" ] ] }, { "id": "c2ccf4efb123db4a", "type": "change", "z": "f40fbc4eb5ac4f7a", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 550, "y": 600, "wires": [ [ "9f1e5b8e50507105", "89ea7a585ae00bac" ] ] }, { "id": "0d321e0ed699fec1", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "U-links", "topic": "hue.0.Küche_Unterschr_Links.on", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 930, "y": 480, "wires": [] }, { "id": "589ac75a5e32f1d9", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "Küche Decke", "topic": "tuya.0.bf36dedbf6c5bdc5c9mm42.1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 950, "y": 420, "wires": [] }, { "id": "492203889ad083cc", "type": "switch", "z": "f40fbc4eb5ac4f7a", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1000", "vt": "str" }, { "t": "eq", "v": "", "vt": "str" }, { "t": "eq", "v": "2000", "vt": "str" }, { "t": "eq", "v": "", "vt": "str" }, { "t": "eq", "v": "3000", "vt": "str" }, { "t": "eq", "v": "", "vt": "str" }, { "t": "eq", "v": "4000", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 7, "x": 250, "y": 700, "wires": [ [ "bffd16b00cfde14d" ], [], [ "202c49953d235813" ], [], [ "f4b15ec716491f99" ], [], [ "a90667c051825ea4" ] ] }, { "id": "138c91dc2bbc1ae3", "type": "ioBroker out", "z": "f40fbc4eb5ac4f7a", "name": "Virtuel Switch 1", "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 960, "y": 540, "wires": [] }, { "id": "89ea7a585ae00bac", "type": "hue-scene", "z": "f40fbc4eb5ac4f7a", "name": "U-rechts", "bridge": "cbd54dbabf6f65be", "sceneid": "f4ba5d03-53aa-43a0-b1df-d27e787952f0", "x": 960, "y": 600, "wires": [ [] ] }, { "id": "cbd54dbabf6f65be", "type": "hue-bridge", "name": "Hue GordonX", "bridge": "192.168.0.8", "key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d", "worker": "10", "autoupdates": true, "disableupdates": false } ]
-
Vielleicht kannst dir meine beiden Steuerungen mal angucken, vllt hast du eine Idee @geschild wie man die beiden zusammen legen kann.
-
Ich verstehe leider nicht, was du mit "zusammen legen" meinst.
Welchen node muss ich für die Hue-Nodes (U links) (U rechts) installieren?
Schaust du auch mal in unseren Chat? -
Ich hätte das jetzt so gemacht!
[ { "id": "fca95f262626d456", "type": "tab", "label": "Bad", "disabled": false, "info": "", "env": [] }, { "id": "d02ccdb683eccc22", "type": "junction", "z": "fca95f262626d456", "x": 1020, "y": 400, "wires": [ [ "81bc0ca0fe3ef7e4" ] ] }, { "id": "81bc0ca0fe3ef7e4", "type": "junction", "z": "fca95f262626d456", "x": 1060, "y": 500, "wires": [ [ "c577d279cf9947a6", "7bc2b7578ffbabe3", "ba3d7ecc609d611a", "ae91ecd3729d1f8b" ] ] }, { "id": "03f72401e3d4be05", "type": "junction", "z": "fca95f262626d456", "x": 440, "y": 560, "wires": [ [ "fcc08c6d511bad32" ] ] }, { "id": "fcc08c6d511bad32", "type": "junction", "z": "fca95f262626d456", "x": 560, "y": 560, "wires": [ [ "7703bd3e79c2d6bc", "bee609bd26f3a2aa" ] ] }, { "id": "c337d1c51bdbc392", "type": "junction", "z": "fca95f262626d456", "x": 680, "y": 400, "wires": [ [ "0cd5a722d39cd4f9" ] ] }, { "id": "f7911bc401eced22", "type": "junction", "z": "fca95f262626d456", "x": 1740, "y": 280, "wires": [ [ "9535dd91050e1de7", "984bc6a2c3a86e29", "8bb042655784af36" ] ] }, { "id": "f90ac36919e30901", "type": "ioBroker in", "z": "fca95f262626d456", "name": "Bad Schalter", "attrname": "payload", "topic": "hue.0.Bad_Schalter.buttonevent", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 90, "y": 240, "wires": [ [ "a4db0bbf8fc4180d", "3897be92674f6ad4", "8ed9f164089bbcab" ] ] }, { "id": "7bc2b7578ffbabe3", "type": "ioBroker get", "z": "fca95f262626d456", "name": "VSwitch 2", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_2", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 1320, "y": 220, "wires": [ [ "f9916b7b609a4872" ] ] }, { "id": "f9916b7b609a4872", "type": "change", "z": "fca95f262626d456", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1460, "y": 220, "wires": [ [ "19db4b5cf607df63" ] ] }, { "id": "19db4b5cf607df63", "type": "ioBroker out", "z": "fca95f262626d456", "name": "VSwitch 2", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_2", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1690, "y": 220, "wires": [] }, { "id": "ba3d7ecc609d611a", "type": "ioBroker get", "z": "fca95f262626d456", "name": "VSwitch 3", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_3", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 1320, "y": 280, "wires": [ [ "b785f33bd5389843" ] ] }, { "id": "b785f33bd5389843", "type": "change", "z": "fca95f262626d456", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1470, "y": 280, "wires": [ [ "ee55387f0a29bec4", "f7911bc401eced22" ] ] }, { "id": "ee55387f0a29bec4", "type": "ioBroker out", "z": "fca95f262626d456", "name": "VSwitch 3", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_3", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1680, "y": 320, "wires": [] }, { "id": "ae91ecd3729d1f8b", "type": "ioBroker get", "z": "fca95f262626d456", "name": "VSwitch 4", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_4", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 1320, "y": 340, "wires": [ [ "556103d4e4e7fa4a" ] ] }, { "id": "556103d4e4e7fa4a", "type": "change", "z": "fca95f262626d456", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1470, "y": 340, "wires": [ [ "3b2803663d8b4023" ] ] }, { "id": "3b2803663d8b4023", "type": "ioBroker out", "z": "fca95f262626d456", "name": "VSwitch 4", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_4", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1680, "y": 380, "wires": [] }, { "id": "c577d279cf9947a6", "type": "ioBroker get", "z": "fca95f262626d456", "name": "VSwitch 1", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_1", "attrname": "payload", "payloadType": "value", "errOnInvalidState": "nothing", "x": 1320, "y": 140, "wires": [ [ "38514d6d7f2e9871" ] ] }, { "id": "38514d6d7f2e9871", "type": "change", "z": "fca95f262626d456", "name": "toggle", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "$not(payload)\t", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1460, "y": 140, "wires": [ [ "f5092a35d07b4474", "36b938943d09ebb8" ] ] }, { "id": "f5092a35d07b4474", "type": "ioBroker out", "z": "fca95f262626d456", "name": "VSwitch 1", "topic": "0_userdata.0.GordonX-Home.Bad.Virtueller_Schalter_1", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1680, "y": 160, "wires": [] }, { "id": "36b938943d09ebb8", "type": "ioBroker out", "z": "fca95f262626d456", "name": "Bad Lichtschalter", "topic": "tuya.0.bf523b506862d1d720fboe.2", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1710, "y": 100, "wires": [] }, { "id": "a4db0bbf8fc4180d", "type": "switch", "z": "fca95f262626d456", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1000", "vt": "str" }, { "t": "eq", "v": "2000", "vt": "str" }, { "t": "eq", "v": "3000", "vt": "str" }, { "t": "eq", "v": "4000", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 4, "x": 930, "y": 240, "wires": [ [ "c577d279cf9947a6" ], [ "7bc2b7578ffbabe3" ], [ "ba3d7ecc609d611a" ], [ "ae91ecd3729d1f8b" ] ] }, { "id": "984bc6a2c3a86e29", "type": "hue-light", "z": "fca95f262626d456", "name": "Wohnzimmer 1", "bridge": "cbd54dbabf6f65be", "lightid": "8e4238e6-eb02-4110-b2df-b598f509696d", "colornamer": true, "skipevents": false, "initevents": false, "x": 1900, "y": 280, "wires": [ [] ] }, { "id": "8bb042655784af36", "type": "hue-light", "z": "fca95f262626d456", "name": "Wohnzimmer 2", "bridge": "cbd54dbabf6f65be", "lightid": "94745f7d-34a3-4438-a272-6c17a19028a6", "colornamer": true, "skipevents": false, "initevents": false, "x": 1900, "y": 220, "wires": [ [] ] }, { "id": "9535dd91050e1de7", "type": "hue-light", "z": "fca95f262626d456", "name": "Wohnzimmer 3", "bridge": "cbd54dbabf6f65be", "lightid": "2be455c4-b24d-4fc6-b3e0-9b86f78e7b83", "colornamer": true, "skipevents": false, "initevents": false, "x": 1900, "y": 340, "wires": [ [] ] }, { "id": "f614aeafbcfd8ad4", "type": "ioBroker get", "z": "fca95f262626d456", "name": "Robi Status", "topic": "roborock.0.Devices.7Fc43lXlk5X7fmVJtBkqnZ.deviceStatus.state", "attrname": "roborock", "payloadType": "value", "errOnInvalidState": "nothing", "x": 750, "y": 320, "wires": [ [ "7e81cf6ebfdae084" ] ] }, { "id": "1ad60b9c7baf6d4e", "type": "switch", "z": "fca95f262626d456", "name": "Bewegung", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 530, "y": 340, "wires": [ [ "f614aeafbcfd8ad4", "c337d1c51bdbc392" ], [ "c337d1c51bdbc392" ] ] }, { "id": "7e81cf6ebfdae084", "type": "switch", "z": "fca95f262626d456", "name": "Robi nicht 8", "property": "roborock", "propertyType": "msg", "rules": [ { "t": "neq", "v": "8", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 910, "y": 320, "wires": [ [ "d02ccdb683eccc22" ] ] }, { "id": "0cd5a722d39cd4f9", "type": "trigger", "z": "fca95f262626d456", "name": "", "op1": "", "op2": "false", "op1type": "nul", "op2type": "bool", "duration": "3", "extend": true, "overrideDelay": false, "units": "s", "reset": "true", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 780, "y": 400, "wires": [ [ "d02ccdb683eccc22" ] ] }, { "id": "bbdbb5ad44790d86", "type": "switch", "z": "fca95f262626d456", "name": "", "property": "Schalter.Küche", "propertyType": "flow", "rules": [ { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 390, "y": 340, "wires": [ [ "1ad60b9c7baf6d4e" ] ] }, { "id": "3897be92674f6ad4", "type": "change", "z": "fca95f262626d456", "name": "", "rules": [ { "t": "set", "p": "reset", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 510, "y": 400, "wires": [ [ "c337d1c51bdbc392" ] ] }, { "id": "9f531b619d854673", "type": "change", "z": "fca95f262626d456", "name": "", "rules": [ { "t": "set", "p": "reset", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 460, "wires": [ [ "c337d1c51bdbc392" ] ] }, { "id": "8ed9f164089bbcab", "type": "switch", "z": "fca95f262626d456", "name": "true/false?", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 310, "y": 500, "wires": [ [ "603df006e9453afb", "9f531b619d854673" ], [ "03f72401e3d4be05" ] ] }, { "id": "603df006e9453afb", "type": "change", "z": "fca95f262626d456", "name": "Setze Schalter", "rules": [ { "t": "set", "p": "Schalter.Küche", "pt": "flow", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 520, "wires": [ [ "7703bd3e79c2d6bc" ] ] }, { "id": "7703bd3e79c2d6bc", "type": "trigger", "z": "fca95f262626d456", "name": "", "op1": "true", "op2": "false", "op1type": "bool", "op2type": "bool", "duration": "1", "extend": false, "overrideDelay": false, "units": "min", "reset": "false", "bytopic": "all", "topic": "topic", "outputs": 2, "x": 750, "y": 520, "wires": [ [ "81bc0ca0fe3ef7e4" ], [ "bee609bd26f3a2aa" ] ] }, { "id": "bee609bd26f3a2aa", "type": "change", "z": "fca95f262626d456", "name": "setze Schalter", "rules": [ { "t": "set", "p": "Schalter.Küche", "pt": "flow", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 940, "y": 560, "wires": [ [ "81bc0ca0fe3ef7e4" ] ] }, { "id": "eb29227b5bbb1a88", "type": "ioBroker in", "z": "fca95f262626d456", "name": "Bad Motion", "attrname": "payload", "topic": "hue.0.Bad_Motion_Sensor.presence", "payloadType": "value", "onlyack": "", "func": "all", "gap": "", "fireOnStart": "false", "outFormat": "MQTT", "x": 90, "y": 340, "wires": [ [ "bbdbb5ad44790d86" ] ] }, { "id": "cbd54dbabf6f65be", "type": "hue-bridge", "name": "Hue GordonX", "bridge": "192.168.0.8", "key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d", "worker": "10", "autoupdates": true, "disableupdates": false } ]