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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    HUE Bewegungsmelder Roborock integr.

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

      @aphofis Der genaue Pfad wird in die Zwischenablage kopiert, wenn du da drauf klickst.

      Screenshot_20250614_131512_Chrome.jpg

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

        @peterfido
        Da kommt nur payload bei raus.
        Der BM kommt nicht über motion/false Node hinweg.

        [
            {
                "id": "4a7d49c9cec64387",
                "type": "tab",
                "label": "Flow 1",
                "disabled": false,
                "info": "",
                "env": []
            },
            {
                "id": "5e77b709b7c1eae0",
                "type": "junction",
                "z": "4a7d49c9cec64387",
                "x": 220,
                "y": 160,
                "wires": [
                    [
                        "a779e45d3967bfb9"
                    ]
                ]
            },
            {
                "id": "a779e45d3967bfb9",
                "type": "junction",
                "z": "4a7d49c9cec64387",
                "x": 520,
                "y": 160,
                "wires": [
                    [
                        "04fa302c2270ca4f"
                    ]
                ]
            },
            {
                "id": "bfe42f33cfa9774d",
                "type": "junction",
                "z": "4a7d49c9cec64387",
                "x": 220,
                "y": 100,
                "wires": [
                    [
                        "140ae0a74c608f65"
                    ]
                ]
            },
            {
                "id": "78e2ddead9cc1d0a",
                "type": "junction",
                "z": "4a7d49c9cec64387",
                "x": 500,
                "y": 180,
                "wires": [
                    [
                        "acb34561a25cb81b",
                        "98aed8cf2a3130df"
                    ]
                ]
            },
            {
                "id": "8efbfa2bed5bc563",
                "type": "inject",
                "z": "4a7d49c9cec64387",
                "name": "Bewegung",
                "props": [
                    {
                        "p": "payload.motion",
                        "v": "true",
                        "vt": "bool"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "x": 80,
                "y": 160,
                "wires": [
                    [
                        "5e77b709b7c1eae0",
                        "bfe42f33cfa9774d",
                        "d7459276dc5863d1"
                    ]
                ]
            },
            {
                "id": "393f87f05ba89b4d",
                "type": "debug",
                "z": "4a7d49c9cec64387",
                "name": "debug 17",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1320,
                "y": 120,
                "wires": []
            },
            {
                "id": "140ae0a74c608f65",
                "type": "delay",
                "z": "4a7d49c9cec64387",
                "name": "verzög.1s",
                "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": 340,
                "y": 100,
                "wires": [
                    [
                        "43a8260bfdf05214"
                    ]
                ]
            },
            {
                "id": "43a8260bfdf05214",
                "type": "change",
                "z": "4a7d49c9cec64387",
                "name": "motion/false",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload.motion",
                        "pt": "msg",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 490,
                "y": 100,
                "wires": [
                    [
                        "04fa302c2270ca4f"
                    ]
                ]
            },
            {
                "id": "f5d7178472b12544",
                "type": "switch",
                "z": "4a7d49c9cec64387",
                "name": "",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "true"
                    },
                    {
                        "t": "false"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 830,
                "y": 100,
                "wires": [
                    [
                        "91e7c6e9005453c1"
                    ],
                    []
                ]
            },
            {
                "id": "04fa302c2270ca4f",
                "type": "change",
                "z": "4a7d49c9cec64387",
                "name": "motion/payload",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "payload.motion",
                        "tot": "msg"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 680,
                "y": 100,
                "wires": [
                    [
                        "f5d7178472b12544"
                    ]
                ]
            },
            {
                "id": "464744eb1eb6f4bf",
                "type": "comment",
                "z": "4a7d49c9cec64387",
                "name": "Bewegungsmelder",
                "info": "",
                "x": 90,
                "y": 20,
                "wires": []
            },
            {
                "id": "d72b588f5ad0c3d1",
                "type": "inject",
                "z": "4a7d49c9cec64387",
                "name": "",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "1000",
                "payloadType": "num",
                "x": 290,
                "y": 200,
                "wires": [
                    [
                        "28b5fec6c9de7785"
                    ]
                ]
            },
            {
                "id": "acb34561a25cb81b",
                "type": "change",
                "z": "4a7d49c9cec64387",
                "name": "",
                "rules": [
                    {
                        "t": "set",
                        "p": "payload",
                        "pt": "msg",
                        "to": "true",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 630,
                "y": 180,
                "wires": [
                    [
                        "d2ebd9fe89d68291"
                    ]
                ]
            },
            {
                "id": "28b5fec6c9de7785",
                "type": "switch",
                "z": "4a7d49c9cec64387",
                "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": 410,
                "y": 200,
                "wires": [
                    [
                        "78e2ddead9cc1d0a"
                    ],
                    []
                ]
            },
            {
                "id": "932f55c48b111395",
                "type": "switch",
                "z": "4a7d49c9cec64387",
                "name": "",
                "property": "stopp",
                "propertyType": "flow",
                "rules": [
                    {
                        "t": "false"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 1,
                "x": 1070,
                "y": 80,
                "wires": [
                    [
                        "8a764bd3f71768b8"
                    ]
                ]
            },
            {
                "id": "98aed8cf2a3130df",
                "type": "change",
                "z": "4a7d49c9cec64387",
                "name": "",
                "rules": [
                    {
                        "t": "set",
                        "p": "stopp",
                        "pt": "flow",
                        "to": "true",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 620,
                "y": 240,
                "wires": [
                    [
                        "5858f0f89909dff4"
                    ]
                ]
            },
            {
                "id": "7a91b9011434fb39",
                "type": "change",
                "z": "4a7d49c9cec64387",
                "name": "",
                "rules": [
                    {
                        "t": "set",
                        "p": "stopp",
                        "pt": "flow",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 1080,
                "y": 240,
                "wires": [
                    [
                        "25337f528e5f609e"
                    ]
                ]
            },
            {
                "id": "924f5324f130bca6",
                "type": "switch",
                "z": "4a7d49c9cec64387",
                "name": "",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "eq",
                        "v": "1000",
                        "vt": "num"
                    },
                    {
                        "t": "eq",
                        "v": "",
                        "vt": "num"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 930,
                "y": 220,
                "wires": [
                    [],
                    [
                        "7a91b9011434fb39"
                    ]
                ]
            },
            {
                "id": "8a764bd3f71768b8",
                "type": "function",
                "z": "4a7d49c9cec64387",
                "name": "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);",
                "finalize": "",
                "libs": [],
                "x": 1180,
                "y": 180,
                "wires": [
                    [
                        "393f87f05ba89b4d",
                        "06974459414825ae"
                    ]
                ]
            },
            {
                "id": "91e7c6e9005453c1",
                "type": "timeouttrigger",
                "z": "4a7d49c9cec64387",
                "OnTimeoutType": "bool",
                "OnTimeoutVal": "false",
                "duration": "3",
                "units": "s",
                "passthrough": true,
                "sendTimeoutValue": "once",
                "interval": "",
                "IntervalUnits": "s",
                "name": "",
                "x": 950,
                "y": 80,
                "wires": [
                    [
                        "932f55c48b111395"
                    ]
                ]
            },
            {
                "id": "d2ebd9fe89d68291",
                "type": "timeouttrigger",
                "z": "4a7d49c9cec64387",
                "OnTimeoutType": "bool",
                "OnTimeoutVal": "false",
                "duration": "10",
                "units": "s",
                "passthrough": true,
                "sendTimeoutValue": "once",
                "interval": "",
                "IntervalUnits": "s",
                "name": "",
                "x": 790,
                "y": 180,
                "wires": [
                    [
                        "924f5324f130bca6",
                        "8a764bd3f71768b8"
                    ]
                ]
            },
            {
                "id": "d2ef36de8a84d716",
                "type": "ioBroker in",
                "z": "4a7d49c9cec64387",
                "name": "KüMo",
                "attrname": "payload",
                "topic": "hue.0.Hue_GordonX.Küche_Motion_Sensor.presence",
                "payloadType": "value",
                "onlyack": "",
                "func": "rbe",
                "gap": "",
                "fireOnStart": "false",
                "outFormat": "MQTT",
                "x": 50,
                "y": 100,
                "wires": [
                    [
                        "5e77b709b7c1eae0",
                        "bfe42f33cfa9774d"
                    ]
                ]
            },
            {
                "id": "25337f528e5f609e",
                "type": "debug",
                "z": "4a7d49c9cec64387",
                "name": "debug 6",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "false",
                "statusVal": "",
                "statusType": "auto",
                "x": 1320,
                "y": 300,
                "wires": []
            },
            {
                "id": "06974459414825ae",
                "type": "ioBroker out",
                "z": "4a7d49c9cec64387",
                "name": "Test Lampe",
                "topic": "0_userdata.0.GordonX-Home.0.Test_Gerät",
                "ack": "false",
                "autoCreate": "false",
                "stateName": "",
                "role": "",
                "payloadType": "",
                "readonly": "",
                "stateUnit": "",
                "stateMin": "",
                "stateMax": "",
                "x": 1330,
                "y": 240,
                "wires": []
            },
            {
                "id": "3aa4ad0593121ea0",
                "type": "ioBroker in",
                "z": "4a7d49c9cec64387",
                "name": "Schalter Küche",
                "attrname": "payload",
                "topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
                "payloadType": "value",
                "onlyack": "",
                "func": "all",
                "gap": "",
                "fireOnStart": "false",
                "outFormat": "MQTT",
                "x": 260,
                "y": 240,
                "wires": [
                    [
                        "28b5fec6c9de7785"
                    ]
                ]
            },
            {
                "id": "5858f0f89909dff4",
                "type": "debug",
                "z": "4a7d49c9cec64387",
                "name": "debug 18",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "false",
                "statusVal": "",
                "statusType": "auto",
                "x": 780,
                "y": 240,
                "wires": []
            },
            {
                "id": "8de4ca9f0f0e9d4d",
                "type": "debug",
                "z": "4a7d49c9cec64387",
                "name": "debug 3",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "false",
                "statusVal": "",
                "statusType": "auto",
                "x": 740,
                "y": 300,
                "wires": []
            },
            {
                "id": "a87f289d766e582a",
                "type": "change",
                "z": "4a7d49c9cec64387",
                "name": "",
                "rules": [
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "5",
                        "fromt": "str",
                        "to": "true",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 560,
                "y": 300,
                "wires": [
                    [
                        "8de4ca9f0f0e9d4d"
                    ]
                ]
            },
            {
                "id": "ac9990dcafb0f297",
                "type": "switch",
                "z": "4a7d49c9cec64387",
                "name": "Status5",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "neq",
                        "v": "5",
                        "vt": "str"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 1,
                "x": 380,
                "y": 300,
                "wires": [
                    [
                        "a87f289d766e582a"
                    ]
                ]
            },
            {
                "id": "d7459276dc5863d1",
                "type": "ioBroker get",
                "z": "4a7d49c9cec64387",
                "name": "Status",
                "topic": "0_userdata.0.GordonX-Home.0.Test_Status_Robi",
                "attrname": "payload",
                "payloadType": "value",
                "errOnInvalidState": "nothing",
                "x": 230,
                "y": 300,
                "wires": [
                    [
                        "ac9990dcafb0f297"
                    ]
                ]
            }
        ]
        

        Screenshot 2025-06-14 131958.png

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

          @aphofis Ich gehe von Deinem Flow aus dem ersten Post aus. Den Wert aus "Motion" dann direkt ins Payload schieben und den Rest von meinem Entwurf damit füttern.

          Ich habe da nur versucht, den Hue Bewegungsmelder, bzw. dessen Ausgabe, nachzubauen. Ich habe da keinen, um das zuverlässig nachzubauen.

          Mein Beispiel läuft autark und blockiert den Bewegungsmelder eine Zeit lang, wenn die 1000 auf dem zweiten Pfad eintrudelt. In meinem Beispiel wird die Flow-Variable "stopp" dafür genutzt.

          Robi und Hue Bewegungungsmelder sind von dir zu ergänzen. Für den Robi könntest du z.B. eine zweite Flow-Variable nutzen.

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

            @peterfido sagte in HUE Bewegungsmelder Roborock integr.:

            ispiel wird die Flow-Variable "stopp" da

            Dazu fehlt mir wohl das wissen wie man das zusammen schustert.
            Ich weiß nicht wie man die Inject node durch eine Iobroker In Node ersetzt.
            Da anscheinend der true zustand der Inject und der Iob In node unteerschiedlich ist.
            und wo man nun den Sauger dran hängt verstehe ich auch nicht.
            Die wege sind mir noch nicht klar. Auch wenn ich überall eine Debug node dran hänge, verstehe ich den Weg noch nicht.
            Habe die Original Hue Node vom BM genommen dort kommt ja motion: ergebnis raus
            damit funktioniert es. nur wo ich nun den Roboter dran hänge das die Steuerung
            dann nur per Schalter ausgelöst werden kann und der BM bei nicht Roboter Status 5 deaktiviert ist.

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

              @aphofis Einfach stattdessen, bzw. zum Testen von Werten, parallel.
              Screenshot_20250614_145021_Chrome.jpg

              Einfach bissel probieren. Ich selbst sitze auf der Terrasse mit einem Tablet und gucke bissel durchs Forum.

              Der Robi schickt seinen Status, diesen in einer Flow Variable, welche idealerweise in einer Functionsnode unter Start initialisiert wird, speichern. (Status 5 = BWM true, sonst false). Inwieweit die 1000 mit dem Robi konkurrieren, bzw. welcher da gewinnt, ist mir nicht ganz klar.

              Meine Ausgabe-Function zeigt nur true, wenn die Lampe an ist, und false, wenn die aus ist. Da kann auch stattdessen eine ioBroker Out Node dran, parallel oder dahinter.

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

                @peterfido sagte in HUE Bewegungsmelder Roborock integr.:

                alerweise in einer Func

                Wo ist den start !?
                Hatte ja jetzt die BWM Node von Hue eingebaut nur wo der Roboter dran gehängt wird verstehe ich noch nicht.
                Bin momentan so weit:

                [
                    {
                        "id": "4a7d49c9cec64387",
                        "type": "tab",
                        "label": "Flow 1",
                        "disabled": false,
                        "info": "",
                        "env": []
                    },
                    {
                        "id": "5e77b709b7c1eae0",
                        "type": "junction",
                        "z": "4a7d49c9cec64387",
                        "x": 340,
                        "y": 240,
                        "wires": [
                            [
                                "a779e45d3967bfb9"
                            ]
                        ]
                    },
                    {
                        "id": "a779e45d3967bfb9",
                        "type": "junction",
                        "z": "4a7d49c9cec64387",
                        "x": 640,
                        "y": 240,
                        "wires": [
                            [
                                "04fa302c2270ca4f"
                            ]
                        ]
                    },
                    {
                        "id": "bfe42f33cfa9774d",
                        "type": "junction",
                        "z": "4a7d49c9cec64387",
                        "x": 340,
                        "y": 180,
                        "wires": [
                            [
                                "140ae0a74c608f65"
                            ]
                        ]
                    },
                    {
                        "id": "78e2ddead9cc1d0a",
                        "type": "junction",
                        "z": "4a7d49c9cec64387",
                        "x": 300,
                        "y": 320,
                        "wires": [
                            [
                                "acb34561a25cb81b",
                                "98aed8cf2a3130df"
                            ]
                        ]
                    },
                    {
                        "id": "f2b50ddf46615123",
                        "type": "junction",
                        "z": "4a7d49c9cec64387",
                        "x": 940,
                        "y": 280,
                        "wires": [
                            [
                                "8a764bd3f71768b8"
                            ]
                        ]
                    },
                    {
                        "id": "e83d1232da36de00",
                        "type": "junction",
                        "z": "4a7d49c9cec64387",
                        "x": 640,
                        "y": 280,
                        "wires": [
                            [
                                "f2b50ddf46615123"
                            ]
                        ]
                    },
                    {
                        "id": "8efbfa2bed5bc563",
                        "type": "inject",
                        "z": "4a7d49c9cec64387",
                        "name": "Bewegung",
                        "props": [
                            {
                                "p": "payload.motion",
                                "v": "true",
                                "vt": "bool"
                            },
                            {
                                "p": "topic",
                                "vt": "str"
                            }
                        ],
                        "repeat": "",
                        "crontab": "",
                        "once": false,
                        "onceDelay": 0.1,
                        "topic": "",
                        "x": 180,
                        "y": 240,
                        "wires": [
                            [
                                "5e77b709b7c1eae0",
                                "bfe42f33cfa9774d"
                            ]
                        ]
                    },
                    {
                        "id": "393f87f05ba89b4d",
                        "type": "debug",
                        "z": "4a7d49c9cec64387",
                        "name": "Ausgabe",
                        "active": true,
                        "tosidebar": true,
                        "console": false,
                        "tostatus": false,
                        "complete": "payload",
                        "targetType": "msg",
                        "statusVal": "",
                        "statusType": "auto",
                        "x": 1220,
                        "y": 40,
                        "wires": []
                    },
                    {
                        "id": "140ae0a74c608f65",
                        "type": "delay",
                        "z": "4a7d49c9cec64387",
                        "name": "verzög.1s",
                        "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": 420,
                        "y": 180,
                        "wires": [
                            [
                                "43a8260bfdf05214"
                            ]
                        ]
                    },
                    {
                        "id": "43a8260bfdf05214",
                        "type": "change",
                        "z": "4a7d49c9cec64387",
                        "name": "motion/false",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload.motion",
                                "pt": "msg",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 570,
                        "y": 180,
                        "wires": [
                            [
                                "04fa302c2270ca4f"
                            ]
                        ]
                    },
                    {
                        "id": "f5d7178472b12544",
                        "type": "switch",
                        "z": "4a7d49c9cec64387",
                        "name": "",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "true"
                            },
                            {
                                "t": "false"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 2,
                        "x": 670,
                        "y": 100,
                        "wires": [
                            [
                                "91e7c6e9005453c1"
                            ],
                            []
                        ]
                    },
                    {
                        "id": "04fa302c2270ca4f",
                        "type": "change",
                        "z": "4a7d49c9cec64387",
                        "name": "motion/payload",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload",
                                "pt": "msg",
                                "to": "payload.motion",
                                "tot": "msg"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 780,
                        "y": 180,
                        "wires": [
                            [
                                "f5d7178472b12544"
                            ]
                        ]
                    },
                    {
                        "id": "464744eb1eb6f4bf",
                        "type": "comment",
                        "z": "4a7d49c9cec64387",
                        "name": "Bewegungsmelder",
                        "info": "",
                        "x": 110,
                        "y": 20,
                        "wires": []
                    },
                    {
                        "id": "d72b588f5ad0c3d1",
                        "type": "inject",
                        "z": "4a7d49c9cec64387",
                        "name": "",
                        "props": [
                            {
                                "p": "payload"
                            },
                            {
                                "p": "topic",
                                "vt": "str"
                            }
                        ],
                        "repeat": "",
                        "crontab": "",
                        "once": false,
                        "onceDelay": 0.1,
                        "topic": "",
                        "payload": "1000",
                        "payloadType": "num",
                        "x": 110,
                        "y": 320,
                        "wires": [
                            [
                                "28b5fec6c9de7785"
                            ]
                        ]
                    },
                    {
                        "id": "acb34561a25cb81b",
                        "type": "change",
                        "z": "4a7d49c9cec64387",
                        "name": "payload/true",
                        "rules": [
                            {
                                "t": "set",
                                "p": "payload",
                                "pt": "msg",
                                "to": "true",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 410,
                        "y": 320,
                        "wires": [
                            [
                                "d2ebd9fe89d68291"
                            ]
                        ]
                    },
                    {
                        "id": "28b5fec6c9de7785",
                        "type": "switch",
                        "z": "4a7d49c9cec64387",
                        "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": 340,
                        "wires": [
                            [
                                "78e2ddead9cc1d0a"
                            ],
                            []
                        ]
                    },
                    {
                        "id": "932f55c48b111395",
                        "type": "switch",
                        "z": "4a7d49c9cec64387",
                        "name": "",
                        "property": "stopp",
                        "propertyType": "flow",
                        "rules": [
                            {
                                "t": "false"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 1,
                        "x": 910,
                        "y": 80,
                        "wires": [
                            [
                                "8a764bd3f71768b8"
                            ]
                        ]
                    },
                    {
                        "id": "98aed8cf2a3130df",
                        "type": "change",
                        "z": "4a7d49c9cec64387",
                        "name": "payload/stop",
                        "rules": [
                            {
                                "t": "set",
                                "p": "stopp",
                                "pt": "flow",
                                "to": "true",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 410,
                        "y": 360,
                        "wires": [
                            []
                        ]
                    },
                    {
                        "id": "7a91b9011434fb39",
                        "type": "change",
                        "z": "4a7d49c9cec64387",
                        "name": "payload/stop",
                        "rules": [
                            {
                                "t": "set",
                                "p": "stopp",
                                "pt": "flow",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 830,
                        "y": 320,
                        "wires": [
                            [
                                "25337f528e5f609e"
                            ]
                        ]
                    },
                    {
                        "id": "924f5324f130bca6",
                        "type": "switch",
                        "z": "4a7d49c9cec64387",
                        "name": "",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "eq",
                                "v": "1000",
                                "vt": "num"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 1,
                        "x": 690,
                        "y": 320,
                        "wires": [
                            [
                                "7a91b9011434fb39"
                            ]
                        ]
                    },
                    {
                        "id": "8a764bd3f71768b8",
                        "type": "function",
                        "z": "4a7d49c9cec64387",
                        "name": "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);",
                        "finalize": "",
                        "libs": [],
                        "x": 1080,
                        "y": 60,
                        "wires": [
                            [
                                "393f87f05ba89b4d",
                                "06974459414825ae"
                            ]
                        ]
                    },
                    {
                        "id": "91e7c6e9005453c1",
                        "type": "timeouttrigger",
                        "z": "4a7d49c9cec64387",
                        "OnTimeoutType": "bool",
                        "OnTimeoutVal": "false",
                        "duration": "3",
                        "units": "s",
                        "passthrough": true,
                        "sendTimeoutValue": "once",
                        "interval": "",
                        "IntervalUnits": "s",
                        "name": "",
                        "x": 790,
                        "y": 80,
                        "wires": [
                            [
                                "932f55c48b111395"
                            ]
                        ]
                    },
                    {
                        "id": "d2ebd9fe89d68291",
                        "type": "timeouttrigger",
                        "z": "4a7d49c9cec64387",
                        "OnTimeoutType": "bool",
                        "OnTimeoutVal": "false",
                        "duration": "10",
                        "units": "s",
                        "passthrough": true,
                        "sendTimeoutValue": "once",
                        "interval": "",
                        "IntervalUnits": "s",
                        "name": "",
                        "x": 550,
                        "y": 320,
                        "wires": [
                            [
                                "924f5324f130bca6",
                                "e83d1232da36de00"
                            ]
                        ]
                    },
                    {
                        "id": "25337f528e5f609e",
                        "type": "debug",
                        "z": "4a7d49c9cec64387",
                        "name": "Stop",
                        "active": true,
                        "tosidebar": true,
                        "console": false,
                        "tostatus": false,
                        "complete": "payload",
                        "targetType": "msg",
                        "statusVal": "",
                        "statusType": "auto",
                        "x": 970,
                        "y": 320,
                        "wires": []
                    },
                    {
                        "id": "06974459414825ae",
                        "type": "ioBroker out",
                        "z": "4a7d49c9cec64387",
                        "name": "Test Lampe",
                        "topic": "0_userdata.0.GordonX-Home.0.Test_Gerät",
                        "ack": "false",
                        "autoCreate": "false",
                        "stateName": "",
                        "role": "",
                        "payloadType": "",
                        "readonly": "",
                        "stateUnit": "",
                        "stateMin": "",
                        "stateMax": "",
                        "x": 1230,
                        "y": 80,
                        "wires": []
                    },
                    {
                        "id": "3aa4ad0593121ea0",
                        "type": "ioBroker in",
                        "z": "4a7d49c9cec64387",
                        "name": "Schalter Küche",
                        "attrname": "payload",
                        "topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
                        "payloadType": "value",
                        "onlyack": "",
                        "func": "all",
                        "gap": "",
                        "fireOnStart": "false",
                        "outFormat": "MQTT",
                        "x": 80,
                        "y": 360,
                        "wires": [
                            [
                                "28b5fec6c9de7785"
                            ]
                        ]
                    },
                    {
                        "id": "8de4ca9f0f0e9d4d",
                        "type": "debug",
                        "z": "4a7d49c9cec64387",
                        "name": "debug 3",
                        "active": true,
                        "tosidebar": true,
                        "console": false,
                        "tostatus": false,
                        "complete": "false",
                        "statusVal": "",
                        "statusType": "auto",
                        "x": 1040,
                        "y": 420,
                        "wires": []
                    },
                    {
                        "id": "a87f289d766e582a",
                        "type": "change",
                        "z": "4a7d49c9cec64387",
                        "name": "payload/5",
                        "rules": [
                            {
                                "t": "change",
                                "p": "payload",
                                "pt": "msg",
                                "from": "5",
                                "fromt": "str",
                                "to": "true",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 880,
                        "y": 420,
                        "wires": [
                            [
                                "8de4ca9f0f0e9d4d"
                            ]
                        ]
                    },
                    {
                        "id": "ac9990dcafb0f297",
                        "type": "switch",
                        "z": "4a7d49c9cec64387",
                        "name": "Status nicht 5",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "neq",
                                "v": "5",
                                "vt": "str"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 1,
                        "x": 720,
                        "y": 420,
                        "wires": [
                            [
                                "a87f289d766e582a"
                            ]
                        ]
                    },
                    {
                        "id": "d7459276dc5863d1",
                        "type": "ioBroker get",
                        "z": "4a7d49c9cec64387",
                        "name": "Status",
                        "topic": "0_userdata.0.GordonX-Home.0.Test_Status_Robi",
                        "attrname": "payload",
                        "payloadType": "value",
                        "errOnInvalidState": "nothing",
                        "x": 530,
                        "y": 420,
                        "wires": [
                            [
                                "ac9990dcafb0f297"
                            ]
                        ]
                    },
                    {
                        "id": "35902ac50003513b",
                        "type": "hue-bridge-node",
                        "z": "4a7d49c9cec64387",
                        "name": "",
                        "bridge": "cbd54dbabf6f65be",
                        "autoupdates": true,
                        "skipglobalevents": false,
                        "initevents": false,
                        "x": 110,
                        "y": 60,
                        "wires": [
                            [
                                "3d01a93e7177b0f4"
                            ]
                        ]
                    },
                    {
                        "id": "3d01a93e7177b0f4",
                        "type": "hue-motion",
                        "z": "4a7d49c9cec64387",
                        "name": "Küche Motion Sensor",
                        "bridge": "cbd54dbabf6f65be",
                        "sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
                        "skipevents": false,
                        "initevents": false,
                        "x": 160,
                        "y": 180,
                        "wires": [
                            [
                                "bfe42f33cfa9774d",
                                "5e77b709b7c1eae0"
                            ]
                        ]
                    },
                    {
                        "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 151603.png
                Da hast du es aber gemütlich.
                Fehlt wohl nur noch ein Kaffee!

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

                  @aphofis Probier mal das:

                  [
                      {
                          "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": true,
                          "tosidebar": true,
                          "console": false,
                          "tostatus": false,
                          "complete": "true",
                          "targetType": "full",
                          "statusVal": "",
                          "statusType": "auto",
                          "x": 1560,
                          "y": 40,
                          "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": "c1952bc66da5a348",
                          "type": "timeouttrigger",
                          "z": "a42b83181f07f8d0",
                          "OnTimeoutType": "bool",
                          "OnTimeoutVal": "false",
                          "duration": "3",
                          "units": "s",
                          "passthrough": true,
                          "sendTimeoutValue": "once",
                          "interval": "",
                          "IntervalUnits": "s",
                          "name": "",
                          "x": 1130,
                          "y": 60,
                          "wires": [
                              [
                                  "550905a564f09176"
                              ]
                          ]
                      },
                      {
                          "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": "302a07cea50da337",
                          "type": "timeouttrigger",
                          "z": "a42b83181f07f8d0",
                          "OnTimeoutType": "bool",
                          "OnTimeoutVal": "false",
                          "duration": "45",
                          "units": "s",
                          "passthrough": true,
                          "sendTimeoutValue": "once",
                          "interval": "",
                          "IntervalUnits": "s",
                          "name": "",
                          "x": 710,
                          "y": 180,
                          "wires": [
                              [
                                  "2871643160dfcc7c",
                                  "550905a564f09176"
                              ]
                          ]
                      },
                      {
                          "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": "true",
                                  "tot": "bool"
                              }
                          ],
                          "action": "",
                          "property": "",
                          "from": "",
                          "to": "",
                          "reg": false,
                          "x": 530,
                          "y": 240,
                          "wires": [
                              [
                                  "302a07cea50da337"
                              ]
                          ]
                      },
                      {
                          "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": [
                              [
                                  "bd795708de32c118",
                                  "32b9213c2fe970b0"
                              ],
                              []
                          ]
                      },
                      {
                          "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": [
                              [
                                  "c1952bc66da5a348"
                              ],
                              []
                          ]
                      },
                      {
                          "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": 520,
                          "y": 280,
                          "wires": [
                              []
                          ]
                      },
                      {
                          "id": "0439088d7ec73749",
                          "type": "change",
                          "z": "a42b83181f07f8d0",
                          "name": "llöscheflow.stopp",
                          "rules": [
                              {
                                  "t": "set",
                                  "p": "stopp",
                                  "pt": "flow",
                                  "to": "false",
                                  "tot": "bool"
                              }
                          ],
                          "action": "",
                          "property": "",
                          "from": "",
                          "to": "",
                          "reg": false,
                          "x": 1030,
                          "y": 260,
                          "wires": [
                              []
                          ]
                      },
                      {
                          "id": "2871643160dfcc7c",
                          "type": "switch",
                          "z": "a42b83181f07f8d0",
                          "name": "",
                          "property": "payload",
                          "propertyType": "msg",
                          "rules": [
                              {
                                  "t": "eq",
                                  "v": "1000",
                                  "vt": "num"
                              },
                              {
                                  "t": "eq",
                                  "v": "",
                                  "vt": "num"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 2,
                          "x": 830,
                          "y": 260,
                          "wires": [
                              [],
                              [
                                  "0439088d7ec73749"
                              ]
                          ]
                      },
                      {
                          "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": 1330,
                          "y": 120,
                          "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": "",
                          "ack": "false",
                          "autoCreate": "false",
                          "stateName": "",
                          "role": "",
                          "payloadType": "",
                          "readonly": "",
                          "stateUnit": "",
                          "stateMin": "",
                          "stateMax": "",
                          "x": 1640,
                          "y": 160,
                          "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": 340,
                          "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": "",
                          "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": 500,
                          "y": 460,
                          "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": 490,
                          "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": true,
                          "tosidebar": true,
                          "console": false,
                          "tostatus": false,
                          "complete": "true",
                          "targetType": "full",
                          "statusVal": "",
                          "statusType": "auto",
                          "x": 720,
                          "y": 500,
                          "wires": []
                      },
                      {
                          "id": "f144b6f8b998c7f5",
                          "type": "comment",
                          "z": "a42b83181f07f8d0",
                          "name": "<< Bewegungsmelder |||||||||||||| Simulator Ende >>",
                          "info": "",
                          "x": 220,
                          "y": 220,
                          "wires": []
                      }
                  ]
                  

                  Edit: Die Verzögerung von einer Sekunde hinter dem BWM braucht es nicht unbedingt. Die setzt nur meinen simulierten BWM zurück.

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

                    @peterfido

                    Das funktioniert.
                    Habe da jetzt die normale Küchen Schaltung die es jetzt zu integrieren gilt.

                    [
                        {
                            "id": "f40fbc4eb5ac4f7a",
                            "type": "tab",
                            "label": "Küche",
                            "disabled": false,
                            "info": "",
                            "env": []
                        },
                        {
                            "id": "a9a291ef92812c32",
                            "type": "junction",
                            "z": "f40fbc4eb5ac4f7a",
                            "x": 1160,
                            "y": 360,
                            "wires": [
                                [
                                    "138c91dc2bbc1ae3",
                                    "8d88b2a94c9ec76d",
                                    "687c7e27683f7c5c",
                                    "5f54b4987a5f8dd2",
                                    "a54734800b81342e"
                                ]
                            ]
                        },
                        {
                            "id": "202c49953d235813",
                            "type": "ioBroker get",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Switch 2",
                            "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_2",
                            "attrname": "payload",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 940,
                            "y": 460,
                            "wires": [
                                [
                                    "5f856636064395a8"
                                ]
                            ]
                        },
                        {
                            "id": "5f856636064395a8",
                            "type": "change",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "toggle",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "payload",
                                    "pt": "msg",
                                    "to": "$not(payload)\t",
                                    "tot": "jsonata"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 1070,
                            "y": 460,
                            "wires": [
                                [
                                    "167c3d9534071cfb",
                                    "266f45298fe39781"
                                ]
                            ]
                        },
                        {
                            "id": "167c3d9534071cfb",
                            "type": "ioBroker out",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Virtuel Switch 2",
                            "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_2",
                            "ack": "false",
                            "autoCreate": "false",
                            "stateName": "",
                            "role": "",
                            "payloadType": "",
                            "readonly": "",
                            "stateUnit": "",
                            "stateMin": "",
                            "stateMax": "",
                            "x": 1320,
                            "y": 520,
                            "wires": []
                        },
                        {
                            "id": "f4b15ec716491f99",
                            "type": "ioBroker get",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Switch 3",
                            "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_3",
                            "attrname": "payload",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 940,
                            "y": 580,
                            "wires": [
                                [
                                    "5c2fda12ba92680a"
                                ]
                            ]
                        },
                        {
                            "id": "5c2fda12ba92680a",
                            "type": "change",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "toggle",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "payload",
                                    "pt": "msg",
                                    "to": "$not(payload)\t",
                                    "tot": "jsonata"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 1070,
                            "y": 580,
                            "wires": [
                                [
                                    "8be32882ca318f17",
                                    "3e09ac32ae810712"
                                ]
                            ]
                        },
                        {
                            "id": "8be32882ca318f17",
                            "type": "ioBroker out",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Virtuel Switch 3",
                            "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_3",
                            "ack": "false",
                            "autoCreate": "false",
                            "stateName": "",
                            "role": "",
                            "payloadType": "",
                            "readonly": "",
                            "stateUnit": "",
                            "stateMin": "",
                            "stateMax": "",
                            "x": 1320,
                            "y": 640,
                            "wires": []
                        },
                        {
                            "id": "bffd16b00cfde14d",
                            "type": "ioBroker get",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Switch 1",
                            "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                            "attrname": "payload",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 940,
                            "y": 360,
                            "wires": [
                                [
                                    "c2ccf4efb123db4a"
                                ]
                            ]
                        },
                        {
                            "id": "c2ccf4efb123db4a",
                            "type": "change",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "toggle",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "payload",
                                    "pt": "msg",
                                    "to": "$not(payload)\t",
                                    "tot": "jsonata"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 1070,
                            "y": 360,
                            "wires": [
                                [
                                    "a9a291ef92812c32"
                                ]
                            ]
                        },
                        {
                            "id": "0d321e0ed699fec1",
                            "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": 1430,
                            "y": 300,
                            "wires": []
                        },
                        {
                            "id": "589ac75a5e32f1d9",
                            "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": 1430,
                            "y": 180,
                            "wires": []
                        },
                        {
                            "id": "492203889ad083cc",
                            "type": "switch",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "",
                            "property": "payload",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "eq",
                                    "v": "1000",
                                    "vt": "str"
                                },
                                {
                                    "t": "eq",
                                    "v": "2000",
                                    "vt": "str"
                                },
                                {
                                    "t": "eq",
                                    "v": "3000",
                                    "vt": "str"
                                },
                                {
                                    "t": "eq",
                                    "v": "4000",
                                    "vt": "str"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 4,
                            "x": 590,
                            "y": 420,
                            "wires": [
                                [
                                    "f17ddf70f0e3a462"
                                ],
                                [
                                    "18138896535a8b98"
                                ],
                                [
                                    "b060108e3005d932"
                                ],
                                [
                                    "26451af092a50c2a"
                                ]
                            ]
                        },
                        {
                            "id": "138c91dc2bbc1ae3",
                            "type": "ioBroker out",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Virtuel Switch 1",
                            "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_1",
                            "ack": "false",
                            "autoCreate": "false",
                            "stateName": "",
                            "role": "",
                            "payloadType": "",
                            "readonly": "",
                            "stateUnit": "",
                            "stateMin": "",
                            "stateMax": "",
                            "x": 1320,
                            "y": 240,
                            "wires": []
                        },
                        {
                            "id": "4efde19f0e9d494d",
                            "type": "ioBroker in",
                            "z": "f40fbc4eb5ac4f7a",
                            "d": true,
                            "name": "Küche Schalter",
                            "attrname": "payload",
                            "topic": "hue.0.Hue_GordonX.Küche_Schalter.buttonevent",
                            "payloadType": "value",
                            "onlyack": "",
                            "func": "rbe",
                            "gap": "",
                            "fireOnStart": "false",
                            "outFormat": "MQTT",
                            "x": 360,
                            "y": 480,
                            "wires": [
                                [
                                    "492203889ad083cc"
                                ]
                            ]
                        },
                        {
                            "id": "a258cc2e98284972",
                            "type": "ioBroker get",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Switch 4",
                            "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_4",
                            "attrname": "payload",
                            "payloadType": "value",
                            "errOnInvalidState": "nothing",
                            "x": 940,
                            "y": 700,
                            "wires": [
                                [
                                    "7990f93a2f6d4246"
                                ]
                            ]
                        },
                        {
                            "id": "7990f93a2f6d4246",
                            "type": "change",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "toggle",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "payload",
                                    "pt": "msg",
                                    "to": "$not(payload)\t",
                                    "tot": "jsonata"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 1070,
                            "y": 700,
                            "wires": [
                                [
                                    "bf03dbcaedeac1bf",
                                    "974fbea0a2bec958"
                                ]
                            ]
                        },
                        {
                            "id": "bf03dbcaedeac1bf",
                            "type": "ioBroker out",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "VSwitch 4",
                            "topic": "0_userdata.0.GordonX-Home.0.Küche.Virtueller_Schalter_4",
                            "ack": "false",
                            "autoCreate": "false",
                            "stateName": "",
                            "role": "",
                            "payloadType": "",
                            "readonly": "",
                            "stateUnit": "",
                            "stateMin": "",
                            "stateMax": "",
                            "x": 1300,
                            "y": 760,
                            "wires": []
                        },
                        {
                            "id": "450a86229a268dec",
                            "type": "inject",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "",
                            "props": [
                                {
                                    "p": "payload"
                                },
                                {
                                    "p": "topic",
                                    "vt": "str"
                                }
                            ],
                            "repeat": "",
                            "crontab": "",
                            "once": false,
                            "onceDelay": 0.1,
                            "topic": "",
                            "payload": "true",
                            "payloadType": "str",
                            "x": 230,
                            "y": 420,
                            "wires": [
                                [
                                    "708b9446e314ce9a"
                                ]
                            ]
                        },
                        {
                            "id": "ad88b1a4b3ec08b2",
                            "type": "link in",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Alexa Switch Küche",
                            "links": [
                                "ad266b7267edaa39"
                            ],
                            "x": 185,
                            "y": 360,
                            "wires": [
                                [
                                    "9bfe6974c0049dcc"
                                ]
                            ]
                        },
                        {
                            "id": "bacc098ce38ea437",
                            "type": "change",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "on/off",
                            "rules": [
                                {
                                    "t": "change",
                                    "p": "payload",
                                    "pt": "msg",
                                    "from": "on",
                                    "fromt": "str",
                                    "to": "1002",
                                    "tot": "str"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 430,
                            "y": 360,
                            "wires": [
                                [
                                    "492203889ad083cc"
                                ]
                            ]
                        },
                        {
                            "id": "9bfe6974c0049dcc",
                            "type": "amazon-echo-device",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Alexa Küche",
                            "topic": "hue.0.Küche_Schalter.buttonevent",
                            "x": 290,
                            "y": 360,
                            "wires": [
                                [
                                    "bacc098ce38ea437"
                                ]
                            ]
                        },
                        {
                            "id": "d5ac3ac0172cc081",
                            "type": "hue-bridge-node",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "",
                            "bridge": "cbd54dbabf6f65be",
                            "autoupdates": true,
                            "skipglobalevents": false,
                            "initevents": false,
                            "x": 370,
                            "y": 540,
                            "wires": [
                                [
                                    "492203889ad083cc"
                                ]
                            ]
                        },
                        {
                            "id": "98ee3d8530b8677f",
                            "type": "debug",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Küche",
                            "active": true,
                            "tosidebar": true,
                            "console": true,
                            "tostatus": false,
                            "complete": "payload",
                            "targetType": "msg",
                            "statusVal": "",
                            "statusType": "auto",
                            "x": 1420,
                            "y": 420,
                            "wires": []
                        },
                        {
                            "id": "de121f3c399ed6d5",
                            "type": "hue-light",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Unterschr.Li",
                            "bridge": "cbd54dbabf6f65be",
                            "lightid": "9954a221-26e8-40ab-9732-ad33d14aeb5f",
                            "colornamer": false,
                            "skipevents": false,
                            "initevents": false,
                            "x": 1450,
                            "y": 360,
                            "wires": [
                                []
                            ]
                        },
                        {
                            "id": "708b9446e314ce9a",
                            "type": "trigger",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "1000/1002",
                            "op1": "1000",
                            "op2": "1002",
                            "op1type": "str",
                            "op2type": "str",
                            "duration": "200",
                            "extend": false,
                            "overrideDelay": false,
                            "units": "ms",
                            "reset": "",
                            "bytopic": "all",
                            "topic": "topic",
                            "outputs": 1,
                            "x": 370,
                            "y": 420,
                            "wires": [
                                [
                                    "492203889ad083cc"
                                ]
                            ]
                        },
                        {
                            "id": "974fbea0a2bec958",
                            "type": "hue-group",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Wohnzimmer",
                            "bridge": "cbd54dbabf6f65be",
                            "groupid": "fea8bacb-2692-4b22-9d97-295a32985af8",
                            "skipevents": false,
                            "initevents": false,
                            "x": 1330,
                            "y": 700,
                            "wires": [
                                []
                            ]
                        },
                        {
                            "id": "8d88b2a94c9ec76d",
                            "type": "delay",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "230ms",
                            "pauseType": "delay",
                            "timeout": "230",
                            "timeoutUnits": "milliseconds",
                            "rate": "1",
                            "nbRateUnits": "1",
                            "rateUnits": "second",
                            "randomFirst": "1",
                            "randomLast": "5",
                            "randomUnits": "seconds",
                            "drop": false,
                            "allowrate": false,
                            "outputs": 1,
                            "x": 1290,
                            "y": 360,
                            "wires": [
                                [
                                    "de121f3c399ed6d5"
                                ]
                            ]
                        },
                        {
                            "id": "3e09ac32ae810712",
                            "type": "hue-scene",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Konzentrieren",
                            "bridge": "cbd54dbabf6f65be",
                            "sceneid": "1262fa36-0216-4e90-81f8-2c52082b2829",
                            "x": 1340,
                            "y": 580,
                            "wires": [
                                []
                            ]
                        },
                        {
                            "id": "266f45298fe39781",
                            "type": "hue-scene",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "warmweiss",
                            "bridge": "cbd54dbabf6f65be",
                            "sceneid": "a48a039f-dc58-44ad-bb81-f6989dd30a2e",
                            "x": 1330,
                            "y": 460,
                            "wires": [
                                []
                            ]
                        },
                        {
                            "id": "687c7e27683f7c5c",
                            "type": "delay",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "230ms",
                            "pauseType": "delay",
                            "timeout": "230",
                            "timeoutUnits": "milliseconds",
                            "rate": "1",
                            "nbRateUnits": "1",
                            "rateUnits": "second",
                            "randomFirst": "1",
                            "randomLast": "5",
                            "randomUnits": "seconds",
                            "drop": false,
                            "allowrate": false,
                            "outputs": 1,
                            "x": 1290,
                            "y": 300,
                            "wires": [
                                [
                                    "0d321e0ed699fec1"
                                ]
                            ]
                        },
                        {
                            "id": "5f54b4987a5f8dd2",
                            "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": 1290,
                            "y": 180,
                            "wires": [
                                [
                                    "589ac75a5e32f1d9"
                                ]
                            ]
                        },
                        {
                            "id": "f17ddf70f0e3a462",
                            "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": 810,
                            "y": 360,
                            "wires": [
                                [
                                    "bffd16b00cfde14d"
                                ]
                            ]
                        },
                        {
                            "id": "b060108e3005d932",
                            "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": 810,
                            "y": 580,
                            "wires": [
                                [
                                    "f4b15ec716491f99"
                                ]
                            ]
                        },
                        {
                            "id": "26451af092a50c2a",
                            "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": 810,
                            "y": 700,
                            "wires": [
                                [
                                    "a258cc2e98284972"
                                ]
                            ]
                        },
                        {
                            "id": "18138896535a8b98",
                            "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": 810,
                            "y": 460,
                            "wires": [
                                [
                                    "202c49953d235813"
                                ]
                            ]
                        },
                        {
                            "id": "a54734800b81342e",
                            "type": "change",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "Küche",
                            "rules": [
                                {
                                    "t": "change",
                                    "p": "payload",
                                    "pt": "msg",
                                    "from": "1002",
                                    "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": 1290,
                            "y": 420,
                            "wires": [
                                [
                                    "98ee3d8530b8677f"
                                ]
                            ]
                        },
                        {
                            "id": "cc4b3f317dc6949d",
                            "type": "trigger",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "2000/2002",
                            "op1": "2000",
                            "op2": "2002",
                            "op1type": "str",
                            "op2type": "str",
                            "duration": "200",
                            "extend": false,
                            "overrideDelay": false,
                            "units": "ms",
                            "reset": "",
                            "bytopic": "all",
                            "topic": "topic",
                            "outputs": 1,
                            "x": 350,
                            "y": 680,
                            "wires": [
                                [
                                    "492203889ad083cc"
                                ]
                            ]
                        },
                        {
                            "id": "58080c269d40839f",
                            "type": "trigger",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "3000/3002",
                            "op1": "3000",
                            "op2": "3002",
                            "op1type": "str",
                            "op2type": "str",
                            "duration": "200",
                            "extend": false,
                            "overrideDelay": false,
                            "units": "ms",
                            "reset": "",
                            "bytopic": "all",
                            "topic": "topic",
                            "outputs": 1,
                            "x": 350,
                            "y": 720,
                            "wires": [
                                [
                                    "492203889ad083cc"
                                ]
                            ]
                        },
                        {
                            "id": "7dbf8e1e7cc0c58b",
                            "type": "inject",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "",
                            "props": [
                                {
                                    "p": "payload"
                                },
                                {
                                    "p": "topic",
                                    "vt": "str"
                                }
                            ],
                            "repeat": "",
                            "crontab": "",
                            "once": false,
                            "onceDelay": 0.1,
                            "topic": "",
                            "payload": "true",
                            "payloadType": "str",
                            "x": 210,
                            "y": 680,
                            "wires": [
                                [
                                    "cc4b3f317dc6949d"
                                ]
                            ]
                        },
                        {
                            "id": "56783e9b03496a6b",
                            "type": "inject",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "",
                            "props": [
                                {
                                    "p": "payload"
                                },
                                {
                                    "p": "topic",
                                    "vt": "str"
                                }
                            ],
                            "repeat": "",
                            "crontab": "",
                            "once": false,
                            "onceDelay": 0.1,
                            "topic": "",
                            "payload": "true",
                            "payloadType": "str",
                            "x": 210,
                            "y": 720,
                            "wires": [
                                [
                                    "58080c269d40839f"
                                ]
                            ]
                        },
                        {
                            "id": "e2b5712b17f86c31",
                            "type": "trigger",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "4000/4002",
                            "op1": "4000",
                            "op2": "4002",
                            "op1type": "str",
                            "op2type": "str",
                            "duration": "200",
                            "extend": false,
                            "overrideDelay": false,
                            "units": "ms",
                            "reset": "",
                            "bytopic": "all",
                            "topic": "topic",
                            "outputs": 1,
                            "x": 350,
                            "y": 760,
                            "wires": [
                                [
                                    "492203889ad083cc"
                                ]
                            ]
                        },
                        {
                            "id": "60a4fa746191a149",
                            "type": "inject",
                            "z": "f40fbc4eb5ac4f7a",
                            "name": "",
                            "props": [
                                {
                                    "p": "payload"
                                },
                                {
                                    "p": "topic",
                                    "vt": "str"
                                }
                            ],
                            "repeat": "",
                            "crontab": "",
                            "once": false,
                            "onceDelay": 0.1,
                            "topic": "",
                            "payload": "true",
                            "payloadType": "str",
                            "x": 210,
                            "y": 760,
                            "wires": [
                                [
                                    "e2b5712b17f86c31"
                                ]
                            ]
                        },
                        {
                            "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 172044.png

                    So funktioniert die Steuerung von dir prima nur muss diese in die standard schalter schaltung integriert werden.

                    [
                        {
                            "id": "a42b83181f07f8d0",
                            "type": "tab",
                            "label": "Flow 8",
                            "disabled": false,
                            "info": "",
                            "env": []
                        },
                        {
                            "id": "d1f2c8393ea7f683",
                            "type": "debug",
                            "z": "a42b83181f07f8d0",
                            "name": "debug 3",
                            "active": true,
                            "tosidebar": true,
                            "console": false,
                            "tostatus": false,
                            "complete": "true",
                            "targetType": "full",
                            "statusVal": "",
                            "statusType": "auto",
                            "x": 1160,
                            "y": 520,
                            "wires": []
                        },
                        {
                            "id": "8bf1e5067a6f0ad2",
                            "type": "delay",
                            "z": "a42b83181f07f8d0",
                            "name": "verz. 1s",
                            "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": 360,
                            "y": 480,
                            "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": 510,
                            "y": 480,
                            "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": 1060,
                            "y": 440,
                            "wires": [
                                [],
                                [
                                    "4d146d05efbc5d35"
                                ]
                            ]
                        },
                        {
                            "id": "c1952bc66da5a348",
                            "type": "timeouttrigger",
                            "z": "a42b83181f07f8d0",
                            "OnTimeoutType": "bool",
                            "OnTimeoutVal": "false",
                            "duration": "3",
                            "units": "s",
                            "passthrough": true,
                            "sendTimeoutValue": "once",
                            "interval": "",
                            "IntervalUnits": "s",
                            "name": "",
                            "x": 1310,
                            "y": 440,
                            "wires": [
                                [
                                    "550905a564f09176"
                                ]
                            ]
                        },
                        {
                            "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": 790,
                            "y": 440,
                            "wires": [
                                [
                                    "9f0c88dad82d8633"
                                ]
                            ]
                        },
                        {
                            "id": "9f83e7917ef2d8e2",
                            "type": "comment",
                            "z": "a42b83181f07f8d0",
                            "name": "<< Bewegungsmelder Simulator  Beginn>>",
                            "info": "",
                            "x": 180,
                            "y": 380,
                            "wires": []
                        },
                        {
                            "id": "302a07cea50da337",
                            "type": "timeouttrigger",
                            "z": "a42b83181f07f8d0",
                            "OnTimeoutType": "bool",
                            "OnTimeoutVal": "false",
                            "duration": "45",
                            "units": "s",
                            "passthrough": true,
                            "sendTimeoutValue": "once",
                            "interval": "",
                            "IntervalUnits": "s",
                            "name": "",
                            "x": 550,
                            "y": 600,
                            "wires": [
                                [
                                    "2871643160dfcc7c",
                                    "550905a564f09176"
                                ]
                            ]
                        },
                        {
                            "id": "bd795708de32c118",
                            "type": "change",
                            "z": "a42b83181f07f8d0",
                            "name": "",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "payload",
                                    "pt": "msg",
                                    "to": "true",
                                    "tot": "bool"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 390,
                            "y": 600,
                            "wires": [
                                [
                                    "302a07cea50da337"
                                ]
                            ]
                        },
                        {
                            "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": 210,
                            "y": 620,
                            "wires": [
                                [
                                    "bd795708de32c118",
                                    "32b9213c2fe970b0"
                                ],
                                []
                            ]
                        },
                        {
                            "id": "4d146d05efbc5d35",
                            "type": "switch",
                            "z": "a42b83181f07f8d0",
                            "name": "Robi",
                            "property": "BWM",
                            "propertyType": "flow",
                            "rules": [
                                {
                                    "t": "true"
                                },
                                {
                                    "t": "false"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 2,
                            "x": 1190,
                            "y": 440,
                            "wires": [
                                [
                                    "c1952bc66da5a348"
                                ],
                                []
                            ]
                        },
                        {
                            "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": 380,
                            "y": 640,
                            "wires": [
                                []
                            ]
                        },
                        {
                            "id": "0439088d7ec73749",
                            "type": "change",
                            "z": "a42b83181f07f8d0",
                            "name": "llöscheflow.stopp",
                            "rules": [
                                {
                                    "t": "set",
                                    "p": "stopp",
                                    "pt": "flow",
                                    "to": "false",
                                    "tot": "bool"
                                }
                            ],
                            "action": "",
                            "property": "",
                            "from": "",
                            "to": "",
                            "reg": false,
                            "x": 830,
                            "y": 640,
                            "wires": [
                                []
                            ]
                        },
                        {
                            "id": "2871643160dfcc7c",
                            "type": "switch",
                            "z": "a42b83181f07f8d0",
                            "name": "",
                            "property": "payload",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "eq",
                                    "v": "1000",
                                    "vt": "num"
                                },
                                {
                                    "t": "eq",
                                    "v": "",
                                    "vt": "num"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 2,
                            "x": 670,
                            "y": 620,
                            "wires": [
                                [],
                                [
                                    "0439088d7ec73749"
                                ]
                            ]
                        },
                        {
                            "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": 910,
                            "y": 560,
                            "wires": [
                                [
                                    "d1f2c8393ea7f683",
                                    "e2721e4056e942e3"
                                ]
                            ]
                        },
                        {
                            "id": "d7bd1efc606cfcad",
                            "type": "ioBroker in",
                            "z": "a42b83181f07f8d0",
                            "name": "Robi",
                            "attrname": "payload",
                            "topic": "0_userdata.0.GordonX-Home.0.Test_Status_Robi",
                            "payloadType": "value",
                            "onlyack": "",
                            "func": "all",
                            "gap": "",
                            "fireOnStart": "false",
                            "outFormat": "MQTT",
                            "x": 90,
                            "y": 720,
                            "wires": [
                                [
                                    "b2f36db79c165583"
                                ]
                            ]
                        },
                        {
                            "id": "b0410acfcad1b37e",
                            "type": "function",
                            "z": "a42b83181f07f8d0",
                            "name": "Out BWM",
                            "func": "\nreturn msg;",
                            "outputs": 1,
                            "timeout": 0,
                            "noerr": 0,
                            "initialize": "",
                            "finalize": "",
                            "libs": [],
                            "x": 660,
                            "y": 440,
                            "wires": [
                                [
                                    "6adb99e531920623"
                                ]
                            ]
                        },
                        {
                            "id": "e2721e4056e942e3",
                            "type": "ioBroker out",
                            "z": "a42b83181f07f8d0",
                            "name": "ioBroker Lampe",
                            "topic": "0_userdata.0.GordonX-Home.0.Test_Gerät",
                            "ack": "false",
                            "autoCreate": "false",
                            "stateName": "",
                            "role": "",
                            "payloadType": "",
                            "readonly": "",
                            "stateUnit": "",
                            "stateMin": "",
                            "stateMax": "",
                            "x": 1160,
                            "y": 560,
                            "wires": []
                        },
                        {
                            "id": "7cfd7f7fba2e2d7a",
                            "type": "ioBroker in",
                            "z": "a42b83181f07f8d0",
                            "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": 620,
                            "wires": [
                                [
                                    "d1051390faa881a3"
                                ]
                            ]
                        },
                        {
                            "id": "b2f36db79c165583",
                            "type": "switch",
                            "z": "a42b83181f07f8d0",
                            "name": "",
                            "property": "payload",
                            "propertyType": "msg",
                            "rules": [
                                {
                                    "t": "eq",
                                    "v": "5",
                                    "vt": "num"
                                },
                                {
                                    "t": "neq",
                                    "v": "5",
                                    "vt": "num"
                                }
                            ],
                            "checkall": "true",
                            "repair": false,
                            "outputs": 2,
                            "x": 290,
                            "y": 720,
                            "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": 470,
                            "y": 700,
                            "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": 470,
                            "y": 740,
                            "wires": [
                                [
                                    "0650a4ab7aec40a1"
                                ]
                            ]
                        },
                        {
                            "id": "879b9060efcd163b",
                            "type": "comment",
                            "z": "a42b83181f07f8d0",
                            "name": "evtl. gesperrt durch??",
                            "info": "",
                            "x": 900,
                            "y": 380,
                            "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": 920,
                            "y": 440,
                            "wires": [
                                [
                                    "7a509a8587332f14"
                                ],
                                []
                            ]
                        },
                        {
                            "id": "0650a4ab7aec40a1",
                            "type": "debug",
                            "z": "a42b83181f07f8d0",
                            "name": "debug 4",
                            "active": true,
                            "tosidebar": true,
                            "console": false,
                            "tostatus": false,
                            "complete": "true",
                            "targetType": "full",
                            "statusVal": "",
                            "statusType": "auto",
                            "x": 640,
                            "y": 720,
                            "wires": []
                        },
                        {
                            "id": "f144b6f8b998c7f5",
                            "type": "comment",
                            "z": "a42b83181f07f8d0",
                            "name": "<< Bewegungsmelder Simulator Ende >>",
                            "info": "",
                            "x": 180,
                            "y": 560,
                            "wires": []
                        },
                        {
                            "id": "f74d0c3a0bc11bfd",
                            "type": "hue-bridge-node",
                            "z": "a42b83181f07f8d0",
                            "name": "Hue",
                            "bridge": "cbd54dbabf6f65be",
                            "autoupdates": true,
                            "skipglobalevents": false,
                            "initevents": false,
                            "x": 90,
                            "y": 440,
                            "wires": [
                                [
                                    "b6564cd395bbd771"
                                ]
                            ]
                        },
                        {
                            "id": "b6564cd395bbd771",
                            "type": "hue-motion",
                            "z": "a42b83181f07f8d0",
                            "name": "KüMo",
                            "bridge": "cbd54dbabf6f65be",
                            "sensorid": "7529c8d8-9f5c-451d-ba56-70cacda84564",
                            "skipevents": false,
                            "initevents": false,
                            "x": 230,
                            "y": 440,
                            "wires": [
                                [
                                    "b0410acfcad1b37e",
                                    "8bf1e5067a6f0ad2"
                                ]
                            ]
                        },
                        {
                            "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 172027.png

                    Da der HUE Schalter nur befehle sendet wie auf Kanal 1 für die Küche
                    1000 und 100ms später 1002 muss die Steuerung nun die virtuellen schalter haben um mit einem klick das Licht ein und mit einem weiteren klick die lampen wieder ausschaltet. damit muss dann auch die 45 Sekunden (45min.) Schaltung deaktiviert werden.
                    Wenn ich das integriere läuft der 45sek. Timer weiter.

                    P 2 Replies Last reply Reply Quote 0
                    • 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.

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

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          396
                                          Online

                                          31.7k
                                          Users

                                          79.8k
                                          Topics

                                          1.3m
                                          Posts

                                          2
                                          28
                                          233
                                          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