Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. HUE Bewegungsmelder Roborock integr.

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    HUE Bewegungsmelder Roborock integr.

    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      peterfido @Aphofis last edited by peterfido

      @aphofis Das ist ein wichtige Info, die am Anfang der Aufgabenstellung gut gewesen wäre. Dann muss der Timeout Baustein gegen einen, welcher sich zurücksetzen lässt, ersetzt werden. z.B. myTimeout.

      Edit: Die 45 Minuten sind jetzt wofür?

      Aphofis 1 Reply Last reply Reply Quote 0
      • P
        peterfido @Aphofis last edited by

        @aphofis mit myTimeout könnte das so aussehen.

        Mehr mag ich auf dem Mäusekino nicht probieren, zumal Samsung oder Google die Stiftbedienung seit einigen Updates vermurkst haben.

        [
            {
                "id": "a42b83181f07f8d0",
                "type": "tab",
                "label": "Flow 8",
                "disabled": false,
                "info": "",
                "env": []
            },
            {
                "id": "1c8c0acba7c2bff2",
                "type": "inject",
                "z": "a42b83181f07f8d0",
                "name": "Test Bewegung",
                "props": [
                    {
                        "p": "payload.motion",
                        "v": "true",
                        "vt": "bool"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "Bewegungsmelder",
                "x": 120,
                "y": 60,
                "wires": [
                    [
                        "8bf1e5067a6f0ad2",
                        "b0410acfcad1b37e"
                    ]
                ]
            },
            {
                "id": "d1f2c8393ea7f683",
                "type": "debug",
                "z": "a42b83181f07f8d0",
                "name": "debug 3",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "true",
                "targetType": "full",
                "statusVal": "",
                "statusType": "auto",
                "x": 1640,
                "y": 180,
                "wires": []
            },
            {
                "id": "8bf1e5067a6f0ad2",
                "type": "delay",
                "z": "a42b83181f07f8d0",
                "name": "",
                "pauseType": "delay",
                "timeout": "1",
                "timeoutUnits": "seconds",
                "rate": "1",
                "nbRateUnits": "1",
                "rateUnits": "second",
                "randomFirst": "1",
                "randomLast": "5",
                "randomUnits": "seconds",
                "drop": false,
                "allowrate": false,
                "outputs": 1,
                "x": 120,
                "y": 120,
                "wires": [
                    [
                        "a9f9b30b4f8999d0"
                    ]
                ]
            },
            {
                "id": "a9f9b30b4f8999d0",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "motion:false",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload.motion",
                        "pt": "msg",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 170,
                "y": 160,
                "wires": [
                    [
                        "b0410acfcad1b37e"
                    ]
                ]
            },
            {
                "id": "7a509a8587332f14",
                "type": "switch",
                "z": "a42b83181f07f8d0",
                "name": "Schalter",
                "property": "stopp",
                "propertyType": "flow",
                "rules": [
                    {
                        "t": "true"
                    },
                    {
                        "t": "false"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 820,
                "y": 80,
                "wires": [
                    [],
                    [
                        "4d146d05efbc5d35"
                    ]
                ]
            },
            {
                "id": "6adb99e531920623",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "Motion",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "payload.motion",
                        "tot": "msg"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 500,
                "y": 60,
                "wires": [
                    [
                        "9f0c88dad82d8633"
                    ]
                ]
            },
            {
                "id": "9f83e7917ef2d8e2",
                "type": "comment",
                "z": "a42b83181f07f8d0",
                "name": "<< Bewegungsmelder |||||||||||||| Simulator  Beginn>>",
                "info": "",
                "x": 220,
                "y": 20,
                "wires": []
            },
            {
                "id": "0762e0ad3da83f0d",
                "type": "inject",
                "z": "a42b83181f07f8d0",
                "name": "Test 1000",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "Schalter_1000",
                "payload": "1000",
                "payloadType": "num",
                "x": 120,
                "y": 280,
                "wires": [
                    [
                        "d1051390faa881a3"
                    ]
                ]
            },
            {
                "id": "bd795708de32c118",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "on",
                        "tot": "str"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 570,
                "y": 200,
                "wires": [
                    [
                        "a6a847c390a23b20"
                    ]
                ]
            },
            {
                "id": "d1051390faa881a3",
                "type": "switch",
                "z": "a42b83181f07f8d0",
                "name": "1000?",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "eq",
                        "v": "1000",
                        "vt": "num"
                    },
                    {
                        "t": "eq",
                        "v": "",
                        "vt": "num"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 290,
                "y": 300,
                "wires": [
                    [
                        "91fb51e7bf3d65f7"
                    ],
                    []
                ]
            },
            {
                "id": "4d146d05efbc5d35",
                "type": "switch",
                "z": "a42b83181f07f8d0",
                "name": "Robi",
                "property": "BWM",
                "propertyType": "flow",
                "rules": [
                    {
                        "t": "true"
                    },
                    {
                        "t": "false"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 950,
                "y": 80,
                "wires": [
                    [
                        "9cf97a8724bea369"
                    ],
                    []
                ]
            },
            {
                "id": "32b9213c2fe970b0",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "",
                "rules": [
                    {
                        "t": "set",
                        "p": "stopp",
                        "pt": "flow",
                        "to": "true",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 820,
                "y": 300,
                "wires": [
                    []
                ]
            },
            {
                "id": "0439088d7ec73749",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "löscheflow.stopp",
                "rules": [
                    {
                        "t": "set",
                        "p": "stopp",
                        "pt": "flow",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 1330,
                "y": 340,
                "wires": [
                    []
                ]
            },
            {
                "id": "550905a564f09176",
                "type": "function",
                "z": "a42b83181f07f8d0",
                "name": "Variablen Ini + Ausgabe",
                "func": "node.status({ text: msg.payload });\n\nreturn msg;",
                "outputs": 1,
                "timeout": 0,
                "noerr": 0,
                "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\nflow.set(\"stopp\", false);\nflow.set(\"BWM\", true);\n",
                "finalize": "",
                "libs": [],
                "x": 1490,
                "y": 260,
                "wires": [
                    [
                        "d1f2c8393ea7f683",
                        "e2721e4056e942e3"
                    ]
                ]
            },
            {
                "id": "d7bd1efc606cfcad",
                "type": "ioBroker in",
                "z": "a42b83181f07f8d0",
                "name": "ioB Robi",
                "attrname": "payload",
                "topic": "*",
                "payloadType": "value",
                "onlyack": "",
                "func": "all",
                "gap": "",
                "fireOnStart": "false",
                "outFormat": "MQTT",
                "x": 120,
                "y": 560,
                "wires": [
                    [
                        "b2f36db79c165583"
                    ]
                ]
            },
            {
                "id": "b0410acfcad1b37e",
                "type": "function",
                "z": "a42b83181f07f8d0",
                "name": "Ausgang BWM",
                "func": "\nreturn msg;",
                "outputs": 1,
                "timeout": 0,
                "noerr": 0,
                "initialize": "",
                "finalize": "",
                "libs": [],
                "x": 320,
                "y": 60,
                "wires": [
                    [
                        "6adb99e531920623"
                    ]
                ]
            },
            {
                "id": "e2721e4056e942e3",
                "type": "ioBroker out",
                "z": "a42b83181f07f8d0",
                "name": "ioBroker Lampe",
                "topic": "0_userdata.0.tests.Lampekueche",
                "ack": "false",
                "autoCreate": "true",
                "stateName": "Lampe_Kueche",
                "role": "light",
                "payloadType": "boolean",
                "readonly": "false",
                "stateUnit": "",
                "stateMin": "",
                "stateMax": "",
                "x": 1720,
                "y": 300,
                "wires": []
            },
            {
                "id": "7cfd7f7fba2e2d7a",
                "type": "ioBroker in",
                "z": "a42b83181f07f8d0",
                "name": "ioB Schalter",
                "attrname": "payload",
                "topic": "*",
                "payloadType": "value",
                "onlyack": "",
                "func": "all",
                "gap": "",
                "fireOnStart": "false",
                "outFormat": "MQTT",
                "x": 110,
                "y": 320,
                "wires": [
                    [
                        "d1051390faa881a3"
                    ]
                ]
            },
            {
                "id": "91ef09f531fcc27b",
                "type": "inject",
                "z": "a42b83181f07f8d0",
                "name": "Test Robi = 5",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "5",
                "payloadType": "num",
                "x": 130,
                "y": 440,
                "wires": [
                    [
                        "b2f36db79c165583"
                    ]
                ]
            },
            {
                "id": "6db2cc2617ad5707",
                "type": "inject",
                "z": "a42b83181f07f8d0",
                "name": "Test Robi <> 5",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "6",
                "payloadType": "num",
                "x": 130,
                "y": 500,
                "wires": [
                    [
                        "b2f36db79c165583"
                    ]
                ]
            },
            {
                "id": "b2f36db79c165583",
                "type": "switch",
                "z": "a42b83181f07f8d0",
                "name": "5?",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "eq",
                        "v": "5",
                        "vt": "num"
                    },
                    {
                        "t": "neq",
                        "v": "5",
                        "vt": "num"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 310,
                "y": 500,
                "wires": [
                    [
                        "407e2e376c0ee370"
                    ],
                    [
                        "5061312f43733426"
                    ]
                ]
            },
            {
                "id": "407e2e376c0ee370",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "setze Flow.BWM",
                "rules": [
                    {
                        "t": "set",
                        "p": "BWM",
                        "pt": "flow",
                        "to": "true",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 680,
                "y": 480,
                "wires": [
                    [
                        "0650a4ab7aec40a1"
                    ]
                ]
            },
            {
                "id": "5061312f43733426",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "lösche Flow.BWM",
                "rules": [
                    {
                        "t": "set",
                        "p": "BWM",
                        "pt": "flow",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 690,
                "y": 520,
                "wires": [
                    [
                        "0650a4ab7aec40a1"
                    ]
                ]
            },
            {
                "id": "879b9060efcd163b",
                "type": "comment",
                "z": "a42b83181f07f8d0",
                "name": "evtl. gesperrt durch??",
                "info": "",
                "x": 880,
                "y": 40,
                "wires": []
            },
            {
                "id": "9f0c88dad82d8633",
                "type": "switch",
                "z": "a42b83181f07f8d0",
                "name": "nur true",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "true"
                    },
                    {
                        "t": "false"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 640,
                "y": 80,
                "wires": [
                    [
                        "7a509a8587332f14"
                    ],
                    []
                ]
            },
            {
                "id": "0650a4ab7aec40a1",
                "type": "debug",
                "z": "a42b83181f07f8d0",
                "name": "debug 4",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "true",
                "targetType": "full",
                "statusVal": "",
                "statusType": "auto",
                "x": 900,
                "y": 500,
                "wires": []
            },
            {
                "id": "f144b6f8b998c7f5",
                "type": "comment",
                "z": "a42b83181f07f8d0",
                "name": "<< Bewegungsmelder |||||||||||||| Simulator Ende >>",
                "info": "",
                "x": 220,
                "y": 220,
                "wires": []
            },
            {
                "id": "a6a847c390a23b20",
                "type": "mytimeout",
                "z": "a42b83181f07f8d0",
                "name": "45 sec",
                "outtopic": "",
                "outsafe": "on",
                "outwarning": "Warning",
                "outunsafe": "off",
                "warning": "5",
                "timer": "45",
                "debug": false,
                "ndebug": false,
                "ignoreCase": false,
                "repeat": false,
                "again": false,
                "x": 730,
                "y": 180,
                "wires": [
                    [
                        "25e12cdd5eeefe18"
                    ],
                    []
                ]
            },
            {
                "id": "442af76f7b9f1d0a",
                "type": "mytimeout",
                "z": "a42b83181f07f8d0",
                "name": "3 sec",
                "outtopic": "",
                "outsafe": "on",
                "outwarning": "Warning",
                "outunsafe": "off",
                "warning": "1",
                "timer": "3",
                "debug": false,
                "ndebug": false,
                "ignoreCase": false,
                "repeat": false,
                "again": false,
                "x": 1290,
                "y": 120,
                "wires": [
                    [
                        "01e10f79b058e94d"
                    ],
                    []
                ]
            },
            {
                "id": "25e12cdd5eeefe18",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "",
                "rules": [
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "on",
                        "fromt": "str",
                        "to": "true",
                        "tot": "bool"
                    },
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "off",
                        "fromt": "str",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 890,
                "y": 180,
                "wires": [
                    [
                        "d5e9baf2e985c341"
                    ]
                ]
            },
            {
                "id": "d5e9baf2e985c341",
                "type": "switch",
                "z": "a42b83181f07f8d0",
                "name": "",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "true"
                    },
                    {
                        "t": "false"
                    },
                    {
                        "t": "eq",
                        "v": "",
                        "vt": "str"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 3,
                "x": 1150,
                "y": 260,
                "wires": [
                    [
                        "550905a564f09176"
                    ],
                    [
                        "550905a564f09176",
                        "0439088d7ec73749"
                    ],
                    []
                ]
            },
            {
                "id": "d7c7e0bfb963466c",
                "type": "switch",
                "z": "a42b83181f07f8d0",
                "name": "",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "true"
                    },
                    {
                        "t": "false"
                    },
                    {
                        "t": "eq",
                        "v": "",
                        "vt": "str"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 3,
                "x": 1550,
                "y": 40,
                "wires": [
                    [
                        "550905a564f09176"
                    ],
                    [
                        "550905a564f09176"
                    ],
                    []
                ]
            },
            {
                "id": "01e10f79b058e94d",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "",
                "rules": [
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "on",
                        "fromt": "str",
                        "to": "true",
                        "tot": "bool"
                    },
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "off",
                        "fromt": "str",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 1370,
                "y": 40,
                "wires": [
                    [
                        "d7c7e0bfb963466c"
                    ]
                ]
            },
            {
                "id": "9cf97a8724bea369",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "on",
                        "tot": "str"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 1130,
                "y": 80,
                "wires": [
                    [
                        "442af76f7b9f1d0a"
                    ]
                ]
            },
            {
                "id": "91fb51e7bf3d65f7",
                "type": "ioBroker get",
                "z": "a42b83181f07f8d0",
                "name": "Lampe ist?",
                "topic": "0_userdata.0.tests.Lampekueche",
                "attrname": "payload",
                "payloadType": "value",
                "errOnInvalidState": "nothing",
                "x": 430,
                "y": 300,
                "wires": [
                    [
                        "e1bc32d82926ab1a"
                    ]
                ]
            },
            {
                "id": "e1bc32d82926ab1a",
                "type": "switch",
                "z": "a42b83181f07f8d0",
                "name": "",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "false"
                    },
                    {
                        "t": "true"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 570,
                "y": 360,
                "wires": [
                    [
                        "32b9213c2fe970b0",
                        "bd795708de32c118"
                    ],
                    [
                        "407e2e376c0ee370",
                        "0439088d7ec73749",
                        "f8efa184517f5926",
                        "5ff36fd59f9b86a7"
                    ]
                ]
            },
            {
                "id": "f8efa184517f5926",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "Alles auf Anfang",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 880,
                "y": 420,
                "wires": [
                    [
                        "550905a564f09176"
                    ]
                ]
            },
            {
                "id": "5ff36fd59f9b86a7",
                "type": "change",
                "z": "a42b83181f07f8d0",
                "name": "stop",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "stop",
                        "tot": "str"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 650,
                "y": 260,
                "wires": [
                    [
                        "a6a847c390a23b20",
                        "442af76f7b9f1d0a"
                    ]
                ]
            }
        ]
        

        Daher bitte selbst probieren und tüfteln, falls was nicht so läuft, wie gewollt.

        Aphofis 2 Replies Last reply Reply Quote 0
        • Aphofis
          Aphofis @peterfido last edited by

          @peterfido
          Also vielleicht mal die ganze Steuerung

          Philips Hue Schalter schaltet nur 1000/2000/3000/4000
          Dieses wird per virtuellen Schaltern realisiert
          Damit das überhaupt klappt mit an aus mit einem Befehl
          Sprich Schalter hat nicht true/false sondern nur 1000
          Wobei der Wert nach 200ms ca umschaltet auf 1002 was aber ignoriert wird.
          Die anderen drei Button werden für andere hue Lampen genutzt.
          Die Bewegungsmelder sollen die küchenbeleuchtung einschalten und nach 3 min. Ausschalten ist der Roboter unterwegs sprich nicht auf der ladestation sollen die BWM abgeschaltet werden. Wenn ich den Lichtschalter betätige soll dieser nach 45 min. Abgeschaltet werden sollte ich das Licht mal vergessen.
          Ist schon im Bad passiert und ist ja unnötig Strom Verbrauch. Weil wenn ich den Lichtschalter benutze soll das Licht schon an bleiben. Wäre nicht nötig wenn der BWM bei Wiederbewegung funktionieren würde
          Dazu muss denke ich aber die True/false Schaltung
          Träge gemacht werden. Dann würde die 45 min. Schaltung unnötig

          1 Reply Last reply Reply Quote 0
          • Aphofis
            Aphofis @peterfido last edited by

            @peterfido
            Ich werde tüfteln

            1 Reply Last reply Reply Quote 0
            • Aphofis
              Aphofis @peterfido last edited by

              @peterfido
              Scheint alles zu funktionieren. Nur Wiederbewegung hatte ich noch nicht getestet ob das Licht dann an bleibt oder erstmal aus geht und dann wieder eingeschaltet wird.
              Aber an sich tolle Steuerung. Wie und wo kann man sowas bloß lernen und dann auch noch auf einem Mäusekino. Ich sage mal Vielen vielen Dank.

              Aphofis 1 Reply Last reply Reply Quote 0
              • Aphofis
                Aphofis @Aphofis last edited by Aphofis

                So siehts jetzt aus und scheint zu laufen.
                Wie gesagt bis auf die wiederbewegung klappt nicht.
                Ganz ehrlich gesagt, ich wüsste nicht mal wo ich da ansetzen soll um die schaltung träge zu machen damit nicht beim BWM auf jedes false zwischen den true reagiert wird sondern wenn keine Ahnung wenn wirklich 10 sek zB. false ist das dann erst ein false gesendet wird
                Hab jetzt die Steuerung in Küche und Bad integriert und bin so auch erstmal zufrieden. nur die Wiederbewegung ist halt etwas doof das dass nicht klappt. Ist aber in Öffentlichen Toiletten und Restaurants auch so das bei einer Sitzung das Licht einmal aus geht und erst wenn man sich bewegt das Licht wieder an geht. Ganz schlecht ist es nur wenn nicht jedes Klo einen BWM hat und man mit Handy Taschenlampe die Sitzung beenden muss. Da ist es so zumindest schon mal ein Anfang.

                [
                    {
                        "id": "b802892eed83e90f",
                        "type": "tab",
                        "label": "Flow 8",
                        "disabled": false,
                        "info": "",
                        "env": []
                    },
                    {
                        "id": "f00e20abd94ff43d",
                        "type": "junction",
                        "z": "b802892eed83e90f",
                        "x": 960,
                        "y": 320,
                        "wires": [
                            [
                                "141a052859674836",
                                "574a9f7ddc4f663b"
                            ]
                        ]
                    },
                    {
                        "id": "423ea0f1dc0e4d31",
                        "type": "junction",
                        "z": "b802892eed83e90f",
                        "x": 1440,
                        "y": 300,
                        "wires": [
                            [
                                "ff32f89078260f0e",
                                "67e2e01a1266d1c3",
                                "e98816534075b0f5",
                                "21f36ea2695afe19",
                                "a695276a00fe8f61"
                            ]
                        ]
                    },
                    {
                        "id": "a2104cdffd7ca75f",
                        "type": "inject",
                        "z": "b802892eed83e90f",
                        "name": "Test Bewegung",
                        "props": [
                            {
                                "p": "payload.motion",
                                "v": "true",
                                "vt": "bool"
                            },
                            {
                                "p": "topic",
                                "vt": "str"
                            }
                        ],
                        "repeat": "",
                        "crontab": "",
                        "once": false,
                        "onceDelay": 0.1,
                        "topic": "Bewegungsmelder",
                        "x": 120,
                        "y": 60,
                        "wires": [
                            [
                                "a919a4c30d900c39",
                                "0150c15cf7b51170"
                            ]
                        ]
                    },
                    {
                        "id": "ed06e85de97289c8",
                        "type": "debug",
                        "z": "b802892eed83e90f",
                        "name": "debug 3",
                        "active": false,
                        "tosidebar": true,
                        "console": false,
                        "tostatus": false,
                        "complete": "true",
                        "targetType": "full",
                        "statusVal": "",
                        "statusType": "auto",
                        "x": 1620,
                        "y": 140,
                        "wires": []
                    },
                    {
                        "id": "a919a4c30d900c39",
                        "type": "delay",
                        "z": "b802892eed83e90f",
                        "name": "",
                        "pauseType": "delay",
                        "timeout": "1",
                        "timeoutUnits": "seconds",
                        "rate": "1",
                        "nbRateUnits": "1",
                        "rateUnits": "second",
                        "randomFirst": "1",
                        "randomLast": "5",
                        "randomUnits": "seconds",
                        "drop": false,
                        "allowrate": false,
                        "outputs": 1,
                        "x": 380,
                        "y": 140,
                        "wires": [
                            [
                                "bee64eb116d76ed1"
                            ]
                        ]
                    },
                    {
                        "id": "bee64eb116d76ed1",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "motion:false",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload.motion",
                                "pt": "msg",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 390,
                        "y": 100,
                        "wires": [
                            [
                                "0150c15cf7b51170"
                            ]
                        ]
                    },
                    {
                        "id": "ab41883686b27cc0",
                        "type": "switch",
                        "z": "b802892eed83e90f",
                        "name": "Schalter",
                        "property": "stopp",
                        "propertyType": "flow",
                        "rules": [
                            {
                                "t": "true"
                            },
                            {
                                "t": "false"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 860,
                        "y": 80,
                        "wires": [
                            [],
                            [
                                "01fea99b98c641a3"
                            ]
                        ]
                    },
                    {
                        "id": "0395e4bbb7c67e21",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "Motion",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload",
                                "pt": "msg",
                                "to": "payload.motion",
                                "tot": "msg"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 590,
                        "y": 80,
                        "wires": [
                            [
                                "d24a5429e472b18a"
                            ]
                        ]
                    },
                    {
                        "id": "59792b228df9eb30",
                        "type": "comment",
                        "z": "b802892eed83e90f",
                        "name": "<< Bewegungsmelder |||||||||||||| Simulator  Beginn>>",
                        "info": "",
                        "x": 220,
                        "y": 20,
                        "wires": []
                    },
                    {
                        "id": "93f0d4c85ab42e59",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload",
                                "pt": "msg",
                                "to": "on",
                                "tot": "str"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 590,
                        "y": 160,
                        "wires": [
                            [
                                "ed2607cafe826532"
                            ]
                        ]
                    },
                    {
                        "id": "e22b60db6265e908",
                        "type": "switch",
                        "z": "b802892eed83e90f",
                        "name": "1000?",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "eq",
                                "v": "1000",
                                "vt": "num"
                            },
                            {
                                "t": "eq",
                                "v": "",
                                "vt": "num"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 210,
                        "y": 320,
                        "wires": [
                            [
                                "6ae2e0e61f81faeb"
                            ],
                            []
                        ]
                    },
                    {
                        "id": "01fea99b98c641a3",
                        "type": "switch",
                        "z": "b802892eed83e90f",
                        "name": "Robi",
                        "property": "BWM",
                        "propertyType": "flow",
                        "rules": [
                            {
                                "t": "true"
                            },
                            {
                                "t": "false"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 990,
                        "y": 80,
                        "wires": [
                            [
                                "ba0aea0ff71ebc3d"
                            ],
                            []
                        ]
                    },
                    {
                        "id": "7eea52e80cbe51f0",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "",
                        "rules": [
                            {
                                "t": "set",
                                "p": "stopp",
                                "pt": "flow",
                                "to": "true",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 680,
                        "y": 220,
                        "wires": [
                            []
                        ]
                    },
                    {
                        "id": "574a9f7ddc4f663b",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "löscheflow.stopp",
                        "rules": [
                            {
                                "t": "set",
                                "p": "stopp",
                                "pt": "flow",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 1280,
                        "y": 300,
                        "wires": [
                            []
                        ]
                    },
                    {
                        "id": "331a07cfba2d7df1",
                        "type": "function",
                        "z": "b802892eed83e90f",
                        "name": "Variablen Ini + Ausgabe",
                        "func": "node.status({ text: msg.payload });\n\nreturn msg;",
                        "outputs": 1,
                        "timeout": 0,
                        "noerr": 0,
                        "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\nflow.set(\"stopp\", false);\nflow.set(\"BWM\", true);\n",
                        "finalize": "",
                        "libs": [],
                        "x": 1410,
                        "y": 180,
                        "wires": [
                            [
                                "ed06e85de97289c8",
                                "423ea0f1dc0e4d31"
                            ]
                        ]
                    },
                    {
                        "id": "b9692c9131fb2ef5",
                        "type": "ioBroker in",
                        "z": "b802892eed83e90f",
                        "name": "Robi",
                        "attrname": "payload",
                        "topic": "mihome-vacuum.0.info.state",
                        "payloadType": "value",
                        "onlyack": "",
                        "func": "all",
                        "gap": "",
                        "fireOnStart": "false",
                        "outFormat": "MQTT",
                        "x": 50,
                        "y": 380,
                        "wires": [
                            [
                                "6b214a0a59b5e04a"
                            ]
                        ]
                    },
                    {
                        "id": "0150c15cf7b51170",
                        "type": "function",
                        "z": "b802892eed83e90f",
                        "name": "Ausgang BWM",
                        "func": "\nreturn msg;",
                        "outputs": 1,
                        "timeout": 0,
                        "noerr": 0,
                        "initialize": "",
                        "finalize": "",
                        "libs": [],
                        "x": 440,
                        "y": 60,
                        "wires": [
                            [
                                "0395e4bbb7c67e21"
                            ]
                        ]
                    },
                    {
                        "id": "b6b4c157c31e3701",
                        "type": "ioBroker in",
                        "z": "b802892eed83e90f",
                        "name": "KüSchalter",
                        "attrname": "payload",
                        "topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
                        "payloadType": "value",
                        "onlyack": "",
                        "func": "all",
                        "gap": "",
                        "fireOnStart": "false",
                        "outFormat": "MQTT",
                        "x": 60,
                        "y": 320,
                        "wires": [
                            [
                                "e22b60db6265e908"
                            ]
                        ]
                    },
                    {
                        "id": "6b214a0a59b5e04a",
                        "type": "switch",
                        "z": "b802892eed83e90f",
                        "name": "8?",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "eq",
                                "v": "8",
                                "vt": "num"
                            },
                            {
                                "t": "neq",
                                "v": "8",
                                "vt": "num"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 650,
                        "y": 380,
                        "wires": [
                            [
                                "7b9c0fa6e795af2d"
                            ],
                            [
                                "ccadbb1ee1de29e6"
                            ]
                        ]
                    },
                    {
                        "id": "7b9c0fa6e795af2d",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "setze Flow.BWM",
                        "rules": [
                            {
                                "t": "set",
                                "p": "BWM",
                                "pt": "flow",
                                "to": "true",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 810,
                        "y": 360,
                        "wires": [
                            [
                                "b117dac109d51b34"
                            ]
                        ]
                    },
                    {
                        "id": "ccadbb1ee1de29e6",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "lösche Flow.BWM",
                        "rules": [
                            {
                                "t": "set",
                                "p": "BWM",
                                "pt": "flow",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 810,
                        "y": 400,
                        "wires": [
                            [
                                "b117dac109d51b34"
                            ]
                        ]
                    },
                    {
                        "id": "558db419c5c37cca",
                        "type": "comment",
                        "z": "b802892eed83e90f",
                        "name": "evtl. gesperrt durch??",
                        "info": "",
                        "x": 860,
                        "y": 40,
                        "wires": []
                    },
                    {
                        "id": "d24a5429e472b18a",
                        "type": "switch",
                        "z": "b802892eed83e90f",
                        "name": "nur true",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "true"
                            },
                            {
                                "t": "false"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 720,
                        "y": 80,
                        "wires": [
                            [
                                "ab41883686b27cc0"
                            ],
                            []
                        ]
                    },
                    {
                        "id": "b117dac109d51b34",
                        "type": "debug",
                        "z": "b802892eed83e90f",
                        "name": "debug 4",
                        "active": false,
                        "tosidebar": true,
                        "console": false,
                        "tostatus": false,
                        "complete": "true",
                        "targetType": "full",
                        "statusVal": "",
                        "statusType": "auto",
                        "x": 1100,
                        "y": 380,
                        "wires": []
                    },
                    {
                        "id": "d64f728f4f574f51",
                        "type": "comment",
                        "z": "b802892eed83e90f",
                        "name": "<< Bewegungsmelder |||||||||||||| Simulator Ende >>",
                        "info": "",
                        "x": 190,
                        "y": 280,
                        "wires": []
                    },
                    {
                        "id": "91febc7692f9b822",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "",
                        "rules": [
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "on",
                                "fromt": "str",
                                "to": "true",
                                "tot": "bool"
                            },
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "off",
                                "fromt": "str",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 930,
                        "y": 140,
                        "wires": [
                            [
                                "d303b6e1817d8b77"
                            ]
                        ]
                    },
                    {
                        "id": "d303b6e1817d8b77",
                        "type": "switch",
                        "z": "b802892eed83e90f",
                        "name": "",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "true"
                            },
                            {
                                "t": "false"
                            },
                            {
                                "t": "eq",
                                "v": "",
                                "vt": "str"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 3,
                        "x": 1090,
                        "y": 120,
                        "wires": [
                            [
                                "331a07cfba2d7df1"
                            ],
                            [
                                "331a07cfba2d7df1",
                                "574a9f7ddc4f663b"
                            ],
                            []
                        ]
                    },
                    {
                        "id": "b4e55cb04c30244e",
                        "type": "switch",
                        "z": "b802892eed83e90f",
                        "name": "",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "true"
                            },
                            {
                                "t": "false"
                            },
                            {
                                "t": "eq",
                                "v": "",
                                "vt": "str"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 3,
                        "x": 1630,
                        "y": 60,
                        "wires": [
                            [
                                "331a07cfba2d7df1"
                            ],
                            [
                                "331a07cfba2d7df1"
                            ],
                            []
                        ]
                    },
                    {
                        "id": "90c9685b4a5344dc",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "",
                        "rules": [
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "on",
                                "fromt": "str",
                                "to": "true",
                                "tot": "bool"
                            },
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "off",
                                "fromt": "str",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 1470,
                        "y": 60,
                        "wires": [
                            [
                                "b4e55cb04c30244e"
                            ]
                        ]
                    },
                    {
                        "id": "ba0aea0ff71ebc3d",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload",
                                "pt": "msg",
                                "to": "on",
                                "tot": "str"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 1150,
                        "y": 60,
                        "wires": [
                            [
                                "fa5f2b5bcd258a98"
                            ]
                        ]
                    },
                    {
                        "id": "6ae2e0e61f81faeb",
                        "type": "ioBroker get",
                        "z": "b802892eed83e90f",
                        "name": "Virtuelle Lampe",
                        "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                        "attrname": "payload",
                        "payloadType": "value",
                        "errOnInvalidState": "nothing",
                        "x": 460,
                        "y": 320,
                        "wires": [
                            [
                                "cf3016a536d38a8d"
                            ]
                        ]
                    },
                    {
                        "id": "cf3016a536d38a8d",
                        "type": "switch",
                        "z": "b802892eed83e90f",
                        "name": "",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "false"
                            },
                            {
                                "t": "true"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 650,
                        "y": 320,
                        "wires": [
                            [
                                "7eea52e80cbe51f0",
                                "93f0d4c85ab42e59"
                            ],
                            [
                                "7b9c0fa6e795af2d",
                                "87ec46662c49de4e",
                                "f00e20abd94ff43d"
                            ]
                        ]
                    },
                    {
                        "id": "141a052859674836",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "Alles auf Anfang",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload",
                                "pt": "msg",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 1280,
                        "y": 340,
                        "wires": [
                            [
                                "331a07cfba2d7df1"
                            ]
                        ]
                    },
                    {
                        "id": "87ec46662c49de4e",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "stop",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload",
                                "pt": "msg",
                                "to": "stop",
                                "tot": "str"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 930,
                        "y": 280,
                        "wires": [
                            [
                                "ed2607cafe826532",
                                "fa5f2b5bcd258a98"
                            ]
                        ]
                    },
                    {
                        "id": "ed2607cafe826532",
                        "type": "mytimeout",
                        "z": "b802892eed83e90f",
                        "name": "45min.",
                        "outtopic": "",
                        "outsafe": "on",
                        "outwarning": "Warning",
                        "outunsafe": "off",
                        "warning": "10",
                        "timer": "2700",
                        "debug": false,
                        "ndebug": false,
                        "ignoreCase": false,
                        "repeat": false,
                        "again": false,
                        "x": 770,
                        "y": 160,
                        "wires": [
                            [
                                "91febc7692f9b822"
                            ],
                            []
                        ]
                    },
                    {
                        "id": "fa5f2b5bcd258a98",
                        "type": "mytimeout",
                        "z": "b802892eed83e90f",
                        "name": "3Min.",
                        "outtopic": "",
                        "outsafe": "on",
                        "outwarning": "Warning",
                        "outunsafe": "off",
                        "warning": "10",
                        "timer": "180",
                        "debug": false,
                        "ndebug": false,
                        "ignoreCase": false,
                        "repeat": false,
                        "again": false,
                        "x": 1310,
                        "y": 100,
                        "wires": [
                            [
                                "90c9685b4a5344dc"
                            ],
                            []
                        ]
                    },
                    {
                        "id": "802770af38c8534e",
                        "type": "hue-bridge-node",
                        "z": "b802892eed83e90f",
                        "name": "Hue",
                        "bridge": "cbd54dbabf6f65be",
                        "autoupdates": true,
                        "skipglobalevents": false,
                        "initevents": false,
                        "x": 90,
                        "y": 220,
                        "wires": [
                            [
                                "2e0c2a67486c0ac7"
                            ]
                        ]
                    },
                    {
                        "id": "2e0c2a67486c0ac7",
                        "type": "hue-motion",
                        "z": "b802892eed83e90f",
                        "name": "Küche Motion Sensor",
                        "bridge": "cbd54dbabf6f65be",
                        "sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
                        "skipevents": false,
                        "initevents": true,
                        "x": 140,
                        "y": 140,
                        "wires": [
                            [
                                "a919a4c30d900c39",
                                "0150c15cf7b51170"
                            ]
                        ]
                    },
                    {
                        "id": "21f36ea2695afe19",
                        "type": "ioBroker out",
                        "z": "b802892eed83e90f",
                        "name": "U-rechts",
                        "topic": "tuya.0.bfb09eea5dad3699abyrbu.20",
                        "ack": "false",
                        "autoCreate": "false",
                        "stateName": "",
                        "role": "",
                        "payloadType": "",
                        "readonly": "",
                        "stateUnit": "",
                        "stateMin": "",
                        "stateMax": "",
                        "x": 1600,
                        "y": 360,
                        "wires": []
                    },
                    {
                        "id": "084e7114b7ed1c61",
                        "type": "ioBroker out",
                        "z": "b802892eed83e90f",
                        "name": "Küche Decke",
                        "topic": "tuya.0.bfe4af976feb74d845vugp.1",
                        "ack": "false",
                        "autoCreate": "false",
                        "stateName": "",
                        "role": "",
                        "payloadType": "",
                        "readonly": "",
                        "stateUnit": "",
                        "stateMin": "",
                        "stateMax": "",
                        "x": 1730,
                        "y": 240,
                        "wires": []
                    },
                    {
                        "id": "ff32f89078260f0e",
                        "type": "ioBroker out",
                        "z": "b802892eed83e90f",
                        "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": 1620,
                        "y": 300,
                        "wires": []
                    },
                    {
                        "id": "442c2ef743d9599f",
                        "type": "debug",
                        "z": "b802892eed83e90f",
                        "name": "Küche",
                        "active": true,
                        "tosidebar": true,
                        "console": true,
                        "tostatus": false,
                        "complete": "payload",
                        "targetType": "msg",
                        "statusVal": "",
                        "statusType": "auto",
                        "x": 1620,
                        "y": 520,
                        "wires": []
                    },
                    {
                        "id": "67e2e01a1266d1c3",
                        "type": "delay",
                        "z": "b802892eed83e90f",
                        "name": "100ms",
                        "pauseType": "delay",
                        "timeout": "100",
                        "timeoutUnits": "milliseconds",
                        "rate": "1",
                        "nbRateUnits": "1",
                        "rateUnits": "second",
                        "randomFirst": "1",
                        "randomLast": "5",
                        "randomUnits": "seconds",
                        "drop": false,
                        "allowrate": false,
                        "outputs": 1,
                        "x": 1590,
                        "y": 240,
                        "wires": [
                            [
                                "084e7114b7ed1c61"
                            ]
                        ]
                    },
                    {
                        "id": "e98816534075b0f5",
                        "type": "change",
                        "z": "b802892eed83e90f",
                        "name": "Küche",
                        "rules": [
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "1000",
                                "fromt": "str",
                                "to": "Küche",
                                "tot": "str"
                            },
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "true",
                                "fromt": "bool",
                                "to": "Küche eingeschaltet",
                                "tot": "str"
                            },
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "false",
                                "fromt": "bool",
                                "to": "Küche ausgeschaltet",
                                "tot": "str"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 1490,
                        "y": 520,
                        "wires": [
                            [
                                "442c2ef743d9599f"
                            ]
                        ]
                    },
                    {
                        "id": "a695276a00fe8f61",
                        "type": "ioBroker out",
                        "z": "b802892eed83e90f",
                        "name": "U-links",
                        "topic": "hue.0.Hue_GordonX.Küche_Unterschr_Links.on",
                        "ack": "false",
                        "autoCreate": "false",
                        "stateName": "",
                        "role": "",
                        "payloadType": "",
                        "readonly": "",
                        "stateUnit": "",
                        "stateMin": "",
                        "stateMax": "",
                        "x": 1590,
                        "y": 440,
                        "wires": []
                    },
                    {
                        "id": "cbd54dbabf6f65be",
                        "type": "hue-bridge",
                        "name": "Hue GordonX",
                        "bridge": "192.168.0.8",
                        "key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d",
                        "worker": "10",
                        "autoupdates": true,
                        "disableupdates": false
                    }
                ]
                

                Screenshot 2025-06-14 225258.png

                1 Reply Last reply Reply Quote 0
                • P
                  peterfido last edited by

                  @aphofis Wenn Du die Laufzeit des Bewegungsmelders mit berücksichtigen möchtest, dann muss diese zyklisch abgefragt werden, und kommt dann zu der Laufzeit von drei Minuten dazu.
                  47519512-6e10-4be3-a714-e411fea93de2-image.png

                  [
                     {
                         "id": "b802892eed83e90f",
                         "type": "tab",
                         "label": "Flow 8",
                         "disabled": false,
                         "info": "",
                         "env": []
                     },
                     {
                         "id": "f00e20abd94ff43d",
                         "type": "junction",
                         "z": "b802892eed83e90f",
                         "x": 1120,
                         "y": 660,
                         "wires": [
                             [
                                 "141a052859674836",
                                 "574a9f7ddc4f663b",
                                 "b6322a40cf4557b3"
                             ]
                         ]
                     },
                     {
                         "id": "423ea0f1dc0e4d31",
                         "type": "junction",
                         "z": "b802892eed83e90f",
                         "x": 1960,
                         "y": 460,
                         "wires": [
                             [
                                 "ff32f89078260f0e",
                                 "67e2e01a1266d1c3",
                                 "e98816534075b0f5",
                                 "21f36ea2695afe19",
                                 "a695276a00fe8f61"
                             ]
                         ]
                     },
                     {
                         "id": "ae8ceff406113f11",
                         "type": "junction",
                         "z": "b802892eed83e90f",
                         "x": 1140,
                         "y": 260,
                         "wires": [
                             [
                                 "ba0aea0ff71ebc3d"
                             ]
                         ]
                     },
                     {
                         "id": "256e4df028333ee3",
                         "type": "junction",
                         "z": "b802892eed83e90f",
                         "x": 580,
                         "y": 60,
                         "wires": [
                             [
                                 "6ae2e0e61f81faeb"
                             ]
                         ]
                     },
                     {
                         "id": "9c7c62ee37b6b12c",
                         "type": "junction",
                         "z": "b802892eed83e90f",
                         "x": 540,
                         "y": 120,
                         "wires": [
                             [
                                 "d24a5429e472b18a"
                             ]
                         ]
                     },
                     {
                         "id": "d96f128a59bdfbb4",
                         "type": "junction",
                         "z": "b802892eed83e90f",
                         "x": 900,
                         "y": 440,
                         "wires": [
                             [
                                 "84bd4ea1d044fea4",
                                 "ed2607cafe826532"
                             ]
                         ]
                     },
                     {
                         "id": "84bd4ea1d044fea4",
                         "type": "junction",
                         "z": "b802892eed83e90f",
                         "x": 980,
                         "y": 360,
                         "wires": [
                             [
                                 "be66da991b562e24"
                             ]
                         ]
                     },
                     {
                         "id": "be66da991b562e24",
                         "type": "junction",
                         "z": "b802892eed83e90f",
                         "x": 1280,
                         "y": 360,
                         "wires": [
                             [
                                 "fa5f2b5bcd258a98"
                             ]
                         ]
                     },
                     {
                         "id": "a2104cdffd7ca75f",
                         "type": "inject",
                         "z": "b802892eed83e90f",
                         "name": "Test Bewegung",
                         "props": [
                             {
                                 "p": "payload.motion",
                                 "v": "true",
                                 "vt": "bool"
                             },
                             {
                                 "p": "topic",
                                 "vt": "str"
                             }
                         ],
                         "repeat": "",
                         "crontab": "",
                         "once": false,
                         "onceDelay": 0.1,
                         "topic": "Bewegungsmelder",
                         "x": 140,
                         "y": 380,
                         "wires": [
                             [
                                 "a919a4c30d900c39",
                                 "0150c15cf7b51170"
                             ]
                         ]
                     },
                     {
                         "id": "ed06e85de97289c8",
                         "type": "debug",
                         "z": "b802892eed83e90f",
                         "name": "debug 3",
                         "active": false,
                         "tosidebar": true,
                         "console": false,
                         "tostatus": false,
                         "complete": "true",
                         "targetType": "full",
                         "statusVal": "",
                         "statusType": "auto",
                         "x": 2000,
                         "y": 360,
                         "wires": []
                     },
                     {
                         "id": "a919a4c30d900c39",
                         "type": "delay",
                         "z": "b802892eed83e90f",
                         "name": "",
                         "pauseType": "delay",
                         "timeout": "10",
                         "timeoutUnits": "seconds",
                         "rate": "1",
                         "nbRateUnits": "1",
                         "rateUnits": "second",
                         "randomFirst": "1",
                         "randomLast": "5",
                         "randomUnits": "seconds",
                         "drop": false,
                         "allowrate": false,
                         "outputs": 1,
                         "x": 150,
                         "y": 460,
                         "wires": [
                             [
                                 "bee64eb116d76ed1"
                             ]
                         ]
                     },
                     {
                         "id": "bee64eb116d76ed1",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "motion:false",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "payload.motion",
                                 "pt": "msg",
                                 "to": "false",
                                 "tot": "bool"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 350,
                         "y": 460,
                         "wires": [
                             [
                                 "0150c15cf7b51170"
                             ]
                         ]
                     },
                     {
                         "id": "ab41883686b27cc0",
                         "type": "switch",
                         "z": "b802892eed83e90f",
                         "name": "Schalter",
                         "property": "stopp",
                         "propertyType": "flow",
                         "rules": [
                             {
                                 "t": "true"
                             },
                             {
                                 "t": "false"
                             }
                         ],
                         "checkall": "true",
                         "repair": false,
                         "outputs": 2,
                         "x": 920,
                         "y": 260,
                         "wires": [
                             [],
                             [
                                 "01fea99b98c641a3"
                             ]
                         ]
                     },
                     {
                         "id": "0395e4bbb7c67e21",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "Motion",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "bewegung",
                                 "pt": "flow",
                                 "to": "payload.motion",
                                 "tot": "msg"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 670,
                         "y": 320,
                         "wires": [
                             []
                         ]
                     },
                     {
                         "id": "59792b228df9eb30",
                         "type": "comment",
                         "z": "b802892eed83e90f",
                         "name": "<< Bewegungsmelder |||||||||||||| Simulator da kein Hue  Beginn>>",
                         "info": "",
                         "x": 270,
                         "y": 300,
                         "wires": []
                     },
                     {
                         "id": "93f0d4c85ab42e59",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "payload",
                                 "pt": "msg",
                                 "to": "on",
                                 "tot": "str"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 710,
                         "y": 400,
                         "wires": [
                             [
                                 "ed2607cafe826532"
                             ]
                         ]
                     },
                     {
                         "id": "e22b60db6265e908",
                         "type": "switch",
                         "z": "b802892eed83e90f",
                         "name": "1000?",
                         "property": "payload",
                         "propertyType": "msg",
                         "rules": [
                             {
                                 "t": "eq",
                                 "v": "1000",
                                 "vt": "num"
                             },
                             {
                                 "t": "eq",
                                 "v": "",
                                 "vt": "num"
                             }
                         ],
                         "checkall": "true",
                         "repair": false,
                         "outputs": 2,
                         "x": 250,
                         "y": 660,
                         "wires": [
                             [
                                 "35f7a8f381fdb099"
                             ],
                             []
                         ]
                     },
                     {
                         "id": "01fea99b98c641a3",
                         "type": "switch",
                         "z": "b802892eed83e90f",
                         "name": "Robi",
                         "property": "BWM",
                         "propertyType": "flow",
                         "rules": [
                             {
                                 "t": "true"
                             },
                             {
                                 "t": "false"
                             }
                         ],
                         "checkall": "true",
                         "repair": false,
                         "outputs": 2,
                         "x": 1050,
                         "y": 260,
                         "wires": [
                             [
                                 "ae8ceff406113f11"
                             ],
                             []
                         ]
                     },
                     {
                         "id": "7eea52e80cbe51f0",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "setze stopp",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "stopp",
                                 "pt": "flow",
                                 "to": "true",
                                 "tot": "bool"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 890,
                         "y": 600,
                         "wires": [
                             []
                         ]
                     },
                     {
                         "id": "574a9f7ddc4f663b",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "lösche stopp",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "stopp",
                                 "pt": "flow",
                                 "to": "false",
                                 "tot": "bool"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 1370,
                         "y": 600,
                         "wires": [
                             []
                         ]
                     },
                     {
                         "id": "331a07cfba2d7df1",
                         "type": "function",
                         "z": "b802892eed83e90f",
                         "name": "Variablen Ini + Ausgabe",
                         "func": "node.status({ text: msg.payload });\n\n// Für Tests Beginn\nflow.set(\"lampe_ist\", msg.payload); // Zeile für Normalbetrieb auskommentieren\n// Für Tests Ende\n\nreturn msg;",
                         "outputs": 1,
                         "timeout": 0,
                         "noerr": 0,
                         "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\n\nflow.set(\"stopp\", false);\nflow.set(\"BWM\", true);\nflow.set(\"bewegung\", false);\nflow.set(\"lampe_ist\", false);\n",
                         "finalize": "",
                         "libs": [],
                         "x": 1770,
                         "y": 380,
                         "wires": [
                             [
                                 "ed06e85de97289c8",
                                 "423ea0f1dc0e4d31"
                             ]
                         ]
                     },
                     {
                         "id": "b9692c9131fb2ef5",
                         "type": "ioBroker in",
                         "z": "b802892eed83e90f",
                         "name": "Robi",
                         "attrname": "payload",
                         "topic": "mihome-vacuum.0.info.state",
                         "payloadType": "value",
                         "onlyack": "",
                         "func": "all",
                         "gap": "",
                         "fireOnStart": "false",
                         "outFormat": "MQTT",
                         "x": 90,
                         "y": 780,
                         "wires": [
                             [
                                 "6b214a0a59b5e04a"
                             ]
                         ]
                     },
                     {
                         "id": "0150c15cf7b51170",
                         "type": "function",
                         "z": "b802892eed83e90f",
                         "name": "Ausgang BWM",
                         "func": "\nreturn msg;",
                         "outputs": 1,
                         "timeout": 0,
                         "noerr": 0,
                         "initialize": "",
                         "finalize": "",
                         "libs": [],
                         "x": 360,
                         "y": 360,
                         "wires": [
                             [
                                 "0395e4bbb7c67e21"
                             ]
                         ]
                     },
                     {
                         "id": "b6b4c157c31e3701",
                         "type": "ioBroker in",
                         "z": "b802892eed83e90f",
                         "name": "KüSchalter",
                         "attrname": "payload",
                         "topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
                         "payloadType": "value",
                         "onlyack": "",
                         "func": "all",
                         "gap": "",
                         "fireOnStart": "false",
                         "outFormat": "MQTT",
                         "x": 100,
                         "y": 680,
                         "wires": [
                             [
                                 "e22b60db6265e908"
                             ]
                         ]
                     },
                     {
                         "id": "6b214a0a59b5e04a",
                         "type": "switch",
                         "z": "b802892eed83e90f",
                         "name": "8?",
                         "property": "payload",
                         "propertyType": "msg",
                         "rules": [
                             {
                                 "t": "eq",
                                 "v": "8",
                                 "vt": "num"
                             },
                             {
                                 "t": "neq",
                                 "v": "8",
                                 "vt": "num"
                             }
                         ],
                         "checkall": "true",
                         "repair": false,
                         "outputs": 2,
                         "x": 630,
                         "y": 780,
                         "wires": [
                             [
                                 "7b9c0fa6e795af2d"
                             ],
                             [
                                 "ccadbb1ee1de29e6"
                             ]
                         ]
                     },
                     {
                         "id": "7b9c0fa6e795af2d",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "setze Flow.BWM",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "BWM",
                                 "pt": "flow",
                                 "to": "true",
                                 "tot": "bool"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 850,
                         "y": 760,
                         "wires": [
                             [
                                 "b117dac109d51b34"
                             ]
                         ]
                     },
                     {
                         "id": "ccadbb1ee1de29e6",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "lösche Flow.BWM",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "BWM",
                                 "pt": "flow",
                                 "to": "false",
                                 "tot": "bool"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 850,
                         "y": 800,
                         "wires": [
                             [
                                 "b117dac109d51b34"
                             ]
                         ]
                     },
                     {
                         "id": "558db419c5c37cca",
                         "type": "comment",
                         "z": "b802892eed83e90f",
                         "name": "evtl. gesperrt durch?? Beginn",
                         "info": "",
                         "x": 980,
                         "y": 220,
                         "wires": []
                     },
                     {
                         "id": "d24a5429e472b18a",
                         "type": "switch",
                         "z": "b802892eed83e90f",
                         "name": "nur true",
                         "property": "payload",
                         "propertyType": "msg",
                         "rules": [
                             {
                                 "t": "true"
                             },
                             {
                                 "t": "false"
                             }
                         ],
                         "checkall": "true",
                         "repair": false,
                         "outputs": 2,
                         "x": 740,
                         "y": 240,
                         "wires": [
                             [
                                 "ab41883686b27cc0"
                             ],
                             []
                         ]
                     },
                     {
                         "id": "b117dac109d51b34",
                         "type": "debug",
                         "z": "b802892eed83e90f",
                         "name": "debug 4",
                         "active": false,
                         "tosidebar": true,
                         "console": false,
                         "tostatus": false,
                         "complete": "true",
                         "targetType": "full",
                         "statusVal": "",
                         "statusType": "auto",
                         "x": 1040,
                         "y": 760,
                         "wires": []
                     },
                     {
                         "id": "91febc7692f9b822",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "",
                         "rules": [
                             {
                                 "t": "change",
                                 "p": "payload",
                                 "pt": "msg",
                                 "from": "on",
                                 "fromt": "str",
                                 "to": "true",
                                 "tot": "bool"
                             },
                             {
                                 "t": "change",
                                 "p": "payload",
                                 "pt": "msg",
                                 "from": "off",
                                 "fromt": "str",
                                 "to": "false",
                                 "tot": "bool"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 1290,
                         "y": 400,
                         "wires": [
                             [
                                 "d303b6e1817d8b77"
                             ]
                         ]
                     },
                     {
                         "id": "d303b6e1817d8b77",
                         "type": "switch",
                         "z": "b802892eed83e90f",
                         "name": "",
                         "property": "payload",
                         "propertyType": "msg",
                         "rules": [
                             {
                                 "t": "true"
                             },
                             {
                                 "t": "false"
                             },
                             {
                                 "t": "eq",
                                 "v": "",
                                 "vt": "str"
                             }
                         ],
                         "checkall": "true",
                         "repair": false,
                         "outputs": 3,
                         "x": 1470,
                         "y": 400,
                         "wires": [
                             [
                                 "331a07cfba2d7df1"
                             ],
                             [
                                 "331a07cfba2d7df1",
                                 "574a9f7ddc4f663b"
                             ],
                             []
                         ]
                     },
                     {
                         "id": "b4e55cb04c30244e",
                         "type": "switch",
                         "z": "b802892eed83e90f",
                         "name": "",
                         "property": "payload",
                         "propertyType": "msg",
                         "rules": [
                             {
                                 "t": "true"
                             },
                             {
                                 "t": "false"
                             },
                             {
                                 "t": "eq",
                                 "v": "",
                                 "vt": "str"
                             }
                         ],
                         "checkall": "true",
                         "repair": false,
                         "outputs": 3,
                         "x": 1770,
                         "y": 260,
                         "wires": [
                             [
                                 "331a07cfba2d7df1"
                             ],
                             [
                                 "331a07cfba2d7df1"
                             ],
                             []
                         ]
                     },
                     {
                         "id": "90c9685b4a5344dc",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "",
                         "rules": [
                             {
                                 "t": "change",
                                 "p": "payload",
                                 "pt": "msg",
                                 "from": "on",
                                 "fromt": "str",
                                 "to": "true",
                                 "tot": "bool"
                             },
                             {
                                 "t": "change",
                                 "p": "payload",
                                 "pt": "msg",
                                 "from": "off",
                                 "fromt": "str",
                                 "to": "false",
                                 "tot": "bool"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 1610,
                         "y": 260,
                         "wires": [
                             [
                                 "b4e55cb04c30244e"
                             ]
                         ]
                     },
                     {
                         "id": "ba0aea0ff71ebc3d",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "payload",
                                 "pt": "msg",
                                 "to": "on",
                                 "tot": "str"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 1250,
                         "y": 260,
                         "wires": [
                             [
                                 "fa5f2b5bcd258a98"
                             ]
                         ]
                     },
                     {
                         "id": "6ae2e0e61f81faeb",
                         "type": "ioBroker get",
                         "z": "b802892eed83e90f",
                         "name": "Virtuelle Lampe",
                         "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                         "attrname": "payload",
                         "payloadType": "value",
                         "errOnInvalidState": "nothing",
                         "x": 760,
                         "y": 100,
                         "wires": [
                             [
                                 "dc4b3ed2e3d1a857"
                             ]
                         ]
                     },
                     {
                         "id": "cf3016a536d38a8d",
                         "type": "switch",
                         "z": "b802892eed83e90f",
                         "name": "true false",
                         "property": "payload",
                         "propertyType": "msg",
                         "rules": [
                             {
                                 "t": "false"
                             },
                             {
                                 "t": "true"
                             }
                         ],
                         "checkall": "true",
                         "repair": false,
                         "outputs": 2,
                         "x": 680,
                         "y": 660,
                         "wires": [
                             [
                                 "7eea52e80cbe51f0",
                                 "93f0d4c85ab42e59"
                             ],
                             [
                                 "7b9c0fa6e795af2d",
                                 "87ec46662c49de4e",
                                 "f00e20abd94ff43d"
                             ]
                         ]
                     },
                     {
                         "id": "141a052859674836",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "Alles auf Anfang",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "payload",
                                 "pt": "msg",
                                 "to": "false",
                                 "tot": "bool"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 1380,
                         "y": 640,
                         "wires": [
                             [
                                 "331a07cfba2d7df1"
                             ]
                         ]
                     },
                     {
                         "id": "87ec46662c49de4e",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "stop",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "payload",
                                 "pt": "msg",
                                 "to": "stop",
                                 "tot": "str"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 1010,
                         "y": 640,
                         "wires": [
                             [
                                 "d96f128a59bdfbb4"
                             ]
                         ]
                     },
                     {
                         "id": "ed2607cafe826532",
                         "type": "mytimeout",
                         "z": "b802892eed83e90f",
                         "name": "45sek",
                         "outtopic": "",
                         "outsafe": "on",
                         "outwarning": "Warning",
                         "outunsafe": "off",
                         "warning": "10",
                         "timer": "45",
                         "debug": false,
                         "ndebug": false,
                         "ignoreCase": false,
                         "repeat": false,
                         "again": false,
                         "x": 1090,
                         "y": 400,
                         "wires": [
                             [
                                 "91febc7692f9b822"
                             ],
                             []
                         ]
                     },
                     {
                         "id": "fa5f2b5bcd258a98",
                         "type": "mytimeout",
                         "z": "b802892eed83e90f",
                         "name": "10Sek",
                         "outtopic": "",
                         "outsafe": "on",
                         "outwarning": "Warning",
                         "outunsafe": "off",
                         "warning": "10",
                         "timer": "10",
                         "debug": false,
                         "ndebug": false,
                         "ignoreCase": false,
                         "repeat": false,
                         "again": false,
                         "x": 1430,
                         "y": 260,
                         "wires": [
                             [
                                 "90c9685b4a5344dc"
                             ],
                             []
                         ]
                     },
                     {
                         "id": "21f36ea2695afe19",
                         "type": "ioBroker out",
                         "z": "b802892eed83e90f",
                         "name": "U-rechts",
                         "topic": "tuya.0.bfb09eea5dad3699abyrbu.20",
                         "ack": "false",
                         "autoCreate": "false",
                         "stateName": "",
                         "role": "",
                         "payloadType": "",
                         "readonly": "",
                         "stateUnit": "",
                         "stateMin": "",
                         "stateMax": "",
                         "x": 2140,
                         "y": 600,
                         "wires": []
                     },
                     {
                         "id": "084e7114b7ed1c61",
                         "type": "ioBroker out",
                         "z": "b802892eed83e90f",
                         "name": "Küche Decke",
                         "topic": "tuya.0.bfe4af976feb74d845vugp.1",
                         "ack": "false",
                         "autoCreate": "false",
                         "stateName": "",
                         "role": "",
                         "payloadType": "",
                         "readonly": "",
                         "stateUnit": "",
                         "stateMin": "",
                         "stateMax": "",
                         "x": 2210,
                         "y": 460,
                         "wires": []
                     },
                     {
                         "id": "ff32f89078260f0e",
                         "type": "ioBroker out",
                         "z": "b802892eed83e90f",
                         "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": 2160,
                         "y": 540,
                         "wires": []
                     },
                     {
                         "id": "442c2ef743d9599f",
                         "type": "debug",
                         "z": "b802892eed83e90f",
                         "name": "Küche",
                         "active": true,
                         "tosidebar": true,
                         "console": true,
                         "tostatus": false,
                         "complete": "payload",
                         "targetType": "msg",
                         "statusVal": "",
                         "statusType": "auto",
                         "x": 2160,
                         "y": 760,
                         "wires": []
                     },
                     {
                         "id": "67e2e01a1266d1c3",
                         "type": "delay",
                         "z": "b802892eed83e90f",
                         "name": "100ms",
                         "pauseType": "delay",
                         "timeout": "100",
                         "timeoutUnits": "milliseconds",
                         "rate": "1",
                         "nbRateUnits": "1",
                         "rateUnits": "second",
                         "randomFirst": "1",
                         "randomLast": "5",
                         "randomUnits": "seconds",
                         "drop": false,
                         "allowrate": false,
                         "outputs": 1,
                         "x": 2070,
                         "y": 460,
                         "wires": [
                             [
                                 "084e7114b7ed1c61"
                             ]
                         ]
                     },
                     {
                         "id": "e98816534075b0f5",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "Küche",
                         "rules": [
                             {
                                 "t": "change",
                                 "p": "payload",
                                 "pt": "msg",
                                 "from": "1000",
                                 "fromt": "str",
                                 "to": "Küche",
                                 "tot": "str"
                             },
                             {
                                 "t": "change",
                                 "p": "payload",
                                 "pt": "msg",
                                 "from": "true",
                                 "fromt": "bool",
                                 "to": "Küche eingeschaltet",
                                 "tot": "str"
                             },
                             {
                                 "t": "change",
                                 "p": "payload",
                                 "pt": "msg",
                                 "from": "false",
                                 "fromt": "bool",
                                 "to": "Küche ausgeschaltet",
                                 "tot": "str"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 2030,
                         "y": 760,
                         "wires": [
                             [
                                 "442c2ef743d9599f"
                             ]
                         ]
                     },
                     {
                         "id": "a695276a00fe8f61",
                         "type": "ioBroker out",
                         "z": "b802892eed83e90f",
                         "name": "U-links",
                         "topic": "hue.0.Hue_GordonX.Küche_Unterschr_Links.on",
                         "ack": "false",
                         "autoCreate": "false",
                         "stateName": "",
                         "role": "",
                         "payloadType": "",
                         "readonly": "",
                         "stateUnit": "",
                         "stateMin": "",
                         "stateMax": "",
                         "x": 2130,
                         "y": 680,
                         "wires": []
                     },
                     {
                         "id": "802770af38c8534e",
                         "type": "hue-bridge-node",
                         "z": "b802892eed83e90f",
                         "name": "Hue",
                         "bridge": "cbd54dbabf6f65be",
                         "autoupdates": true,
                         "skipglobalevents": false,
                         "initevents": false,
                         "x": 130,
                         "y": 160,
                         "wires": [
                             [
                                 "2e0c2a67486c0ac7"
                             ]
                         ]
                     },
                     {
                         "id": "2e0c2a67486c0ac7",
                         "type": "hue-motion",
                         "z": "b802892eed83e90f",
                         "name": "Küche Motion Sensor",
                         "bridge": "cbd54dbabf6f65be",
                         "sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
                         "skipevents": false,
                         "initevents": true,
                         "x": 360,
                         "y": 160,
                         "wires": [
                             [
                                 "0395e4bbb7c67e21"
                             ]
                         ]
                     },
                     {
                         "id": "83e1205cab7afd75",
                         "type": "inject",
                         "z": "b802892eed83e90f",
                         "name": "Takt",
                         "props": [
                             {
                                 "p": "payload"
                             },
                             {
                                 "p": "topic",
                                 "vt": "str"
                             }
                         ],
                         "repeat": "1",
                         "crontab": "",
                         "once": true,
                         "onceDelay": 0.1,
                         "topic": "Takt",
                         "payload": "true",
                         "payloadType": "bool",
                         "x": 130,
                         "y": 60,
                         "wires": [
                             [
                                 "26a06677287b879b",
                                 "256e4df028333ee3"
                             ]
                         ]
                     },
                     {
                         "id": "26a06677287b879b",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "payload",
                                 "pt": "msg",
                                 "to": "bewegung",
                                 "tot": "flow"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 350,
                         "y": 120,
                         "wires": [
                             [
                                 "9c7c62ee37b6b12c"
                             ]
                         ]
                     },
                     {
                         "id": "c8bd53de95a27a58",
                         "type": "inject",
                         "z": "b802892eed83e90f",
                         "name": "Test Schalter",
                         "props": [
                             {
                                 "p": "payload"
                             },
                             {
                                 "p": "topic",
                                 "vt": "str"
                             }
                         ],
                         "repeat": "",
                         "crontab": "",
                         "once": false,
                         "onceDelay": 0.1,
                         "topic": "",
                         "payload": "1000",
                         "payloadType": "num",
                         "x": 130,
                         "y": 600,
                         "wires": [
                             [
                                 "e22b60db6265e908"
                             ]
                         ]
                     },
                     {
                         "id": "b6322a40cf4557b3",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "lösche bewegung",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "bewegung",
                                 "pt": "flow",
                                 "to": "false",
                                 "tot": "bool"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 1390,
                         "y": 680,
                         "wires": [
                             []
                         ]
                     },
                     {
                         "id": "35f7a8f381fdb099",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "lichtan?",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "payload",
                                 "pt": "msg",
                                 "to": "lampe_ist",
                                 "tot": "flow"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 460,
                         "y": 660,
                         "wires": [
                             [
                                 "cf3016a536d38a8d"
                             ]
                         ]
                     },
                     {
                         "id": "dc4b3ed2e3d1a857",
                         "type": "change",
                         "z": "b802892eed83e90f",
                         "name": "Motion",
                         "rules": [
                             {
                                 "t": "set",
                                 "p": "lampe_ist",
                                 "pt": "flow",
                                 "to": "payload",
                                 "tot": "msg"
                             }
                         ],
                         "action": "",
                         "property": "",
                         "from": "",
                         "to": "",
                         "reg": false,
                         "x": 910,
                         "y": 100,
                         "wires": [
                             []
                         ]
                     },
                     {
                         "id": "704f9134130a0c13",
                         "type": "comment",
                         "z": "b802892eed83e90f",
                         "name": "Nötig für Simulation, da kein Tuya Ende",
                         "info": "",
                         "x": 830,
                         "y": 160,
                         "wires": []
                     },
                     {
                         "id": "105d29d40a2b08f3",
                         "type": "comment",
                         "z": "b802892eed83e90f",
                         "name": "Nötig für Simulation, da kein Tuya Beginn",
                         "info": "",
                         "x": 840,
                         "y": 40,
                         "wires": []
                     },
                     {
                         "id": "2e246cc32c852ec4",
                         "type": "comment",
                         "z": "b802892eed83e90f",
                         "name": "Nötig für Simulation, da kein Tuya",
                         "info": "",
                         "x": 470,
                         "y": 620,
                         "wires": []
                     },
                     {
                         "id": "5d18e186acebf108",
                         "type": "comment",
                         "z": "b802892eed83e90f",
                         "name": "Nötig für Simulation, da kein Tuya",
                         "info": "",
                         "x": 470,
                         "y": 720,
                         "wires": []
                     },
                     {
                         "id": "4208dd4576daa563",
                         "type": "comment",
                         "z": "b802892eed83e90f",
                         "name": "<< Bewegungsmelder |||||||||||||| Simulator da kein Hue  Ende>>",
                         "info": "",
                         "x": 260,
                         "y": 520,
                         "wires": []
                     },
                     {
                         "id": "f6fea6b16f9005b0",
                         "type": "comment",
                         "z": "b802892eed83e90f",
                         "name": "evtl. gesperrt durch?? Ende",
                         "info": "",
                         "x": 980,
                         "y": 320,
                         "wires": []
                     },
                     {
                         "id": "cbd54dbabf6f65be",
                         "type": "hue-bridge",
                         "name": "Hue GordonX",
                         "bridge": "192.168.0.8",
                         "key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d",
                         "worker": "10",
                         "autoupdates": true,
                         "disableupdates": false
                     }
                  ]
                  

                  Aphofis 1 Reply Last reply Reply Quote 0
                  • Aphofis
                    Aphofis @peterfido last edited by Aphofis

                    @peterfido
                    Mit der neuen Schaltung kann man per HUE schalter einmal zweimal klick nicht das licht ein und ausschalten es geht nur einschalten einschalten.
                    Das war in der vorherigen Schaltung korrekt da war jeder klick auf den schalter ein aus ein aus schalten.

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      peterfido @Aphofis last edited by

                      @aphofis Guck Dir mal die Function genauer an. Da ist ein Bemerkungstext drin, dass eine Zeile auskommentiert werden soll, wenn es produktiv genutzt wird. Evtl. war es das dann schon. Ich habe die Hardware nicht da, und habe daher die Lampe mit der Function simuliert.

                      Es ist nicht einfach, da was zu "testen", was man nicht hat.

                      1 Reply Last reply Reply Quote 0
                      • Aphofis
                        Aphofis last edited by

                        @peterfido

                        Du meinst in der Variable !?

                        flow.set("lampe_ist", msg.payload);
                        

                        Hatte ich auskommentiert, geht dann aber trotzdem nicht.

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          peterfido @Aphofis last edited by

                          @aphofis Da kommt dann die Fehlersuche. Also ein Node, z.B. den vom Bewegungsmelder deaktivieren, und schauen, ob es dann in der Simulation läuft. Man kann auch das Topic setzen und am Ende auswerten, wer die Lampe eingeschaltet hat.

                          Die Abfrage der Lampe_ist kann auch von oben wieder weg und nach unten als Ersatz für den von mir mit "kein Tuya" 'eingerahmten' Block.

                          Aphofis 1 Reply Last reply Reply Quote 0
                          • Aphofis
                            Aphofis @peterfido last edited by

                            @peterfido
                            Also es funktioniert soweit, doch wenn der Roboter status 5 hat und man in den BWM läuft geht trotzdem das Licht an und wenn man es dann per Schalter ausschalten will, muss man das 3-4 mal machen bis das licht aus bleibt. Wie man jetzt herausfindet wer nun das licht schaltet weiß ich nicht.

                            [
                                {
                                    "id": "a4c8574588c0de3c",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "motion:false",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "payload.motion",
                                            "pt": "msg",
                                            "to": "false",
                                            "tot": "bool"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 450,
                                    "y": 540,
                                    "wires": [
                                        [
                                            "169c9cd74337485f"
                                        ]
                                    ]
                                },
                                {
                                    "id": "f6bc1b429099ca57",
                                    "type": "switch",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Schalter",
                                    "property": "stopp",
                                    "propertyType": "flow",
                                    "rules": [
                                        {
                                            "t": "true"
                                        },
                                        {
                                            "t": "false"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 2,
                                    "x": 800,
                                    "y": 500,
                                    "wires": [
                                        [],
                                        [
                                            "ee120a8678492945"
                                        ]
                                    ]
                                },
                                {
                                    "id": "f2bfa3e6a90d48ed",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Motion",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "payload",
                                            "pt": "msg",
                                            "to": "payload.motion",
                                            "tot": "msg"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 610,
                                    "y": 500,
                                    "wires": [
                                        [
                                            "a7c05960eac63d95"
                                        ]
                                    ]
                                },
                                {
                                    "id": "8803280db34eb22b",
                                    "type": "comment",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Bewegungsmelder Simulator  Beginn",
                                    "info": "",
                                    "x": 160,
                                    "y": 420,
                                    "wires": []
                                },
                                {
                                    "id": "5925b1db569c695b",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "payload",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "payload",
                                            "pt": "msg",
                                            "to": "on",
                                            "tot": "str"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 620,
                                    "y": 540,
                                    "wires": [
                                        [
                                            "5f9435538ec534ed"
                                        ]
                                    ]
                                },
                                {
                                    "id": "95fda7a91b84c03f",
                                    "type": "switch",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "1000?",
                                    "property": "payload",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "eq",
                                            "v": "1000",
                                            "vt": "num"
                                        },
                                        {
                                            "t": "eq",
                                            "v": "",
                                            "vt": "num"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 2,
                                    "x": 250,
                                    "y": 600,
                                    "wires": [
                                        [
                                            "ee5a65e2896d189b"
                                        ],
                                        []
                                    ]
                                },
                                {
                                    "id": "ee120a8678492945",
                                    "type": "switch",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Robi",
                                    "property": "BWM",
                                    "propertyType": "flow",
                                    "rules": [
                                        {
                                            "t": "true"
                                        },
                                        {
                                            "t": "false"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 2,
                                    "x": 810,
                                    "y": 460,
                                    "wires": [
                                        [
                                            "8f4fcec5a545127f"
                                        ],
                                        []
                                    ]
                                },
                                {
                                    "id": "3648551e97ec2cab",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "flow/stop",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "stopp",
                                            "pt": "flow",
                                            "to": "true",
                                            "tot": "bool"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 620,
                                    "y": 580,
                                    "wires": [
                                        []
                                    ]
                                },
                                {
                                    "id": "a8b609cc983f0b37",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "löscheflow.stopp",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "stopp",
                                            "pt": "flow",
                                            "to": "false",
                                            "tot": "bool"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 1220,
                                    "y": 520,
                                    "wires": [
                                        []
                                    ]
                                },
                                {
                                    "id": "0e43213215238d27",
                                    "type": "function",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Variab.Ini + Ausg.",
                                    "func": "node.status({ text: msg.payload });\n\nreturn msg;",
                                    "outputs": 1,
                                    "timeout": 0,
                                    "noerr": 0,
                                    "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\nflow.set(\"stopp\", false);\nflow.set(\"BWM\", true);\n",
                                    "finalize": "",
                                    "libs": [],
                                    "x": 1430,
                                    "y": 460,
                                    "wires": [
                                        [
                                            "f1be18a24ca143f6"
                                        ]
                                    ]
                                },
                                {
                                    "id": "6500453922363ac9",
                                    "type": "ioBroker in",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Robi",
                                    "attrname": "payload",
                                    "topic": "mihome-vacuum.0.info.state",
                                    "payloadType": "value",
                                    "onlyack": "",
                                    "func": "all",
                                    "gap": "",
                                    "fireOnStart": "false",
                                    "outFormat": "MQTT",
                                    "x": 370,
                                    "y": 700,
                                    "wires": [
                                        [
                                            "81fd4c871d668d04"
                                        ]
                                    ]
                                },
                                {
                                    "id": "169c9cd74337485f",
                                    "type": "function",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Ausg.BWM",
                                    "func": "\nreturn msg;",
                                    "outputs": 1,
                                    "timeout": 0,
                                    "noerr": 0,
                                    "initialize": "",
                                    "finalize": "",
                                    "libs": [],
                                    "x": 450,
                                    "y": 500,
                                    "wires": [
                                        [
                                            "f2bfa3e6a90d48ed"
                                        ]
                                    ]
                                },
                                {
                                    "id": "c6d6a47028727285",
                                    "type": "ioBroker in",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "KüSchalter",
                                    "attrname": "payload",
                                    "topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
                                    "payloadType": "value",
                                    "onlyack": "",
                                    "func": "all",
                                    "gap": "",
                                    "fireOnStart": "false",
                                    "outFormat": "MQTT",
                                    "x": 80,
                                    "y": 600,
                                    "wires": [
                                        [
                                            "95fda7a91b84c03f"
                                        ]
                                    ]
                                },
                                {
                                    "id": "81fd4c871d668d04",
                                    "type": "switch",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "8?",
                                    "property": "payload",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "eq",
                                            "v": "8",
                                            "vt": "num"
                                        },
                                        {
                                            "t": "neq",
                                            "v": "8",
                                            "vt": "num"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 2,
                                    "x": 490,
                                    "y": 680,
                                    "wires": [
                                        [
                                            "638dc14da90f5eb4"
                                        ],
                                        [
                                            "542b940ecfefa127"
                                        ]
                                    ]
                                },
                                {
                                    "id": "638dc14da90f5eb4",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "setze Flow.BWM",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "BWM",
                                            "pt": "flow",
                                            "to": "true",
                                            "tot": "bool"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 650,
                                    "y": 660,
                                    "wires": [
                                        [
                                            "3803f5607daeb485"
                                        ]
                                    ]
                                },
                                {
                                    "id": "542b940ecfefa127",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "lösche Flow.BWM",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "BWM",
                                            "pt": "flow",
                                            "to": "false",
                                            "tot": "bool"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 650,
                                    "y": 700,
                                    "wires": [
                                        [
                                            "3803f5607daeb485"
                                        ]
                                    ]
                                },
                                {
                                    "id": "2bb3725204a30905",
                                    "type": "comment",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "evtl. gesperrt durch??",
                                    "info": "",
                                    "x": 800,
                                    "y": 380,
                                    "wires": []
                                },
                                {
                                    "id": "a7c05960eac63d95",
                                    "type": "switch",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "nur true",
                                    "property": "payload",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "true"
                                        },
                                        {
                                            "t": "false"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 2,
                                    "x": 640,
                                    "y": 460,
                                    "wires": [
                                        [
                                            "f6bc1b429099ca57"
                                        ],
                                        []
                                    ]
                                },
                                {
                                    "id": "3803f5607daeb485",
                                    "type": "debug",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "debug 9",
                                    "active": false,
                                    "tosidebar": true,
                                    "console": false,
                                    "tostatus": false,
                                    "complete": "true",
                                    "targetType": "full",
                                    "statusVal": "",
                                    "statusType": "auto",
                                    "x": 820,
                                    "y": 680,
                                    "wires": []
                                },
                                {
                                    "id": "86ed2879e6ab1742",
                                    "type": "comment",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Bewegungsmelder Simulator Ende",
                                    "info": "",
                                    "x": 160,
                                    "y": 560,
                                    "wires": []
                                },
                                {
                                    "id": "4deb5666bac8cf44",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "on/off",
                                    "rules": [
                                        {
                                            "t": "change",
                                            "p": "payload",
                                            "pt": "msg",
                                            "from": "on",
                                            "fromt": "str",
                                            "to": "true",
                                            "tot": "bool"
                                        },
                                        {
                                            "t": "change",
                                            "p": "payload",
                                            "pt": "msg",
                                            "from": "off",
                                            "fromt": "str",
                                            "to": "false",
                                            "tot": "bool"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 890,
                                    "y": 560,
                                    "wires": [
                                        [
                                            "d2eeea8c88021d24"
                                        ]
                                    ]
                                },
                                {
                                    "id": "d2eeea8c88021d24",
                                    "type": "switch",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "",
                                    "property": "payload",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "true"
                                        },
                                        {
                                            "t": "false"
                                        },
                                        {
                                            "t": "eq",
                                            "v": "",
                                            "vt": "str"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 3,
                                    "x": 1010,
                                    "y": 560,
                                    "wires": [
                                        [
                                            "1584a54e77837dbd"
                                        ],
                                        [
                                            "a8b609cc983f0b37",
                                            "1584a54e77837dbd"
                                        ],
                                        []
                                    ]
                                },
                                {
                                    "id": "774f8f940a2c4c96",
                                    "type": "switch",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "",
                                    "property": "payload",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "true"
                                        },
                                        {
                                            "t": "false"
                                        },
                                        {
                                            "t": "eq",
                                            "v": "",
                                            "vt": "str"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 3,
                                    "x": 1190,
                                    "y": 460,
                                    "wires": [
                                        [
                                            "0e43213215238d27"
                                        ],
                                        [
                                            "0e43213215238d27"
                                        ],
                                        []
                                    ]
                                },
                                {
                                    "id": "bcc31acbfde45d97",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "on/off",
                                    "rules": [
                                        {
                                            "t": "change",
                                            "p": "payload",
                                            "pt": "msg",
                                            "from": "on",
                                            "fromt": "str",
                                            "to": "true",
                                            "tot": "bool"
                                        },
                                        {
                                            "t": "change",
                                            "p": "payload",
                                            "pt": "msg",
                                            "from": "off",
                                            "fromt": "str",
                                            "to": "false",
                                            "tot": "bool"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 990,
                                    "y": 460,
                                    "wires": [
                                        [
                                            "774f8f940a2c4c96"
                                        ]
                                    ]
                                },
                                {
                                    "id": "8f4fcec5a545127f",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "on",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "payload",
                                            "pt": "msg",
                                            "to": "on",
                                            "tot": "str"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 810,
                                    "y": 420,
                                    "wires": [
                                        [
                                            "e8865a546b6ee97f"
                                        ]
                                    ]
                                },
                                {
                                    "id": "ee5a65e2896d189b",
                                    "type": "ioBroker get",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Virtuelle Lampe",
                                    "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                                    "attrname": "payload",
                                    "payloadType": "value",
                                    "errOnInvalidState": "nothing",
                                    "x": 340,
                                    "y": 640,
                                    "wires": [
                                        [
                                            "661eb84a02820976"
                                        ]
                                    ]
                                },
                                {
                                    "id": "661eb84a02820976",
                                    "type": "switch",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "",
                                    "property": "payload",
                                    "propertyType": "msg",
                                    "rules": [
                                        {
                                            "t": "false"
                                        },
                                        {
                                            "t": "true"
                                        }
                                    ],
                                    "checkall": "true",
                                    "repair": false,
                                    "outputs": 2,
                                    "x": 430,
                                    "y": 580,
                                    "wires": [
                                        [
                                            "a8a0cb4a1682f9f2",
                                            "3bd2c8cd8fbc4e0d"
                                        ],
                                        [
                                            "638dc14da90f5eb4",
                                            "d5b7b0bf08213264",
                                            "8791ca72f579691c"
                                        ]
                                    ]
                                },
                                {
                                    "id": "3c6f79231d0fc04b",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Alles auf Anfang",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "payload",
                                            "pt": "msg",
                                            "to": "false",
                                            "tot": "bool"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 1220,
                                    "y": 560,
                                    "wires": [
                                        [
                                            "0e43213215238d27"
                                        ]
                                    ]
                                },
                                {
                                    "id": "d5b7b0bf08213264",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "stop",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "payload",
                                            "pt": "msg",
                                            "to": "stop",
                                            "tot": "str"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 610,
                                    "y": 620,
                                    "wires": [
                                        [
                                            "5f9435538ec534ed",
                                            "9b6cc9d834347e2b"
                                        ]
                                    ]
                                },
                                {
                                    "id": "5f9435538ec534ed",
                                    "type": "mytimeout",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "10min.",
                                    "outtopic": "",
                                    "outsafe": "on",
                                    "outwarning": "Warning",
                                    "outunsafe": "off",
                                    "warning": "10",
                                    "timer": "600",
                                    "debug": false,
                                    "ndebug": false,
                                    "ignoreCase": false,
                                    "repeat": false,
                                    "again": false,
                                    "x": 770,
                                    "y": 560,
                                    "wires": [
                                        [
                                            "4deb5666bac8cf44"
                                        ],
                                        []
                                    ]
                                },
                                {
                                    "id": "e8865a546b6ee97f",
                                    "type": "mytimeout",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "3Min.",
                                    "outtopic": "",
                                    "outsafe": "on",
                                    "outwarning": "Warning",
                                    "outunsafe": "off",
                                    "warning": "10",
                                    "timer": "180",
                                    "debug": false,
                                    "ndebug": false,
                                    "ignoreCase": false,
                                    "repeat": false,
                                    "again": false,
                                    "x": 990,
                                    "y": 500,
                                    "wires": [
                                        [
                                            "bcc31acbfde45d97"
                                        ],
                                        []
                                    ]
                                },
                                {
                                    "id": "166ff2a331d49e9e",
                                    "type": "hue-bridge-node",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Hue",
                                    "bridge": "cbd54dbabf6f65be",
                                    "autoupdates": true,
                                    "skipglobalevents": false,
                                    "initevents": false,
                                    "x": 130,
                                    "y": 500,
                                    "wires": [
                                        [
                                            "d500eca26ab86278"
                                        ]
                                    ]
                                },
                                {
                                    "id": "d500eca26ab86278",
                                    "type": "hue-motion",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "KüMo",
                                    "bridge": "cbd54dbabf6f65be",
                                    "sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
                                    "skipevents": false,
                                    "initevents": true,
                                    "x": 270,
                                    "y": 500,
                                    "wires": [
                                        [
                                            "169c9cd74337485f",
                                            "a4c8574588c0de3c"
                                        ]
                                    ]
                                },
                                {
                                    "id": "631201f88292c2d6",
                                    "type": "ioBroker out",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "U-rechts",
                                    "topic": "tuya.0.bfb09eea5dad3699abyrbu.20",
                                    "ack": "false",
                                    "autoCreate": "false",
                                    "stateName": "",
                                    "role": "",
                                    "payloadType": "",
                                    "readonly": "",
                                    "stateUnit": "",
                                    "stateMin": "",
                                    "stateMax": "",
                                    "x": 1320,
                                    "y": 740,
                                    "wires": []
                                },
                                {
                                    "id": "400b88291d913b81",
                                    "type": "ioBroker out",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Küche Decke",
                                    "topic": "tuya.0.bfe4af976feb74d845vugp.1",
                                    "ack": "false",
                                    "autoCreate": "false",
                                    "stateName": "",
                                    "role": "",
                                    "payloadType": "",
                                    "readonly": "",
                                    "stateUnit": "",
                                    "stateMin": "",
                                    "stateMax": "",
                                    "x": 1330,
                                    "y": 620,
                                    "wires": []
                                },
                                {
                                    "id": "ce64922d78c18bb2",
                                    "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": 1340,
                                    "y": 680,
                                    "wires": []
                                },
                                {
                                    "id": "b16aaa4000874ffd",
                                    "type": "debug",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Küche",
                                    "active": true,
                                    "tosidebar": true,
                                    "console": true,
                                    "tostatus": false,
                                    "complete": "payload",
                                    "targetType": "msg",
                                    "statusVal": "",
                                    "statusType": "auto",
                                    "x": 1440,
                                    "y": 860,
                                    "wires": []
                                },
                                {
                                    "id": "f5195df37114b7de",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Küche",
                                    "rules": [
                                        {
                                            "t": "change",
                                            "p": "payload",
                                            "pt": "msg",
                                            "from": "1000",
                                            "fromt": "str",
                                            "to": "Küche",
                                            "tot": "str"
                                        },
                                        {
                                            "t": "change",
                                            "p": "payload",
                                            "pt": "msg",
                                            "from": "true",
                                            "fromt": "bool",
                                            "to": "Küche eingeschaltet",
                                            "tot": "str"
                                        },
                                        {
                                            "t": "change",
                                            "p": "payload",
                                            "pt": "msg",
                                            "from": "false",
                                            "fromt": "bool",
                                            "to": "Küche ausgeschaltet",
                                            "tot": "str"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 1310,
                                    "y": 860,
                                    "wires": [
                                        [
                                            "b16aaa4000874ffd"
                                        ]
                                    ]
                                },
                                {
                                    "id": "08276b1f6580fc56",
                                    "type": "ioBroker out",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "U-links",
                                    "topic": "hue.0.Hue_GordonX.Küche_Unterschr_Links.on",
                                    "ack": "false",
                                    "autoCreate": "false",
                                    "stateName": "",
                                    "role": "",
                                    "payloadType": "",
                                    "readonly": "",
                                    "stateUnit": "",
                                    "stateMin": "",
                                    "stateMax": "",
                                    "x": 1430,
                                    "y": 800,
                                    "wires": []
                                },
                                {
                                    "id": "587e1a24a2250226",
                                    "type": "inject",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "",
                                    "props": [
                                        {
                                            "p": "payload"
                                        },
                                        {
                                            "p": "topic",
                                            "vt": "str"
                                        }
                                    ],
                                    "repeat": "",
                                    "crontab": "",
                                    "once": false,
                                    "onceDelay": 0.1,
                                    "topic": "",
                                    "payload": "1000",
                                    "payloadType": "str",
                                    "x": 90,
                                    "y": 720,
                                    "wires": [
                                        [
                                            "95fda7a91b84c03f"
                                        ]
                                    ]
                                },
                                {
                                    "id": "f3e6cb95fd339887",
                                    "type": "ioBroker in",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "VIS-Küche",
                                    "attrname": "payload",
                                    "topic": "0_userdata.0.GordonX-Home.0.Küche.VIS-Küche",
                                    "payloadType": "value",
                                    "onlyack": "",
                                    "func": "all",
                                    "gap": "",
                                    "fireOnStart": "false",
                                    "outFormat": "MQTT",
                                    "x": 80,
                                    "y": 660,
                                    "wires": [
                                        [
                                            "95fda7a91b84c03f"
                                        ]
                                    ]
                                },
                                {
                                    "id": "3c0717cd3d6e108e",
                                    "type": "delay",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "100ms",
                                    "pauseType": "delay",
                                    "timeout": "100",
                                    "timeoutUnits": "milliseconds",
                                    "rate": "1",
                                    "nbRateUnits": "1",
                                    "rateUnits": "second",
                                    "randomFirst": "1",
                                    "randomLast": "5",
                                    "randomUnits": "seconds",
                                    "drop": false,
                                    "allowrate": false,
                                    "outputs": 1,
                                    "x": 1310,
                                    "y": 800,
                                    "wires": [
                                        [
                                            "08276b1f6580fc56"
                                        ]
                                    ]
                                },
                                {
                                    "id": "805251b70f5d5a93",
                                    "type": "inject",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "Test Bewegung",
                                    "props": [
                                        {
                                            "p": "payload.motion",
                                            "v": "true",
                                            "vt": "bool"
                                        },
                                        {
                                            "p": "topic",
                                            "vt": "str"
                                        }
                                    ],
                                    "repeat": "",
                                    "crontab": "",
                                    "once": false,
                                    "onceDelay": 0.1,
                                    "topic": "Bewegungsmelder",
                                    "x": 240,
                                    "y": 460,
                                    "wires": [
                                        [
                                            "169c9cd74337485f",
                                            "e1f5f49327a29a8a"
                                        ]
                                    ]
                                },
                                {
                                    "id": "e1f5f49327a29a8a",
                                    "type": "change",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "name": "motion:false",
                                    "rules": [
                                        {
                                            "t": "set",
                                            "p": "payload.motion",
                                            "pt": "msg",
                                            "to": "false",
                                            "tot": "bool"
                                        }
                                    ],
                                    "action": "",
                                    "property": "",
                                    "from": "",
                                    "to": "",
                                    "reg": false,
                                    "x": 450,
                                    "y": 460,
                                    "wires": [
                                        [
                                            "169c9cd74337485f"
                                        ]
                                    ]
                                },
                                {
                                    "id": "90f844739a331c64",
                                    "type": "junction",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "x": 1060,
                                    "y": 600,
                                    "wires": [
                                        [
                                            "3c6f79231d0fc04b",
                                            "a8b609cc983f0b37"
                                        ]
                                    ]
                                },
                                {
                                    "id": "f1be18a24ca143f6",
                                    "type": "junction",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "x": 1160,
                                    "y": 680,
                                    "wires": [
                                        [
                                            "ce64922d78c18bb2",
                                            "f5195df37114b7de",
                                            "631201f88292c2d6",
                                            "400b88291d913b81",
                                            "3c0717cd3d6e108e"
                                        ]
                                    ]
                                },
                                {
                                    "id": "1584a54e77837dbd",
                                    "type": "junction",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "x": 1100,
                                    "y": 480,
                                    "wires": [
                                        [
                                            "612158a90f7d1a23"
                                        ]
                                    ]
                                },
                                {
                                    "id": "e9a12ac84d11dd0e",
                                    "type": "junction",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "x": 980,
                                    "y": 640,
                                    "wires": [
                                        [
                                            "90f844739a331c64"
                                        ]
                                    ]
                                },
                                {
                                    "id": "a8a0cb4a1682f9f2",
                                    "type": "junction",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "x": 540,
                                    "y": 560,
                                    "wires": [
                                        [
                                            "5925b1db569c695b"
                                        ]
                                    ]
                                },
                                {
                                    "id": "3bd2c8cd8fbc4e0d",
                                    "type": "junction",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "x": 540,
                                    "y": 580,
                                    "wires": [
                                        [
                                            "3648551e97ec2cab"
                                        ]
                                    ]
                                },
                                {
                                    "id": "9b6cc9d834347e2b",
                                    "type": "junction",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "x": 880,
                                    "y": 620,
                                    "wires": [
                                        [
                                            "e8865a546b6ee97f"
                                        ]
                                    ]
                                },
                                {
                                    "id": "612158a90f7d1a23",
                                    "type": "junction",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "x": 1260,
                                    "y": 480,
                                    "wires": [
                                        [
                                            "0e43213215238d27"
                                        ]
                                    ]
                                },
                                {
                                    "id": "8791ca72f579691c",
                                    "type": "junction",
                                    "z": "f40fbc4eb5ac4f7a",
                                    "x": 560,
                                    "y": 640,
                                    "wires": [
                                        [
                                            "e9a12ac84d11dd0e"
                                        ]
                                    ]
                                },
                                {
                                    "id": "cbd54dbabf6f65be",
                                    "type": "hue-bridge",
                                    "name": "Hue GordonX",
                                    "bridge": "192.168.0.8",
                                    "key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d",
                                    "worker": "10",
                                    "autoupdates": true,
                                    "disableupdates": false
                                }
                            ]
                            

                            Screenshot 2025-06-18 152859.png

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              peterfido @Aphofis last edited by

                              @aphofis Das ist eine neue Variante. Meine "Simulation" des HUE Bewegungsmelders hast Du noch nicht verinnerlicht. Die ist rein für Tests, oder, wenn man wie ich keinen HUE BWM hat. Das ist nur für die Simulation zum Testen, und dann auch erst nach einer Zeit x vorgesehen. Jetzt wird zeitgleich payload.motion auf false gesetzt, auch wenn der HUE BWM meldet.

                              Ich habe es jetzt nicht importiert / ausprobiert.

                              Eine Idee:
                              Der HUE Bewegungsmelder geht seine eigenen Wege. Wenn das Licht nicht aus, bzw. gleich wieder an geht, könnte einer erkannten, oder noch anstehenden Bewegung geschuldet sein. Da könnte man eine Sperrvarable setzen, bzw. nur Änderungen durchlassen. Zumindest lief die von mir zuletzt gepostete Variante in meiner Testumgebung. Möglich, dass Dein BWM / Taster / Schalter da was unerwartetes losschickt.

                              Hier mein aufgeräumter Flow.

                              [
                                 {
                                     "id": "b802892eed83e90f",
                                     "type": "tab",
                                     "label": "Flow 8",
                                     "disabled": false,
                                     "info": "",
                                     "env": []
                                 },
                                 {
                                     "id": "f00e20abd94ff43d",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 1120,
                                     "y": 660,
                                     "wires": [
                                         [
                                             "141a052859674836",
                                             "574a9f7ddc4f663b",
                                             "b6322a40cf4557b3"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "423ea0f1dc0e4d31",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 1960,
                                     "y": 460,
                                     "wires": [
                                         [
                                             "ff32f89078260f0e",
                                             "67e2e01a1266d1c3",
                                             "e98816534075b0f5",
                                             "21f36ea2695afe19",
                                             "a695276a00fe8f61"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "ae8ceff406113f11",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 1140,
                                     "y": 260,
                                     "wires": [
                                         [
                                             "ba0aea0ff71ebc3d"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "9c7c62ee37b6b12c",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 520,
                                     "y": 60,
                                     "wires": [
                                         [
                                             "d24a5429e472b18a"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "d96f128a59bdfbb4",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 900,
                                     "y": 440,
                                     "wires": [
                                         [
                                             "84bd4ea1d044fea4",
                                             "ed2607cafe826532"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "84bd4ea1d044fea4",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 980,
                                     "y": 360,
                                     "wires": [
                                         [
                                             "be66da991b562e24"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "be66da991b562e24",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 1280,
                                     "y": 360,
                                     "wires": [
                                         [
                                             "fa5f2b5bcd258a98"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "8355cf791b8a8b1b",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 580,
                                     "y": 560,
                                     "wires": [
                                         [
                                             "e22b60db6265e908"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "1ee1fe89c1628b34",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 580,
                                     "y": 560,
                                     "wires": [
                                         [
                                             "e22b60db6265e908"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "f3921b2658b5916c",
                                     "type": "junction",
                                     "z": "b802892eed83e90f",
                                     "x": 240,
                                     "y": 560,
                                     "wires": [
                                         [
                                             "1ee1fe89c1628b34"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "a2104cdffd7ca75f",
                                     "type": "inject",
                                     "z": "b802892eed83e90f",
                                     "name": "Test Bewegung",
                                     "props": [
                                         {
                                             "p": "payload.motion",
                                             "v": "true",
                                             "vt": "bool"
                                         },
                                         {
                                             "p": "topic",
                                             "vt": "str"
                                         }
                                     ],
                                     "repeat": "",
                                     "crontab": "",
                                     "once": false,
                                     "onceDelay": 0.1,
                                     "topic": "Bewegungsmelder",
                                     "x": 140,
                                     "y": 380,
                                     "wires": [
                                         [
                                             "a919a4c30d900c39",
                                             "0150c15cf7b51170"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "ed06e85de97289c8",
                                     "type": "debug",
                                     "z": "b802892eed83e90f",
                                     "name": "debug 3",
                                     "active": true,
                                     "tosidebar": true,
                                     "console": false,
                                     "tostatus": false,
                                     "complete": "true",
                                     "targetType": "full",
                                     "statusVal": "",
                                     "statusType": "auto",
                                     "x": 2000,
                                     "y": 360,
                                     "wires": []
                                 },
                                 {
                                     "id": "a919a4c30d900c39",
                                     "type": "delay",
                                     "z": "b802892eed83e90f",
                                     "name": "",
                                     "pauseType": "delay",
                                     "timeout": "30",
                                     "timeoutUnits": "seconds",
                                     "rate": "1",
                                     "nbRateUnits": "1",
                                     "rateUnits": "second",
                                     "randomFirst": "1",
                                     "randomLast": "5",
                                     "randomUnits": "seconds",
                                     "drop": false,
                                     "allowrate": false,
                                     "outputs": 1,
                                     "x": 150,
                                     "y": 460,
                                     "wires": [
                                         [
                                             "bee64eb116d76ed1"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "bee64eb116d76ed1",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "motion:false",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "payload.motion",
                                             "pt": "msg",
                                             "to": "false",
                                             "tot": "bool"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 350,
                                     "y": 460,
                                     "wires": [
                                         [
                                             "0150c15cf7b51170"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "ab41883686b27cc0",
                                     "type": "switch",
                                     "z": "b802892eed83e90f",
                                     "name": "Schalter",
                                     "property": "stopp",
                                     "propertyType": "flow",
                                     "rules": [
                                         {
                                             "t": "true"
                                         },
                                         {
                                             "t": "false"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 2,
                                     "x": 920,
                                     "y": 260,
                                     "wires": [
                                         [],
                                         [
                                             "01fea99b98c641a3"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "0395e4bbb7c67e21",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "Motion",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "bewegung",
                                             "pt": "flow",
                                             "to": "payload.motion",
                                             "tot": "msg"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 670,
                                     "y": 320,
                                     "wires": [
                                         []
                                     ]
                                 },
                                 {
                                     "id": "59792b228df9eb30",
                                     "type": "comment",
                                     "z": "b802892eed83e90f",
                                     "name": "Beginn << Für Simulation Für Simulation Für Simulation Für Simulation >>",
                                     "info": "",
                                     "x": 280,
                                     "y": 300,
                                     "wires": []
                                 },
                                 {
                                     "id": "93f0d4c85ab42e59",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "payload",
                                             "pt": "msg",
                                             "to": "on",
                                             "tot": "str"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 710,
                                     "y": 400,
                                     "wires": [
                                         [
                                             "ed2607cafe826532"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "e22b60db6265e908",
                                     "type": "switch",
                                     "z": "b802892eed83e90f",
                                     "name": "1000?",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "eq",
                                             "v": "1000",
                                             "vt": "num"
                                         },
                                         {
                                             "t": "eq",
                                             "v": "",
                                             "vt": "num"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 2,
                                     "x": 310,
                                     "y": 660,
                                     "wires": [
                                         [
                                             "6ae2e0e61f81faeb"
                                         ],
                                         []
                                     ]
                                 },
                                 {
                                     "id": "01fea99b98c641a3",
                                     "type": "switch",
                                     "z": "b802892eed83e90f",
                                     "name": "Robi",
                                     "property": "BWM",
                                     "propertyType": "flow",
                                     "rules": [
                                         {
                                             "t": "true"
                                         },
                                         {
                                             "t": "false"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 2,
                                     "x": 1050,
                                     "y": 260,
                                     "wires": [
                                         [
                                             "ae8ceff406113f11"
                                         ],
                                         []
                                     ]
                                 },
                                 {
                                     "id": "7eea52e80cbe51f0",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "setze stopp",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "stopp",
                                             "pt": "flow",
                                             "to": "true",
                                             "tot": "bool"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 890,
                                     "y": 600,
                                     "wires": [
                                         []
                                     ]
                                 },
                                 {
                                     "id": "574a9f7ddc4f663b",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "lösche stopp",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "stopp",
                                             "pt": "flow",
                                             "to": "false",
                                             "tot": "bool"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1370,
                                     "y": 600,
                                     "wires": [
                                         []
                                     ]
                                 },
                                 {
                                     "id": "331a07cfba2d7df1",
                                     "type": "function",
                                     "z": "b802892eed83e90f",
                                     "name": "Variablen Ini + Ausgabe",
                                     "func": "node.status({ text: msg.payload });\n\nreturn msg;",
                                     "outputs": 1,
                                     "timeout": 0,
                                     "noerr": 0,
                                     "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\n\nflow.set(\"stopp\", false);\nflow.set(\"BWM\", true);\nflow.set(\"bewegung\", false);\n",
                                     "finalize": "",
                                     "libs": [],
                                     "x": 1770,
                                     "y": 380,
                                     "wires": [
                                         [
                                             "ed06e85de97289c8",
                                             "423ea0f1dc0e4d31"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "b9692c9131fb2ef5",
                                     "type": "ioBroker in",
                                     "z": "b802892eed83e90f",
                                     "name": "Robi",
                                     "attrname": "payload",
                                     "topic": "mihome-vacuum.0.info.state",
                                     "payloadType": "value",
                                     "onlyack": "",
                                     "func": "all",
                                     "gap": "",
                                     "fireOnStart": "false",
                                     "outFormat": "MQTT",
                                     "x": 90,
                                     "y": 780,
                                     "wires": [
                                         [
                                             "6b214a0a59b5e04a"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "0150c15cf7b51170",
                                     "type": "function",
                                     "z": "b802892eed83e90f",
                                     "name": "Ausgang BWM",
                                     "func": "\nreturn msg;",
                                     "outputs": 1,
                                     "timeout": 0,
                                     "noerr": 0,
                                     "initialize": "",
                                     "finalize": "",
                                     "libs": [],
                                     "x": 360,
                                     "y": 360,
                                     "wires": [
                                         [
                                             "0395e4bbb7c67e21"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "b6b4c157c31e3701",
                                     "type": "ioBroker in",
                                     "z": "b802892eed83e90f",
                                     "name": "KüSchalter",
                                     "attrname": "payload",
                                     "topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
                                     "payloadType": "value",
                                     "onlyack": "",
                                     "func": "all",
                                     "gap": "",
                                     "fireOnStart": "false",
                                     "outFormat": "MQTT",
                                     "x": 100,
                                     "y": 680,
                                     "wires": [
                                         [
                                             "e22b60db6265e908"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "6b214a0a59b5e04a",
                                     "type": "switch",
                                     "z": "b802892eed83e90f",
                                     "name": "8?",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "eq",
                                             "v": "8",
                                             "vt": "num"
                                         },
                                         {
                                             "t": "neq",
                                             "v": "8",
                                             "vt": "num"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 2,
                                     "x": 630,
                                     "y": 780,
                                     "wires": [
                                         [
                                             "7b9c0fa6e795af2d"
                                         ],
                                         [
                                             "ccadbb1ee1de29e6"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "7b9c0fa6e795af2d",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "setze Flow.BWM",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "BWM",
                                             "pt": "flow",
                                             "to": "true",
                                             "tot": "bool"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 850,
                                     "y": 760,
                                     "wires": [
                                         [
                                             "b117dac109d51b34"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "ccadbb1ee1de29e6",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "lösche Flow.BWM",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "BWM",
                                             "pt": "flow",
                                             "to": "false",
                                             "tot": "bool"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 850,
                                     "y": 800,
                                     "wires": [
                                         [
                                             "b117dac109d51b34"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "558db419c5c37cca",
                                     "type": "comment",
                                     "z": "b802892eed83e90f",
                                     "name": "evtl. gesperrt durch?? Beginn",
                                     "info": "",
                                     "x": 980,
                                     "y": 220,
                                     "wires": []
                                 },
                                 {
                                     "id": "d24a5429e472b18a",
                                     "type": "switch",
                                     "z": "b802892eed83e90f",
                                     "name": "nur true",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "true"
                                         },
                                         {
                                             "t": "false"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 2,
                                     "x": 740,
                                     "y": 240,
                                     "wires": [
                                         [
                                             "ab41883686b27cc0"
                                         ],
                                         []
                                     ]
                                 },
                                 {
                                     "id": "b117dac109d51b34",
                                     "type": "debug",
                                     "z": "b802892eed83e90f",
                                     "name": "debug 4",
                                     "active": false,
                                     "tosidebar": true,
                                     "console": false,
                                     "tostatus": false,
                                     "complete": "true",
                                     "targetType": "full",
                                     "statusVal": "",
                                     "statusType": "auto",
                                     "x": 1040,
                                     "y": 760,
                                     "wires": []
                                 },
                                 {
                                     "id": "91febc7692f9b822",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "change",
                                             "p": "payload",
                                             "pt": "msg",
                                             "from": "on",
                                             "fromt": "str",
                                             "to": "true",
                                             "tot": "bool"
                                         },
                                         {
                                             "t": "change",
                                             "p": "payload",
                                             "pt": "msg",
                                             "from": "off",
                                             "fromt": "str",
                                             "to": "false",
                                             "tot": "bool"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1290,
                                     "y": 400,
                                     "wires": [
                                         [
                                             "d303b6e1817d8b77"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "d303b6e1817d8b77",
                                     "type": "switch",
                                     "z": "b802892eed83e90f",
                                     "name": "",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "true"
                                         },
                                         {
                                             "t": "false"
                                         },
                                         {
                                             "t": "eq",
                                             "v": "",
                                             "vt": "str"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 3,
                                     "x": 1470,
                                     "y": 400,
                                     "wires": [
                                         [
                                             "331a07cfba2d7df1"
                                         ],
                                         [
                                             "331a07cfba2d7df1",
                                             "574a9f7ddc4f663b"
                                         ],
                                         []
                                     ]
                                 },
                                 {
                                     "id": "b4e55cb04c30244e",
                                     "type": "switch",
                                     "z": "b802892eed83e90f",
                                     "name": "",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "true"
                                         },
                                         {
                                             "t": "false"
                                         },
                                         {
                                             "t": "eq",
                                             "v": "",
                                             "vt": "str"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 3,
                                     "x": 1770,
                                     "y": 260,
                                     "wires": [
                                         [
                                             "331a07cfba2d7df1"
                                         ],
                                         [
                                             "331a07cfba2d7df1"
                                         ],
                                         []
                                     ]
                                 },
                                 {
                                     "id": "90c9685b4a5344dc",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "change",
                                             "p": "payload",
                                             "pt": "msg",
                                             "from": "on",
                                             "fromt": "str",
                                             "to": "true",
                                             "tot": "bool"
                                         },
                                         {
                                             "t": "change",
                                             "p": "payload",
                                             "pt": "msg",
                                             "from": "off",
                                             "fromt": "str",
                                             "to": "false",
                                             "tot": "bool"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1610,
                                     "y": 260,
                                     "wires": [
                                         [
                                             "b4e55cb04c30244e"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "ba0aea0ff71ebc3d",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "payload",
                                             "pt": "msg",
                                             "to": "on",
                                             "tot": "str"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1250,
                                     "y": 260,
                                     "wires": [
                                         [
                                             "fa5f2b5bcd258a98"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "6ae2e0e61f81faeb",
                                     "type": "ioBroker get",
                                     "z": "b802892eed83e90f",
                                     "name": "Virtuelle Lampe",
                                     "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                                     "attrname": "payload",
                                     "payloadType": "value",
                                     "errOnInvalidState": "nothing",
                                     "x": 500,
                                     "y": 660,
                                     "wires": [
                                         [
                                             "cf3016a536d38a8d"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "cf3016a536d38a8d",
                                     "type": "switch",
                                     "z": "b802892eed83e90f",
                                     "name": "true false",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "false"
                                         },
                                         {
                                             "t": "true"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 2,
                                     "x": 680,
                                     "y": 660,
                                     "wires": [
                                         [
                                             "7eea52e80cbe51f0",
                                             "93f0d4c85ab42e59"
                                         ],
                                         [
                                             "7b9c0fa6e795af2d",
                                             "87ec46662c49de4e",
                                             "f00e20abd94ff43d"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "141a052859674836",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "Alles auf Anfang",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "payload",
                                             "pt": "msg",
                                             "to": "false",
                                             "tot": "bool"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1380,
                                     "y": 640,
                                     "wires": [
                                         [
                                             "331a07cfba2d7df1"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "87ec46662c49de4e",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "stop",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "payload",
                                             "pt": "msg",
                                             "to": "stop",
                                             "tot": "str"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1010,
                                     "y": 640,
                                     "wires": [
                                         [
                                             "d96f128a59bdfbb4"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "ed2607cafe826532",
                                     "type": "mytimeout",
                                     "z": "b802892eed83e90f",
                                     "name": "45sek",
                                     "outtopic": "",
                                     "outsafe": "on",
                                     "outwarning": "Warning",
                                     "outunsafe": "off",
                                     "warning": "10",
                                     "timer": "60",
                                     "debug": false,
                                     "ndebug": false,
                                     "ignoreCase": false,
                                     "repeat": false,
                                     "again": false,
                                     "x": 1090,
                                     "y": 400,
                                     "wires": [
                                         [
                                             "91febc7692f9b822"
                                         ],
                                         []
                                     ]
                                 },
                                 {
                                     "id": "fa5f2b5bcd258a98",
                                     "type": "mytimeout",
                                     "z": "b802892eed83e90f",
                                     "name": "10Sek",
                                     "outtopic": "",
                                     "outsafe": "on",
                                     "outwarning": "Warning",
                                     "outunsafe": "off",
                                     "warning": "10",
                                     "timer": "30",
                                     "debug": false,
                                     "ndebug": false,
                                     "ignoreCase": false,
                                     "repeat": false,
                                     "again": false,
                                     "x": 1430,
                                     "y": 260,
                                     "wires": [
                                         [
                                             "90c9685b4a5344dc"
                                         ],
                                         []
                                     ]
                                 },
                                 {
                                     "id": "21f36ea2695afe19",
                                     "type": "ioBroker out",
                                     "z": "b802892eed83e90f",
                                     "name": "U-rechts",
                                     "topic": "tuya.0.bfb09eea5dad3699abyrbu.20",
                                     "ack": "false",
                                     "autoCreate": "false",
                                     "stateName": "",
                                     "role": "",
                                     "payloadType": "",
                                     "readonly": "",
                                     "stateUnit": "",
                                     "stateMin": "",
                                     "stateMax": "",
                                     "x": 2140,
                                     "y": 600,
                                     "wires": []
                                 },
                                 {
                                     "id": "084e7114b7ed1c61",
                                     "type": "ioBroker out",
                                     "z": "b802892eed83e90f",
                                     "name": "Küche Decke",
                                     "topic": "tuya.0.bfe4af976feb74d845vugp.1",
                                     "ack": "false",
                                     "autoCreate": "false",
                                     "stateName": "",
                                     "role": "",
                                     "payloadType": "",
                                     "readonly": "",
                                     "stateUnit": "",
                                     "stateMin": "",
                                     "stateMax": "",
                                     "x": 2210,
                                     "y": 460,
                                     "wires": []
                                 },
                                 {
                                     "id": "ff32f89078260f0e",
                                     "type": "ioBroker out",
                                     "z": "b802892eed83e90f",
                                     "name": "Virtuel Switch 1",
                                     "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                                     "ack": "false",
                                     "autoCreate": "true",
                                     "stateName": "Simlulierte Lampe",
                                     "role": "value",
                                     "payloadType": "boolean",
                                     "readonly": "",
                                     "stateUnit": "",
                                     "stateMin": "",
                                     "stateMax": "",
                                     "x": 2160,
                                     "y": 540,
                                     "wires": []
                                 },
                                 {
                                     "id": "442c2ef743d9599f",
                                     "type": "debug",
                                     "z": "b802892eed83e90f",
                                     "name": "Küche",
                                     "active": false,
                                     "tosidebar": true,
                                     "console": true,
                                     "tostatus": false,
                                     "complete": "payload",
                                     "targetType": "msg",
                                     "statusVal": "",
                                     "statusType": "auto",
                                     "x": 2160,
                                     "y": 760,
                                     "wires": []
                                 },
                                 {
                                     "id": "67e2e01a1266d1c3",
                                     "type": "delay",
                                     "z": "b802892eed83e90f",
                                     "name": "100ms",
                                     "pauseType": "delay",
                                     "timeout": "100",
                                     "timeoutUnits": "milliseconds",
                                     "rate": "1",
                                     "nbRateUnits": "1",
                                     "rateUnits": "second",
                                     "randomFirst": "1",
                                     "randomLast": "5",
                                     "randomUnits": "seconds",
                                     "drop": false,
                                     "allowrate": false,
                                     "outputs": 1,
                                     "x": 2070,
                                     "y": 460,
                                     "wires": [
                                         [
                                             "084e7114b7ed1c61"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "e98816534075b0f5",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "Küche",
                                     "rules": [
                                         {
                                             "t": "change",
                                             "p": "payload",
                                             "pt": "msg",
                                             "from": "1000",
                                             "fromt": "str",
                                             "to": "Küche",
                                             "tot": "str"
                                         },
                                         {
                                             "t": "change",
                                             "p": "payload",
                                             "pt": "msg",
                                             "from": "true",
                                             "fromt": "bool",
                                             "to": "Küche eingeschaltet",
                                             "tot": "str"
                                         },
                                         {
                                             "t": "change",
                                             "p": "payload",
                                             "pt": "msg",
                                             "from": "false",
                                             "fromt": "bool",
                                             "to": "Küche ausgeschaltet",
                                             "tot": "str"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 2030,
                                     "y": 760,
                                     "wires": [
                                         [
                                             "442c2ef743d9599f"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "a695276a00fe8f61",
                                     "type": "ioBroker out",
                                     "z": "b802892eed83e90f",
                                     "name": "U-links",
                                     "topic": "hue.0.Hue_GordonX.Küche_Unterschr_Links.on",
                                     "ack": "false",
                                     "autoCreate": "false",
                                     "stateName": "",
                                     "role": "",
                                     "payloadType": "",
                                     "readonly": "",
                                     "stateUnit": "",
                                     "stateMin": "",
                                     "stateMax": "",
                                     "x": 2130,
                                     "y": 680,
                                     "wires": []
                                 },
                                 {
                                     "id": "802770af38c8534e",
                                     "type": "hue-bridge-node",
                                     "z": "b802892eed83e90f",
                                     "name": "Hue",
                                     "bridge": "cbd54dbabf6f65be",
                                     "autoupdates": true,
                                     "skipglobalevents": false,
                                     "initevents": false,
                                     "x": 130,
                                     "y": 160,
                                     "wires": [
                                         [
                                             "2e0c2a67486c0ac7"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "2e0c2a67486c0ac7",
                                     "type": "hue-motion",
                                     "z": "b802892eed83e90f",
                                     "name": "Küche Motion Sensor",
                                     "bridge": "cbd54dbabf6f65be",
                                     "sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
                                     "skipevents": false,
                                     "initevents": true,
                                     "x": 360,
                                     "y": 160,
                                     "wires": [
                                         [
                                             "0395e4bbb7c67e21"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "83e1205cab7afd75",
                                     "type": "inject",
                                     "z": "b802892eed83e90f",
                                     "name": "Takt",
                                     "props": [
                                         {
                                             "p": "payload"
                                         },
                                         {
                                             "p": "topic",
                                             "vt": "str"
                                         }
                                     ],
                                     "repeat": "1",
                                     "crontab": "",
                                     "once": true,
                                     "onceDelay": 0.1,
                                     "topic": "Takt",
                                     "payload": "true",
                                     "payloadType": "bool",
                                     "x": 130,
                                     "y": 60,
                                     "wires": [
                                         [
                                             "26a06677287b879b"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "26a06677287b879b",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "payload",
                                             "pt": "msg",
                                             "to": "bewegung",
                                             "tot": "flow"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 370,
                                     "y": 60,
                                     "wires": [
                                         [
                                             "9c7c62ee37b6b12c"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "c8bd53de95a27a58",
                                     "type": "inject",
                                     "z": "b802892eed83e90f",
                                     "name": "Test Schalter",
                                     "props": [
                                         {
                                             "p": "payload"
                                         },
                                         {
                                             "p": "topic",
                                             "vt": "str"
                                         }
                                     ],
                                     "repeat": "",
                                     "crontab": "",
                                     "once": false,
                                     "onceDelay": 0.1,
                                     "topic": "",
                                     "payload": "1000",
                                     "payloadType": "num",
                                     "x": 130,
                                     "y": 520,
                                     "wires": [
                                         [
                                             "64bf8df5efc25d40",
                                             "f3921b2658b5916c"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "b6322a40cf4557b3",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "lösche bewegung",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "bewegung",
                                             "pt": "flow",
                                             "to": "false",
                                             "tot": "bool"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 1390,
                                     "y": 680,
                                     "wires": [
                                         []
                                     ]
                                 },
                                 {
                                     "id": "4208dd4576daa563",
                                     "type": "comment",
                                     "z": "b802892eed83e90f",
                                     "name": "Ende << Für Simulation Für Simulation Für Simulation Für Simulation >>",
                                     "info": "",
                                     "x": 270,
                                     "y": 580,
                                     "wires": []
                                 },
                                 {
                                     "id": "f6fea6b16f9005b0",
                                     "type": "comment",
                                     "z": "b802892eed83e90f",
                                     "name": "evtl. gesperrt durch?? Ende",
                                     "info": "",
                                     "x": 980,
                                     "y": 320,
                                     "wires": []
                                 },
                                 {
                                     "id": "64bf8df5efc25d40",
                                     "type": "delay",
                                     "z": "b802892eed83e90f",
                                     "name": "200 ms",
                                     "pauseType": "delay",
                                     "timeout": "200",
                                     "timeoutUnits": "milliseconds",
                                     "rate": "1",
                                     "nbRateUnits": "1",
                                     "rateUnits": "second",
                                     "randomFirst": "1",
                                     "randomLast": "5",
                                     "randomUnits": "seconds",
                                     "drop": false,
                                     "allowrate": false,
                                     "outputs": 1,
                                     "x": 300,
                                     "y": 520,
                                     "wires": [
                                         [
                                             "d628f1137cfb08c1"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "d628f1137cfb08c1",
                                     "type": "change",
                                     "z": "b802892eed83e90f",
                                     "name": "1002",
                                     "rules": [
                                         {
                                             "t": "set",
                                             "p": "payload",
                                             "pt": "msg",
                                             "to": "1002",
                                             "tot": "num"
                                         }
                                     ],
                                     "action": "",
                                     "property": "",
                                     "from": "",
                                     "to": "",
                                     "reg": false,
                                     "x": 430,
                                     "y": 520,
                                     "wires": [
                                         [
                                             "8355cf791b8a8b1b"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "9a70fab410cfbdae",
                                     "type": "inject",
                                     "z": "b802892eed83e90f",
                                     "name": "Test Robi 8",
                                     "props": [
                                         {
                                             "p": "payload"
                                         },
                                         {
                                             "p": "topic",
                                             "vt": "str"
                                         }
                                     ],
                                     "repeat": "",
                                     "crontab": "",
                                     "once": false,
                                     "onceDelay": 0.1,
                                     "topic": "",
                                     "payload": "8",
                                     "payloadType": "num",
                                     "x": 120,
                                     "y": 840,
                                     "wires": [
                                         [
                                             "6b214a0a59b5e04a"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "10a3703ea5e9c5fd",
                                     "type": "inject",
                                     "z": "b802892eed83e90f",
                                     "name": "Test Robi 5",
                                     "props": [
                                         {
                                             "p": "payload"
                                         },
                                         {
                                             "p": "topic",
                                             "vt": "str"
                                         }
                                     ],
                                     "repeat": "",
                                     "crontab": "",
                                     "once": false,
                                     "onceDelay": 0.1,
                                     "topic": "",
                                     "payload": "5",
                                     "payloadType": "num",
                                     "x": 120,
                                     "y": 900,
                                     "wires": [
                                         [
                                             "6b214a0a59b5e04a"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "cbd54dbabf6f65be",
                                     "type": "hue-bridge",
                                     "name": "Hue GordonX",
                                     "bridge": "192.168.0.8",
                                     "key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d",
                                     "worker": "10",
                                     "autoupdates": true,
                                     "disableupdates": false
                                 }
                              ]
                              

                              Aphofis 1 Reply Last reply Reply Quote 0
                              • Aphofis
                                Aphofis @peterfido last edited by Aphofis

                                @peterfido
                                Also soweit funktionierts nur irgend etwas schaltet mitten drin nach klick schalter die lampen ab
                                hab schon paar debug nodes angehängt finde aber nicht wer das macht.
                                Wenn man nach der selbst abschaltung dann in den BWM läuft geht das licht wieder an.
                                Wenn man also schalter schaltet geht das licht nach paar sekunden alleine aus und es kommt keine debug ausgabe. geht man in den BWM gehts licht wieder an und bleibt auch für eingestellte zeit an und bei wiederbewegung blitzt das licht einmal kurz und ist dann aber wieder an.

                                BWM / Roboter Sauger funktioniert soweit.

                                [
                                    {
                                        "id": "cd388a27e1177b2a",
                                        "type": "tab",
                                        "label": "Flow 8",
                                        "disabled": false,
                                        "info": "",
                                        "env": []
                                    },
                                    {
                                        "id": "c858be985d04ff23",
                                        "type": "junction",
                                        "z": "cd388a27e1177b2a",
                                        "x": 680,
                                        "y": 560,
                                        "wires": [
                                            [
                                                "e52cacfb28f4eef0",
                                                "d4243e5842d002b7",
                                                "f4dd19c85bec8f67"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "49ed5c100ffadbfb",
                                        "type": "junction",
                                        "z": "cd388a27e1177b2a",
                                        "x": 1060,
                                        "y": 600,
                                        "wires": [
                                            [
                                                "3da3568f5cb1d905",
                                                "d9b21aa55e80ae44",
                                                "c9f5b344739be161",
                                                "a0d644333024864d"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "6b29472d446bd70a",
                                        "type": "junction",
                                        "z": "cd388a27e1177b2a",
                                        "x": 680,
                                        "y": 320,
                                        "wires": [
                                            [
                                                "1f6129972520dbc9",
                                                "2cf7c09b18238747"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "97a52cd45dee491f",
                                        "type": "junction",
                                        "z": "cd388a27e1177b2a",
                                        "x": 1060,
                                        "y": 460,
                                        "wires": [
                                            [
                                                "49ed5c100ffadbfb"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "17a82c94f393c061",
                                        "type": "junction",
                                        "z": "cd388a27e1177b2a",
                                        "x": 160,
                                        "y": 520,
                                        "wires": [
                                            [
                                                "34daca3383213026"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "f2c58fd53288296d",
                                        "type": "debug",
                                        "z": "cd388a27e1177b2a",
                                        "name": "debug 3",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "true",
                                        "targetType": "full",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 1400,
                                        "y": 420,
                                        "wires": []
                                    },
                                    {
                                        "id": "25ad2bdbb9a6a3f2",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "motion:false",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "payload.motion",
                                                "pt": "msg",
                                                "to": "false",
                                                "tot": "bool"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 310,
                                        "y": 420,
                                        "wires": [
                                            [
                                                "c5344e2d70758330"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "6fa8c560705cd84b",
                                        "type": "switch",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Schalter",
                                        "property": "stopp",
                                        "propertyType": "flow",
                                        "rules": [
                                            {
                                                "t": "true"
                                            },
                                            {
                                                "t": "false"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 2,
                                        "x": 560,
                                        "y": 280,
                                        "wires": [
                                            [],
                                            [
                                                "e5b4dd5e0fdf55b3"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "7cade0980ce23b6f",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Motion",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "bewegung",
                                                "pt": "flow",
                                                "to": "payload.motion",
                                                "tot": "msg"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 470,
                                        "y": 320,
                                        "wires": [
                                            []
                                        ]
                                    },
                                    {
                                        "id": "1d02d4d287c62d8d",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "set payload",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "payload",
                                                "pt": "msg",
                                                "to": "on",
                                                "tot": "str"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 610,
                                        "y": 360,
                                        "wires": [
                                            [
                                                "1f6129972520dbc9"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "edd034e0ac4e9dbd",
                                        "type": "switch",
                                        "z": "cd388a27e1177b2a",
                                        "name": "1000?",
                                        "property": "payload",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "eq",
                                                "v": "1000",
                                                "vt": "num"
                                            },
                                            {
                                                "t": "eq",
                                                "v": "",
                                                "vt": "num"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 2,
                                        "x": 230,
                                        "y": 460,
                                        "wires": [
                                            [
                                                "b3cf3d5c5932a0f1"
                                            ],
                                            []
                                        ]
                                    },
                                    {
                                        "id": "e5b4dd5e0fdf55b3",
                                        "type": "switch",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Robi",
                                        "property": "BWM",
                                        "propertyType": "flow",
                                        "rules": [
                                            {
                                                "t": "true"
                                            },
                                            {
                                                "t": "false"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 2,
                                        "x": 690,
                                        "y": 280,
                                        "wires": [
                                            [
                                                "eb53173feca16754"
                                            ],
                                            []
                                        ]
                                    },
                                    {
                                        "id": "6ad2e1e41e7eba3d",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "setze stopp",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "stopp",
                                                "pt": "flow",
                                                "to": "true",
                                                "tot": "bool"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 630,
                                        "y": 460,
                                        "wires": [
                                            []
                                        ]
                                    },
                                    {
                                        "id": "d4243e5842d002b7",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "lösche stopp",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "stopp",
                                                "pt": "flow",
                                                "to": "false",
                                                "tot": "bool"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 830,
                                        "y": 560,
                                        "wires": [
                                            []
                                        ]
                                    },
                                    {
                                        "id": "0649103700725132",
                                        "type": "function",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Variablen Ini + Ausgabe",
                                        "func": "node.status({ text: msg.payload });\n\nreturn msg;",
                                        "outputs": 1,
                                        "timeout": 0,
                                        "noerr": 0,
                                        "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\n\nflow.set(\"stopp\", false);\nflow.set(\"BWM\", true);\nflow.set(\"bewegung\", false);\n",
                                        "finalize": "",
                                        "libs": [],
                                        "x": 1170,
                                        "y": 420,
                                        "wires": [
                                            [
                                                "f2c58fd53288296d",
                                                "97a52cd45dee491f"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "5b195fc1f7acb5c0",
                                        "type": "ioBroker in",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Robi",
                                        "attrname": "payload",
                                        "topic": "mihome-vacuum.0.info.state",
                                        "payloadType": "value",
                                        "onlyack": "",
                                        "func": "all",
                                        "gap": "",
                                        "fireOnStart": "false",
                                        "outFormat": "MQTT",
                                        "x": 110,
                                        "y": 600,
                                        "wires": [
                                            [
                                                "7f79db16bb82a357"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "c5344e2d70758330",
                                        "type": "function",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Ausgang BWM",
                                        "func": "\nreturn msg;",
                                        "outputs": 1,
                                        "timeout": 0,
                                        "noerr": 0,
                                        "initialize": "",
                                        "finalize": "",
                                        "libs": [],
                                        "x": 300,
                                        "y": 380,
                                        "wires": [
                                            [
                                                "7cade0980ce23b6f"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "d4e6916ec6660771",
                                        "type": "ioBroker in",
                                        "z": "cd388a27e1177b2a",
                                        "name": "KüSchalter",
                                        "attrname": "payload",
                                        "topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
                                        "payloadType": "value",
                                        "onlyack": "",
                                        "func": "all",
                                        "gap": "",
                                        "fireOnStart": "false",
                                        "outFormat": "MQTT",
                                        "x": 80,
                                        "y": 460,
                                        "wires": [
                                            [
                                                "edd034e0ac4e9dbd"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "7f79db16bb82a357",
                                        "type": "switch",
                                        "z": "cd388a27e1177b2a",
                                        "name": "8?",
                                        "property": "payload",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "eq",
                                                "v": "8",
                                                "vt": "num"
                                            },
                                            {
                                                "t": "neq",
                                                "v": "8",
                                                "vt": "num"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 2,
                                        "x": 230,
                                        "y": 600,
                                        "wires": [
                                            [
                                                "34daca3383213026"
                                            ],
                                            [
                                                "9725d7651f53e931"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "34daca3383213026",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "setze Flow.BWM",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "BWM",
                                                "pt": "flow",
                                                "to": "true",
                                                "tot": "bool"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 410,
                                        "y": 580,
                                        "wires": [
                                            [
                                                "3d95821769504d11"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "9725d7651f53e931",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "lösche Flow.BWM",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "BWM",
                                                "pt": "flow",
                                                "to": "false",
                                                "tot": "bool"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 410,
                                        "y": 620,
                                        "wires": [
                                            [
                                                "3d95821769504d11"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "6a9e975c8a2cb22e",
                                        "type": "switch",
                                        "z": "cd388a27e1177b2a",
                                        "name": "nur true",
                                        "property": "payload",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "true"
                                            },
                                            {
                                                "t": "false"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 2,
                                        "x": 420,
                                        "y": 280,
                                        "wires": [
                                            [
                                                "6fa8c560705cd84b"
                                            ],
                                            []
                                        ]
                                    },
                                    {
                                        "id": "3d95821769504d11",
                                        "type": "debug",
                                        "z": "cd388a27e1177b2a",
                                        "name": "debug 4",
                                        "active": false,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "true",
                                        "targetType": "full",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 580,
                                        "y": 600,
                                        "wires": []
                                    },
                                    {
                                        "id": "19d59c4b02bc1d4e",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "true/on/false/off",
                                        "rules": [
                                            {
                                                "t": "change",
                                                "p": "payload",
                                                "pt": "msg",
                                                "from": "on",
                                                "fromt": "str",
                                                "to": "true",
                                                "tot": "bool"
                                            },
                                            {
                                                "t": "change",
                                                "p": "payload",
                                                "pt": "msg",
                                                "from": "off",
                                                "fromt": "str",
                                                "to": "false",
                                                "tot": "bool"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 820,
                                        "y": 440,
                                        "wires": [
                                            [
                                                "2b6788c8f61bc75d"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "2b6788c8f61bc75d",
                                        "type": "switch",
                                        "z": "cd388a27e1177b2a",
                                        "name": "",
                                        "property": "payload",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "true"
                                            },
                                            {
                                                "t": "false"
                                            },
                                            {
                                                "t": "eq",
                                                "v": "",
                                                "vt": "str"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 3,
                                        "x": 830,
                                        "y": 500,
                                        "wires": [
                                            [
                                                "0649103700725132",
                                                "22f763e23b4b426d"
                                            ],
                                            [
                                                "0649103700725132",
                                                "d4243e5842d002b7",
                                                "078d3cdea12da58a"
                                            ],
                                            []
                                        ]
                                    },
                                    {
                                        "id": "81379b4c78eb5084",
                                        "type": "switch",
                                        "z": "cd388a27e1177b2a",
                                        "name": "",
                                        "property": "payload",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "true"
                                            },
                                            {
                                                "t": "false"
                                            },
                                            {
                                                "t": "eq",
                                                "v": "",
                                                "vt": "str"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 3,
                                        "x": 970,
                                        "y": 380,
                                        "wires": [
                                            [
                                                "0649103700725132",
                                                "cada2da2ed2bfaf6"
                                            ],
                                            [
                                                "0649103700725132",
                                                "c38db948a076700c"
                                            ],
                                            []
                                        ]
                                    },
                                    {
                                        "id": "6d74347a2369c9b1",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "",
                                        "rules": [
                                            {
                                                "t": "change",
                                                "p": "payload",
                                                "pt": "msg",
                                                "from": "on",
                                                "fromt": "str",
                                                "to": "true",
                                                "tot": "bool"
                                            },
                                            {
                                                "t": "change",
                                                "p": "payload",
                                                "pt": "msg",
                                                "from": "off",
                                                "fromt": "str",
                                                "to": "false",
                                                "tot": "bool"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 970,
                                        "y": 320,
                                        "wires": [
                                            [
                                                "81379b4c78eb5084"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "eb53173feca16754",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "payload",
                                                "pt": "msg",
                                                "to": "on",
                                                "tot": "str"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 850,
                                        "y": 280,
                                        "wires": [
                                            [
                                                "2cf7c09b18238747"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "b3cf3d5c5932a0f1",
                                        "type": "ioBroker get",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Virt Lampe",
                                        "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                                        "attrname": "payload",
                                        "payloadType": "value",
                                        "errOnInvalidState": "nothing",
                                        "x": 330,
                                        "y": 520,
                                        "wires": [
                                            [
                                                "fe9075ec01f6e19a"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "fe9075ec01f6e19a",
                                        "type": "switch",
                                        "z": "cd388a27e1177b2a",
                                        "name": "true false",
                                        "property": "payload",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "false"
                                            },
                                            {
                                                "t": "true"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 2,
                                        "x": 440,
                                        "y": 460,
                                        "wires": [
                                            [
                                                "6ad2e1e41e7eba3d",
                                                "1d02d4d287c62d8d"
                                            ],
                                            [
                                                "6fda00babbc6c3cf",
                                                "c858be985d04ff23",
                                                "17a82c94f393c061"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "e52cacfb28f4eef0",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Alles auf Anfang",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "payload",
                                                "pt": "msg",
                                                "to": "false",
                                                "tot": "bool"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 840,
                                        "y": 600,
                                        "wires": [
                                            [
                                                "0649103700725132",
                                                "0e6b80937690ec94"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "6fda00babbc6c3cf",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "stop",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "payload",
                                                "pt": "msg",
                                                "to": "stop",
                                                "tot": "str"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 610,
                                        "y": 320,
                                        "wires": [
                                            [
                                                "6b29472d446bd70a"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "1f6129972520dbc9",
                                        "type": "mytimeout",
                                        "z": "cd388a27e1177b2a",
                                        "name": "45min",
                                        "outtopic": "",
                                        "outsafe": "on",
                                        "outwarning": "Warning",
                                        "outunsafe": "off",
                                        "warning": "10",
                                        "timer": "2700",
                                        "debug": false,
                                        "ndebug": false,
                                        "ignoreCase": false,
                                        "repeat": false,
                                        "again": false,
                                        "x": 810,
                                        "y": 380,
                                        "wires": [
                                            [
                                                "19d59c4b02bc1d4e"
                                            ],
                                            []
                                        ]
                                    },
                                    {
                                        "id": "2cf7c09b18238747",
                                        "type": "mytimeout",
                                        "z": "cd388a27e1177b2a",
                                        "name": "3min",
                                        "outtopic": "",
                                        "outsafe": "on",
                                        "outwarning": "Warning",
                                        "outunsafe": "off",
                                        "warning": "10",
                                        "timer": "90",
                                        "debug": false,
                                        "ndebug": false,
                                        "ignoreCase": false,
                                        "repeat": false,
                                        "again": false,
                                        "x": 810,
                                        "y": 320,
                                        "wires": [
                                            [
                                                "6d74347a2369c9b1"
                                            ],
                                            []
                                        ]
                                    },
                                    {
                                        "id": "c9f5b344739be161",
                                        "type": "ioBroker out",
                                        "z": "cd388a27e1177b2a",
                                        "name": "U-rechts",
                                        "topic": "tuya.0.bfb09eea5dad3699abyrbu.20",
                                        "ack": "false",
                                        "autoCreate": "false",
                                        "stateName": "",
                                        "role": "",
                                        "payloadType": "",
                                        "readonly": "",
                                        "stateUnit": "",
                                        "stateMin": "",
                                        "stateMax": "",
                                        "x": 1200,
                                        "y": 600,
                                        "wires": []
                                    },
                                    {
                                        "id": "eb0a77e50a594126",
                                        "type": "ioBroker out",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Küche Decke",
                                        "topic": "tuya.0.bfe4af976feb74d845vugp.1",
                                        "ack": "false",
                                        "autoCreate": "false",
                                        "stateName": "",
                                        "role": "",
                                        "payloadType": "",
                                        "readonly": "",
                                        "stateUnit": "",
                                        "stateMin": "",
                                        "stateMax": "",
                                        "x": 1330,
                                        "y": 480,
                                        "wires": []
                                    },
                                    {
                                        "id": "3da3568f5cb1d905",
                                        "type": "ioBroker out",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Virtuel Switch 1",
                                        "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                                        "ack": "false",
                                        "autoCreate": "true",
                                        "stateName": "Simlulierte Lampe",
                                        "role": "value",
                                        "payloadType": "boolean",
                                        "readonly": "",
                                        "stateUnit": "",
                                        "stateMin": "",
                                        "stateMax": "",
                                        "x": 1220,
                                        "y": 540,
                                        "wires": []
                                    },
                                    {
                                        "id": "d9b21aa55e80ae44",
                                        "type": "delay",
                                        "z": "cd388a27e1177b2a",
                                        "name": "100ms",
                                        "pauseType": "delay",
                                        "timeout": "100",
                                        "timeoutUnits": "milliseconds",
                                        "rate": "1",
                                        "nbRateUnits": "1",
                                        "rateUnits": "second",
                                        "randomFirst": "1",
                                        "randomLast": "5",
                                        "randomUnits": "seconds",
                                        "drop": false,
                                        "allowrate": false,
                                        "outputs": 1,
                                        "x": 1190,
                                        "y": 480,
                                        "wires": [
                                            [
                                                "eb0a77e50a594126"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "a0d644333024864d",
                                        "type": "ioBroker out",
                                        "z": "cd388a27e1177b2a",
                                        "name": "U-links",
                                        "topic": "hue.0.Hue_GordonX.Küche_Unterschr_Links.on",
                                        "ack": "false",
                                        "autoCreate": "false",
                                        "stateName": "",
                                        "role": "",
                                        "payloadType": "",
                                        "readonly": "",
                                        "stateUnit": "",
                                        "stateMin": "",
                                        "stateMax": "",
                                        "x": 1190,
                                        "y": 660,
                                        "wires": []
                                    },
                                    {
                                        "id": "749bbf25ef1c6f5d",
                                        "type": "hue-bridge-node",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Hue",
                                        "bridge": "cbd54dbabf6f65be",
                                        "autoupdates": true,
                                        "skipglobalevents": false,
                                        "initevents": false,
                                        "x": 90,
                                        "y": 320,
                                        "wires": [
                                            [
                                                "7e046925a0149339"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "7e046925a0149339",
                                        "type": "hue-motion",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Küche Motion Sensor",
                                        "bridge": "cbd54dbabf6f65be",
                                        "sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
                                        "skipevents": false,
                                        "initevents": true,
                                        "x": 280,
                                        "y": 320,
                                        "wires": [
                                            [
                                                "7cade0980ce23b6f"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "6744591312f4367c",
                                        "type": "inject",
                                        "z": "cd388a27e1177b2a",
                                        "name": "Takt",
                                        "props": [
                                            {
                                                "p": "payload"
                                            },
                                            {
                                                "p": "topic",
                                                "vt": "str"
                                            }
                                        ],
                                        "repeat": "1",
                                        "crontab": "",
                                        "once": true,
                                        "onceDelay": 0.1,
                                        "topic": "Takt",
                                        "payload": "true",
                                        "payloadType": "bool",
                                        "x": 90,
                                        "y": 280,
                                        "wires": [
                                            [
                                                "19d0869e86da09b3"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "19d0869e86da09b3",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "payload",
                                                "pt": "msg",
                                                "to": "bewegung",
                                                "tot": "flow"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 250,
                                        "y": 280,
                                        "wires": [
                                            [
                                                "6a9e975c8a2cb22e"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "f4dd19c85bec8f67",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "lösche bewegung",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "bewegung",
                                                "pt": "flow",
                                                "to": "false",
                                                "tot": "bool"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 850,
                                        "y": 640,
                                        "wires": [
                                            []
                                        ]
                                    },
                                    {
                                        "id": "14cbab0539105d58",
                                        "type": "change",
                                        "z": "cd388a27e1177b2a",
                                        "name": "1002",
                                        "rules": [
                                            {
                                                "t": "set",
                                                "p": "payload",
                                                "pt": "msg",
                                                "to": "1000",
                                                "tot": "num"
                                            }
                                        ],
                                        "action": "",
                                        "property": "",
                                        "from": "",
                                        "to": "",
                                        "reg": false,
                                        "x": 110,
                                        "y": 380,
                                        "wires": [
                                            [
                                                "edd034e0ac4e9dbd"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "cada2da2ed2bfaf6",
                                        "type": "debug",
                                        "z": "cd388a27e1177b2a",
                                        "name": "debug 8",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "false",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 1300,
                                        "y": 280,
                                        "wires": []
                                    },
                                    {
                                        "id": "c38db948a076700c",
                                        "type": "debug",
                                        "z": "cd388a27e1177b2a",
                                        "name": "debug 17",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "false",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 1300,
                                        "y": 320,
                                        "wires": []
                                    },
                                    {
                                        "id": "0e6b80937690ec94",
                                        "type": "debug",
                                        "z": "cd388a27e1177b2a",
                                        "name": "debug 18",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "false",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 1200,
                                        "y": 800,
                                        "wires": []
                                    },
                                    {
                                        "id": "078d3cdea12da58a",
                                        "type": "debug",
                                        "z": "cd388a27e1177b2a",
                                        "name": "debug 19",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "false",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 1200,
                                        "y": 760,
                                        "wires": []
                                    },
                                    {
                                        "id": "22f763e23b4b426d",
                                        "type": "debug",
                                        "z": "cd388a27e1177b2a",
                                        "name": "debug 20",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "false",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 1200,
                                        "y": 720,
                                        "wires": []
                                    },
                                    {
                                        "id": "cbd54dbabf6f65be",
                                        "type": "hue-bridge",
                                        "name": "Hue GordonX",
                                        "bridge": "192.168.0.8",
                                        "key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d",
                                        "worker": "10",
                                        "autoupdates": true,
                                        "disableupdates": false
                                    }
                                ]
                                

                                Screenshot 2025-06-20 232151.png

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  peterfido @Aphofis last edited by

                                  @aphofis
                                  Das hier sollte anzeigen, wer da wo den Schaltbefehl gibt:

                                  [
                                     {
                                         "id": "b802892eed83e90f",
                                         "type": "tab",
                                         "label": "Flow 8",
                                         "disabled": false,
                                         "info": "",
                                         "env": []
                                     },
                                     {
                                         "id": "f00e20abd94ff43d",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 1120,
                                         "y": 660,
                                         "wires": [
                                             [
                                                 "141a052859674836",
                                                 "574a9f7ddc4f663b",
                                                 "b6322a40cf4557b3"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "423ea0f1dc0e4d31",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 1960,
                                         "y": 460,
                                         "wires": [
                                             [
                                                 "ff32f89078260f0e",
                                                 "67e2e01a1266d1c3",
                                                 "e98816534075b0f5",
                                                 "21f36ea2695afe19",
                                                 "a695276a00fe8f61"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "ae8ceff406113f11",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 1140,
                                         "y": 260,
                                         "wires": [
                                             [
                                                 "ba0aea0ff71ebc3d"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "9c7c62ee37b6b12c",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 520,
                                         "y": 60,
                                         "wires": [
                                             [
                                                 "d24a5429e472b18a"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "d96f128a59bdfbb4",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 900,
                                         "y": 440,
                                         "wires": [
                                             [
                                                 "84bd4ea1d044fea4",
                                                 "ed2607cafe826532"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "84bd4ea1d044fea4",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 980,
                                         "y": 360,
                                         "wires": [
                                             [
                                                 "be66da991b562e24"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "be66da991b562e24",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 1280,
                                         "y": 360,
                                         "wires": [
                                             [
                                                 "fa5f2b5bcd258a98"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "8355cf791b8a8b1b",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 580,
                                         "y": 560,
                                         "wires": [
                                             [
                                                 "e22b60db6265e908"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "1ee1fe89c1628b34",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 580,
                                         "y": 560,
                                         "wires": [
                                             [
                                                 "e22b60db6265e908"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "f3921b2658b5916c",
                                         "type": "junction",
                                         "z": "b802892eed83e90f",
                                         "x": 240,
                                         "y": 560,
                                         "wires": [
                                             [
                                                 "1ee1fe89c1628b34"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "a2104cdffd7ca75f",
                                         "type": "inject",
                                         "z": "b802892eed83e90f",
                                         "name": "Test Bewegung",
                                         "props": [
                                             {
                                                 "p": "payload.motion",
                                                 "v": "true",
                                                 "vt": "bool"
                                             },
                                             {
                                                 "p": "topic",
                                                 "vt": "str"
                                             }
                                         ],
                                         "repeat": "",
                                         "crontab": "",
                                         "once": false,
                                         "onceDelay": 0.1,
                                         "topic": "Bewegungsmelder",
                                         "x": 140,
                                         "y": 380,
                                         "wires": [
                                             [
                                                 "a919a4c30d900c39",
                                                 "0150c15cf7b51170"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "ed06e85de97289c8",
                                         "type": "debug",
                                         "z": "b802892eed83e90f",
                                         "name": "debug 3",
                                         "active": true,
                                         "tosidebar": true,
                                         "console": false,
                                         "tostatus": false,
                                         "complete": "true",
                                         "targetType": "full",
                                         "statusVal": "",
                                         "statusType": "auto",
                                         "x": 2000,
                                         "y": 360,
                                         "wires": []
                                     },
                                     {
                                         "id": "a919a4c30d900c39",
                                         "type": "delay",
                                         "z": "b802892eed83e90f",
                                         "name": "",
                                         "pauseType": "delay",
                                         "timeout": "30",
                                         "timeoutUnits": "seconds",
                                         "rate": "1",
                                         "nbRateUnits": "1",
                                         "rateUnits": "second",
                                         "randomFirst": "1",
                                         "randomLast": "5",
                                         "randomUnits": "seconds",
                                         "drop": false,
                                         "allowrate": false,
                                         "outputs": 1,
                                         "x": 150,
                                         "y": 460,
                                         "wires": [
                                             [
                                                 "bee64eb116d76ed1"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "bee64eb116d76ed1",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "motion:false",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "payload.motion",
                                                 "pt": "msg",
                                                 "to": "false",
                                                 "tot": "bool"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 350,
                                         "y": 460,
                                         "wires": [
                                             [
                                                 "0150c15cf7b51170"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "ab41883686b27cc0",
                                         "type": "switch",
                                         "z": "b802892eed83e90f",
                                         "name": "Schalter",
                                         "property": "stopp",
                                         "propertyType": "flow",
                                         "rules": [
                                             {
                                                 "t": "true"
                                             },
                                             {
                                                 "t": "false"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 2,
                                         "x": 920,
                                         "y": 260,
                                         "wires": [
                                             [],
                                             [
                                                 "01fea99b98c641a3"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "0395e4bbb7c67e21",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "Motion",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "bewegung",
                                                 "pt": "flow",
                                                 "to": "payload.motion",
                                                 "tot": "msg"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 670,
                                         "y": 320,
                                         "wires": [
                                             []
                                         ]
                                     },
                                     {
                                         "id": "59792b228df9eb30",
                                         "type": "comment",
                                         "z": "b802892eed83e90f",
                                         "name": "Beginn << Für Simulation Für Simulation Für Simulation Für Simulation >>",
                                         "info": "",
                                         "x": 280,
                                         "y": 300,
                                         "wires": []
                                     },
                                     {
                                         "id": "93f0d4c85ab42e59",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "to": "on",
                                                 "tot": "str"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 710,
                                         "y": 400,
                                         "wires": [
                                             [
                                                 "ed2607cafe826532"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "e22b60db6265e908",
                                         "type": "switch",
                                         "z": "b802892eed83e90f",
                                         "name": "1000?",
                                         "property": "payload",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "eq",
                                                 "v": "1000",
                                                 "vt": "num"
                                             },
                                             {
                                                 "t": "eq",
                                                 "v": "",
                                                 "vt": "num"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 2,
                                         "x": 270,
                                         "y": 660,
                                         "wires": [
                                             [
                                                 "6ae2e0e61f81faeb"
                                             ],
                                             []
                                         ]
                                     },
                                     {
                                         "id": "01fea99b98c641a3",
                                         "type": "switch",
                                         "z": "b802892eed83e90f",
                                         "name": "Robi",
                                         "property": "robi",
                                         "propertyType": "flow",
                                         "rules": [
                                             {
                                                 "t": "true"
                                             },
                                             {
                                                 "t": "false"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 2,
                                         "x": 1050,
                                         "y": 260,
                                         "wires": [
                                             [
                                                 "ae8ceff406113f11"
                                             ],
                                             []
                                         ]
                                     },
                                     {
                                         "id": "7eea52e80cbe51f0",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "setze stopp",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "stopp",
                                                 "pt": "flow",
                                                 "to": "true",
                                                 "tot": "bool"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 950,
                                         "y": 600,
                                         "wires": [
                                             []
                                         ]
                                     },
                                     {
                                         "id": "574a9f7ddc4f663b",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "lösche stopp",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "stopp",
                                                 "pt": "flow",
                                                 "to": "false",
                                                 "tot": "bool"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 1370,
                                         "y": 600,
                                         "wires": [
                                             []
                                         ]
                                     },
                                     {
                                         "id": "331a07cfba2d7df1",
                                         "type": "function",
                                         "z": "b802892eed83e90f",
                                         "name": "Variablen Ini + Ausgabe",
                                         "func": "if(msg.payload){\n    msg.topic = msg.topic + \": Licht ein\";\n}else{\n    msg.topic = msg.topic + \": Licht aus\";\n}\n\nmsg.topic += \", robi:\" + flow.get(\"robi\");\nnode.status({ text: msg.topic });\n\nreturn msg;",
                                         "outputs": 1,
                                         "timeout": 0,
                                         "noerr": 0,
                                         "initialize": "// Der Code hier wird ausgeführt,\n// wenn der Node gestartet wird\n\nflow.set(\"stopp\", false);\nflow.set(\"robi\", true);\nflow.set(\"bewegung\", false);\n",
                                         "finalize": "",
                                         "libs": [],
                                         "x": 1770,
                                         "y": 380,
                                         "wires": [
                                             [
                                                 "ed06e85de97289c8",
                                                 "423ea0f1dc0e4d31"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "b9692c9131fb2ef5",
                                         "type": "ioBroker in",
                                         "z": "b802892eed83e90f",
                                         "name": "Robi",
                                         "attrname": "payload",
                                         "topic": "mihome-vacuum.0.info.state",
                                         "payloadType": "value",
                                         "onlyack": "",
                                         "func": "rbe-preinitvalue",
                                         "gap": "",
                                         "fireOnStart": "true",
                                         "outFormat": "MQTT",
                                         "x": 90,
                                         "y": 780,
                                         "wires": [
                                             [
                                                 "6b214a0a59b5e04a"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "0150c15cf7b51170",
                                         "type": "function",
                                         "z": "b802892eed83e90f",
                                         "name": "Ausgang BWM",
                                         "func": "\nreturn msg;",
                                         "outputs": 1,
                                         "timeout": 0,
                                         "noerr": 0,
                                         "initialize": "",
                                         "finalize": "",
                                         "libs": [],
                                         "x": 360,
                                         "y": 360,
                                         "wires": [
                                             [
                                                 "0395e4bbb7c67e21"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "b6b4c157c31e3701",
                                         "type": "ioBroker in",
                                         "z": "b802892eed83e90f",
                                         "name": "KüSchalter",
                                         "attrname": "payload",
                                         "topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
                                         "payloadType": "value",
                                         "onlyack": "",
                                         "func": "all",
                                         "gap": "",
                                         "fireOnStart": "false",
                                         "outFormat": "MQTT",
                                         "x": 100,
                                         "y": 680,
                                         "wires": [
                                             [
                                                 "e22b60db6265e908"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "6b214a0a59b5e04a",
                                         "type": "switch",
                                         "z": "b802892eed83e90f",
                                         "name": "8?",
                                         "property": "payload",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "eq",
                                                 "v": "8",
                                                 "vt": "num"
                                             },
                                             {
                                                 "t": "neq",
                                                 "v": "8",
                                                 "vt": "num"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 2,
                                         "x": 630,
                                         "y": 780,
                                         "wires": [
                                             [
                                                 "7b9c0fa6e795af2d"
                                             ],
                                             [
                                                 "ccadbb1ee1de29e6"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "7b9c0fa6e795af2d",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "setze Flow.robi",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "robi",
                                                 "pt": "flow",
                                                 "to": "true",
                                                 "tot": "bool"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 840,
                                         "y": 760,
                                         "wires": [
                                             [
                                                 "b117dac109d51b34"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "ccadbb1ee1de29e6",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "lösche Flow.robi",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "robi",
                                                 "pt": "flow",
                                                 "to": "false",
                                                 "tot": "bool"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 840,
                                         "y": 800,
                                         "wires": [
                                             [
                                                 "b117dac109d51b34"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "558db419c5c37cca",
                                         "type": "comment",
                                         "z": "b802892eed83e90f",
                                         "name": "evtl. gesperrt durch?? Beginn",
                                         "info": "",
                                         "x": 980,
                                         "y": 220,
                                         "wires": []
                                     },
                                     {
                                         "id": "d24a5429e472b18a",
                                         "type": "switch",
                                         "z": "b802892eed83e90f",
                                         "name": "nur true",
                                         "property": "payload",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "true"
                                             },
                                             {
                                                 "t": "false"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 2,
                                         "x": 720,
                                         "y": 240,
                                         "wires": [
                                             [
                                                 "ab41883686b27cc0"
                                             ],
                                             []
                                         ]
                                     },
                                     {
                                         "id": "b117dac109d51b34",
                                         "type": "debug",
                                         "z": "b802892eed83e90f",
                                         "name": "debug 4",
                                         "active": false,
                                         "tosidebar": true,
                                         "console": false,
                                         "tostatus": false,
                                         "complete": "true",
                                         "targetType": "full",
                                         "statusVal": "",
                                         "statusType": "auto",
                                         "x": 1040,
                                         "y": 760,
                                         "wires": []
                                     },
                                     {
                                         "id": "91febc7692f9b822",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "",
                                         "rules": [
                                             {
                                                 "t": "change",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "from": "on",
                                                 "fromt": "str",
                                                 "to": "true",
                                                 "tot": "bool"
                                             },
                                             {
                                                 "t": "change",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "from": "off",
                                                 "fromt": "str",
                                                 "to": "false",
                                                 "tot": "bool"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 1290,
                                         "y": 400,
                                         "wires": [
                                             [
                                                 "d303b6e1817d8b77"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "d303b6e1817d8b77",
                                         "type": "switch",
                                         "z": "b802892eed83e90f",
                                         "name": "",
                                         "property": "payload",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "true"
                                             },
                                             {
                                                 "t": "false"
                                             },
                                             {
                                                 "t": "eq",
                                                 "v": "",
                                                 "vt": "str"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 3,
                                         "x": 1470,
                                         "y": 400,
                                         "wires": [
                                             [
                                                 "331a07cfba2d7df1"
                                             ],
                                             [
                                                 "331a07cfba2d7df1",
                                                 "574a9f7ddc4f663b"
                                             ],
                                             []
                                         ]
                                     },
                                     {
                                         "id": "b4e55cb04c30244e",
                                         "type": "switch",
                                         "z": "b802892eed83e90f",
                                         "name": "",
                                         "property": "payload",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "true"
                                             },
                                             {
                                                 "t": "false"
                                             },
                                             {
                                                 "t": "eq",
                                                 "v": "",
                                                 "vt": "str"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 3,
                                         "x": 1770,
                                         "y": 260,
                                         "wires": [
                                             [
                                                 "331a07cfba2d7df1"
                                             ],
                                             [
                                                 "331a07cfba2d7df1"
                                             ],
                                             []
                                         ]
                                     },
                                     {
                                         "id": "90c9685b4a5344dc",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "",
                                         "rules": [
                                             {
                                                 "t": "change",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "from": "on",
                                                 "fromt": "str",
                                                 "to": "true",
                                                 "tot": "bool"
                                             },
                                             {
                                                 "t": "change",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "from": "off",
                                                 "fromt": "str",
                                                 "to": "false",
                                                 "tot": "bool"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 1610,
                                         "y": 260,
                                         "wires": [
                                             [
                                                 "b4e55cb04c30244e"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "ba0aea0ff71ebc3d",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "to": "on",
                                                 "tot": "str"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 1250,
                                         "y": 260,
                                         "wires": [
                                             [
                                                 "fa5f2b5bcd258a98"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "6ae2e0e61f81faeb",
                                         "type": "ioBroker get",
                                         "z": "b802892eed83e90f",
                                         "name": "Virtuelle Lampe",
                                         "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                                         "attrname": "payload",
                                         "payloadType": "value",
                                         "errOnInvalidState": "nothing",
                                         "x": 440,
                                         "y": 660,
                                         "wires": [
                                             [
                                                 "f8d92d8cb9d60184"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "cf3016a536d38a8d",
                                         "type": "switch",
                                         "z": "b802892eed83e90f",
                                         "name": "true false",
                                         "property": "payload",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "false"
                                             },
                                             {
                                                 "t": "true"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 2,
                                         "x": 760,
                                         "y": 660,
                                         "wires": [
                                             [
                                                 "7eea52e80cbe51f0",
                                                 "93f0d4c85ab42e59"
                                             ],
                                             [
                                                 "7b9c0fa6e795af2d",
                                                 "87ec46662c49de4e",
                                                 "f00e20abd94ff43d"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "141a052859674836",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "Alles auf Anfang",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "to": "false",
                                                 "tot": "bool"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 1380,
                                         "y": 640,
                                         "wires": [
                                             [
                                                 "331a07cfba2d7df1"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "87ec46662c49de4e",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "stop",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "to": "stop",
                                                 "tot": "str"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 1070,
                                         "y": 640,
                                         "wires": [
                                             [
                                                 "d96f128a59bdfbb4"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "ed2607cafe826532",
                                         "type": "mytimeout",
                                         "z": "b802892eed83e90f",
                                         "name": "45sek",
                                         "outtopic": "Schalter 1000",
                                         "outsafe": "on",
                                         "outwarning": "Warning",
                                         "outunsafe": "off",
                                         "warning": "10",
                                         "timer": "60",
                                         "debug": false,
                                         "ndebug": false,
                                         "ignoreCase": false,
                                         "repeat": false,
                                         "again": false,
                                         "x": 1090,
                                         "y": 400,
                                         "wires": [
                                             [
                                                 "91febc7692f9b822"
                                             ],
                                             []
                                         ]
                                     },
                                     {
                                         "id": "fa5f2b5bcd258a98",
                                         "type": "mytimeout",
                                         "z": "b802892eed83e90f",
                                         "name": "10Sek",
                                         "outtopic": "BWM",
                                         "outsafe": "on",
                                         "outwarning": "Warning",
                                         "outunsafe": "off",
                                         "warning": "10",
                                         "timer": "30",
                                         "debug": false,
                                         "ndebug": false,
                                         "ignoreCase": false,
                                         "repeat": false,
                                         "again": false,
                                         "x": 1430,
                                         "y": 260,
                                         "wires": [
                                             [
                                                 "90c9685b4a5344dc"
                                             ],
                                             []
                                         ]
                                     },
                                     {
                                         "id": "21f36ea2695afe19",
                                         "type": "ioBroker out",
                                         "z": "b802892eed83e90f",
                                         "name": "U-rechts",
                                         "topic": "tuya.0.bfb09eea5dad3699abyrbu.20",
                                         "ack": "false",
                                         "autoCreate": "false",
                                         "stateName": "",
                                         "role": "",
                                         "payloadType": "",
                                         "readonly": "",
                                         "stateUnit": "",
                                         "stateMin": "",
                                         "stateMax": "",
                                         "x": 2140,
                                         "y": 600,
                                         "wires": []
                                     },
                                     {
                                         "id": "084e7114b7ed1c61",
                                         "type": "ioBroker out",
                                         "z": "b802892eed83e90f",
                                         "name": "Küche Decke",
                                         "topic": "tuya.0.bfe4af976feb74d845vugp.1",
                                         "ack": "false",
                                         "autoCreate": "false",
                                         "stateName": "",
                                         "role": "",
                                         "payloadType": "",
                                         "readonly": "",
                                         "stateUnit": "",
                                         "stateMin": "",
                                         "stateMax": "",
                                         "x": 2210,
                                         "y": 460,
                                         "wires": []
                                     },
                                     {
                                         "id": "ff32f89078260f0e",
                                         "type": "ioBroker out",
                                         "z": "b802892eed83e90f",
                                         "name": "Virtuel Switch 1",
                                         "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                                         "ack": "false",
                                         "autoCreate": "true",
                                         "stateName": "Simlulierte Lampe",
                                         "role": "value",
                                         "payloadType": "boolean",
                                         "readonly": "",
                                         "stateUnit": "",
                                         "stateMin": "",
                                         "stateMax": "",
                                         "x": 2160,
                                         "y": 540,
                                         "wires": []
                                     },
                                     {
                                         "id": "442c2ef743d9599f",
                                         "type": "debug",
                                         "z": "b802892eed83e90f",
                                         "name": "Küche",
                                         "active": false,
                                         "tosidebar": true,
                                         "console": true,
                                         "tostatus": false,
                                         "complete": "payload",
                                         "targetType": "msg",
                                         "statusVal": "",
                                         "statusType": "auto",
                                         "x": 2160,
                                         "y": 760,
                                         "wires": []
                                     },
                                     {
                                         "id": "67e2e01a1266d1c3",
                                         "type": "delay",
                                         "z": "b802892eed83e90f",
                                         "name": "100ms",
                                         "pauseType": "delay",
                                         "timeout": "100",
                                         "timeoutUnits": "milliseconds",
                                         "rate": "1",
                                         "nbRateUnits": "1",
                                         "rateUnits": "second",
                                         "randomFirst": "1",
                                         "randomLast": "5",
                                         "randomUnits": "seconds",
                                         "drop": false,
                                         "allowrate": false,
                                         "outputs": 1,
                                         "x": 2070,
                                         "y": 460,
                                         "wires": [
                                             [
                                                 "084e7114b7ed1c61"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "e98816534075b0f5",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "Küche",
                                         "rules": [
                                             {
                                                 "t": "change",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "from": "1000",
                                                 "fromt": "str",
                                                 "to": "Küche",
                                                 "tot": "str"
                                             },
                                             {
                                                 "t": "change",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "from": "true",
                                                 "fromt": "bool",
                                                 "to": "Küche eingeschaltet",
                                                 "tot": "str"
                                             },
                                             {
                                                 "t": "change",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "from": "false",
                                                 "fromt": "bool",
                                                 "to": "Küche ausgeschaltet",
                                                 "tot": "str"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 2030,
                                         "y": 760,
                                         "wires": [
                                             [
                                                 "442c2ef743d9599f"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "a695276a00fe8f61",
                                         "type": "ioBroker out",
                                         "z": "b802892eed83e90f",
                                         "name": "U-links",
                                         "topic": "hue.0.Hue_GordonX.Küche_Unterschr_Links.on",
                                         "ack": "false",
                                         "autoCreate": "false",
                                         "stateName": "",
                                         "role": "",
                                         "payloadType": "",
                                         "readonly": "",
                                         "stateUnit": "",
                                         "stateMin": "",
                                         "stateMax": "",
                                         "x": 2130,
                                         "y": 680,
                                         "wires": []
                                     },
                                     {
                                         "id": "802770af38c8534e",
                                         "type": "hue-bridge-node",
                                         "z": "b802892eed83e90f",
                                         "name": "Hue",
                                         "bridge": "cbd54dbabf6f65be",
                                         "autoupdates": true,
                                         "skipglobalevents": false,
                                         "initevents": false,
                                         "x": 130,
                                         "y": 160,
                                         "wires": [
                                             [
                                                 "2e0c2a67486c0ac7"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "2e0c2a67486c0ac7",
                                         "type": "hue-motion",
                                         "z": "b802892eed83e90f",
                                         "name": "Küche Motion Sensor",
                                         "bridge": "cbd54dbabf6f65be",
                                         "sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
                                         "skipevents": false,
                                         "initevents": true,
                                         "x": 360,
                                         "y": 160,
                                         "wires": [
                                             [
                                                 "0395e4bbb7c67e21"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "83e1205cab7afd75",
                                         "type": "inject",
                                         "z": "b802892eed83e90f",
                                         "name": "Takt",
                                         "props": [
                                             {
                                                 "p": "payload"
                                             },
                                             {
                                                 "p": "topic",
                                                 "vt": "str"
                                             }
                                         ],
                                         "repeat": "1",
                                         "crontab": "",
                                         "once": true,
                                         "onceDelay": 0.1,
                                         "topic": "Takt",
                                         "payload": "true",
                                         "payloadType": "bool",
                                         "x": 130,
                                         "y": 60,
                                         "wires": [
                                             [
                                                 "26a06677287b879b"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "26a06677287b879b",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "to": "bewegung",
                                                 "tot": "flow"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 370,
                                         "y": 60,
                                         "wires": [
                                             [
                                                 "9c7c62ee37b6b12c"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "c8bd53de95a27a58",
                                         "type": "inject",
                                         "z": "b802892eed83e90f",
                                         "name": "Test Schalter",
                                         "props": [
                                             {
                                                 "p": "payload"
                                             },
                                             {
                                                 "p": "topic",
                                                 "vt": "str"
                                             }
                                         ],
                                         "repeat": "",
                                         "crontab": "",
                                         "once": false,
                                         "onceDelay": 0.1,
                                         "topic": "",
                                         "payload": "1000",
                                         "payloadType": "num",
                                         "x": 130,
                                         "y": 520,
                                         "wires": [
                                             [
                                                 "64bf8df5efc25d40",
                                                 "f3921b2658b5916c"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "b6322a40cf4557b3",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "lösche bewegung",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "bewegung",
                                                 "pt": "flow",
                                                 "to": "false",
                                                 "tot": "bool"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 1390,
                                         "y": 680,
                                         "wires": [
                                             []
                                         ]
                                     },
                                     {
                                         "id": "4208dd4576daa563",
                                         "type": "comment",
                                         "z": "b802892eed83e90f",
                                         "name": "Ende << Für Simulation Für Simulation Für Simulation Für Simulation >>",
                                         "info": "",
                                         "x": 270,
                                         "y": 580,
                                         "wires": []
                                     },
                                     {
                                         "id": "f6fea6b16f9005b0",
                                         "type": "comment",
                                         "z": "b802892eed83e90f",
                                         "name": "evtl. gesperrt durch?? Ende",
                                         "info": "",
                                         "x": 980,
                                         "y": 320,
                                         "wires": []
                                     },
                                     {
                                         "id": "64bf8df5efc25d40",
                                         "type": "delay",
                                         "z": "b802892eed83e90f",
                                         "name": "200 ms",
                                         "pauseType": "delay",
                                         "timeout": "200",
                                         "timeoutUnits": "milliseconds",
                                         "rate": "1",
                                         "nbRateUnits": "1",
                                         "rateUnits": "second",
                                         "randomFirst": "1",
                                         "randomLast": "5",
                                         "randomUnits": "seconds",
                                         "drop": false,
                                         "allowrate": false,
                                         "outputs": 1,
                                         "x": 300,
                                         "y": 520,
                                         "wires": [
                                             [
                                                 "d628f1137cfb08c1"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "d628f1137cfb08c1",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "1002",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "payload",
                                                 "pt": "msg",
                                                 "to": "1002",
                                                 "tot": "num"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 430,
                                         "y": 520,
                                         "wires": [
                                             [
                                                 "8355cf791b8a8b1b"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "9a70fab410cfbdae",
                                         "type": "inject",
                                         "z": "b802892eed83e90f",
                                         "name": "Test Robi 8",
                                         "props": [
                                             {
                                                 "p": "payload"
                                             },
                                             {
                                                 "p": "topic",
                                                 "vt": "str"
                                             }
                                         ],
                                         "repeat": "",
                                         "crontab": "",
                                         "once": false,
                                         "onceDelay": 0.1,
                                         "topic": "",
                                         "payload": "8",
                                         "payloadType": "num",
                                         "x": 120,
                                         "y": 840,
                                         "wires": [
                                             [
                                                 "6b214a0a59b5e04a"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "10a3703ea5e9c5fd",
                                         "type": "inject",
                                         "z": "b802892eed83e90f",
                                         "name": "Test Robi 5",
                                         "props": [
                                             {
                                                 "p": "payload"
                                             },
                                             {
                                                 "p": "topic",
                                                 "vt": "str"
                                             }
                                         ],
                                         "repeat": "",
                                         "crontab": "",
                                         "once": false,
                                         "onceDelay": 0.1,
                                         "topic": "",
                                         "payload": "5",
                                         "payloadType": "num",
                                         "x": 120,
                                         "y": 900,
                                         "wires": [
                                             [
                                                 "6b214a0a59b5e04a"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "f8d92d8cb9d60184",
                                         "type": "change",
                                         "z": "b802892eed83e90f",
                                         "name": "topic",
                                         "rules": [
                                             {
                                                 "t": "set",
                                                 "p": "topic",
                                                 "pt": "msg",
                                                 "to": "Schalter 1000",
                                                 "tot": "str"
                                             }
                                         ],
                                         "action": "",
                                         "property": "",
                                         "from": "",
                                         "to": "",
                                         "reg": false,
                                         "x": 610,
                                         "y": 660,
                                         "wires": [
                                             [
                                                 "cf3016a536d38a8d"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "cbd54dbabf6f65be",
                                         "type": "hue-bridge",
                                         "name": "Hue GordonX",
                                         "bridge": "192.168.0.8",
                                         "key": "SlfyXwpcaEvRN0d1DU2JrrOlwrm9Debhhm9A4E-d",
                                         "worker": "10",
                                         "autoupdates": true,
                                         "disableupdates": false
                                     }
                                  ]
                                  

                                  Im Prinzip kann alles so bleiben. Evtl. Hue nebst Motion Sensor einrichten. Der BWM Simulator tut nix, wenn man nicht die Inject-Node davon klickt. Das gleiche beim Test Schalter. Lass die drin, dann ist die Chance größer, dass ich Deine Exporte importiere und teste.

                                  1 Reply Last reply Reply Quote 0
                                  • Aphofis
                                    Aphofis last edited by

                                    @peterfido

                                    bin beim Testen, mal sehen was dabei raus kommt.

                                    1 Reply Last reply Reply Quote 0
                                    • Aphofis
                                      Aphofis last edited by

                                      Also das immer wieder das Licht eingeschaltet wird wenn man in den BWM läuft und dann per Schalter ausschalten will und dieses 2-3 mal machen musste bis das Licht aus bleibt, lag am HUE Node. Die Globale Aktualisierungsmitteilungen auf diesem Node ignorieren, musste angehakt sein. Jetzt läuft die Steuerung tadellos.

                                      Screenshot 2025-06-30 021414.png

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post

                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate

                                      805
                                      Online

                                      31.9k
                                      Users

                                      80.2k
                                      Topics

                                      1.3m
                                      Posts

                                      2
                                      34
                                      656
                                      Loading More Posts
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      Community
                                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                      The ioBroker Community 2014-2023
                                      logo