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. 2 Bewegungsmelder (Aqara) sollen einen Lampe schalten

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    2 Bewegungsmelder (Aqara) sollen einen Lampe schalten

    This topic has been deleted. Only users with topic management privileges can see it.
    • mickym
      mickym Most Active @Andre105 last edited by

      @andre105 Na in diesem Fall hat der Shelly Adapter selbst geschaltet bzw. bestätigt. Das hilft uns also nicht viel weiter. Also wie gesagt NodeRed Flows durchsuchen. Wenn Du den NR Adapter stoppst schaltet ja nichts mehr, wenn Du ihn einschaltest und es tut sich was ohne dass in dem geposteten Flow die out Node eine Nachricht bekommt (Kabel getrennt), dann muss da noch eine andere iobroker-out node sein, die in denselben Datenpunkt schreibt.

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

        Moin moin.
        Vielleicht weiß ja einer von euch Rat.
        Ich möchte eigntlich ziemlich simpel mein bad licht einschalten per bewegungsmelder
        und es soll so lange an bleiben bis 1 min keine bewegung mehr erkannt wird.
        Nun habe ich einen Roboter Sauger, der ja ständig das Licht einschalten würde wenn er staubsaugt der Staubsauger hat im Datenpunkt beim reinigen den Wert 5 also muss eine UND Regel her. Ich hab jetzt schon so vieles ausprobiert, das mir der Kopf raucht.
        Ich komme einfach nicht auf einen grünen Zweig.
        Es wäre super, wenn eine mir helfen könnte.
        Ich benutze ein Sonoff Gerät um das Deckenlicht zu schalten und einen Hue Bewegungsmelder.
        Des weiteren wollte ich auch zwei Bewegungsmelder nutzen da ich so zu sagen im Bad noch einen Vorraum habe und das Licht soll ja bei Bewegung dann auch angehen.
        Der zweite Bewegungsmelder ist ein Tuya Gerät.

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

          @aphofis Habe ich Dir in dem anderen Thread schon geschrieben, wie man das macht und einen entsprechenden Flow erstellt.

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

            @mickym Mega, vielen Dank.
            Es kann so einfach sein. Kontrolliert die Steuerung denn auch wenn true bleibt bei Bewegung, das dass Licht dann an bleibt !?

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

              @aphofis sagte in 2 Bewegungsmelder (Aqara) sollen einen Lampe schalten:

              @mickym Mega, vielen Dank.
              Es kann so einfach sein. Kontrolliert die Steuerung denn auch wenn true bleibt bei Bewegung, das dass Licht dann an bleibt !?

              81c8e2de-96c3-46f3-9b33-50f1c07df1d9-image.png

              Ja wenn ein true Signal durch kommt (wird durch die 1. switch Node gefiltert) und der Robokrock nicht in Betrieb ist, also die 2 Node passiert wird, dann erreicht die Node ja die Trigger Node, wobei da habe ich noch ein Fehler drin. sehe ich gerade.

              6d967e7c-bbae-44d5-91da-fb147b01aacc-image.png

              Das muss t Du noch ändern.

              Nach 1 Minute wird false gesendet. Das wird aber so lange verzögert solange der BWM weiterhin true sendet. Wenn nicht läuft die Minute los.

              Hier noch der korrigierte Flow:

              [
                 {
                     "id": "0c475f0f9588a3f7",
                     "type": "ioBroker get",
                     "z": "7e6af0015415146d",
                     "name": "Reinigung Status",
                     "topic": "mihome-vacuum.0.control.clean_home",
                     "attrname": "roborock",
                     "payloadType": "value",
                     "errOnInvalidState": "nothing",
                     "x": 530,
                     "y": 4980,
                     "wires": [
                         [
                             "a48d968fca802b9d"
                         ]
                     ]
                 },
                 {
                     "id": "7d4ab0828d82e844",
                     "type": "ioBroker in",
                     "z": "7e6af0015415146d",
                     "name": "Bad Motion",
                     "attrname": "payload",
                     "topic": "hue.0.Bad_Motion_Sensor.presence",
                     "payloadType": "value",
                     "onlyack": "",
                     "func": "all",
                     "gap": "",
                     "fireOnStart": "false",
                     "outFormat": "MQTT",
                     "x": 90,
                     "y": 4940,
                     "wires": [
                         [
                             "94b97498ad6db67d"
                         ]
                     ]
                 },
                 {
                     "id": "c6adf9d10b1da0b1",
                     "type": "ioBroker out",
                     "z": "7e6af0015415146d",
                     "name": "Bad Decke",
                     "topic": "sonoff.0.bad_deckenlampe.POWER",
                     "ack": "false",
                     "autoCreate": "false",
                     "stateName": "",
                     "role": "",
                     "payloadType": "",
                     "readonly": "",
                     "stateUnit": "",
                     "stateMin": "",
                     "stateMax": "",
                     "x": 1410,
                     "y": 4980,
                     "wires": []
                 },
                 {
                     "id": "f2d561282f7163ed",
                     "type": "debug",
                     "z": "7e6af0015415146d",
                     "name": "debug 1",
                     "active": true,
                     "tosidebar": true,
                     "console": false,
                     "tostatus": false,
                     "complete": "payload",
                     "targetType": "msg",
                     "statusVal": "",
                     "statusType": "auto",
                     "x": 1400,
                     "y": 4920,
                     "wires": []
                 },
                 {
                     "id": "0ad0adc9762722c5",
                     "type": "inject",
                     "z": "7e6af0015415146d",
                     "name": "",
                     "props": [
                         {
                             "p": "payload"
                         }
                     ],
                     "repeat": "",
                     "crontab": "",
                     "once": false,
                     "onceDelay": 0.1,
                     "topic": "",
                     "payload": "true",
                     "payloadType": "str",
                     "x": 90,
                     "y": 5000,
                     "wires": [
                         [
                             "94b97498ad6db67d"
                         ]
                     ]
                 },
                 {
                     "id": "94b97498ad6db67d",
                     "type": "switch",
                     "z": "7e6af0015415146d",
                     "name": "Bewegung erkannt?",
                     "property": "payload",
                     "propertyType": "msg",
                     "rules": [
                         {
                             "t": "true"
                         }
                     ],
                     "checkall": "true",
                     "repair": false,
                     "outputs": 1,
                     "x": 300,
                     "y": 4980,
                     "wires": [
                         [
                             "0c475f0f9588a3f7"
                         ]
                     ]
                 },
                 {
                     "id": "a48d968fca802b9d",
                     "type": "switch",
                     "z": "7e6af0015415146d",
                     "name": "Roborock nicht Status 5",
                     "property": "roborock",
                     "propertyType": "msg",
                     "rules": [
                         {
                             "t": "neq",
                             "v": "5",
                             "vt": "num"
                         }
                     ],
                     "checkall": "true",
                     "repair": false,
                     "outputs": 1,
                     "x": 770,
                     "y": 4980,
                     "wires": [
                         [
                             "90a41e90df02dc36"
                         ]
                     ]
                 },
                 {
                     "id": "90a41e90df02dc36",
                     "type": "trigger",
                     "z": "7e6af0015415146d",
                     "name": "Warte 1 Minute bevor false gesendet wird",
                     "op1": "true",
                     "op2": "false",
                     "op1type": "bool",
                     "op2type": "bool",
                     "duration": "1",
                     "extend": true,
                     "overrideDelay": false,
                     "units": "min",
                     "reset": "",
                     "bytopic": "all",
                     "topic": "topic",
                     "outputs": 1,
                     "x": 1080,
                     "y": 4980,
                     "wires": [
                         [
                             "0bd377ec0c8739f8"
                         ]
                     ]
                 },
                 {
                     "id": "0bd377ec0c8739f8",
                     "type": "junction",
                     "z": "7e6af0015415146d",
                     "x": 1280,
                     "y": 4980,
                     "wires": [
                         [
                             "f2d561282f7163ed",
                             "c6adf9d10b1da0b1"
                         ]
                     ]
                 }
              ]
              

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

                @mickym
                Hab ich geändert. Das also das != was den wert negativiert.
                Also wenn nicht 5 dann geht der trigger true durch
                Das ja noch geiler, wenn bewegung erkannt geht licht an und dann dauert es paar sekunden dann läuft erst der Timer los.

                mickym 2 Replies Last reply Reply Quote 0
                • mickym
                  mickym Most Active @Aphofis last edited by

                  @aphofis sagte in 2 Bewegungsmelder (Aqara) sollen einen Lampe schalten:

                  @mickym
                  Hab ich geändert. Das also das != was den wert negativiert.
                  Also wenn nicht 5 dann geht der trigger true durch

                  65743570-1ea5-475e-b32c-272b40aa442a-image.png

                  Das sind die Vergleichsoperatoren. Ja heißt einfach wenn UNGLEICH 5 ist.

                  Aphofis 1 Reply Last reply Reply Quote 1
                  • mickym
                    mickym Most Active @Aphofis last edited by

                    @aphofis sagte in 2 Bewegungsmelder (Aqara) sollen einen Lampe schalten:

                    Das ja noch geiler, wenn bewegung erkannt geht licht an und dann dauert es paar sekunden dann läuft erst der Timer los.

                    Ja Du musst halt aufpassen, dass der BWM genügend oft true Signale sendet, manche BWM senden nur 1 mal pro Minute, dann solltest Du die Zeit bevor false gesendet wird erhöhen.

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

                      @mickym
                      Das muss man nur wissen. Bei 3D Druckern ist es auch nur ein '!' was den wert negativiert.
                      Sprich wenn der motor falschrum läuft ein ! Davor zack läuft der Motor in die andere Richtung.
                      Jetzt muss ich nur noch meine bestehenden Blockly Steuerungen ins Node-Red bringen.

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

                        @aphofis sagte in 2 Bewegungsmelder (Aqara) sollen einen Lampe schalten:

                        Bei 3D Druckern ist es auch nur ein '!' was den wert negativiert.

                        Grundsätzlich verändert eine switch Node keinen Wert. Das macht eine CHANGE Node. Mit einer Switch Node überprüfst Du eine Nachrichteneigenschaft und leitest die basierend auf der Eigenschaften an eine oder unterschiedliche Ausgänge.

                        Das ist mehr oder weniger WENN .... DANN ... nimm AUSGANG 1, WENN .... DANN ... nimm AUSGANG2 etc. Aber es wird in einer Switch Node nichts verändert.

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

                          @mickym
                          Ok schon mal einfacher zu verstehen als in Blockly. paul53 hatte mir das schon bombastische Steuerungen im Blockly für mein damaliges Meerwasser Aquarium erstellt wo ich viele Steuerungen nicht verstanden habe. Da diese sehr komplex waren.
                          Ich ziehe auch echt den Hut vor den Leuten, die sowas programmieren können.

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

                            @mickym
                            Man kann sogar Das Licht trotzdessen einschalten wenn man Alexa nutzt.
                            Aber ich denke wenn man jetzt Alexa noch mit rein nimmt, das wenn man das Licht per Sprache aktiviert, das dann auch wenn keine Bewegung mehr erkannt wird dann der Timer läuft und das Licht nach 1 min aus geht. also die Bedingung über Alexa. Dazu müsste ja Alexa abgehorcht werden. Das wird dann vermutlich zu aufwendig!? Könnte man aber dann auch wiederrum für einen Digitalen Schalter nutzen also wenn Alexa zb in Routine Bad Licht an true ist soll die Steuerung mit Bewegung und Timer weiter laufen bis stimme die Routine wieder deaktiviert.
                            Der Datenpunkt für Bad Licht an wäre:

                            Bad licht an
                            

                            in meinem Echo Show. Wenn man mehrere Alexa geräte hat, muss man dann natürlich alle routinen zu allen alexa geräten dazu nehmen.

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

                              @aphofis sagte in 2 Bewegungsmelder (Aqara) sollen einen Lampe schalten:

                              Aber ich denke wenn man jetzt Alexa noch mit rein nimmt, das wenn man das Licht per Sprache aktiviert, das dann auch wenn keine Bewegung mehr erkannt wird dann der Timer läuft und das Licht nach 1 min aus geht. also die Bedingung über Alexa. Dazu müsste ja Alexa abgehorcht werden. Das wird dann vermutlich zu aufwendig!?

                              Wieso wenn Du mit Alexa einschalten willst hängst Du es einfach an den EIngang der Trigger Node.

                              69e1a9cd-5a29-40fc-8432-deb2cba12655-image.png

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

                                @mickym
                                Iwie will das nicht so ganz...

                                [
                                    {
                                        "id": "2e295f1c879e6af4",
                                        "type": "tab",
                                        "label": "Küche Bad Motion Timer",
                                        "disabled": false,
                                        "info": "",
                                        "env": []
                                    },
                                    {
                                        "id": "553c77a748e7869a",
                                        "type": "junction",
                                        "z": "2e295f1c879e6af4",
                                        "x": 480,
                                        "y": 100,
                                        "wires": [
                                            [
                                                "2cbb19c25bdbf55d"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "63495a6198767abe",
                                        "type": "junction",
                                        "z": "2e295f1c879e6af4",
                                        "x": 1140,
                                        "y": 100,
                                        "wires": [
                                            [
                                                "d0ddca612599b43c",
                                                "9dd1e1bc2bca9ade"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "c0e067dc71657cd6",
                                        "type": "junction",
                                        "z": "2e295f1c879e6af4",
                                        "x": 520,
                                        "y": 520,
                                        "wires": [
                                            [
                                                "fdd6a8d770321ddf"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "51e1e3fc8f508df5",
                                        "type": "junction",
                                        "z": "2e295f1c879e6af4",
                                        "x": 980,
                                        "y": 500,
                                        "wires": [
                                            [
                                                "e2da7a63d3c15673",
                                                "f34957801db99988",
                                                "3980458ba6d298ac",
                                                "a7ac79dac573570f"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "99a62a6f9b1c0c05",
                                        "type": "junction",
                                        "z": "2e295f1c879e6af4",
                                        "x": 1140,
                                        "y": 100,
                                        "wires": [
                                            []
                                        ]
                                    },
                                    {
                                        "id": "b8f8997592b68e2c",
                                        "type": "junction",
                                        "z": "2e295f1c879e6af4",
                                        "x": 900,
                                        "y": 240,
                                        "wires": [
                                            [
                                                "99a62a6f9b1c0c05"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "1ac75a0bc5ee3bc7",
                                        "type": "ioBroker in",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Küche Motion",
                                        "attrname": "payload",
                                        "topic": "hue.0.Küche_Motion_Sensor.presence",
                                        "payloadType": "value",
                                        "onlyack": "",
                                        "func": "all",
                                        "gap": "",
                                        "fireOnStart": "false",
                                        "outFormat": "MQTT",
                                        "x": 110,
                                        "y": 440,
                                        "wires": [
                                            [
                                                "0c7f79f1670db831"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "f34957801db99988",
                                        "type": "ioBroker out",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Küche Unterschrank links",
                                        "topic": "hue.0.Küche_Unterschr_Links.on",
                                        "ack": "false",
                                        "autoCreate": "false",
                                        "stateName": "",
                                        "role": "",
                                        "payloadType": "",
                                        "readonly": "",
                                        "stateUnit": "",
                                        "stateMin": "",
                                        "stateMax": "",
                                        "x": 1170,
                                        "y": 500,
                                        "wires": []
                                    },
                                    {
                                        "id": "e2da7a63d3c15673",
                                        "type": "debug",
                                        "z": "2e295f1c879e6af4",
                                        "name": "debug 2",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "payload",
                                        "targetType": "msg",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 1120,
                                        "y": 440,
                                        "wires": []
                                    },
                                    {
                                        "id": "08933b607402d98c",
                                        "type": "inject",
                                        "z": "2e295f1c879e6af4",
                                        "name": "",
                                        "props": [
                                            {
                                                "p": "payload"
                                            }
                                        ],
                                        "repeat": "",
                                        "crontab": "",
                                        "once": false,
                                        "onceDelay": 0.1,
                                        "topic": "",
                                        "payload": "true",
                                        "payloadType": "str",
                                        "x": 130,
                                        "y": 500,
                                        "wires": [
                                            [
                                                "0c7f79f1670db831"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "3980458ba6d298ac",
                                        "type": "ioBroker out",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Küche Unterschrank rechts",
                                        "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
                                        "ack": "false",
                                        "autoCreate": "false",
                                        "stateName": "",
                                        "role": "",
                                        "payloadType": "",
                                        "readonly": "",
                                        "stateUnit": "",
                                        "stateMin": "",
                                        "stateMax": "",
                                        "x": 1180,
                                        "y": 560,
                                        "wires": []
                                    },
                                    {
                                        "id": "a7ac79dac573570f",
                                        "type": "ioBroker out",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Küche Decke",
                                        "topic": "tuya.0.bf36b7d083796c35e8gq51.1",
                                        "ack": "false",
                                        "autoCreate": "false",
                                        "stateName": "",
                                        "role": "",
                                        "payloadType": "",
                                        "readonly": "",
                                        "stateUnit": "",
                                        "stateMin": "",
                                        "stateMax": "",
                                        "x": 1130,
                                        "y": 620,
                                        "wires": []
                                    },
                                    {
                                        "id": "4c349095bd25378c",
                                        "type": "ioBroker get",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Reinigung Status",
                                        "topic": "mihome-vacuum.1.info.state",
                                        "attrname": "roborock",
                                        "payloadType": "value",
                                        "errOnInvalidState": "nothing",
                                        "x": 590,
                                        "y": 60,
                                        "wires": [
                                            [
                                                "a95d63f2785aa847"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "4b318acc0eab7b1b",
                                        "type": "ioBroker in",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Bad Motion",
                                        "attrname": "payload",
                                        "topic": "hue.0.Bad_Motion_Sensor.presence",
                                        "payloadType": "value",
                                        "onlyack": "",
                                        "func": "all",
                                        "gap": "",
                                        "fireOnStart": "false",
                                        "outFormat": "MQTT",
                                        "x": 90,
                                        "y": 40,
                                        "wires": [
                                            [
                                                "66e5680c9143f38f"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "9dd1e1bc2bca9ade",
                                        "type": "ioBroker out",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Bad Decke",
                                        "topic": "sonoff.0.bad_deckenlampe.POWER",
                                        "ack": "false",
                                        "autoCreate": "false",
                                        "stateName": "",
                                        "role": "",
                                        "payloadType": "",
                                        "readonly": "",
                                        "stateUnit": "",
                                        "stateMin": "",
                                        "stateMax": "",
                                        "x": 1290,
                                        "y": 100,
                                        "wires": []
                                    },
                                    {
                                        "id": "d0ddca612599b43c",
                                        "type": "debug",
                                        "z": "2e295f1c879e6af4",
                                        "name": "debug 1",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "payload",
                                        "targetType": "msg",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 1280,
                                        "y": 60,
                                        "wires": []
                                    },
                                    {
                                        "id": "a0aaa672fbf892e5",
                                        "type": "inject",
                                        "z": "2e295f1c879e6af4",
                                        "name": "",
                                        "props": [
                                            {
                                                "p": "payload"
                                            }
                                        ],
                                        "repeat": "",
                                        "crontab": "",
                                        "once": false,
                                        "onceDelay": 0.1,
                                        "topic": "",
                                        "payload": "true",
                                        "payloadType": "str",
                                        "x": 110,
                                        "y": 100,
                                        "wires": [
                                            [
                                                "66e5680c9143f38f"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "66e5680c9143f38f",
                                        "type": "switch",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Bewegung erkannt?",
                                        "property": "payload",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "true"
                                            },
                                            {
                                                "t": "false"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 2,
                                        "x": 340,
                                        "y": 80,
                                        "wires": [
                                            [
                                                "4c349095bd25378c",
                                                "553c77a748e7869a"
                                            ],
                                            [
                                                "553c77a748e7869a"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "a95d63f2785aa847",
                                        "type": "switch",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Roborock nicht Status 5",
                                        "property": "roborock",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "neq",
                                                "v": "5",
                                                "vt": "num"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 1,
                                        "x": 930,
                                        "y": 60,
                                        "wires": [
                                            [
                                                "63495a6198767abe"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "2cbb19c25bdbf55d",
                                        "type": "trigger",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Warte 1 Minute bevor false gesendet wird",
                                        "op1": "true",
                                        "op2": "false",
                                        "op1type": "bool",
                                        "op2type": "bool",
                                        "duration": "60",
                                        "extend": true,
                                        "overrideDelay": false,
                                        "units": "s",
                                        "reset": "true",
                                        "bytopic": "all",
                                        "topic": "topic",
                                        "outputs": 1,
                                        "x": 920,
                                        "y": 100,
                                        "wires": [
                                            [
                                                "63495a6198767abe"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "ded2386bc0ab0eb2",
                                        "type": "ioBroker get",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Reinigung Status",
                                        "topic": "mihome-vacuum.1.info.state",
                                        "attrname": "roborock",
                                        "payloadType": "value",
                                        "errOnInvalidState": "nothing",
                                        "x": 590,
                                        "y": 480,
                                        "wires": [
                                            [
                                                "a72ab3c0be80704d"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "0c7f79f1670db831",
                                        "type": "switch",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Bewegung erkannt?",
                                        "property": "payload",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "true"
                                            },
                                            {
                                                "t": "false"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 2,
                                        "x": 340,
                                        "y": 500,
                                        "wires": [
                                            [
                                                "ded2386bc0ab0eb2",
                                                "c0e067dc71657cd6"
                                            ],
                                            [
                                                "c0e067dc71657cd6"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "a72ab3c0be80704d",
                                        "type": "switch",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Roborock nicht Status 5",
                                        "property": "roborock",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "neq",
                                                "v": "5",
                                                "vt": "num"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 1,
                                        "x": 810,
                                        "y": 480,
                                        "wires": [
                                            [
                                                "51e1e3fc8f508df5"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "fdd6a8d770321ddf",
                                        "type": "trigger",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Warte 1 Minute bevor false gesendet wird",
                                        "op1": "true",
                                        "op2": "false",
                                        "op1type": "bool",
                                        "op2type": "bool",
                                        "duration": "10",
                                        "extend": true,
                                        "overrideDelay": false,
                                        "units": "s",
                                        "reset": "true",
                                        "bytopic": "all",
                                        "topic": "topic",
                                        "outputs": 1,
                                        "x": 760,
                                        "y": 520,
                                        "wires": [
                                            [
                                                "51e1e3fc8f508df5"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "3d16cb434aa22482",
                                        "type": "ioBroker get",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Bad licht an Alexa",
                                        "topic": "alexa2.0.Echo-Devices.G0913L06031202PA.Routines.d2b8b4a7-0faf-444d-be14-0e90a1db9e1e",
                                        "attrname": "Alexa",
                                        "payloadType": "value",
                                        "errOnInvalidState": "nothing",
                                        "x": 330,
                                        "y": 140,
                                        "wires": [
                                            [
                                                "2cbb19c25bdbf55d"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "d7b5fe24eb069f5c",
                                        "type": "inject",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Digital true",
                                        "props": [
                                            {
                                                "p": "payload"
                                            }
                                        ],
                                        "repeat": "",
                                        "crontab": "",
                                        "once": false,
                                        "onceDelay": 0.1,
                                        "topic": "",
                                        "payload": "true",
                                        "payloadType": "str",
                                        "x": 100,
                                        "y": 200,
                                        "wires": [
                                            [
                                                "506488975306ad6c"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "9e7ed5475aba6cfc",
                                        "type": "inject",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Digital false",
                                        "props": [
                                            {
                                                "p": "payload"
                                            }
                                        ],
                                        "repeat": "",
                                        "crontab": "",
                                        "once": false,
                                        "onceDelay": 0.1,
                                        "topic": "",
                                        "payload": "false",
                                        "payloadType": "str",
                                        "x": 90,
                                        "y": 260,
                                        "wires": [
                                            [
                                                "506488975306ad6c"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "58eac2439ec37bc9",
                                        "type": "ioBroker get",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Bad licht an Digital",
                                        "topic": "0_userdata.0.Test_Schalter",
                                        "attrname": "Alexa",
                                        "payloadType": "value",
                                        "errOnInvalidState": "nothing",
                                        "x": 590,
                                        "y": 180,
                                        "wires": [
                                            [
                                                "2cbb19c25bdbf55d"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "cf9b1ba0a9977865",
                                        "type": "ioBroker get",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Digital licht aus",
                                        "topic": "0_userdata.0.Test_Schalter",
                                        "attrname": "Alexa",
                                        "payloadType": "value",
                                        "errOnInvalidState": "nothing",
                                        "x": 600,
                                        "y": 240,
                                        "wires": [
                                            [
                                                "b8f8997592b68e2c"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "506488975306ad6c",
                                        "type": "switch",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Digital Schalter",
                                        "property": "payload",
                                        "propertyType": "msg",
                                        "rules": [
                                            {
                                                "t": "true"
                                            },
                                            {
                                                "t": "false"
                                            }
                                        ],
                                        "checkall": "true",
                                        "repair": false,
                                        "outputs": 2,
                                        "x": 320,
                                        "y": 200,
                                        "wires": [
                                            [
                                                "58eac2439ec37bc9"
                                            ],
                                            [
                                                "cf9b1ba0a9977865"
                                            ]
                                        ]
                                    }
                                ]
                                

                                Screenshot 2024-08-12 214833.png

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

                                  @aphofis Na ich weiss immer nicht welchen Flow Du nimmst. Dann musst Du halt alles in die Switch Node Bewegung erkannt schicken. Ich würde halt dann den Namen ändern in: Ist true.

                                  Dann brauchst auch nicht den Digitalen Schalter, der obere Switch ist ja dann schon der digitale Schalter

                                  03c2a98e-c258-43ee-91d8-877b5de2be2d-image.png

                                  Und anstelle der Alexa Node über einen Datenpunkt kannst ja den Flow direkt anschließen.

                                  [
                                     {
                                         "id": "2e295f1c879e6af4",
                                         "type": "tab",
                                         "label": "Küche Bad Motion Timer",
                                         "disabled": false,
                                         "info": "",
                                         "env": []
                                     },
                                     {
                                         "id": "553c77a748e7869a",
                                         "type": "junction",
                                         "z": "2e295f1c879e6af4",
                                         "x": 520,
                                         "y": 100,
                                         "wires": [
                                             [
                                                 "2cbb19c25bdbf55d"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "63495a6198767abe",
                                         "type": "junction",
                                         "z": "2e295f1c879e6af4",
                                         "x": 1180,
                                         "y": 100,
                                         "wires": [
                                             [
                                                 "d0ddca612599b43c",
                                                 "9dd1e1bc2bca9ade"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "c0e067dc71657cd6",
                                         "type": "junction",
                                         "z": "2e295f1c879e6af4",
                                         "x": 520,
                                         "y": 520,
                                         "wires": [
                                             [
                                                 "fdd6a8d770321ddf"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "51e1e3fc8f508df5",
                                         "type": "junction",
                                         "z": "2e295f1c879e6af4",
                                         "x": 980,
                                         "y": 500,
                                         "wires": [
                                             [
                                                 "e2da7a63d3c15673",
                                                 "f34957801db99988",
                                                 "3980458ba6d298ac",
                                                 "a7ac79dac573570f"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "99a62a6f9b1c0c05",
                                         "type": "junction",
                                         "z": "2e295f1c879e6af4",
                                         "x": 1180,
                                         "y": 100,
                                         "wires": [
                                             []
                                         ]
                                     },
                                     {
                                         "id": "452d47f9ceae897d",
                                         "type": "junction",
                                         "z": "2e295f1c879e6af4",
                                         "x": 200,
                                         "y": 220,
                                         "wires": [
                                             [
                                                 "66e5680c9143f38f"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "1ac75a0bc5ee3bc7",
                                         "type": "ioBroker in",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Küche Motion",
                                         "attrname": "payload",
                                         "topic": "hue.0.Küche_Motion_Sensor.presence",
                                         "payloadType": "value",
                                         "onlyack": "",
                                         "func": "all",
                                         "gap": "",
                                         "fireOnStart": "false",
                                         "outFormat": "MQTT",
                                         "x": 110,
                                         "y": 440,
                                         "wires": [
                                             [
                                                 "0c7f79f1670db831"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "f34957801db99988",
                                         "type": "ioBroker out",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Küche Unterschrank links",
                                         "topic": "hue.0.Küche_Unterschr_Links.on",
                                         "ack": "false",
                                         "autoCreate": "false",
                                         "stateName": "",
                                         "role": "",
                                         "payloadType": "",
                                         "readonly": "",
                                         "stateUnit": "",
                                         "stateMin": "",
                                         "stateMax": "",
                                         "x": 1170,
                                         "y": 500,
                                         "wires": []
                                     },
                                     {
                                         "id": "e2da7a63d3c15673",
                                         "type": "debug",
                                         "z": "2e295f1c879e6af4",
                                         "name": "debug 2",
                                         "active": true,
                                         "tosidebar": true,
                                         "console": false,
                                         "tostatus": false,
                                         "complete": "payload",
                                         "targetType": "msg",
                                         "statusVal": "",
                                         "statusType": "auto",
                                         "x": 1120,
                                         "y": 440,
                                         "wires": []
                                     },
                                     {
                                         "id": "08933b607402d98c",
                                         "type": "inject",
                                         "z": "2e295f1c879e6af4",
                                         "name": "",
                                         "props": [
                                             {
                                                 "p": "payload"
                                             }
                                         ],
                                         "repeat": "",
                                         "crontab": "",
                                         "once": false,
                                         "onceDelay": 0.1,
                                         "topic": "",
                                         "payload": "true",
                                         "payloadType": "str",
                                         "x": 130,
                                         "y": 500,
                                         "wires": [
                                             [
                                                 "0c7f79f1670db831"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "3980458ba6d298ac",
                                         "type": "ioBroker out",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Küche Unterschrank rechts",
                                         "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
                                         "ack": "false",
                                         "autoCreate": "false",
                                         "stateName": "",
                                         "role": "",
                                         "payloadType": "",
                                         "readonly": "",
                                         "stateUnit": "",
                                         "stateMin": "",
                                         "stateMax": "",
                                         "x": 1180,
                                         "y": 560,
                                         "wires": []
                                     },
                                     {
                                         "id": "a7ac79dac573570f",
                                         "type": "ioBroker out",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Küche Decke",
                                         "topic": "tuya.0.bf36b7d083796c35e8gq51.1",
                                         "ack": "false",
                                         "autoCreate": "false",
                                         "stateName": "",
                                         "role": "",
                                         "payloadType": "",
                                         "readonly": "",
                                         "stateUnit": "",
                                         "stateMin": "",
                                         "stateMax": "",
                                         "x": 1130,
                                         "y": 620,
                                         "wires": []
                                     },
                                     {
                                         "id": "4c349095bd25378c",
                                         "type": "ioBroker get",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Reinigung Status",
                                         "topic": "mihome-vacuum.1.info.state",
                                         "attrname": "roborock",
                                         "payloadType": "value",
                                         "errOnInvalidState": "nothing",
                                         "x": 630,
                                         "y": 60,
                                         "wires": [
                                             [
                                                 "a95d63f2785aa847"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "4b318acc0eab7b1b",
                                         "type": "ioBroker in",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Bad Motion",
                                         "attrname": "payload",
                                         "topic": "hue.0.Bad_Motion_Sensor.presence",
                                         "payloadType": "value",
                                         "onlyack": "",
                                         "func": "all",
                                         "gap": "",
                                         "fireOnStart": "false",
                                         "outFormat": "MQTT",
                                         "x": 90,
                                         "y": 40,
                                         "wires": [
                                             [
                                                 "66e5680c9143f38f"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "9dd1e1bc2bca9ade",
                                         "type": "ioBroker out",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Bad Decke",
                                         "topic": "sonoff.0.bad_deckenlampe.POWER",
                                         "ack": "false",
                                         "autoCreate": "false",
                                         "stateName": "",
                                         "role": "",
                                         "payloadType": "",
                                         "readonly": "",
                                         "stateUnit": "",
                                         "stateMin": "",
                                         "stateMax": "",
                                         "x": 1330,
                                         "y": 100,
                                         "wires": []
                                     },
                                     {
                                         "id": "d0ddca612599b43c",
                                         "type": "debug",
                                         "z": "2e295f1c879e6af4",
                                         "name": "debug 1",
                                         "active": true,
                                         "tosidebar": true,
                                         "console": false,
                                         "tostatus": false,
                                         "complete": "payload",
                                         "targetType": "msg",
                                         "statusVal": "",
                                         "statusType": "auto",
                                         "x": 1320,
                                         "y": 60,
                                         "wires": []
                                     },
                                     {
                                         "id": "66e5680c9143f38f",
                                         "type": "switch",
                                         "z": "2e295f1c879e6af4",
                                         "name": "true/false ?",
                                         "property": "payload",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "true"
                                             },
                                             {
                                                 "t": "false"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 2,
                                         "x": 390,
                                         "y": 80,
                                         "wires": [
                                             [
                                                 "4c349095bd25378c",
                                                 "553c77a748e7869a"
                                             ],
                                             [
                                                 "553c77a748e7869a"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "a95d63f2785aa847",
                                         "type": "switch",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Roborock nicht Status 5",
                                         "property": "roborock",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "neq",
                                                 "v": "5",
                                                 "vt": "num"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 1,
                                         "x": 970,
                                         "y": 60,
                                         "wires": [
                                             [
                                                 "63495a6198767abe"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "2cbb19c25bdbf55d",
                                         "type": "trigger",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Warte 1 Minute bevor false gesendet wird",
                                         "op1": "true",
                                         "op2": "false",
                                         "op1type": "bool",
                                         "op2type": "bool",
                                         "duration": "60",
                                         "extend": true,
                                         "overrideDelay": false,
                                         "units": "s",
                                         "reset": "true",
                                         "bytopic": "all",
                                         "topic": "topic",
                                         "outputs": 1,
                                         "x": 960,
                                         "y": 100,
                                         "wires": [
                                             [
                                                 "63495a6198767abe"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "ded2386bc0ab0eb2",
                                         "type": "ioBroker get",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Reinigung Status",
                                         "topic": "mihome-vacuum.1.info.state",
                                         "attrname": "roborock",
                                         "payloadType": "value",
                                         "errOnInvalidState": "nothing",
                                         "x": 590,
                                         "y": 480,
                                         "wires": [
                                             [
                                                 "a72ab3c0be80704d"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "0c7f79f1670db831",
                                         "type": "switch",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Bewegung erkannt?",
                                         "property": "payload",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "true"
                                             },
                                             {
                                                 "t": "false"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 2,
                                         "x": 340,
                                         "y": 500,
                                         "wires": [
                                             [
                                                 "ded2386bc0ab0eb2",
                                                 "c0e067dc71657cd6"
                                             ],
                                             [
                                                 "c0e067dc71657cd6"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "a72ab3c0be80704d",
                                         "type": "switch",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Roborock nicht Status 5",
                                         "property": "roborock",
                                         "propertyType": "msg",
                                         "rules": [
                                             {
                                                 "t": "neq",
                                                 "v": "5",
                                                 "vt": "num"
                                             }
                                         ],
                                         "checkall": "true",
                                         "repair": false,
                                         "outputs": 1,
                                         "x": 810,
                                         "y": 480,
                                         "wires": [
                                             [
                                                 "51e1e3fc8f508df5"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "fdd6a8d770321ddf",
                                         "type": "trigger",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Warte 1 Minute bevor false gesendet wird",
                                         "op1": "true",
                                         "op2": "false",
                                         "op1type": "bool",
                                         "op2type": "bool",
                                         "duration": "10",
                                         "extend": true,
                                         "overrideDelay": false,
                                         "units": "s",
                                         "reset": "true",
                                         "bytopic": "all",
                                         "topic": "topic",
                                         "outputs": 1,
                                         "x": 760,
                                         "y": 520,
                                         "wires": [
                                             [
                                                 "51e1e3fc8f508df5"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "3d16cb434aa22482",
                                         "type": "ioBroker get",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Bad licht an Alexa",
                                         "topic": "alexa2.0.Echo-Devices.G0913L06031202PA.Routines.d2b8b4a7-0faf-444d-be14-0e90a1db9e1e",
                                         "attrname": "Alexa",
                                         "payloadType": "value",
                                         "errOnInvalidState": "nothing",
                                         "x": 110,
                                         "y": 120,
                                         "wires": [
                                             [
                                                 "66e5680c9143f38f"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "d7b5fe24eb069f5c",
                                         "type": "inject",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Digital true",
                                         "props": [
                                             {
                                                 "p": "payload"
                                             }
                                         ],
                                         "repeat": "",
                                         "crontab": "",
                                         "once": false,
                                         "onceDelay": 0.1,
                                         "topic": "",
                                         "payload": "true",
                                         "payloadType": "str",
                                         "x": 100,
                                         "y": 200,
                                         "wires": [
                                             [
                                                 "452d47f9ceae897d"
                                             ]
                                         ]
                                     },
                                     {
                                         "id": "9e7ed5475aba6cfc",
                                         "type": "inject",
                                         "z": "2e295f1c879e6af4",
                                         "name": "Digital false",
                                         "props": [
                                             {
                                                 "p": "payload"
                                             }
                                         ],
                                         "repeat": "",
                                         "crontab": "",
                                         "once": false,
                                         "onceDelay": 0.1,
                                         "topic": "",
                                         "payload": "false",
                                         "payloadType": "str",
                                         "x": 90,
                                         "y": 260,
                                         "wires": [
                                             [
                                                 "452d47f9ceae897d"
                                             ]
                                         ]
                                     }
                                  ]
                                  

                                  Und wenn Du für die anderen kein Überprüfung des Staubis haben willst, dann nimm den anderen Flow.

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

                                    @mickym
                                    Ne das will nicht!
                                    hab einen Test Schalter Datenpunkt auf den die Steuerung laufen soll und bei Schalter false soll
                                    auch sofort das Licht aus gehen.
                                    By the way wie erstellst du diese Knotenpunkte ?

                                    mickym 2 Replies Last reply Reply Quote 0
                                    • mickym
                                      mickym Most Active @Aphofis last edited by mickym

                                      @aphofis Na dann wenn true und false sofort schalten soll, dann würde ich nur die iobroker-Out Node anschließen.

                                      af06e240-a2cd-4b0d-82f2-2a2630d7f0a1-image.png

                                      1 Reply Last reply Reply Quote 1
                                      • mickym
                                        mickym Most Active @Aphofis last edited by

                                        @aphofis sagte in 2 Bewegungsmelder (Aqara) sollen einen Lampe schalten:

                                        By the way wie erstellst du diese Knotenpunkte ?

                                        Rechte Maustaste:

                                        0857462a-23f9-406a-b16d-842a71ba2c40-image.png

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

                                          @mickym
                                          So klappt es!
                                          Es muss nicht die Timer Steuerung wenn man den Digital Lichtschalter benutzt. Dann kann man per Lichtschalter sofort abschalten oder per alexa abschalten. Wenn Alexa oder Schalter ist man ja eh physisch zu hause.

                                          [
                                              {
                                                  "id": "2e295f1c879e6af4",
                                                  "type": "tab",
                                                  "label": "Bad Motion Timer",
                                                  "disabled": false,
                                                  "info": "",
                                                  "env": []
                                              },
                                              {
                                                  "id": "553c77a748e7869a",
                                                  "type": "junction",
                                                  "z": "2e295f1c879e6af4",
                                                  "x": 740,
                                                  "y": 100,
                                                  "wires": [
                                                      [
                                                          "2cbb19c25bdbf55d"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "63495a6198767abe",
                                                  "type": "junction",
                                                  "z": "2e295f1c879e6af4",
                                                  "x": 1180,
                                                  "y": 100,
                                                  "wires": [
                                                      [
                                                          "9dd1e1bc2bca9ade",
                                                          "d0ddca612599b43c"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "99a62a6f9b1c0c05",
                                                  "type": "junction",
                                                  "z": "2e295f1c879e6af4",
                                                  "x": 1180,
                                                  "y": 100,
                                                  "wires": [
                                                      []
                                                  ]
                                              },
                                              {
                                                  "id": "4c349095bd25378c",
                                                  "type": "ioBroker get",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Reinigung Status",
                                                  "topic": "mihome-vacuum.1.info.state",
                                                  "attrname": "roborock",
                                                  "payloadType": "value",
                                                  "errOnInvalidState": "nothing",
                                                  "x": 810,
                                                  "y": 60,
                                                  "wires": [
                                                      [
                                                          "a95d63f2785aa847"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "4b318acc0eab7b1b",
                                                  "type": "ioBroker in",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Bad Motion",
                                                  "attrname": "payload",
                                                  "topic": "hue.0.Bad_Motion_Sensor.presence",
                                                  "payloadType": "value",
                                                  "onlyack": "",
                                                  "func": "all",
                                                  "gap": "",
                                                  "fireOnStart": "false",
                                                  "outFormat": "MQTT",
                                                  "x": 90,
                                                  "y": 40,
                                                  "wires": [
                                                      [
                                                          "66e5680c9143f38f"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "9dd1e1bc2bca9ade",
                                                  "type": "ioBroker out",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Bad Decke",
                                                  "topic": "sonoff.0.bad_deckenlampe.POWER",
                                                  "ack": "false",
                                                  "autoCreate": "false",
                                                  "stateName": "",
                                                  "role": "",
                                                  "payloadType": "",
                                                  "readonly": "",
                                                  "stateUnit": "",
                                                  "stateMin": "",
                                                  "stateMax": "",
                                                  "x": 1290,
                                                  "y": 100,
                                                  "wires": []
                                              },
                                              {
                                                  "id": "d0ddca612599b43c",
                                                  "type": "debug",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "debug 1",
                                                  "active": true,
                                                  "tosidebar": true,
                                                  "console": false,
                                                  "tostatus": false,
                                                  "complete": "payload",
                                                  "targetType": "msg",
                                                  "statusVal": "",
                                                  "statusType": "auto",
                                                  "x": 1280,
                                                  "y": 60,
                                                  "wires": []
                                              },
                                              {
                                                  "id": "a0aaa672fbf892e5",
                                                  "type": "inject",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "",
                                                  "props": [
                                                      {
                                                          "p": "payload"
                                                      }
                                                  ],
                                                  "repeat": "",
                                                  "crontab": "",
                                                  "once": false,
                                                  "onceDelay": 0.1,
                                                  "topic": "",
                                                  "payload": "true",
                                                  "payloadType": "str",
                                                  "x": 110,
                                                  "y": 100,
                                                  "wires": [
                                                      [
                                                          "66e5680c9143f38f"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "66e5680c9143f38f",
                                                  "type": "switch",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Bewegung erkannt?",
                                                  "property": "payload",
                                                  "propertyType": "msg",
                                                  "rules": [
                                                      {
                                                          "t": "true"
                                                      },
                                                      {
                                                          "t": "false"
                                                      }
                                                  ],
                                                  "checkall": "true",
                                                  "repair": false,
                                                  "outputs": 2,
                                                  "x": 580,
                                                  "y": 60,
                                                  "wires": [
                                                      [
                                                          "4c349095bd25378c",
                                                          "553c77a748e7869a"
                                                      ],
                                                      [
                                                          "553c77a748e7869a"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "a95d63f2785aa847",
                                                  "type": "switch",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Roborock nicht Status 5",
                                                  "property": "roborock",
                                                  "propertyType": "msg",
                                                  "rules": [
                                                      {
                                                          "t": "neq",
                                                          "v": "5",
                                                          "vt": "num"
                                                      }
                                                  ],
                                                  "checkall": "true",
                                                  "repair": false,
                                                  "outputs": 1,
                                                  "x": 1030,
                                                  "y": 60,
                                                  "wires": [
                                                      [
                                                          "63495a6198767abe"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "2cbb19c25bdbf55d",
                                                  "type": "trigger",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Warte 1 Minute bevor false gesendet wird",
                                                  "op1": "true",
                                                  "op2": "false",
                                                  "op1type": "bool",
                                                  "op2type": "bool",
                                                  "duration": "10",
                                                  "extend": true,
                                                  "overrideDelay": false,
                                                  "units": "s",
                                                  "reset": "true",
                                                  "bytopic": "all",
                                                  "topic": "topic",
                                                  "outputs": 1,
                                                  "x": 980,
                                                  "y": 100,
                                                  "wires": [
                                                      [
                                                          "63495a6198767abe"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "3d16cb434aa22482",
                                                  "type": "ioBroker get",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Bad licht an Alexa",
                                                  "topic": "alexa2.0.Echo-Devices.G0913L06031202PA.Routines.d2b8b4a7-0faf-444d-be14-0e90a1db9e1e",
                                                  "attrname": "Alexa",
                                                  "payloadType": "value",
                                                  "errOnInvalidState": "nothing",
                                                  "x": 110,
                                                  "y": 140,
                                                  "wires": [
                                                      [
                                                          "66e5680c9143f38f"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "fc25cbeee0cad617",
                                                  "type": "ioBroker out",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Bad Decke",
                                                  "topic": "sonoff.0.bad_deckenlampe.POWER",
                                                  "ack": "false",
                                                  "autoCreate": "false",
                                                  "stateName": "",
                                                  "role": "",
                                                  "payloadType": "",
                                                  "readonly": "",
                                                  "stateUnit": "",
                                                  "stateMin": "",
                                                  "stateMax": "",
                                                  "x": 1290,
                                                  "y": 220,
                                                  "wires": []
                                              },
                                              {
                                                  "id": "4961b7defde8b1ea",
                                                  "type": "ioBroker in",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Schalter Digital",
                                                  "attrname": "payload",
                                                  "topic": "0_userdata.0.Test_Schalter",
                                                  "payloadType": "value",
                                                  "onlyack": "",
                                                  "func": "all",
                                                  "gap": "",
                                                  "fireOnStart": "false",
                                                  "outFormat": "MQTT",
                                                  "x": 120,
                                                  "y": 200,
                                                  "wires": [
                                                      [
                                                          "a6f995c7f01c5cc0"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "a6f995c7f01c5cc0",
                                                  "type": "switch",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "Switch true/false",
                                                  "property": "payload",
                                                  "propertyType": "msg",
                                                  "rules": [
                                                      {
                                                          "t": "true"
                                                      },
                                                      {
                                                          "t": "false"
                                                      }
                                                  ],
                                                  "checkall": "true",
                                                  "repair": false,
                                                  "outputs": 2,
                                                  "x": 1080,
                                                  "y": 200,
                                                  "wires": [
                                                      [
                                                          "fc25cbeee0cad617",
                                                          "8abca0bad942f182"
                                                      ],
                                                      [
                                                          "fc25cbeee0cad617",
                                                          "8abca0bad942f182"
                                                      ]
                                                  ]
                                              },
                                              {
                                                  "id": "8abca0bad942f182",
                                                  "type": "debug",
                                                  "z": "2e295f1c879e6af4",
                                                  "name": "debug 9",
                                                  "active": true,
                                                  "tosidebar": true,
                                                  "console": false,
                                                  "tostatus": false,
                                                  "complete": "false",
                                                  "statusVal": "",
                                                  "statusType": "auto",
                                                  "x": 1280,
                                                  "y": 180,
                                                  "wires": []
                                              }
                                          ]
                                          

                                          Screenshot 2024-08-12 222913.png
                                          Hoffe das ist programmier technisch so korrekt.

                                          mickym Aphofis 2 Replies Last reply Reply Quote 0
                                          • mickym
                                            mickym Most Active @Aphofis last edited by mickym

                                            @aphofis Nein der switch ist doch überflüssig, wenn du sowohl true und false an die iobroker-Out Node schickst. Lösch die.

                                            74671101-885c-4747-875c-018c8371ebce-image.png

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            216
                                            15022
                                            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