Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Node-Red
  5. 2 Bewegungsmelder (Aqara) sollen einen Lampe schalten

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    6
    1
    226

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    8
    1
    220

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    893

2 Bewegungsmelder (Aqara) sollen einen Lampe schalten

Scheduled Pinned Locked Moved Node-Red
216 Posts 3 Posters 23.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AphofisA Aphofis

    @mickym also so ?
    Screenshot 2024-08-21 221813.png

    [
        {
            "id": "2e295f1c879e6af4",
            "type": "tab",
            "label": "Bad_Motion",
            "disabled": false,
            "info": "",
            "env": []
        },
        {
            "id": "3c4eead45d639099",
            "type": "junction",
            "z": "2e295f1c879e6af4",
            "x": 920,
            "y": 70,
            "wires": [
                [
                    "8abca0bad942f182",
                    "fc25cbeee0cad617"
                ]
            ]
        },
        {
            "id": "536b62b8d18c6cf0",
            "type": "junction",
            "z": "2e295f1c879e6af4",
            "x": 270,
            "y": 70,
            "wires": [
                [
                    "3c4eead45d639099"
                ]
            ]
        },
        {
            "id": "f2e7288278a6661f",
            "type": "junction",
            "z": "2e295f1c879e6af4",
            "x": 280,
            "y": 160,
            "wires": [
                [
                    "7b323a4ddca3e7c1"
                ]
            ]
        },
        {
            "id": "269ad011754f07ad",
            "type": "junction",
            "z": "2e295f1c879e6af4",
            "x": 280,
            "y": 270,
            "wires": [
                [
                    "7b323a4ddca3e7c1"
                ]
            ]
        },
        {
            "id": "8ba39a421f5c3317",
            "type": "junction",
            "z": "2e295f1c879e6af4",
            "x": 230,
            "y": 450,
            "wires": [
                [
                    "6e55b108db47eaed",
                    "2b793d273b25a2f7"
                ]
            ]
        },
        {
            "id": "4c349095bd25378c",
            "type": "ioBroker get",
            "z": "2e295f1c879e6af4",
            "name": "Reinigung Status",
            "topic": "mihome-vacuum.1.info.state",
            "attrname": "roborock",
            "payloadType": "value",
            "errOnInvalidState": "nothing",
            "x": 600,
            "y": 370,
            "wires": [
                [
                    "a95d63f2785aa847"
                ]
            ]
        },
        {
            "id": "4b318acc0eab7b1b",
            "type": "ioBroker in",
            "z": "2e295f1c879e6af4",
            "name": "Bad Motion 1",
            "attrname": "payload",
            "topic": "hue.0.Bad_Motion_Sensor.presence",
            "payloadType": "value",
            "onlyack": "",
            "func": "all",
            "gap": "",
            "fireOnStart": "false",
            "outFormat": "MQTT",
            "x": 130,
            "y": 160,
            "wires": [
                [
                    "f2e7288278a6661f"
                ]
            ]
        },
        {
            "id": "9dd1e1bc2bca9ade",
            "type": "ioBroker out",
            "z": "2e295f1c879e6af4",
            "name": "Bad Decke",
            "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
            "ack": "false",
            "autoCreate": "false",
            "stateName": "",
            "role": "",
            "payloadType": "",
            "readonly": "",
            "stateUnit": "",
            "stateMin": "",
            "stateMax": "",
            "x": 1020,
            "y": 320,
            "wires": []
        },
        {
            "id": "d0ddca612599b43c",
            "type": "debug",
            "z": "2e295f1c879e6af4",
            "name": "Bad Licht",
            "active": false,
            "tosidebar": true,
            "console": false,
            "tostatus": false,
            "complete": "payload",
            "targetType": "msg",
            "statusVal": "",
            "statusType": "auto",
            "x": 1010,
            "y": 370,
            "wires": []
        },
        {
            "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": 830,
            "y": 210,
            "wires": [
                [
                    "122117be9b2af524"
                ],
                [
                    "154396f8caa9bc54"
                ]
            ]
        },
        {
            "id": "a95d63f2785aa847",
            "type": "switch",
            "z": "2e295f1c879e6af4",
            "name": "Robi nicht Status 5",
            "property": "roborock",
            "propertyType": "msg",
            "rules": [
                {
                    "t": "neq",
                    "v": "5",
                    "vt": "num"
                }
            ],
            "checkall": "true",
            "repair": false,
            "outputs": 1,
            "x": 800,
            "y": 370,
            "wires": [
                [
                    "d0ddca612599b43c",
                    "9dd1e1bc2bca9ade"
                ]
            ]
        },
        {
            "id": "2cbb19c25bdbf55d",
            "type": "trigger",
            "z": "2e295f1c879e6af4",
            "name": "1 min. warten bevor false",
            "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": 780,
            "y": 320,
            "wires": [
                [
                    "d0ddca612599b43c",
                    "9dd1e1bc2bca9ade"
                ]
            ]
        },
        {
            "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": 270,
            "wires": [
                [
                    "269ad011754f07ad"
                ]
            ]
        },
        {
            "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": 1020,
            "y": 90,
            "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": 40,
            "wires": [
                [
                    "536b62b8d18c6cf0"
                ]
            ]
        },
        {
            "id": "8abca0bad942f182",
            "type": "debug",
            "z": "2e295f1c879e6af4",
            "name": "Bad Licht Alexa",
            "active": false,
            "tosidebar": true,
            "console": false,
            "tostatus": false,
            "complete": "payload",
            "targetType": "msg",
            "statusVal": "",
            "statusType": "auto",
            "x": 1030,
            "y": 50,
            "wires": []
        },
        {
            "id": "323cb6465fa717e5",
            "type": "ioBroker in",
            "z": "2e295f1c879e6af4",
            "name": "Bad Motion 2",
            "attrname": "payload",
            "topic": "tuya.0.bf15a2489964bff33bavvv.1",
            "payloadType": "value",
            "onlyack": "",
            "func": "all",
            "gap": "",
            "fireOnStart": "false",
            "outFormat": "MQTT",
            "x": 130,
            "y": 210,
            "wires": [
                [
                    "9bdfabd4b2e4a214"
                ]
            ]
        },
        {
            "id": "1050671f0db85c92",
            "type": "ioBroker in",
            "z": "2e295f1c879e6af4",
            "name": "Alexa Bad Licht an",
            "attrname": "payload",
            "topic": "alexa2.0.Echo-Devices.G0913L06031202PA.Routines.d2b8b4a7-0faf-444d-be14-0e90a1db9e1e",
            "payloadType": "value",
            "onlyack": "",
            "func": "all",
            "gap": "",
            "fireOnStart": "false",
            "outFormat": "MQTT",
            "x": 110,
            "y": 100,
            "wires": [
                [
                    "536b62b8d18c6cf0"
                ]
            ]
        },
        {
            "id": "9bdfabd4b2e4a214",
            "type": "change",
            "z": "2e295f1c879e6af4",
            "name": "wechsel",
            "rules": [
                {
                    "t": "change",
                    "p": "payload",
                    "pt": "msg",
                    "from": "1",
                    "fromt": "str",
                    "to": "true",
                    "tot": "str"
                },
                {
                    "t": "change",
                    "p": "payload",
                    "pt": "msg",
                    "from": "0",
                    "fromt": "str",
                    "to": "false",
                    "tot": "str"
                }
            ],
            "action": "",
            "property": "",
            "from": "",
            "to": "",
            "reg": false,
            "x": 290,
            "y": 210,
            "wires": [
                [
                    "7b323a4ddca3e7c1"
                ]
            ]
        },
        {
            "id": "122117be9b2af524",
            "type": "link out",
            "z": "2e295f1c879e6af4",
            "name": "link out 3",
            "mode": "link",
            "links": [
                "12526f836b7135a5",
                "2f09309457a74553"
            ],
            "x": 965,
            "y": 190,
            "wires": []
        },
        {
            "id": "2f09309457a74553",
            "type": "link in",
            "z": "2e295f1c879e6af4",
            "name": "link in 3",
            "links": [
                "122117be9b2af524",
                "154396f8caa9bc54"
            ],
            "x": 635,
            "y": 320,
            "wires": [
                [
                    "2cbb19c25bdbf55d"
                ]
            ]
        },
        {
            "id": "12526f836b7135a5",
            "type": "link in",
            "z": "2e295f1c879e6af4",
            "name": "link in 4",
            "links": [
                "122117be9b2af524",
                "154396f8caa9bc54"
            ],
            "x": 475,
            "y": 370,
            "wires": [
                [
                    "4c349095bd25378c"
                ]
            ]
        },
        {
            "id": "154396f8caa9bc54",
            "type": "link out",
            "z": "2e295f1c879e6af4",
            "name": "link out 4",
            "mode": "link",
            "links": [
                "2f09309457a74553",
                "12526f836b7135a5"
            ],
            "x": 965,
            "y": 230,
            "wires": []
        },
        {
            "id": "7b323a4ddca3e7c1",
            "type": "switch",
            "z": "2e295f1c879e6af4",
            "name": "",
            "property": "payload",
            "propertyType": "msg",
            "rules": [
                {
                    "t": "eq",
                    "v": "Schalter.Bad",
                    "vt": "str"
                }
            ],
            "checkall": "true",
            "repair": false,
            "outputs": 1,
            "x": 510,
            "y": 210,
            "wires": [
                [
                    "66e5680c9143f38f"
                ]
            ]
        },
        {
            "id": "825a34e2e6145b1c",
            "type": "ioBroker in",
            "z": "2e295f1c879e6af4",
            "name": "",
            "attrname": "payload",
            "topic": "Lichtschalter Bad",
            "payloadType": "object",
            "onlyack": "",
            "func": "all",
            "gap": "",
            "fireOnStart": "false",
            "outFormat": "MQTT",
            "x": 100,
            "y": 450,
            "wires": [
                [
                    "8ba39a421f5c3317"
                ]
            ]
        },
        {
            "id": "2b793d273b25a2f7",
            "type": "ioBroker out",
            "z": "2e295f1c879e6af4",
            "name": "Bad Decke",
            "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
            "ack": "false",
            "autoCreate": "false",
            "stateName": "",
            "role": "",
            "payloadType": "",
            "readonly": "",
            "stateUnit": "",
            "stateMin": "",
            "stateMax": "",
            "x": 1040,
            "y": 450,
            "wires": []
        },
        {
            "id": "50172abc4513c6cf",
            "type": "debug",
            "z": "2e295f1c879e6af4",
            "name": "Bad Decke",
            "active": true,
            "tosidebar": true,
            "console": false,
            "tostatus": false,
            "complete": "payload",
            "targetType": "msg",
            "statusVal": "",
            "statusType": "auto",
            "x": 1010,
            "y": 500,
            "wires": []
        },
        {
            "id": "6e55b108db47eaed",
            "type": "change",
            "z": "2e295f1c879e6af4",
            "name": "",
            "rules": [
                {
                    "t": "set",
                    "p": "Schalter.Bad",
                    "pt": "flow",
                    "to": "true",
                    "tot": "bool"
                }
            ],
            "action": "",
            "property": "",
            "from": "",
            "to": "",
            "reg": false,
            "x": 370,
            "y": 490,
            "wires": [
                [
                    "4faf1ed0bf7c1af3"
                ]
            ]
        },
        {
            "id": "4faf1ed0bf7c1af3",
            "type": "trigger",
            "z": "2e295f1c879e6af4",
            "name": "",
            "op1": "",
            "op2": "false",
            "op1type": "nul",
            "op2type": "bool",
            "duration": "10",
            "extend": true,
            "overrideDelay": false,
            "units": "s",
            "reset": "",
            "bytopic": "all",
            "topic": "topic",
            "outputs": 1,
            "x": 590,
            "y": 490,
            "wires": [
                [
                    "f65257011e0b574c"
                ]
            ]
        },
        {
            "id": "f65257011e0b574c",
            "type": "change",
            "z": "2e295f1c879e6af4",
            "name": "",
            "rules": [
                {
                    "t": "set",
                    "p": "Schalter.Bad",
                    "pt": "flow",
                    "to": "false",
                    "tot": "bool"
                }
            ],
            "action": "",
            "property": "",
            "from": "",
            "to": "",
            "reg": false,
            "x": 790,
            "y": 490,
            "wires": [
                [
                    "50172abc4513c6cf",
                    "2b793d273b25a2f7"
                ]
            ]
        },
        {
            "id": "d4d742934b195768",
            "type": "inject",
            "z": "2e295f1c879e6af4",
            "name": "Aus",
            "props": [
                {
                    "p": "payload"
                },
                {
                    "p": "topic",
                    "vt": "str"
                }
            ],
            "repeat": "",
            "crontab": "",
            "once": false,
            "onceDelay": 0.1,
            "topic": "",
            "payload": "false",
            "payloadType": "bool",
            "x": 120,
            "y": 370,
            "wires": [
                [
                    "8ba39a421f5c3317"
                ]
            ]
        },
        {
            "id": "34a6d988e012a62b",
            "type": "inject",
            "z": "2e295f1c879e6af4",
            "name": "An",
            "props": [
                {
                    "p": "payload"
                },
                {
                    "p": "topic",
                    "vt": "str"
                }
            ],
            "repeat": "",
            "crontab": "",
            "once": false,
            "onceDelay": 0.1,
            "topic": "",
            "payload": "true",
            "payloadType": "bool",
            "x": 120,
            "y": 410,
            "wires": [
                [
                    "8ba39a421f5c3317"
                ]
            ]
        }
    ]
    

    mickymM Online
    mickymM Online
    mickym
    Most Active
    wrote on last edited by mickym
    #146

    @aphofis Die switch Node ist zwar an der richtigen Stelle, aber Du prüfst doch nicht die Kontextvariable Schalter.Bad auf false ab.

    79657ed1-c40c-49fa-bcfb-e963f520a297-image.png

    Du fragst ob die Nachrichteneigenschaft payload auf einen String "Schalter.Bad" ab, der wird von den Bewegungsmeldern SICHER nicht geliefert. In diesem Fall blockiert die switch Node ALLE Nachrichten.
    Also nicht die Nachrichteneigenschaft payload überprüfen, sondern die Flowvariable Schalter.Bad

    Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

    AphofisA 1 Reply Last reply
    0
    • mickymM mickym

      @aphofis Die switch Node ist zwar an der richtigen Stelle, aber Du prüfst doch nicht die Kontextvariable Schalter.Bad auf false ab.

      79657ed1-c40c-49fa-bcfb-e963f520a297-image.png

      Du fragst ob die Nachrichteneigenschaft payload auf einen String "Schalter.Bad" ab, der wird von den Bewegungsmeldern SICHER nicht geliefert. In diesem Fall blockiert die switch Node ALLE Nachrichten.
      Also nicht die Nachrichteneigenschaft payload überprüfen, sondern die Flowvariable Schalter.Bad

      AphofisA Offline
      AphofisA Offline
      Aphofis
      wrote on last edited by
      #147

      @mickym so
      Screenshot 2024-08-21 222359.png

      mickymM 1 Reply Last reply
      0
      • AphofisA Aphofis

        @mickym so
        Screenshot 2024-08-21 222359.png

        mickymM Online
        mickymM Online
        mickym
        Most Active
        wrote on last edited by mickym
        #148

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

        @mickym so
        Screenshot 2024-08-21 222359.png

        Ja Du sollst aber nicht auf true, sondern auf false abprüfen. Du möchtest ja, dass die Nachrichten der Bewegungsmelder DANN durchgelassen werden, wenn der Schalter NICHT aktiv ist.
        Hab ich glaub aber nun mind. 4 mal in den letzten Posts geschrieben.

        Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

        AphofisA 1 Reply Last reply
        0
        • mickymM mickym

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

          @mickym so
          Screenshot 2024-08-21 222359.png

          Ja Du sollst aber nicht auf true, sondern auf false abprüfen. Du möchtest ja, dass die Nachrichten der Bewegungsmelder DANN durchgelassen werden, wenn der Schalter NICHT aktiv ist.
          Hab ich glaub aber nun mind. 4 mal in den letzten Posts geschrieben.

          AphofisA Offline
          AphofisA Offline
          Aphofis
          wrote on last edited by
          #149

          @mickym ja so langsam verstehe ich das

          AphofisA 1 Reply Last reply
          0
          • AphofisA Aphofis

            @mickym ja so langsam verstehe ich das

            AphofisA Offline
            AphofisA Offline
            Aphofis
            wrote on last edited by
            #150

            Aber ich muss Feierabend machen, mir fallen schon die augen zu. war ein langer Tag.
            Vielen Dank für deine Hilfe.
            Wenn der Flow so funktioniert, können wir Heute erstmal einen Break machen.

            mickymM 1 Reply Last reply
            0
            • AphofisA Aphofis

              Aber ich muss Feierabend machen, mir fallen schon die augen zu. war ein langer Tag.
              Vielen Dank für deine Hilfe.
              Wenn der Flow so funktioniert, können wir Heute erstmal einen Break machen.

              mickymM Online
              mickymM Online
              mickym
              Most Active
              wrote on last edited by
              #151

              @aphofis Ja - wir sind ja eh fertig. Mehr gibts in meinen Augen nicht zu tun.

              Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

              AphofisA 1 Reply Last reply
              0
              • mickymM mickym

                @aphofis Ja - wir sind ja eh fertig. Mehr gibts in meinen Augen nicht zu tun.

                AphofisA Offline
                AphofisA Offline
                Aphofis
                wrote on last edited by
                #152

                @mickym OK Prima
                und Danke

                mickymM 1 Reply Last reply
                0
                • AphofisA Aphofis

                  @mickym OK Prima
                  und Danke

                  mickymM Online
                  mickymM Online
                  mickym
                  Most Active
                  wrote on last edited by mickym
                  #153

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

                  @mickym OK Prima
                  und Danke

                  Die Flowvariable musst initialisieren, wenn Du den gesamten Flow bzw. NodeRed neu startest.

                  Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                  AphofisA 1 Reply Last reply
                  0
                  • mickymM mickym

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

                    @mickym OK Prima
                    und Danke

                    Die Flowvariable musst initialisieren, wenn Du den gesamten Flow bzw. NodeRed neu startest.

                    AphofisA Offline
                    AphofisA Offline
                    Aphofis
                    wrote on last edited by
                    #154

                    @mickym
                    das heisst was
                    Weil noch geht das licht immer nach 2 min. Bewegung aus.

                    mickymM 1 Reply Last reply
                    0
                    • AphofisA Aphofis

                      @mickym
                      das heisst was
                      Weil noch geht das licht immer nach 2 min. Bewegung aus.

                      mickymM Online
                      mickymM Online
                      mickym
                      Most Active
                      wrote on last edited by mickym
                      #155

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

                      @mickym
                      das heisst was

                      b5fa7c30-2de7-4331-a906-5c0167b35a7c-image.png

                      Einmalig nach dem Node-Red gestartet wurde über eine Inject-Node die Flowvariable Schalter.Bad auf false setzen.

                      [
                         {
                             "id": "89dc4ff1007ac71d",
                             "type": "inject",
                             "z": "95d5d241e51360cd",
                             "name": "",
                             "props": [
                                 {
                                     "p": "payload"
                                 }
                             ],
                             "repeat": "",
                             "crontab": "",
                             "once": true,
                             "onceDelay": 0.1,
                             "topic": "",
                             "payload": "false",
                             "payloadType": "bool",
                             "x": 350,
                             "y": 1660,
                             "wires": [
                                 [
                                     "7238145e880c3472"
                                 ]
                             ]
                         },
                         {
                             "id": "7238145e880c3472",
                             "type": "change",
                             "z": "95d5d241e51360cd",
                             "name": "",
                             "rules": [
                                 {
                                     "t": "set",
                                     "p": "Schalter.Bad",
                                     "pt": "flow",
                                     "to": "false",
                                     "tot": "bool"
                                 }
                             ],
                             "action": "",
                             "property": "",
                             "from": "",
                             "to": "",
                             "reg": false,
                             "x": 550,
                             "y": 1660,
                             "wires": [
                                 []
                             ]
                         }
                      ]
                      

                      Weil noch geht das licht immer nach 2 min. Bewegung aus.

                      Na auf Fehlersuche musst Du selbst gehen. Dann mach eine Debug Node hinter Deine Switch Node.
                      Wenn die Schalter.Bad Variable auf true ist, dann sollte nichts durchkommen. Ggf. über eine Inject Node bzw. über den Schalter simulieren und den Kontext prüfen. Fehlersuche musst Du leider alleine betreiben.

                      Grundsätzlich kannst Du ja so einen Switch - ob der richtig filtert auch alleine prüfen, in dem Du Dir einen kleinen Testflow bastelst und mal die Variable auf true und mal auf false setzt:

                      db41cda0-1292-4dd6-aeb0-60729509955d-image.png

                      [
                         {
                             "id": "e87a827d28e70510",
                             "type": "inject",
                             "z": "95d5d241e51360cd",
                             "name": "Test",
                             "props": [
                                 {
                                     "p": "payload"
                                 }
                             ],
                             "repeat": "",
                             "crontab": "",
                             "once": false,
                             "onceDelay": 0.1,
                             "topic": "",
                             "payload": "Testnachricht",
                             "payloadType": "str",
                             "x": 350,
                             "y": 1820,
                             "wires": [
                                 [
                                     "9d948843920ee33a"
                                 ]
                             ]
                         },
                         {
                             "id": "9d948843920ee33a",
                             "type": "switch",
                             "z": "95d5d241e51360cd",
                             "name": "",
                             "property": "Schalter.Bad",
                             "propertyType": "flow",
                             "rules": [
                                 {
                                     "t": "false"
                                 }
                             ],
                             "checkall": "true",
                             "repair": false,
                             "outputs": 1,
                             "x": 490,
                             "y": 1820,
                             "wires": [
                                 [
                                     "99f14be7d03a378b"
                                 ]
                             ]
                         },
                         {
                             "id": "038ffeeb65c24042",
                             "type": "inject",
                             "z": "95d5d241e51360cd",
                             "name": "",
                             "props": [
                                 {
                                     "p": "payload"
                                 },
                                 {
                                     "p": "topic",
                                     "vt": "str"
                                 }
                             ],
                             "repeat": "",
                             "crontab": "",
                             "once": false,
                             "onceDelay": 0.1,
                             "topic": "",
                             "payload": "true",
                             "payloadType": "bool",
                             "x": 350,
                             "y": 1680,
                             "wires": [
                                 [
                                     "6a701a0ddc9134ff"
                                 ]
                             ]
                         },
                         {
                             "id": "99f14be7d03a378b",
                             "type": "debug",
                             "z": "95d5d241e51360cd",
                             "name": "Wenn Schalter.Bad = false",
                             "active": true,
                             "tosidebar": true,
                             "console": false,
                             "tostatus": false,
                             "complete": "payload",
                             "targetType": "msg",
                             "statusVal": "",
                             "statusType": "auto",
                             "x": 720,
                             "y": 1820,
                             "wires": []
                         },
                         {
                             "id": "643b86ca80c69a9f",
                             "type": "inject",
                             "z": "95d5d241e51360cd",
                             "name": "",
                             "props": [
                                 {
                                     "p": "payload"
                                 },
                                 {
                                     "p": "topic",
                                     "vt": "str"
                                 }
                             ],
                             "repeat": "",
                             "crontab": "",
                             "once": false,
                             "onceDelay": 0.1,
                             "topic": "",
                             "payload": "false",
                             "payloadType": "bool",
                             "x": 350,
                             "y": 1720,
                             "wires": [
                                 [
                                     "6a701a0ddc9134ff"
                                 ]
                             ]
                         },
                         {
                             "id": "6a701a0ddc9134ff",
                             "type": "change",
                             "z": "95d5d241e51360cd",
                             "name": "",
                             "rules": [
                                 {
                                     "t": "set",
                                     "p": "Schalter.Bad",
                                     "pt": "flow",
                                     "to": "payload",
                                     "tot": "msg"
                                 }
                             ],
                             "action": "",
                             "property": "",
                             "from": "",
                             "to": "",
                             "reg": false,
                             "x": 550,
                             "y": 1700,
                             "wires": [
                                 []
                             ]
                         }
                      ]
                      

                      Jetzt lass ich Dich aber mal alleine - vielleicht hast Du ja noch einen Flow oder ein Blockly parallel laufen. Jedenfalls siehst Du an dem Testflow, wie so ein Filter arbeitet und nicht mehr oder weniger hast Du ja an Deinem Bewegungsmelderflow dran.

                      Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                      AphofisA 1 Reply Last reply
                      0
                      • mickymM mickym

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

                        @mickym
                        das heisst was

                        b5fa7c30-2de7-4331-a906-5c0167b35a7c-image.png

                        Einmalig nach dem Node-Red gestartet wurde über eine Inject-Node die Flowvariable Schalter.Bad auf false setzen.

                        [
                           {
                               "id": "89dc4ff1007ac71d",
                               "type": "inject",
                               "z": "95d5d241e51360cd",
                               "name": "",
                               "props": [
                                   {
                                       "p": "payload"
                                   }
                               ],
                               "repeat": "",
                               "crontab": "",
                               "once": true,
                               "onceDelay": 0.1,
                               "topic": "",
                               "payload": "false",
                               "payloadType": "bool",
                               "x": 350,
                               "y": 1660,
                               "wires": [
                                   [
                                       "7238145e880c3472"
                                   ]
                               ]
                           },
                           {
                               "id": "7238145e880c3472",
                               "type": "change",
                               "z": "95d5d241e51360cd",
                               "name": "",
                               "rules": [
                                   {
                                       "t": "set",
                                       "p": "Schalter.Bad",
                                       "pt": "flow",
                                       "to": "false",
                                       "tot": "bool"
                                   }
                               ],
                               "action": "",
                               "property": "",
                               "from": "",
                               "to": "",
                               "reg": false,
                               "x": 550,
                               "y": 1660,
                               "wires": [
                                   []
                               ]
                           }
                        ]
                        

                        Weil noch geht das licht immer nach 2 min. Bewegung aus.

                        Na auf Fehlersuche musst Du selbst gehen. Dann mach eine Debug Node hinter Deine Switch Node.
                        Wenn die Schalter.Bad Variable auf true ist, dann sollte nichts durchkommen. Ggf. über eine Inject Node bzw. über den Schalter simulieren und den Kontext prüfen. Fehlersuche musst Du leider alleine betreiben.

                        Grundsätzlich kannst Du ja so einen Switch - ob der richtig filtert auch alleine prüfen, in dem Du Dir einen kleinen Testflow bastelst und mal die Variable auf true und mal auf false setzt:

                        db41cda0-1292-4dd6-aeb0-60729509955d-image.png

                        [
                           {
                               "id": "e87a827d28e70510",
                               "type": "inject",
                               "z": "95d5d241e51360cd",
                               "name": "Test",
                               "props": [
                                   {
                                       "p": "payload"
                                   }
                               ],
                               "repeat": "",
                               "crontab": "",
                               "once": false,
                               "onceDelay": 0.1,
                               "topic": "",
                               "payload": "Testnachricht",
                               "payloadType": "str",
                               "x": 350,
                               "y": 1820,
                               "wires": [
                                   [
                                       "9d948843920ee33a"
                                   ]
                               ]
                           },
                           {
                               "id": "9d948843920ee33a",
                               "type": "switch",
                               "z": "95d5d241e51360cd",
                               "name": "",
                               "property": "Schalter.Bad",
                               "propertyType": "flow",
                               "rules": [
                                   {
                                       "t": "false"
                                   }
                               ],
                               "checkall": "true",
                               "repair": false,
                               "outputs": 1,
                               "x": 490,
                               "y": 1820,
                               "wires": [
                                   [
                                       "99f14be7d03a378b"
                                   ]
                               ]
                           },
                           {
                               "id": "038ffeeb65c24042",
                               "type": "inject",
                               "z": "95d5d241e51360cd",
                               "name": "",
                               "props": [
                                   {
                                       "p": "payload"
                                   },
                                   {
                                       "p": "topic",
                                       "vt": "str"
                                   }
                               ],
                               "repeat": "",
                               "crontab": "",
                               "once": false,
                               "onceDelay": 0.1,
                               "topic": "",
                               "payload": "true",
                               "payloadType": "bool",
                               "x": 350,
                               "y": 1680,
                               "wires": [
                                   [
                                       "6a701a0ddc9134ff"
                                   ]
                               ]
                           },
                           {
                               "id": "99f14be7d03a378b",
                               "type": "debug",
                               "z": "95d5d241e51360cd",
                               "name": "Wenn Schalter.Bad = false",
                               "active": true,
                               "tosidebar": true,
                               "console": false,
                               "tostatus": false,
                               "complete": "payload",
                               "targetType": "msg",
                               "statusVal": "",
                               "statusType": "auto",
                               "x": 720,
                               "y": 1820,
                               "wires": []
                           },
                           {
                               "id": "643b86ca80c69a9f",
                               "type": "inject",
                               "z": "95d5d241e51360cd",
                               "name": "",
                               "props": [
                                   {
                                       "p": "payload"
                                   },
                                   {
                                       "p": "topic",
                                       "vt": "str"
                                   }
                               ],
                               "repeat": "",
                               "crontab": "",
                               "once": false,
                               "onceDelay": 0.1,
                               "topic": "",
                               "payload": "false",
                               "payloadType": "bool",
                               "x": 350,
                               "y": 1720,
                               "wires": [
                                   [
                                       "6a701a0ddc9134ff"
                                   ]
                               ]
                           },
                           {
                               "id": "6a701a0ddc9134ff",
                               "type": "change",
                               "z": "95d5d241e51360cd",
                               "name": "",
                               "rules": [
                                   {
                                       "t": "set",
                                       "p": "Schalter.Bad",
                                       "pt": "flow",
                                       "to": "payload",
                                       "tot": "msg"
                                   }
                               ],
                               "action": "",
                               "property": "",
                               "from": "",
                               "to": "",
                               "reg": false,
                               "x": 550,
                               "y": 1700,
                               "wires": [
                                   []
                               ]
                           }
                        ]
                        

                        Jetzt lass ich Dich aber mal alleine - vielleicht hast Du ja noch einen Flow oder ein Blockly parallel laufen. Jedenfalls siehst Du an dem Testflow, wie so ein Filter arbeitet und nicht mehr oder weniger hast Du ja an Deinem Bewegungsmelderflow dran.

                        AphofisA Offline
                        AphofisA Offline
                        Aphofis
                        wrote on last edited by
                        #156

                        @mickym
                        also mit das heißt was, meinte ich wie initialisiert man die flowvariable.
                        Hast du mir ja nun gesendet. Muss diese irgendwo verknüpft werden !?
                        Hatte die initialisierung an die erste switch node gehängt und dann einmal ausgelöst. Wenn ich dann den Lichtschalter betätige startet der 15 min node nicht.
                        Fehlersuche ist eine Sache, wenn man weiß wo man suchen soll.

                        mickymM 1 Reply Last reply
                        0
                        • AphofisA Aphofis

                          @mickym
                          also mit das heißt was, meinte ich wie initialisiert man die flowvariable.
                          Hast du mir ja nun gesendet. Muss diese irgendwo verknüpft werden !?
                          Hatte die initialisierung an die erste switch node gehängt und dann einmal ausgelöst. Wenn ich dann den Lichtschalter betätige startet der 15 min node nicht.
                          Fehlersuche ist eine Sache, wenn man weiß wo man suchen soll.

                          mickymM Online
                          mickymM Online
                          mickym
                          Most Active
                          wrote on last edited by
                          #157

                          @aphofis Due initialisierung bleibt so getrennt wie ich gepostet habr. Die Fehlersuche bleibt bei Dir - ich habe Dir ja einen Flow gepostet wo Du die Blockierung der switch Node testen kannst. Der Rest liegt bei dir.

                          Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                          AphofisA 1 Reply Last reply
                          0
                          • mickymM mickym

                            @aphofis Due initialisierung bleibt so getrennt wie ich gepostet habr. Die Fehlersuche bleibt bei Dir - ich habe Dir ja einen Flow gepostet wo Du die Blockierung der switch Node testen kannst. Der Rest liegt bei dir.

                            AphofisA Offline
                            AphofisA Offline
                            Aphofis
                            wrote on last edited by
                            #158

                            @mickym Also bei Lichtschalter betätigen tut sich nichts

                            mickymM 1 Reply Last reply
                            0
                            • AphofisA Aphofis

                              @mickym Also bei Lichtschalter betätigen tut sich nichts

                              mickymM Online
                              mickymM Online
                              mickym
                              Most Active
                              wrote on last edited by
                              #159

                              @aphofis Na ich kann Dir da nicht helfen - entweder hast Du kein command verwendet - aber ich weiß nicht was bei einer 1:1 Verbindung schief gehen soll.

                              Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                              AphofisA 1 Reply Last reply
                              0
                              • mickymM mickym

                                @aphofis Na ich kann Dir da nicht helfen - entweder hast Du kein command verwendet - aber ich weiß nicht was bei einer 1:1 Verbindung schief gehen soll.

                                AphofisA Offline
                                AphofisA Offline
                                Aphofis
                                wrote on last edited by
                                #160

                                @mickym Ich weiß das auch nicht und wenn man den Lichtschalter ausschaltet bleibt der Zeit Trigger mit halbe std so stehen also aktiv der soll doch deaktiviert werden.

                                AphofisA mickymM 3 Replies Last reply
                                0
                                • AphofisA Aphofis

                                  @mickym Ich weiß das auch nicht und wenn man den Lichtschalter ausschaltet bleibt der Zeit Trigger mit halbe std so stehen also aktiv der soll doch deaktiviert werden.

                                  AphofisA Offline
                                  AphofisA Offline
                                  Aphofis
                                  wrote on last edited by
                                  #161

                                  @aphofis
                                  Screenshot 2024-08-22 220421.png

                                  [
                                      {
                                          "id": "2e295f1c879e6af4",
                                          "type": "tab",
                                          "label": "Bad_Motion",
                                          "disabled": false,
                                          "info": "",
                                          "env": []
                                      },
                                      {
                                          "id": "3c4eead45d639099",
                                          "type": "junction",
                                          "z": "2e295f1c879e6af4",
                                          "x": 920,
                                          "y": 70,
                                          "wires": [
                                              [
                                                  "8abca0bad942f182",
                                                  "fc25cbeee0cad617"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "536b62b8d18c6cf0",
                                          "type": "junction",
                                          "z": "2e295f1c879e6af4",
                                          "x": 270,
                                          "y": 70,
                                          "wires": [
                                              [
                                                  "3c4eead45d639099"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "f2e7288278a6661f",
                                          "type": "junction",
                                          "z": "2e295f1c879e6af4",
                                          "x": 280,
                                          "y": 160,
                                          "wires": [
                                              [
                                                  "7b323a4ddca3e7c1"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "269ad011754f07ad",
                                          "type": "junction",
                                          "z": "2e295f1c879e6af4",
                                          "x": 280,
                                          "y": 270,
                                          "wires": [
                                              [
                                                  "7b323a4ddca3e7c1"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "8ba39a421f5c3317",
                                          "type": "junction",
                                          "z": "2e295f1c879e6af4",
                                          "x": 220,
                                          "y": 410,
                                          "wires": [
                                              [
                                                  "6e55b108db47eaed",
                                                  "2b793d273b25a2f7"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "4c349095bd25378c",
                                          "type": "ioBroker get",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Reinigung Status",
                                          "topic": "mihome-vacuum.1.info.state",
                                          "attrname": "roborock",
                                          "payloadType": "value",
                                          "errOnInvalidState": "nothing",
                                          "x": 600,
                                          "y": 370,
                                          "wires": [
                                              [
                                                  "a95d63f2785aa847"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "4b318acc0eab7b1b",
                                          "type": "ioBroker in",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Bad Motion 1",
                                          "attrname": "payload",
                                          "topic": "hue.0.Bad_Motion_Sensor.presence",
                                          "payloadType": "value",
                                          "onlyack": "",
                                          "func": "all",
                                          "gap": "",
                                          "fireOnStart": "false",
                                          "outFormat": "MQTT",
                                          "x": 130,
                                          "y": 160,
                                          "wires": [
                                              [
                                                  "f2e7288278a6661f"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "9dd1e1bc2bca9ade",
                                          "type": "ioBroker out",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Bad Decke",
                                          "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                                          "ack": "false",
                                          "autoCreate": "false",
                                          "stateName": "",
                                          "role": "",
                                          "payloadType": "",
                                          "readonly": "",
                                          "stateUnit": "",
                                          "stateMin": "",
                                          "stateMax": "",
                                          "x": 1020,
                                          "y": 320,
                                          "wires": []
                                      },
                                      {
                                          "id": "d0ddca612599b43c",
                                          "type": "debug",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Bad Licht",
                                          "active": false,
                                          "tosidebar": true,
                                          "console": false,
                                          "tostatus": false,
                                          "complete": "payload",
                                          "targetType": "msg",
                                          "statusVal": "",
                                          "statusType": "auto",
                                          "x": 1010,
                                          "y": 370,
                                          "wires": []
                                      },
                                      {
                                          "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": 830,
                                          "y": 210,
                                          "wires": [
                                              [
                                                  "122117be9b2af524",
                                                  "8d84f8a4c6a6a059"
                                              ],
                                              [
                                                  "154396f8caa9bc54",
                                                  "ee6ded06a7207f74"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "a95d63f2785aa847",
                                          "type": "switch",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Robi nicht Status 5",
                                          "property": "roborock",
                                          "propertyType": "msg",
                                          "rules": [
                                              {
                                                  "t": "neq",
                                                  "v": "5",
                                                  "vt": "num"
                                              }
                                          ],
                                          "checkall": "true",
                                          "repair": false,
                                          "outputs": 1,
                                          "x": 800,
                                          "y": 370,
                                          "wires": [
                                              [
                                                  "d0ddca612599b43c",
                                                  "9dd1e1bc2bca9ade"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "2cbb19c25bdbf55d",
                                          "type": "trigger",
                                          "z": "2e295f1c879e6af4",
                                          "name": "2 min. warten bevor false",
                                          "op1": "true",
                                          "op2": "false",
                                          "op1type": "bool",
                                          "op2type": "bool",
                                          "duration": "2",
                                          "extend": true,
                                          "overrideDelay": false,
                                          "units": "min",
                                          "reset": "true",
                                          "bytopic": "all",
                                          "topic": "topic",
                                          "outputs": 1,
                                          "x": 780,
                                          "y": 320,
                                          "wires": [
                                              [
                                                  "d0ddca612599b43c",
                                                  "9dd1e1bc2bca9ade"
                                              ]
                                          ]
                                      },
                                      {
                                          "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": "object",
                                          "errOnInvalidState": "nothing",
                                          "x": 110,
                                          "y": 270,
                                          "wires": [
                                              [
                                                  "269ad011754f07ad"
                                              ]
                                          ]
                                      },
                                      {
                                          "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": 1020,
                                          "y": 90,
                                          "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": 40,
                                          "wires": [
                                              [
                                                  "536b62b8d18c6cf0"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "8abca0bad942f182",
                                          "type": "debug",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Bad Licht Alexa",
                                          "active": false,
                                          "tosidebar": true,
                                          "console": false,
                                          "tostatus": false,
                                          "complete": "payload",
                                          "targetType": "msg",
                                          "statusVal": "",
                                          "statusType": "auto",
                                          "x": 1030,
                                          "y": 50,
                                          "wires": []
                                      },
                                      {
                                          "id": "323cb6465fa717e5",
                                          "type": "ioBroker in",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Bad Motion 2",
                                          "attrname": "payload",
                                          "topic": "tuya.0.bf15a2489964bff33bavvv.1",
                                          "payloadType": "value",
                                          "onlyack": "",
                                          "func": "all",
                                          "gap": "",
                                          "fireOnStart": "false",
                                          "outFormat": "MQTT",
                                          "x": 130,
                                          "y": 210,
                                          "wires": [
                                              [
                                                  "9bdfabd4b2e4a214"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "1050671f0db85c92",
                                          "type": "ioBroker in",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Alexa Bad Licht an",
                                          "attrname": "payload",
                                          "topic": "alexa2.0.Echo-Devices.G0913L06031202PA.Routines.d2b8b4a7-0faf-444d-be14-0e90a1db9e1e",
                                          "payloadType": "value",
                                          "onlyack": "",
                                          "func": "all",
                                          "gap": "",
                                          "fireOnStart": "false",
                                          "outFormat": "MQTT",
                                          "x": 110,
                                          "y": 100,
                                          "wires": [
                                              [
                                                  "536b62b8d18c6cf0"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "9bdfabd4b2e4a214",
                                          "type": "change",
                                          "z": "2e295f1c879e6af4",
                                          "name": "wechsel",
                                          "rules": [
                                              {
                                                  "t": "change",
                                                  "p": "payload",
                                                  "pt": "msg",
                                                  "from": "1",
                                                  "fromt": "str",
                                                  "to": "true",
                                                  "tot": "str"
                                              },
                                              {
                                                  "t": "change",
                                                  "p": "payload",
                                                  "pt": "msg",
                                                  "from": "0",
                                                  "fromt": "str",
                                                  "to": "false",
                                                  "tot": "str"
                                              }
                                          ],
                                          "action": "",
                                          "property": "",
                                          "from": "",
                                          "to": "",
                                          "reg": false,
                                          "x": 290,
                                          "y": 210,
                                          "wires": [
                                              [
                                                  "7b323a4ddca3e7c1"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "122117be9b2af524",
                                          "type": "link out",
                                          "z": "2e295f1c879e6af4",
                                          "name": "link out 3",
                                          "mode": "link",
                                          "links": [
                                              "12526f836b7135a5",
                                              "2f09309457a74553"
                                          ],
                                          "x": 965,
                                          "y": 190,
                                          "wires": []
                                      },
                                      {
                                          "id": "2f09309457a74553",
                                          "type": "link in",
                                          "z": "2e295f1c879e6af4",
                                          "name": "link in 3",
                                          "links": [
                                              "122117be9b2af524",
                                              "154396f8caa9bc54"
                                          ],
                                          "x": 635,
                                          "y": 320,
                                          "wires": [
                                              [
                                                  "2cbb19c25bdbf55d"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "12526f836b7135a5",
                                          "type": "link in",
                                          "z": "2e295f1c879e6af4",
                                          "name": "link in 4",
                                          "links": [
                                              "122117be9b2af524",
                                              "154396f8caa9bc54"
                                          ],
                                          "x": 475,
                                          "y": 370,
                                          "wires": [
                                              [
                                                  "4c349095bd25378c"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "154396f8caa9bc54",
                                          "type": "link out",
                                          "z": "2e295f1c879e6af4",
                                          "name": "link out 4",
                                          "mode": "link",
                                          "links": [
                                              "2f09309457a74553",
                                              "12526f836b7135a5"
                                          ],
                                          "x": 965,
                                          "y": 230,
                                          "wires": []
                                      },
                                      {
                                          "id": "7b323a4ddca3e7c1",
                                          "type": "switch",
                                          "z": "2e295f1c879e6af4",
                                          "name": "",
                                          "property": "Schalter.Bad",
                                          "propertyType": "flow",
                                          "rules": [
                                              {
                                                  "t": "false"
                                              }
                                          ],
                                          "checkall": "true",
                                          "repair": false,
                                          "outputs": 1,
                                          "x": 570,
                                          "y": 210,
                                          "wires": [
                                              [
                                                  "66e5680c9143f38f"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "825a34e2e6145b1c",
                                          "type": "ioBroker in",
                                          "z": "2e295f1c879e6af4",
                                          "name": "",
                                          "attrname": "payload",
                                          "topic": "Lichtschalter Bad",
                                          "payloadType": "object",
                                          "onlyack": "",
                                          "func": "all",
                                          "gap": "",
                                          "fireOnStart": "false",
                                          "outFormat": "MQTT",
                                          "x": 90,
                                          "y": 410,
                                          "wires": [
                                              [
                                                  "8ba39a421f5c3317"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "2b793d273b25a2f7",
                                          "type": "ioBroker out",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Bad Decke",
                                          "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                                          "ack": "false",
                                          "autoCreate": "false",
                                          "stateName": "",
                                          "role": "",
                                          "payloadType": "",
                                          "readonly": "",
                                          "stateUnit": "",
                                          "stateMin": "",
                                          "stateMax": "",
                                          "x": 1020,
                                          "y": 410,
                                          "wires": []
                                      },
                                      {
                                          "id": "50172abc4513c6cf",
                                          "type": "debug",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Bad Decke",
                                          "active": true,
                                          "tosidebar": true,
                                          "console": false,
                                          "tostatus": false,
                                          "complete": "payload",
                                          "targetType": "msg",
                                          "statusVal": "",
                                          "statusType": "auto",
                                          "x": 1020,
                                          "y": 460,
                                          "wires": []
                                      },
                                      {
                                          "id": "6e55b108db47eaed",
                                          "type": "change",
                                          "z": "2e295f1c879e6af4",
                                          "name": "",
                                          "rules": [
                                              {
                                                  "t": "set",
                                                  "p": "Schalter.Bad",
                                                  "pt": "flow",
                                                  "to": "true",
                                                  "tot": "bool"
                                              }
                                          ],
                                          "action": "",
                                          "property": "",
                                          "from": "",
                                          "to": "",
                                          "reg": false,
                                          "x": 360,
                                          "y": 450,
                                          "wires": [
                                              [
                                                  "4faf1ed0bf7c1af3",
                                                  "459460393409f607"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "4faf1ed0bf7c1af3",
                                          "type": "trigger",
                                          "z": "2e295f1c879e6af4",
                                          "name": "30 min.",
                                          "op1": "",
                                          "op2": "false",
                                          "op1type": "nul",
                                          "op2type": "bool",
                                          "duration": "30",
                                          "extend": true,
                                          "overrideDelay": false,
                                          "units": "min",
                                          "reset": "",
                                          "bytopic": "all",
                                          "topic": "topic",
                                          "outputs": 1,
                                          "x": 570,
                                          "y": 450,
                                          "wires": [
                                              [
                                                  "f65257011e0b574c"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "f65257011e0b574c",
                                          "type": "change",
                                          "z": "2e295f1c879e6af4",
                                          "name": "",
                                          "rules": [
                                              {
                                                  "t": "set",
                                                  "p": "Schalter.Bad",
                                                  "pt": "flow",
                                                  "to": "false",
                                                  "tot": "bool"
                                              }
                                          ],
                                          "action": "",
                                          "property": "",
                                          "from": "",
                                          "to": "",
                                          "reg": false,
                                          "x": 780,
                                          "y": 450,
                                          "wires": [
                                              [
                                                  "50172abc4513c6cf",
                                                  "2b793d273b25a2f7"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "d4d742934b195768",
                                          "type": "inject",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Aus",
                                          "props": [
                                              {
                                                  "p": "payload"
                                              },
                                              {
                                                  "p": "topic",
                                                  "vt": "str"
                                              }
                                          ],
                                          "repeat": "",
                                          "crontab": "",
                                          "once": false,
                                          "onceDelay": 0.1,
                                          "topic": "",
                                          "payload": "false",
                                          "payloadType": "bool",
                                          "x": 110,
                                          "y": 330,
                                          "wires": [
                                              [
                                                  "8ba39a421f5c3317"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "34a6d988e012a62b",
                                          "type": "inject",
                                          "z": "2e295f1c879e6af4",
                                          "name": "An",
                                          "props": [
                                              {
                                                  "p": "payload"
                                              },
                                              {
                                                  "p": "topic",
                                                  "vt": "str"
                                              }
                                          ],
                                          "repeat": "",
                                          "crontab": "",
                                          "once": false,
                                          "onceDelay": 0.1,
                                          "topic": "",
                                          "payload": "true",
                                          "payloadType": "bool",
                                          "x": 110,
                                          "y": 370,
                                          "wires": [
                                              [
                                                  "8ba39a421f5c3317"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "e87a827d28e70510",
                                          "type": "inject",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Test",
                                          "props": [
                                              {
                                                  "p": "payload"
                                              }
                                          ],
                                          "repeat": "",
                                          "crontab": "",
                                          "once": false,
                                          "onceDelay": 0.1,
                                          "topic": "",
                                          "payload": "Testnachricht",
                                          "payloadType": "str",
                                          "x": 100,
                                          "y": 690,
                                          "wires": [
                                              [
                                                  "9d948843920ee33a"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "9d948843920ee33a",
                                          "type": "switch",
                                          "z": "2e295f1c879e6af4",
                                          "name": "",
                                          "property": "Schalter.Bad",
                                          "propertyType": "flow",
                                          "rules": [
                                              {
                                                  "t": "false"
                                              }
                                          ],
                                          "checkall": "true",
                                          "repair": false,
                                          "outputs": 1,
                                          "x": 240,
                                          "y": 690,
                                          "wires": [
                                              [
                                                  "99f14be7d03a378b"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "038ffeeb65c24042",
                                          "type": "inject",
                                          "z": "2e295f1c879e6af4",
                                          "name": "",
                                          "props": [
                                              {
                                                  "p": "payload"
                                              },
                                              {
                                                  "p": "topic",
                                                  "vt": "str"
                                              }
                                          ],
                                          "repeat": "",
                                          "crontab": "",
                                          "once": false,
                                          "onceDelay": 0.1,
                                          "topic": "",
                                          "payload": "true",
                                          "payloadType": "bool",
                                          "x": 100,
                                          "y": 550,
                                          "wires": [
                                              [
                                                  "6a701a0ddc9134ff"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "99f14be7d03a378b",
                                          "type": "debug",
                                          "z": "2e295f1c879e6af4",
                                          "name": "Wenn Schalter.Bad = false",
                                          "active": true,
                                          "tosidebar": true,
                                          "console": false,
                                          "tostatus": false,
                                          "complete": "payload",
                                          "targetType": "msg",
                                          "statusVal": "",
                                          "statusType": "auto",
                                          "x": 470,
                                          "y": 690,
                                          "wires": []
                                      },
                                      {
                                          "id": "643b86ca80c69a9f",
                                          "type": "inject",
                                          "z": "2e295f1c879e6af4",
                                          "name": "",
                                          "props": [
                                              {
                                                  "p": "payload"
                                              },
                                              {
                                                  "p": "topic",
                                                  "vt": "str"
                                              }
                                          ],
                                          "repeat": "",
                                          "crontab": "",
                                          "once": false,
                                          "onceDelay": 0.1,
                                          "topic": "",
                                          "payload": "false",
                                          "payloadType": "bool",
                                          "x": 100,
                                          "y": 590,
                                          "wires": [
                                              [
                                                  "6a701a0ddc9134ff"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "6a701a0ddc9134ff",
                                          "type": "change",
                                          "z": "2e295f1c879e6af4",
                                          "name": "",
                                          "rules": [
                                              {
                                                  "t": "set",
                                                  "p": "Schalter.Bad",
                                                  "pt": "flow",
                                                  "to": "payload",
                                                  "tot": "msg"
                                              }
                                          ],
                                          "action": "",
                                          "property": "",
                                          "from": "",
                                          "to": "",
                                          "reg": false,
                                          "x": 300,
                                          "y": 570,
                                          "wires": [
                                              [
                                                  "c2a0db80f3f9efba"
                                              ]
                                          ]
                                      },
                                      {
                                          "id": "c2a0db80f3f9efba",
                                          "type": "debug",
                                          "z": "2e295f1c879e6af4",
                                          "name": "debug 2",
                                          "active": true,
                                          "tosidebar": true,
                                          "console": false,
                                          "tostatus": false,
                                          "complete": "false",
                                          "statusVal": "",
                                          "statusType": "auto",
                                          "x": 540,
                                          "y": 570,
                                          "wires": []
                                      },
                                      {
                                          "id": "459460393409f607",
                                          "type": "debug",
                                          "z": "2e295f1c879e6af4",
                                          "name": "debug 3",
                                          "active": true,
                                          "tosidebar": true,
                                          "console": false,
                                          "tostatus": false,
                                          "complete": "false",
                                          "statusVal": "",
                                          "statusType": "auto",
                                          "x": 560,
                                          "y": 500,
                                          "wires": []
                                      },
                                      {
                                          "id": "8d84f8a4c6a6a059",
                                          "type": "debug",
                                          "z": "2e295f1c879e6af4",
                                          "name": "true bewegung",
                                          "active": true,
                                          "tosidebar": true,
                                          "console": false,
                                          "tostatus": false,
                                          "complete": "payload",
                                          "targetType": "msg",
                                          "statusVal": "",
                                          "statusType": "auto",
                                          "x": 1130,
                                          "y": 180,
                                          "wires": []
                                      },
                                      {
                                          "id": "ee6ded06a7207f74",
                                          "type": "debug",
                                          "z": "2e295f1c879e6af4",
                                          "name": "false bewegung",
                                          "active": true,
                                          "tosidebar": true,
                                          "console": false,
                                          "tostatus": false,
                                          "complete": "payload",
                                          "targetType": "msg",
                                          "statusVal": "",
                                          "statusType": "auto",
                                          "x": 1130,
                                          "y": 250,
                                          "wires": []
                                      }
                                  ]
                                  

                                  1 Reply Last reply
                                  0
                                  • AphofisA Aphofis

                                    @mickym Ich weiß das auch nicht und wenn man den Lichtschalter ausschaltet bleibt der Zeit Trigger mit halbe std so stehen also aktiv der soll doch deaktiviert werden.

                                    mickymM Online
                                    mickymM Online
                                    mickym
                                    Most Active
                                    wrote on last edited by
                                    #162

                                    @aphofis Nein der Trigger bleibt aktiv - es soll ja erst nach der letzten Betätigung des Schalters der BWM aktiviert werden egal wie der Schalter steht. Aber wenn Du es anders haben willst, dann mach es halt selbst anders. Du weißt ja wie es funktioniert. Der Trigger hat ja mit dem Schalten der Lampe nichts zu tun - das wird ja sofort durchgereicht. Wenn Du es anders haben willst, dann versuch das bitte mal selbst.

                                    Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                    AphofisA 1 Reply Last reply
                                    0
                                    • AphofisA Aphofis

                                      @mickym Ich weiß das auch nicht und wenn man den Lichtschalter ausschaltet bleibt der Zeit Trigger mit halbe std so stehen also aktiv der soll doch deaktiviert werden.

                                      AphofisA Offline
                                      AphofisA Offline
                                      Aphofis
                                      wrote on last edited by
                                      #163

                                      ich verstehe nicht warum das nicht geht.
                                      hab schon einige debug nodes angehängt aber einen Fehler kann ich nicht finden.
                                      egal ob true oder false initialisierung Licht an aus am schalter es bleibt bei 30 min Timer

                                      mickymM 1 Reply Last reply
                                      0
                                      • mickymM mickym

                                        @aphofis Nein der Trigger bleibt aktiv - es soll ja erst nach der letzten Betätigung des Schalters der BWM aktiviert werden egal wie der Schalter steht. Aber wenn Du es anders haben willst, dann mach es halt selbst anders. Du weißt ja wie es funktioniert. Der Trigger hat ja mit dem Schalten der Lampe nichts zu tun - das wird ja sofort durchgereicht. Wenn Du es anders haben willst, dann versuch das bitte mal selbst.

                                        AphofisA Offline
                                        AphofisA Offline
                                        Aphofis
                                        wrote on last edited by
                                        #164

                                        @mickym Ne es bleibt nicht der 2 min timer aktiv immer nur der 30 min timer
                                        der soll doch aber nur aktiv sein wenn schalter betätigt. BWM funktioniert ja normal

                                        mickymM 1 Reply Last reply
                                        0
                                        • AphofisA Aphofis

                                          ich verstehe nicht warum das nicht geht.
                                          hab schon einige debug nodes angehängt aber einen Fehler kann ich nicht finden.
                                          egal ob true oder false initialisierung Licht an aus am schalter es bleibt bei 30 min Timer

                                          mickymM Online
                                          mickymM Online
                                          mickym
                                          Most Active
                                          wrote on last edited by
                                          #165

                                          @aphofis Der trigger arbeitet doch unabhängig vom Schalter das siehst Du doch. Das ist doch parallel. Wenn Du es anders haben willst, dann mach es anders.

                                          Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          589

                                          Online

                                          32.8k

                                          Users

                                          82.8k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe