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.
    • Aphofis
      Aphofis @mickym last edited by Aphofis

      @mickym
      Iwie will das nicht so ganz...

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

      Screenshot 2024-08-12 214833.png

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              By the way wie erstellst du diese Knotenpunkte ?

              Rechte Maustaste:

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

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

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

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

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

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

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

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

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

                    Hab da moch so einige Wemos Mini einige Netzteile die in eine Lichtschalter Unterputzdose reinpassen. muss dann nur noch blenden mit digital taster (Button) finden dann kann das Projekt Digital Schalter los gehen. Erstmal nur Küche und Bad.

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

                      @aphofis Ja aber Du musst verstehen was Du machst. Ein Switch der nach Nachrichten aufteilt und beides wieder in eine Node schickt ist unsinnig

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

                        @mickym
                        Also dann nur so !?
                        Screenshot 2024-08-12 231636.png

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

                          @aphofis genau - Du kopierst quasi den Inhalt Deines digitalen Schalters in den Steuerungsdatenpunkt Deiner Lampe.

                          Jetzt stellt sich natürlich die Frage, warum Du diesen digitalen Schalter brauchst und nicht direkt die Lampe steuerst. ? 😉

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

                            @mickym
                            Perfekt.! 😀 Funktioniert soweit auch.
                            Mach das dann aber doch mit Digital Glas Touch Schaltern mit Tuya.
                            Nun verrate doch mal wie du die Knotenpunkte erstellst
                            Screenshot 2024-08-12 231636b.png

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

                              @mickym
                              Weil ich noch normale Lichtschalter habe wenn diese betätigt werden sind auch die Geräte offline. Weil diese noch mit Nullleiter arbeiten. Dh Schalter aus Gerät offline wenn nachher die Neuen Tuya Lichtschalter da sind die arbeiten ohen Nullleiter. Dann sind die Schalter immer erreichbar und sehen dazu auch noch schick aus.
                              Die Geräte die ich verbaut hatte liegen in der Zwischendecke und sind von der Phase des Lichtschalters abhängig.

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

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

                                Mach das dann aber doch mit Digital Glas Touch Schaltern mit Tuya.

                                Nun warum nimmst Du dann nicht den Tuya Datenpunkt und schaltest damit Dein Licht? - Warum braucht es diesen Zwischenpunkt?

                                Nun verrate doch mal wie du die Knotenpunkte erstellst

                                Hab ich doch: https://forum.iobroker.net/post/1190282

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

                                  @mickym
                                  In den Lichtschalter Unterputzdosen ist nicht so viel Platz um da ein Shelly Tuya etc einzubauen.
                                  Hätte ich dann ja über die normalen Lichtschalter realisieren können. Aber extra tiefe Unterputzdosen einarbeiten ist mir für eine Mietwohnung dann doch zu viel. Sollte ich hier ausziehen, nehme ich ja alles mit.

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

                                    Sorry hab ich überlesen! Super die Knotenpunkte sind echt was tolles um die verdrahtung besser zu sehen.

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

                                      @aphofis Das mag alles sein. Mir geht es nicht um die Hardware - wie steuerst Du denn diesen Digitalen Schalter Datenpunkt an??

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

                                        @mickym
                                        Naja die Tuya Schalter sind per Adapter verbunden und wenn man auf den Touch Button drückt geht der Datenpunkt in true wenn man noch mal tippt geht er false.
                                        Die Lichtschalter sind ja per Tuya Adapter verbunden.
                                        Also wenn ich die Frage richtig verstanden habe.

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

                                          @aphofis Na eben - dann kannst Du doch direkt den iobroker Out Node mit der iobroker-IN Node verbinden, die auf den Datenpunkt des Tuya Adapters verbunden ist. Oder ist das so - habe ich jetzt nicht gesehen?

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

                                            @mickym
                                            Hä das ist doch jetzt auch so mit dem Digital Schalter der nur simuliert ist aber dann halt über das Tuya Gerät läuft.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            792
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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