Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. 2 Bewegungsmelder (Aqara) sollen einen Lampe schalten

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    2 Bewegungsmelder (Aqara) sollen einen Lampe schalten

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

      Wie weit bist Du? Bist Du noch da?

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

        @mickym Sorry eingeschlafen.
        War ein anstrengender Tag.

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

          @aphofis
          Also wie weit, ka ich dachte die Steuerung ist soweit fertig.
          oder fehlt noch was !?
          Screenshot 2024-08-21 193604.png

          [
              {
                  "id": "1d761786cd03b6eb",
                  "type": "tab",
                  "label": "Flow 4",
                  "disabled": false,
                  "info": "",
                  "env": []
              },
              {
                  "id": "8ba39a421f5c3317",
                  "type": "junction",
                  "z": "1d761786cd03b6eb",
                  "x": 220,
                  "y": 210,
                  "wires": [
                      [
                          "6e55b108db47eaed",
                          "2b793d273b25a2f7"
                      ]
                  ]
              },
              {
                  "id": "825a34e2e6145b1c",
                  "type": "ioBroker in",
                  "z": "1d761786cd03b6eb",
                  "name": "",
                  "attrname": "payload",
                  "topic": "Lichtschalter Bad",
                  "payloadType": "object",
                  "onlyack": "",
                  "func": "all",
                  "gap": "",
                  "fireOnStart": "false",
                  "outFormat": "MQTT",
                  "x": 90,
                  "y": 210,
                  "wires": [
                      [
                          "8ba39a421f5c3317"
                      ]
                  ]
              },
              {
                  "id": "2b793d273b25a2f7",
                  "type": "ioBroker out",
                  "z": "1d761786cd03b6eb",
                  "name": "Bad Decke",
                  "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                  "ack": "false",
                  "autoCreate": "false",
                  "stateName": "",
                  "role": "",
                  "payloadType": "",
                  "readonly": "",
                  "stateUnit": "",
                  "stateMin": "",
                  "stateMax": "",
                  "x": 1030,
                  "y": 210,
                  "wires": []
              },
              {
                  "id": "50172abc4513c6cf",
                  "type": "debug",
                  "z": "1d761786cd03b6eb",
                  "name": "Bad Decke",
                  "active": true,
                  "tosidebar": true,
                  "console": false,
                  "tostatus": false,
                  "complete": "payload",
                  "targetType": "msg",
                  "statusVal": "",
                  "statusType": "auto",
                  "x": 1030,
                  "y": 260,
                  "wires": []
              },
              {
                  "id": "6e55b108db47eaed",
                  "type": "change",
                  "z": "1d761786cd03b6eb",
                  "name": "",
                  "rules": [
                      {
                          "t": "set",
                          "p": "Schalter.Bad",
                          "pt": "flow",
                          "to": "true",
                          "tot": "bool"
                      }
                  ],
                  "action": "",
                  "property": "",
                  "from": "",
                  "to": "",
                  "reg": false,
                  "x": 390,
                  "y": 250,
                  "wires": [
                      [
                          "4faf1ed0bf7c1af3"
                      ]
                  ]
              },
              {
                  "id": "4faf1ed0bf7c1af3",
                  "type": "trigger",
                  "z": "1d761786cd03b6eb",
                  "name": "",
                  "op1": "",
                  "op2": "false",
                  "op1type": "nul",
                  "op2type": "bool",
                  "duration": "10",
                  "extend": true,
                  "overrideDelay": false,
                  "units": "s",
                  "reset": "",
                  "bytopic": "all",
                  "topic": "topic",
                  "outputs": 1,
                  "x": 610,
                  "y": 250,
                  "wires": [
                      [
                          "f65257011e0b574c"
                      ]
                  ]
              },
              {
                  "id": "f65257011e0b574c",
                  "type": "change",
                  "z": "1d761786cd03b6eb",
                  "name": "",
                  "rules": [
                      {
                          "t": "set",
                          "p": "Schalter.Bad",
                          "pt": "flow",
                          "to": "false",
                          "tot": "bool"
                      }
                  ],
                  "action": "",
                  "property": "",
                  "from": "",
                  "to": "",
                  "reg": false,
                  "x": 810,
                  "y": 250,
                  "wires": [
                      [
                          "50172abc4513c6cf",
                          "2b793d273b25a2f7"
                      ]
                  ]
              },
              {
                  "id": "d4d742934b195768",
                  "type": "inject",
                  "z": "1d761786cd03b6eb",
                  "name": "Aus",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "false",
                  "payloadType": "bool",
                  "x": 110,
                  "y": 130,
                  "wires": [
                      [
                          "8ba39a421f5c3317"
                      ]
                  ]
              },
              {
                  "id": "34a6d988e012a62b",
                  "type": "inject",
                  "z": "1d761786cd03b6eb",
                  "name": "An",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "true",
                  "payloadType": "bool",
                  "x": 110,
                  "y": 170,
                  "wires": [
                      [
                          "8ba39a421f5c3317"
                      ]
                  ]
              }
          ]
          

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

            @aphofis Na hier nicht, aber in dem Flow mit dem Bewegungsmelder - musst Du doch noch die Meldungen des Bewegungmelders solange blockieren, solange der Schalter aktiv ist. Hatte ich aber geschrieben.

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

              @mickym Ach ja ok
              Ja aber wie und wi mache ich das

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

                @aphofis Na wie Du grundsätzlich Nachrichten mit Bedingungen dirigierst oder filterst - mit einer Switch Node, die Du direkt hinter den Bewegungsmelder setzt und dann natürlich nur die Nachrichten durchlässt, wenn der Schalter.Bad auf false steht.

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

                  @mickym wäre es so richtig !?
                  Screenshot 2024-08-21 220529.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": [
                              [
                                  "7d8a76111d16e18f"
                              ]
                          ]
                      },
                      {
                          "id": "269ad011754f07ad",
                          "type": "junction",
                          "z": "2e295f1c879e6af4",
                          "x": 300,
                          "y": 270,
                          "wires": [
                              [
                                  "7d8a76111d16e18f"
                              ]
                          ]
                      },
                      {
                          "id": "4c349095bd25378c",
                          "type": "ioBroker get",
                          "z": "2e295f1c879e6af4",
                          "name": "Reinigung Status",
                          "topic": "mihome-vacuum.1.info.state",
                          "attrname": "roborock",
                          "payloadType": "value",
                          "errOnInvalidState": "nothing",
                          "x": 580,
                          "y": 530,
                          "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": 1030,
                          "y": 480,
                          "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": 1020,
                          "y": 530,
                          "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": 810,
                          "y": 530,
                          "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": 700,
                          "y": 490,
                          "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": 330,
                          "y": 210,
                          "wires": [
                              [
                                  "7d8a76111d16e18f"
                              ]
                          ]
                      },
                      {
                          "id": "7d8a76111d16e18f",
                          "type": "change",
                          "z": "2e295f1c879e6af4",
                          "name": "",
                          "rules": [
                              {
                                  "t": "set",
                                  "p": "Schalter.Bad",
                                  "pt": "flow",
                                  "to": "false",
                                  "tot": "bool"
                              }
                          ],
                          "action": "",
                          "property": "",
                          "from": "",
                          "to": "",
                          "reg": false,
                          "x": 600,
                          "y": 210,
                          "wires": [
                              [
                                  "66e5680c9143f38f"
                              ]
                          ]
                      },
                      {
                          "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": 565,
                          "y": 490,
                          "wires": [
                              [
                                  "2cbb19c25bdbf55d"
                              ]
                          ]
                      },
                      {
                          "id": "12526f836b7135a5",
                          "type": "link in",
                          "z": "2e295f1c879e6af4",
                          "name": "link in 4",
                          "links": [
                              "122117be9b2af524",
                              "154396f8caa9bc54"
                          ],
                          "x": 455,
                          "y": 530,
                          "wires": [
                              [
                                  "4c349095bd25378c"
                              ]
                          ]
                      },
                      {
                          "id": "154396f8caa9bc54",
                          "type": "link out",
                          "z": "2e295f1c879e6af4",
                          "name": "link out 4",
                          "mode": "link",
                          "links": [
                              "2f09309457a74553",
                              "12526f836b7135a5"
                          ],
                          "x": 965,
                          "y": 230,
                          "wires": []
                      }
                  ]
                  

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

                    @aphofis Ich habe nicht gesagt, dass Du ein Variable setzen sollst, sondern die Nachrichten filtern sollst. Und ich habe glaube ich switch Node gesagt, dass man mit dieser Bedingungen abprüft und Nachrichten filtert.

                    Ausserdem finde ich die Verwendung Deiner link Nodes leicht unübersichtlich - aber wie Du willst.

                    Ausserdem sagte ich das BEIDES in EINEM Flow sein muss.

                    Sorry - aber sonst funktioniert das nicht ......

                    Ausserdem machst Du selbst dauernd irgendwas dazu - was sollen denn 2 Alexa Nodes an verschiedenen Stellen - aber das werde ich nicht weiter kommentieren.

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

                      @mickym
                      nur wie stelle ich die Switch Node jetzt ein. Ich weiß es escht nicht wie man jetzt Schlter Bad abgreift wenn der false ist wird trigger Bewegung weiter verarbeitet bzw wenn Schalter Bad true ist geht nichts weiter zum Bewegungs Trigger durch

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

                        @aphofis 1, Es MUSS alles in einem Flow sein!!!
                        2. Du prüfst die Kontextvariable in der Switch Node einfach auf false ab.

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

                          @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"
                                      ]
                                  ]
                              }
                          ]
                          

                          mickym 1 Reply Last reply Reply Quote 0
                          • mickym
                            mickym Most Active @Aphofis last edited by 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

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

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

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

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

                                @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.

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

                                  @mickym ja so langsam verstehe ich das

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

                                    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.

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

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

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

                                        @mickym OK Prima
                                        und Danke

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

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

                                          @mickym OK Prima
                                          und Danke

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

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

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

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            620
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

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