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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

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

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    15
    1
    647

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    632

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    1.9k

2 Bewegungsmelder (Aqara) sollen einen Lampe schalten

Geplant Angeheftet Gesperrt Verschoben Node-Red
216 Beiträge 3 Kommentatoren 21.9k Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • AphofisA Aphofis

    Ich sage mal Gute Nacht!

    mickymM Offline
    mickymM Offline
    mickym
    Most Active
    schrieb am zuletzt editiert von
    #183

    @aphofis Ja dann schlaf mal gut

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

    1 Antwort Letzte Antwort
    0
    • AphofisA Offline
      AphofisA Offline
      Aphofis
      schrieb am zuletzt editiert von Aphofis
      #184

      @mickym Danke war etwas kurze Nacht.
      Irgendwas ist falsch ! Ich finde nur leider den Fehler nicht.
      Screenshot 2024-08-23 203831.png

      Screenshot 2024-08-23 203849.png

      Screenshot 2024-08-23 204030.png

      [
          {
              "id": "bdb8569551b07cea",
              "type": "tab",
              "label": "Küche Motion",
              "disabled": true,
              "info": "",
              "env": []
          },
          {
              "id": "bca6cf9871919f25",
              "type": "junction",
              "z": "bdb8569551b07cea",
              "x": 870,
              "y": 90,
              "wires": [
                  [
                      "db31d57bf0340f42",
                      "735244c31aebf3c3",
                      "65b2f06bdc6d6a99",
                      "41f2cab540ed205d"
                  ]
              ]
          },
          {
              "id": "35c7b6145d426c75",
              "type": "junction",
              "z": "bdb8569551b07cea",
              "x": 260,
              "y": 90,
              "wires": [
                  [
                      "bca6cf9871919f25"
                  ]
              ]
          },
          {
              "id": "e51c551cbaef2add",
              "type": "junction",
              "z": "bdb8569551b07cea",
              "x": 190,
              "y": 580,
              "wires": [
                  [
                      "4547deb06e3089c8",
                      "bde4428b16ac37d8"
                  ]
              ]
          },
          {
              "id": "bde4428b16ac37d8",
              "type": "junction",
              "z": "bdb8569551b07cea",
              "x": 870,
              "y": 580,
              "wires": [
                  [
                      "0e39b42e28d9c4b2",
                      "7b02a1107aeafc13",
                      "c24747a342fcf6a5",
                      "7132ea29c42ebd7f"
                  ]
              ]
          },
          {
              "id": "94462e1d2bd6f11c",
              "type": "junction",
              "z": "bdb8569551b07cea",
              "x": 880,
              "y": 280,
              "wires": [
                  [
                      "b62a640fe697beeb",
                      "7c8261495d0c6d03",
                      "78eb18795197f387",
                      "2e260dca909fb769"
                  ]
              ]
          },
          {
              "id": "1eb7ecedcffa3d29",
              "type": "junction",
              "z": "bdb8569551b07cea",
              "x": 880,
              "y": 320,
              "wires": [
                  [
                      "2e260dca909fb769",
                      "78eb18795197f387",
                      "7c8261495d0c6d03",
                      "b62a640fe697beeb"
                  ]
              ]
          },
          {
              "id": "41f2cab540ed205d",
              "type": "ioBroker out",
              "z": "bdb8569551b07cea",
              "name": "Küche Unters. links",
              "topic": "hue.0.Küche_Unterschr_Links.on",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "payloadType": "",
              "readonly": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1030,
              "y": 20,
              "wires": []
          },
          {
              "id": "65b2f06bdc6d6a99",
              "type": "ioBroker out",
              "z": "bdb8569551b07cea",
              "name": "Küche Unters. rechts",
              "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "payloadType": "",
              "readonly": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1040,
              "y": 70,
              "wires": []
          },
          {
              "id": "735244c31aebf3c3",
              "type": "ioBroker out",
              "z": "bdb8569551b07cea",
              "name": "Küche Decke",
              "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "payloadType": "",
              "readonly": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1010,
              "y": 120,
              "wires": []
          },
          {
              "id": "db31d57bf0340f42",
              "type": "debug",
              "z": "bdb8569551b07cea",
              "name": "Küche Decke Alexa",
              "active": false,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1030,
              "y": 170,
              "wires": []
          },
          {
              "id": "da3fde9e0c9736b6",
              "type": "ioBroker get",
              "z": "bdb8569551b07cea",
              "name": "Reinigung Status",
              "topic": "mihome-vacuum.1.info.state",
              "attrname": "roborock",
              "payloadType": "value",
              "errOnInvalidState": "nothing",
              "x": 570,
              "y": 320,
              "wires": [
                  [
                      "afd835ed44895975"
                  ]
              ]
          },
          {
              "id": "7647b5aa74f8d105",
              "type": "ioBroker in",
              "z": "bdb8569551b07cea",
              "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": 150,
              "y": 180,
              "wires": [
                  [
                      "8f7b11ac83f34587"
                  ]
              ]
          },
          {
              "id": "0fc9800b73f04220",
              "type": "switch",
              "z": "bdb8569551b07cea",
              "name": "Bewegung erkannt?",
              "property": "payload",
              "propertyType": "msg",
              "rules": [
                  {
                      "t": "true"
                  },
                  {
                      "t": "false"
                  }
              ],
              "checkall": "true",
              "repair": false,
              "outputs": 2,
              "x": 490,
              "y": 180,
              "wires": [
                  [
                      "4252c4b0bb26b245"
                  ],
                  [
                      "b5a1ea7e80072ef6"
                  ]
              ]
          },
          {
              "id": "afd835ed44895975",
              "type": "switch",
              "z": "bdb8569551b07cea",
              "name": "Robi nicht Status 5",
              "property": "roborock",
              "propertyType": "msg",
              "rules": [
                  {
                      "t": "neq",
                      "v": "5",
                      "vt": "num"
                  }
              ],
              "checkall": "true",
              "repair": false,
              "outputs": 1,
              "x": 770,
              "y": 320,
              "wires": [
                  [
                      "1eb7ecedcffa3d29"
                  ]
              ]
          },
          {
              "id": "f4a99c65ee36014d",
              "type": "trigger",
              "z": "bdb8569551b07cea",
              "name": "2 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": 750,
              "y": 280,
              "wires": [
                  [
                      "94462e1d2bd6f11c"
                  ]
              ]
          },
          {
              "id": "22c3cf1f0ee2df96",
              "type": "ioBroker in",
              "z": "bdb8569551b07cea",
              "name": "Schalter Digital",
              "attrname": "payload",
              "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
              "payloadType": "value",
              "onlyack": "",
              "func": "all",
              "gap": "",
              "fireOnStart": "false",
              "outFormat": "MQTT",
              "x": 140,
              "y": 60,
              "wires": [
                  [
                      "35c7b6145d426c75"
                  ]
              ]
          },
          {
              "id": "d3d6a34b6f224fa3",
              "type": "ioBroker in",
              "z": "bdb8569551b07cea",
              "name": "Alexa Küche Licht an",
              "attrname": "payload",
              "topic": "alexa2.0.Echo-Devices.G0913L06031202PA.Routines.b3634834-802f-48e1-b1b2-6e460623c7f3",
              "payloadType": "value",
              "onlyack": "",
              "func": "all",
              "gap": "",
              "fireOnStart": "false",
              "outFormat": "MQTT",
              "x": 120,
              "y": 120,
              "wires": [
                  [
                      "35c7b6145d426c75"
                  ]
              ]
          },
          {
              "id": "4252c4b0bb26b245",
              "type": "link out",
              "z": "bdb8569551b07cea",
              "name": "link out 5",
              "mode": "link",
              "links": [
                  "49203dd9fe66cdc6",
                  "e4af16cdcb5efadf"
              ],
              "x": 635,
              "y": 160,
              "wires": []
          },
          {
              "id": "e4af16cdcb5efadf",
              "type": "link in",
              "z": "bdb8569551b07cea",
              "name": "link in 5",
              "links": [
                  "4252c4b0bb26b245",
                  "b5a1ea7e80072ef6"
              ],
              "x": 605,
              "y": 280,
              "wires": [
                  [
                      "f4a99c65ee36014d"
                  ]
              ]
          },
          {
              "id": "49203dd9fe66cdc6",
              "type": "link in",
              "z": "bdb8569551b07cea",
              "name": "link in 6",
              "links": [
                  "4252c4b0bb26b245",
                  "b5a1ea7e80072ef6"
              ],
              "x": 445,
              "y": 320,
              "wires": [
                  [
                      "da3fde9e0c9736b6"
                  ]
              ]
          },
          {
              "id": "b5a1ea7e80072ef6",
              "type": "link out",
              "z": "bdb8569551b07cea",
              "name": "link out 6",
              "mode": "link",
              "links": [
                  "e4af16cdcb5efadf",
                  "49203dd9fe66cdc6"
              ],
              "x": 635,
              "y": 200,
              "wires": []
          },
          {
              "id": "8f7b11ac83f34587",
              "type": "switch",
              "z": "bdb8569551b07cea",
              "name": "",
              "property": "Schalter.Kueche",
              "propertyType": "flow",
              "rules": [
                  {
                      "t": "false"
                  }
              ],
              "checkall": "true",
              "repair": false,
              "outputs": 1,
              "x": 320,
              "y": 180,
              "wires": [
                  [
                      "0fc9800b73f04220"
                  ]
              ]
          },
          {
              "id": "4547deb06e3089c8",
              "type": "change",
              "z": "bdb8569551b07cea",
              "name": "Küche true",
              "rules": [
                  {
                      "t": "set",
                      "p": "Schalter.Kueche",
                      "pt": "flow",
                      "to": "true",
                      "tot": "bool"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 360,
              "y": 610,
              "wires": [
                  [
                      "9feb2c5809b9329a"
                  ]
              ]
          },
          {
              "id": "9feb2c5809b9329a",
              "type": "trigger",
              "z": "bdb8569551b07cea",
              "name": "30 min.",
              "op1": "",
              "op2": "false",
              "op1type": "nul",
              "op2type": "bool",
              "duration": "30",
              "extend": true,
              "overrideDelay": false,
              "units": "min",
              "reset": "",
              "bytopic": "all",
              "topic": "topic",
              "outputs": 1,
              "x": 520,
              "y": 610,
              "wires": [
                  [
                      "1ab54ef2e7d8f8f9"
                  ]
              ]
          },
          {
              "id": "1ab54ef2e7d8f8f9",
              "type": "change",
              "z": "bdb8569551b07cea",
              "name": "",
              "rules": [
                  {
                      "t": "set",
                      "p": "Schalter.Kueche",
                      "pt": "flow",
                      "to": "false",
                      "tot": "bool"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 730,
              "y": 610,
              "wires": [
                  [
                      "bde4428b16ac37d8"
                  ]
              ]
          },
          {
              "id": "068209292b2d6e74",
              "type": "inject",
              "z": "bdb8569551b07cea",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  },
                  {
                      "p": "topic",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "false",
              "payloadType": "bool",
              "x": 710,
              "y": 50,
              "wires": [
                  [
                      "bca6cf9871919f25"
                  ]
              ]
          },
          {
              "id": "81f4495b75d3375b",
              "type": "inject",
              "z": "bdb8569551b07cea",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  },
                  {
                      "p": "topic",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "true",
              "payloadType": "bool",
              "x": 710,
              "y": 120,
              "wires": [
                  [
                      "bca6cf9871919f25"
                  ]
              ]
          },
          {
              "id": "780b6913d8225714",
              "type": "inject",
              "z": "bdb8569551b07cea",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  },
                  {
                      "p": "topic",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "true",
              "payloadType": "bool",
              "x": 90,
              "y": 530,
              "wires": [
                  [
                      "e51c551cbaef2add"
                  ]
              ]
          },
          {
              "id": "d6b7e12a314ea547",
              "type": "inject",
              "z": "bdb8569551b07cea",
              "name": "",
              "props": [
                  {
                      "p": "payload"
                  },
                  {
                      "p": "topic",
                      "vt": "str"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "false",
              "payloadType": "bool",
              "x": 90,
              "y": 630,
              "wires": [
                  [
                      "e51c551cbaef2add"
                  ]
              ]
          },
          {
              "id": "cbfef8605cda1ae4",
              "type": "ioBroker in",
              "z": "bdb8569551b07cea",
              "name": "Küche",
              "attrname": "payload",
              "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
              "payloadType": "value",
              "onlyack": "",
              "func": "rbe",
              "gap": "",
              "fireOnStart": "false",
              "outFormat": "MQTT",
              "x": 90,
              "y": 580,
              "wires": [
                  [
                      "e51c551cbaef2add"
                  ]
              ]
          },
          {
              "id": "0e39b42e28d9c4b2",
              "type": "ioBroker out",
              "z": "bdb8569551b07cea",
              "name": "Küche Unters. links",
              "topic": "hue.0.Küche_Unterschr_Links.on",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "payloadType": "",
              "readonly": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1030,
              "y": 510,
              "wires": []
          },
          {
              "id": "7b02a1107aeafc13",
              "type": "ioBroker out",
              "z": "bdb8569551b07cea",
              "name": "Küche Unters. rechts",
              "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "payloadType": "",
              "readonly": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1040,
              "y": 560,
              "wires": []
          },
          {
              "id": "c24747a342fcf6a5",
              "type": "ioBroker out",
              "z": "bdb8569551b07cea",
              "name": "Küche Decke",
              "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "payloadType": "",
              "readonly": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1010,
              "y": 610,
              "wires": []
          },
          {
              "id": "7132ea29c42ebd7f",
              "type": "debug",
              "z": "bdb8569551b07cea",
              "name": "Küche Decke Alexa",
              "active": false,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1030,
              "y": 660,
              "wires": []
          },
          {
              "id": "b62a640fe697beeb",
              "type": "ioBroker out",
              "z": "bdb8569551b07cea",
              "name": "Küche Unters. links",
              "topic": "hue.0.Küche_Unterschr_Links.on",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "payloadType": "",
              "readonly": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1030,
              "y": 220,
              "wires": []
          },
          {
              "id": "7c8261495d0c6d03",
              "type": "ioBroker out",
              "z": "bdb8569551b07cea",
              "name": "Küche Unters. rechts",
              "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "payloadType": "",
              "readonly": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1040,
              "y": 270,
              "wires": []
          },
          {
              "id": "78eb18795197f387",
              "type": "ioBroker out",
              "z": "bdb8569551b07cea",
              "name": "Küche Decke",
              "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
              "ack": "false",
              "autoCreate": "false",
              "stateName": "",
              "role": "",
              "payloadType": "",
              "readonly": "",
              "stateUnit": "",
              "stateMin": "",
              "stateMax": "",
              "x": 1010,
              "y": 320,
              "wires": []
          },
          {
              "id": "2e260dca909fb769",
              "type": "debug",
              "z": "bdb8569551b07cea",
              "name": "Küche Decke Alexa",
              "active": false,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1030,
              "y": 370,
              "wires": []
          }
      ]
      

      1 Antwort Letzte Antwort
      0
      • AphofisA Offline
        AphofisA Offline
        Aphofis
        schrieb am zuletzt editiert von Aphofis
        #185

        @mickym Fehler gefunden warum da so ein wirrwarr war. Ist sogar kompletter Iobroker stehen geblieben.
        Schaltung läuft jetzt prima. Nur wenn durch den BWM wieder bewegung ist, bleibt das Licht nicht nicht an. Gibt es da eine Funktion um das zu realisieren !?

        Screenshot 2024-08-24 101551.png

        [
            {
                "id": "f40fbc4eb5ac4f7a",
                "type": "tab",
                "label": "Flow 1",
                "disabled": false,
                "info": "",
                "env": []
            },
            {
                "id": "08699ecfd70dac2b",
                "type": "junction",
                "z": "f40fbc4eb5ac4f7a",
                "x": 870,
                "y": 380,
                "wires": [
                    [
                        "272c68c48b983a80",
                        "bc55ed0b25fe4b53",
                        "206e333fba3e9345",
                        "fde5bfcbe527b1e3"
                    ]
                ]
            },
            {
                "id": "46a4e1c8d54791e4",
                "type": "junction",
                "z": "f40fbc4eb5ac4f7a",
                "x": 870,
                "y": 430,
                "wires": [
                    [
                        "fde5bfcbe527b1e3",
                        "206e333fba3e9345",
                        "bc55ed0b25fe4b53",
                        "272c68c48b983a80"
                    ]
                ]
            },
            {
                "id": "63524b08cb45c082",
                "type": "junction",
                "z": "f40fbc4eb5ac4f7a",
                "x": 200,
                "y": 620,
                "wires": [
                    [
                        "bbe47e797e5bd352",
                        "8dbccd4f1d2e0ecb"
                    ]
                ]
            },
            {
                "id": "8dbccd4f1d2e0ecb",
                "type": "junction",
                "z": "f40fbc4eb5ac4f7a",
                "x": 880,
                "y": 620,
                "wires": [
                    [
                        "41b9b7b005fa10ac",
                        "f02fa0a2b26d552d",
                        "e217fc94bf0d9975",
                        "2e321d0e71773ba9"
                    ]
                ]
            },
            {
                "id": "c4e6460f4f7c8f66",
                "type": "junction",
                "z": "f40fbc4eb5ac4f7a",
                "x": 520,
                "y": 130,
                "wires": [
                    [
                        "f79f0e9e71834a0c"
                    ]
                ]
            },
            {
                "id": "fa53ed196e913e9c",
                "type": "junction",
                "z": "f40fbc4eb5ac4f7a",
                "x": 520,
                "y": 180,
                "wires": [
                    [
                        "0e407ef78ff6390a"
                    ]
                ]
            },
            {
                "id": "9108a39567622628",
                "type": "ioBroker in",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche",
                "attrname": "payload",
                "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                "payloadType": "value",
                "onlyack": "",
                "func": "rbe",
                "gap": "",
                "fireOnStart": "false",
                "outFormat": "MQTT",
                "x": 100,
                "y": 160,
                "wires": [
                    [
                        "e021122ea39cc1ae"
                    ]
                ]
            },
            {
                "id": "f79f0e9e71834a0c",
                "type": "debug",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche manuell",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1040,
                "y": 130,
                "wires": []
            },
            {
                "id": "e8e8081d727ee5cd",
                "type": "function",
                "z": "f40fbc4eb5ac4f7a",
                "name": "true",
                "func": "true\nreturn msg;",
                "outputs": 1,
                "timeout": 0,
                "noerr": 0,
                "initialize": "",
                "finalize": "",
                "libs": [],
                "x": 420,
                "y": 130,
                "wires": [
                    [
                        "c4e6460f4f7c8f66",
                        "fa53ed196e913e9c"
                    ]
                ]
            },
            {
                "id": "975e6dc6d439cdd9",
                "type": "function",
                "z": "f40fbc4eb5ac4f7a",
                "name": "false",
                "func": "false\nreturn msg;",
                "outputs": 1,
                "timeout": 0,
                "noerr": 0,
                "initialize": "",
                "finalize": "",
                "libs": [],
                "x": 420,
                "y": 180,
                "wires": [
                    [
                        "c4e6460f4f7c8f66",
                        "fa53ed196e913e9c"
                    ]
                ]
            },
            {
                "id": "e021122ea39cc1ae",
                "type": "switch",
                "z": "f40fbc4eb5ac4f7a",
                "name": "An/Aus",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "true"
                    },
                    {
                        "t": "false"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 2,
                "x": 270,
                "y": 160,
                "wires": [
                    [
                        "e8e8081d727ee5cd"
                    ],
                    [
                        "975e6dc6d439cdd9"
                    ]
                ]
            },
            {
                "id": "e9b338134fd47b01",
                "type": "inject",
                "z": "f40fbc4eb5ac4f7a",
                "name": "true",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "true",
                "payloadType": "bool",
                "x": 100,
                "y": 120,
                "wires": [
                    [
                        "e021122ea39cc1ae"
                    ]
                ]
            },
            {
                "id": "9eba54f2d3f608ae",
                "type": "inject",
                "z": "f40fbc4eb5ac4f7a",
                "name": "false",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "false",
                "payloadType": "bool",
                "x": 100,
                "y": 210,
                "wires": [
                    [
                        "e021122ea39cc1ae"
                    ]
                ]
            },
            {
                "id": "51bf3002fa7d360f",
                "type": "ioBroker get",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Status",
                "topic": "mihome-vacuum.1.info.state",
                "attrname": "roborock",
                "payloadType": "value",
                "errOnInvalidState": "nothing",
                "x": 570,
                "y": 430,
                "wires": [
                    [
                        "c477284196deb6ad"
                    ]
                ]
            },
            {
                "id": "c477284196deb6ad",
                "type": "switch",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Robi nicht 5",
                "property": "roborock",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "neq",
                        "v": "5",
                        "vt": "num"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 1,
                "x": 710,
                "y": 430,
                "wires": [
                    [
                        "46a4e1c8d54791e4"
                    ]
                ]
            },
            {
                "id": "1956453b80f029b4",
                "type": "trigger",
                "z": "f40fbc4eb5ac4f7a",
                "name": "2 min. warten bevor false",
                "op1": "",
                "op2": "false",
                "op1type": "nul",
                "op2type": "bool",
                "duration": "10",
                "extend": true,
                "overrideDelay": false,
                "units": "s",
                "reset": "",
                "bytopic": "all",
                "topic": "topic",
                "outputs": 1,
                "x": 630,
                "y": 380,
                "wires": [
                    [
                        "08699ecfd70dac2b"
                    ]
                ]
            },
            {
                "id": "bc55ed0b25fe4b53",
                "type": "ioBroker out",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche Unters. rechts",
                "topic": "alexa2.0.Smart-Home-Devices.44f9d510-3bd4-4120-9095-758e63529f91.powerState",
                "ack": "false",
                "autoCreate": "false",
                "stateName": "",
                "role": "",
                "payloadType": "",
                "readonly": "",
                "stateUnit": "",
                "stateMin": "",
                "stateMax": "",
                "x": 1060,
                "y": 370,
                "wires": []
            },
            {
                "id": "206e333fba3e9345",
                "type": "ioBroker out",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche Decke",
                "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                "ack": "false",
                "autoCreate": "false",
                "stateName": "",
                "role": "",
                "payloadType": "",
                "readonly": "",
                "stateUnit": "",
                "stateMin": "",
                "stateMax": "",
                "x": 1030,
                "y": 420,
                "wires": []
            },
            {
                "id": "fde5bfcbe527b1e3",
                "type": "debug",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche Decke Motion 2 min",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1080,
                "y": 470,
                "wires": []
            },
            {
                "id": "272c68c48b983a80",
                "type": "ioBroker out",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche Unters. links",
                "topic": "hue.0.Küche_Unterschr_Links.on",
                "ack": "false",
                "autoCreate": "false",
                "stateName": "",
                "role": "",
                "payloadType": "",
                "readonly": "",
                "stateUnit": "",
                "stateMin": "",
                "stateMax": "",
                "x": 1050,
                "y": 320,
                "wires": []
            },
            {
                "id": "480e45050d828b39",
                "type": "ioBroker in",
                "z": "f40fbc4eb5ac4f7a",
                "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": 80,
                "y": 380,
                "wires": [
                    [
                        "f2c899d38e11b319"
                    ]
                ]
            },
            {
                "id": "5d97adc7f4def0bb",
                "type": "switch",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Bewegung ?",
                "property": "payload",
                "propertyType": "msg",
                "rules": [
                    {
                        "t": "true"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 1,
                "x": 410,
                "y": 380,
                "wires": [
                    [
                        "51bf3002fa7d360f",
                        "1956453b80f029b4"
                    ]
                ]
            },
            {
                "id": "f2c899d38e11b319",
                "type": "switch",
                "z": "f40fbc4eb5ac4f7a",
                "name": "",
                "property": "Schalter.Kueche",
                "propertyType": "flow",
                "rules": [
                    {
                        "t": "false"
                    }
                ],
                "checkall": "true",
                "repair": false,
                "outputs": 1,
                "x": 270,
                "y": 380,
                "wires": [
                    [
                        "5d97adc7f4def0bb"
                    ]
                ]
            },
            {
                "id": "df6942f6ca51163c",
                "type": "inject",
                "z": "f40fbc4eb5ac4f7a",
                "name": "",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "true",
                "payloadType": "bool",
                "x": 100,
                "y": 430,
                "wires": [
                    [
                        "f2c899d38e11b319"
                    ]
                ]
            },
            {
                "id": "2d6a29e527eb678c",
                "type": "inject",
                "z": "f40fbc4eb5ac4f7a",
                "name": "",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "false",
                "payloadType": "bool",
                "x": 100,
                "y": 330,
                "wires": [
                    [
                        "f2c899d38e11b319"
                    ]
                ]
            },
            {
                "id": "bbe47e797e5bd352",
                "type": "change",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche true",
                "rules": [
                    {
                        "t": "set",
                        "p": "Schalter.Kueche",
                        "pt": "flow",
                        "to": "true",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 300,
                "y": 650,
                "wires": [
                    [
                        "4d88bc3dbe17d4a0"
                    ]
                ]
            },
            {
                "id": "4d88bc3dbe17d4a0",
                "type": "trigger",
                "z": "f40fbc4eb5ac4f7a",
                "name": "30 min.",
                "op1": "",
                "op2": "false",
                "op1type": "nul",
                "op2type": "bool",
                "duration": "20",
                "extend": false,
                "overrideDelay": false,
                "units": "s",
                "reset": "",
                "bytopic": "all",
                "topic": "topic",
                "outputs": 1,
                "x": 450,
                "y": 650,
                "wires": [
                    [
                        "0be12e6bd4e8e8b0"
                    ]
                ]
            },
            {
                "id": "0be12e6bd4e8e8b0",
                "type": "change",
                "z": "f40fbc4eb5ac4f7a",
                "name": "",
                "rules": [
                    {
                        "t": "set",
                        "p": "Schalter.Kueche",
                        "pt": "flow",
                        "to": "false",
                        "tot": "bool"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 650,
                "y": 650,
                "wires": [
                    [
                        "8dbccd4f1d2e0ecb"
                    ]
                ]
            },
            {
                "id": "bc31192270462750",
                "type": "inject",
                "z": "f40fbc4eb5ac4f7a",
                "name": "",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "true",
                "payloadType": "bool",
                "x": 100,
                "y": 570,
                "wires": [
                    [
                        "63524b08cb45c082"
                    ]
                ]
            },
            {
                "id": "e081bb71ad5f804e",
                "type": "inject",
                "z": "f40fbc4eb5ac4f7a",
                "name": "",
                "props": [
                    {
                        "p": "payload"
                    },
                    {
                        "p": "topic",
                        "vt": "str"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "false",
                "payloadType": "bool",
                "x": 100,
                "y": 670,
                "wires": [
                    [
                        "63524b08cb45c082"
                    ]
                ]
            },
            {
                "id": "f0e98b2901027f4e",
                "type": "ioBroker in",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche",
                "attrname": "payload",
                "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                "payloadType": "value",
                "onlyack": "",
                "func": "rbe",
                "gap": "",
                "fireOnStart": "false",
                "outFormat": "MQTT",
                "x": 100,
                "y": 620,
                "wires": [
                    [
                        "63524b08cb45c082"
                    ]
                ]
            },
            {
                "id": "41b9b7b005fa10ac",
                "type": "ioBroker out",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche Unters. links",
                "topic": "hue.0.Küche_Unterschr_Links.on",
                "ack": "false",
                "autoCreate": "false",
                "stateName": "",
                "role": "",
                "payloadType": "",
                "readonly": "",
                "stateUnit": "",
                "stateMin": "",
                "stateMax": "",
                "x": 1050,
                "y": 550,
                "wires": []
            },
            {
                "id": "f02fa0a2b26d552d",
                "type": "ioBroker out",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche Unters. rechts",
                "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
                "ack": "false",
                "autoCreate": "false",
                "stateName": "",
                "role": "",
                "payloadType": "",
                "readonly": "",
                "stateUnit": "",
                "stateMin": "",
                "stateMax": "",
                "x": 1060,
                "y": 600,
                "wires": []
            },
            {
                "id": "e217fc94bf0d9975",
                "type": "ioBroker out",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche Decke",
                "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                "ack": "false",
                "autoCreate": "false",
                "stateName": "",
                "role": "",
                "payloadType": "",
                "readonly": "",
                "stateUnit": "",
                "stateMin": "",
                "stateMax": "",
                "x": 1030,
                "y": 650,
                "wires": []
            },
            {
                "id": "2e321d0e71773ba9",
                "type": "debug",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche Decke Motion 30 min",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1080,
                "y": 700,
                "wires": []
            },
            {
                "id": "0e407ef78ff6390a",
                "type": "ioBroker out",
                "z": "f40fbc4eb5ac4f7a",
                "name": "Küche Decke",
                "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                "ack": "false",
                "autoCreate": "false",
                "stateName": "",
                "role": "",
                "payloadType": "",
                "readonly": "",
                "stateUnit": "",
                "stateMin": "",
                "stateMax": "",
                "x": 1030,
                "y": 180,
                "wires": []
            }
        ]
        


        Also bei Bewegung schaltet Licht an und bleibt für eingestellte Zeit an.
        Wenn Roboter Sauger aktiv ist bleibt auch bei BWM Licht aus.
        Wenn man Lichtschalter betätigt, bleibt Licht für eingestellte Zeit an.
        ISt der Roboter Sauger beim laden in der Station Funktioniert der BWM wieder.
        Den Lichtschalter kann man immer benutzen und bleibt auch beim Reinigen des roboters für eingestellte Zeit an.

        mickymM 1 Antwort Letzte Antwort
        0
        • AphofisA Aphofis

          @mickym Fehler gefunden warum da so ein wirrwarr war. Ist sogar kompletter Iobroker stehen geblieben.
          Schaltung läuft jetzt prima. Nur wenn durch den BWM wieder bewegung ist, bleibt das Licht nicht nicht an. Gibt es da eine Funktion um das zu realisieren !?

          Screenshot 2024-08-24 101551.png

          [
              {
                  "id": "f40fbc4eb5ac4f7a",
                  "type": "tab",
                  "label": "Flow 1",
                  "disabled": false,
                  "info": "",
                  "env": []
              },
              {
                  "id": "08699ecfd70dac2b",
                  "type": "junction",
                  "z": "f40fbc4eb5ac4f7a",
                  "x": 870,
                  "y": 380,
                  "wires": [
                      [
                          "272c68c48b983a80",
                          "bc55ed0b25fe4b53",
                          "206e333fba3e9345",
                          "fde5bfcbe527b1e3"
                      ]
                  ]
              },
              {
                  "id": "46a4e1c8d54791e4",
                  "type": "junction",
                  "z": "f40fbc4eb5ac4f7a",
                  "x": 870,
                  "y": 430,
                  "wires": [
                      [
                          "fde5bfcbe527b1e3",
                          "206e333fba3e9345",
                          "bc55ed0b25fe4b53",
                          "272c68c48b983a80"
                      ]
                  ]
              },
              {
                  "id": "63524b08cb45c082",
                  "type": "junction",
                  "z": "f40fbc4eb5ac4f7a",
                  "x": 200,
                  "y": 620,
                  "wires": [
                      [
                          "bbe47e797e5bd352",
                          "8dbccd4f1d2e0ecb"
                      ]
                  ]
              },
              {
                  "id": "8dbccd4f1d2e0ecb",
                  "type": "junction",
                  "z": "f40fbc4eb5ac4f7a",
                  "x": 880,
                  "y": 620,
                  "wires": [
                      [
                          "41b9b7b005fa10ac",
                          "f02fa0a2b26d552d",
                          "e217fc94bf0d9975",
                          "2e321d0e71773ba9"
                      ]
                  ]
              },
              {
                  "id": "c4e6460f4f7c8f66",
                  "type": "junction",
                  "z": "f40fbc4eb5ac4f7a",
                  "x": 520,
                  "y": 130,
                  "wires": [
                      [
                          "f79f0e9e71834a0c"
                      ]
                  ]
              },
              {
                  "id": "fa53ed196e913e9c",
                  "type": "junction",
                  "z": "f40fbc4eb5ac4f7a",
                  "x": 520,
                  "y": 180,
                  "wires": [
                      [
                          "0e407ef78ff6390a"
                      ]
                  ]
              },
              {
                  "id": "9108a39567622628",
                  "type": "ioBroker in",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche",
                  "attrname": "payload",
                  "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                  "payloadType": "value",
                  "onlyack": "",
                  "func": "rbe",
                  "gap": "",
                  "fireOnStart": "false",
                  "outFormat": "MQTT",
                  "x": 100,
                  "y": 160,
                  "wires": [
                      [
                          "e021122ea39cc1ae"
                      ]
                  ]
              },
              {
                  "id": "f79f0e9e71834a0c",
                  "type": "debug",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche manuell",
                  "active": true,
                  "tosidebar": true,
                  "console": false,
                  "tostatus": false,
                  "complete": "payload",
                  "targetType": "msg",
                  "statusVal": "",
                  "statusType": "auto",
                  "x": 1040,
                  "y": 130,
                  "wires": []
              },
              {
                  "id": "e8e8081d727ee5cd",
                  "type": "function",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "true",
                  "func": "true\nreturn msg;",
                  "outputs": 1,
                  "timeout": 0,
                  "noerr": 0,
                  "initialize": "",
                  "finalize": "",
                  "libs": [],
                  "x": 420,
                  "y": 130,
                  "wires": [
                      [
                          "c4e6460f4f7c8f66",
                          "fa53ed196e913e9c"
                      ]
                  ]
              },
              {
                  "id": "975e6dc6d439cdd9",
                  "type": "function",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "false",
                  "func": "false\nreturn msg;",
                  "outputs": 1,
                  "timeout": 0,
                  "noerr": 0,
                  "initialize": "",
                  "finalize": "",
                  "libs": [],
                  "x": 420,
                  "y": 180,
                  "wires": [
                      [
                          "c4e6460f4f7c8f66",
                          "fa53ed196e913e9c"
                      ]
                  ]
              },
              {
                  "id": "e021122ea39cc1ae",
                  "type": "switch",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "An/Aus",
                  "property": "payload",
                  "propertyType": "msg",
                  "rules": [
                      {
                          "t": "true"
                      },
                      {
                          "t": "false"
                      }
                  ],
                  "checkall": "true",
                  "repair": false,
                  "outputs": 2,
                  "x": 270,
                  "y": 160,
                  "wires": [
                      [
                          "e8e8081d727ee5cd"
                      ],
                      [
                          "975e6dc6d439cdd9"
                      ]
                  ]
              },
              {
                  "id": "e9b338134fd47b01",
                  "type": "inject",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "true",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "true",
                  "payloadType": "bool",
                  "x": 100,
                  "y": 120,
                  "wires": [
                      [
                          "e021122ea39cc1ae"
                      ]
                  ]
              },
              {
                  "id": "9eba54f2d3f608ae",
                  "type": "inject",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "false",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "false",
                  "payloadType": "bool",
                  "x": 100,
                  "y": 210,
                  "wires": [
                      [
                          "e021122ea39cc1ae"
                      ]
                  ]
              },
              {
                  "id": "51bf3002fa7d360f",
                  "type": "ioBroker get",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Status",
                  "topic": "mihome-vacuum.1.info.state",
                  "attrname": "roborock",
                  "payloadType": "value",
                  "errOnInvalidState": "nothing",
                  "x": 570,
                  "y": 430,
                  "wires": [
                      [
                          "c477284196deb6ad"
                      ]
                  ]
              },
              {
                  "id": "c477284196deb6ad",
                  "type": "switch",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Robi nicht 5",
                  "property": "roborock",
                  "propertyType": "msg",
                  "rules": [
                      {
                          "t": "neq",
                          "v": "5",
                          "vt": "num"
                      }
                  ],
                  "checkall": "true",
                  "repair": false,
                  "outputs": 1,
                  "x": 710,
                  "y": 430,
                  "wires": [
                      [
                          "46a4e1c8d54791e4"
                      ]
                  ]
              },
              {
                  "id": "1956453b80f029b4",
                  "type": "trigger",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "2 min. warten bevor false",
                  "op1": "",
                  "op2": "false",
                  "op1type": "nul",
                  "op2type": "bool",
                  "duration": "10",
                  "extend": true,
                  "overrideDelay": false,
                  "units": "s",
                  "reset": "",
                  "bytopic": "all",
                  "topic": "topic",
                  "outputs": 1,
                  "x": 630,
                  "y": 380,
                  "wires": [
                      [
                          "08699ecfd70dac2b"
                      ]
                  ]
              },
              {
                  "id": "bc55ed0b25fe4b53",
                  "type": "ioBroker out",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche Unters. rechts",
                  "topic": "alexa2.0.Smart-Home-Devices.44f9d510-3bd4-4120-9095-758e63529f91.powerState",
                  "ack": "false",
                  "autoCreate": "false",
                  "stateName": "",
                  "role": "",
                  "payloadType": "",
                  "readonly": "",
                  "stateUnit": "",
                  "stateMin": "",
                  "stateMax": "",
                  "x": 1060,
                  "y": 370,
                  "wires": []
              },
              {
                  "id": "206e333fba3e9345",
                  "type": "ioBroker out",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche Decke",
                  "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                  "ack": "false",
                  "autoCreate": "false",
                  "stateName": "",
                  "role": "",
                  "payloadType": "",
                  "readonly": "",
                  "stateUnit": "",
                  "stateMin": "",
                  "stateMax": "",
                  "x": 1030,
                  "y": 420,
                  "wires": []
              },
              {
                  "id": "fde5bfcbe527b1e3",
                  "type": "debug",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche Decke Motion 2 min",
                  "active": false,
                  "tosidebar": true,
                  "console": false,
                  "tostatus": false,
                  "complete": "payload",
                  "targetType": "msg",
                  "statusVal": "",
                  "statusType": "auto",
                  "x": 1080,
                  "y": 470,
                  "wires": []
              },
              {
                  "id": "272c68c48b983a80",
                  "type": "ioBroker out",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche Unters. links",
                  "topic": "hue.0.Küche_Unterschr_Links.on",
                  "ack": "false",
                  "autoCreate": "false",
                  "stateName": "",
                  "role": "",
                  "payloadType": "",
                  "readonly": "",
                  "stateUnit": "",
                  "stateMin": "",
                  "stateMax": "",
                  "x": 1050,
                  "y": 320,
                  "wires": []
              },
              {
                  "id": "480e45050d828b39",
                  "type": "ioBroker in",
                  "z": "f40fbc4eb5ac4f7a",
                  "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": 80,
                  "y": 380,
                  "wires": [
                      [
                          "f2c899d38e11b319"
                      ]
                  ]
              },
              {
                  "id": "5d97adc7f4def0bb",
                  "type": "switch",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Bewegung ?",
                  "property": "payload",
                  "propertyType": "msg",
                  "rules": [
                      {
                          "t": "true"
                      }
                  ],
                  "checkall": "true",
                  "repair": false,
                  "outputs": 1,
                  "x": 410,
                  "y": 380,
                  "wires": [
                      [
                          "51bf3002fa7d360f",
                          "1956453b80f029b4"
                      ]
                  ]
              },
              {
                  "id": "f2c899d38e11b319",
                  "type": "switch",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "",
                  "property": "Schalter.Kueche",
                  "propertyType": "flow",
                  "rules": [
                      {
                          "t": "false"
                      }
                  ],
                  "checkall": "true",
                  "repair": false,
                  "outputs": 1,
                  "x": 270,
                  "y": 380,
                  "wires": [
                      [
                          "5d97adc7f4def0bb"
                      ]
                  ]
              },
              {
                  "id": "df6942f6ca51163c",
                  "type": "inject",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "true",
                  "payloadType": "bool",
                  "x": 100,
                  "y": 430,
                  "wires": [
                      [
                          "f2c899d38e11b319"
                      ]
                  ]
              },
              {
                  "id": "2d6a29e527eb678c",
                  "type": "inject",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "false",
                  "payloadType": "bool",
                  "x": 100,
                  "y": 330,
                  "wires": [
                      [
                          "f2c899d38e11b319"
                      ]
                  ]
              },
              {
                  "id": "bbe47e797e5bd352",
                  "type": "change",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche true",
                  "rules": [
                      {
                          "t": "set",
                          "p": "Schalter.Kueche",
                          "pt": "flow",
                          "to": "true",
                          "tot": "bool"
                      }
                  ],
                  "action": "",
                  "property": "",
                  "from": "",
                  "to": "",
                  "reg": false,
                  "x": 300,
                  "y": 650,
                  "wires": [
                      [
                          "4d88bc3dbe17d4a0"
                      ]
                  ]
              },
              {
                  "id": "4d88bc3dbe17d4a0",
                  "type": "trigger",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "30 min.",
                  "op1": "",
                  "op2": "false",
                  "op1type": "nul",
                  "op2type": "bool",
                  "duration": "20",
                  "extend": false,
                  "overrideDelay": false,
                  "units": "s",
                  "reset": "",
                  "bytopic": "all",
                  "topic": "topic",
                  "outputs": 1,
                  "x": 450,
                  "y": 650,
                  "wires": [
                      [
                          "0be12e6bd4e8e8b0"
                      ]
                  ]
              },
              {
                  "id": "0be12e6bd4e8e8b0",
                  "type": "change",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "",
                  "rules": [
                      {
                          "t": "set",
                          "p": "Schalter.Kueche",
                          "pt": "flow",
                          "to": "false",
                          "tot": "bool"
                      }
                  ],
                  "action": "",
                  "property": "",
                  "from": "",
                  "to": "",
                  "reg": false,
                  "x": 650,
                  "y": 650,
                  "wires": [
                      [
                          "8dbccd4f1d2e0ecb"
                      ]
                  ]
              },
              {
                  "id": "bc31192270462750",
                  "type": "inject",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "true",
                  "payloadType": "bool",
                  "x": 100,
                  "y": 570,
                  "wires": [
                      [
                          "63524b08cb45c082"
                      ]
                  ]
              },
              {
                  "id": "e081bb71ad5f804e",
                  "type": "inject",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "",
                  "props": [
                      {
                          "p": "payload"
                      },
                      {
                          "p": "topic",
                          "vt": "str"
                      }
                  ],
                  "repeat": "",
                  "crontab": "",
                  "once": false,
                  "onceDelay": 0.1,
                  "topic": "",
                  "payload": "false",
                  "payloadType": "bool",
                  "x": 100,
                  "y": 670,
                  "wires": [
                      [
                          "63524b08cb45c082"
                      ]
                  ]
              },
              {
                  "id": "f0e98b2901027f4e",
                  "type": "ioBroker in",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche",
                  "attrname": "payload",
                  "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                  "payloadType": "value",
                  "onlyack": "",
                  "func": "rbe",
                  "gap": "",
                  "fireOnStart": "false",
                  "outFormat": "MQTT",
                  "x": 100,
                  "y": 620,
                  "wires": [
                      [
                          "63524b08cb45c082"
                      ]
                  ]
              },
              {
                  "id": "41b9b7b005fa10ac",
                  "type": "ioBroker out",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche Unters. links",
                  "topic": "hue.0.Küche_Unterschr_Links.on",
                  "ack": "false",
                  "autoCreate": "false",
                  "stateName": "",
                  "role": "",
                  "payloadType": "",
                  "readonly": "",
                  "stateUnit": "",
                  "stateMin": "",
                  "stateMax": "",
                  "x": 1050,
                  "y": 550,
                  "wires": []
              },
              {
                  "id": "f02fa0a2b26d552d",
                  "type": "ioBroker out",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche Unters. rechts",
                  "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
                  "ack": "false",
                  "autoCreate": "false",
                  "stateName": "",
                  "role": "",
                  "payloadType": "",
                  "readonly": "",
                  "stateUnit": "",
                  "stateMin": "",
                  "stateMax": "",
                  "x": 1060,
                  "y": 600,
                  "wires": []
              },
              {
                  "id": "e217fc94bf0d9975",
                  "type": "ioBroker out",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche Decke",
                  "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                  "ack": "false",
                  "autoCreate": "false",
                  "stateName": "",
                  "role": "",
                  "payloadType": "",
                  "readonly": "",
                  "stateUnit": "",
                  "stateMin": "",
                  "stateMax": "",
                  "x": 1030,
                  "y": 650,
                  "wires": []
              },
              {
                  "id": "2e321d0e71773ba9",
                  "type": "debug",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche Decke Motion 30 min",
                  "active": false,
                  "tosidebar": true,
                  "console": false,
                  "tostatus": false,
                  "complete": "payload",
                  "targetType": "msg",
                  "statusVal": "",
                  "statusType": "auto",
                  "x": 1080,
                  "y": 700,
                  "wires": []
              },
              {
                  "id": "0e407ef78ff6390a",
                  "type": "ioBroker out",
                  "z": "f40fbc4eb5ac4f7a",
                  "name": "Küche Decke",
                  "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                  "ack": "false",
                  "autoCreate": "false",
                  "stateName": "",
                  "role": "",
                  "payloadType": "",
                  "readonly": "",
                  "stateUnit": "",
                  "stateMin": "",
                  "stateMax": "",
                  "x": 1030,
                  "y": 180,
                  "wires": []
              }
          ]
          


          Also bei Bewegung schaltet Licht an und bleibt für eingestellte Zeit an.
          Wenn Roboter Sauger aktiv ist bleibt auch bei BWM Licht aus.
          Wenn man Lichtschalter betätigt, bleibt Licht für eingestellte Zeit an.
          ISt der Roboter Sauger beim laden in der Station Funktioniert der BWM wieder.
          Den Lichtschalter kann man immer benutzen und bleibt auch beim Reinigen des roboters für eingestellte Zeit an.

          mickymM Offline
          mickymM Offline
          mickym
          Most Active
          schrieb am zuletzt editiert von
          #186

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

          Nur wenn durch den BWM wieder bewegung ist, bleibt das Licht nicht nicht an.

          Na dann schau halt ob die Zeitspanne in der Trigger Node verlängert wird, wenn erneut true gemeldet wird und du auch in der iobroker-in Node nicht filterst, dass nur Wertänderungen durchkommen.

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

          1 Antwort Letzte Antwort
          1
          • AphofisA Offline
            AphofisA Offline
            Aphofis
            schrieb am zuletzt editiert von Aphofis
            #187

            @mickym
            Ich sagte ja fehler hab ich gefunden.
            Die Steuerung läuft
            Bis auf das wenn man den Schalter betätigt und in der BWM läuft geht die Timeout Node auch an und Licht schaltet nach 2 min ab als ob die node bwm nicht aussen vor ist sondern immer funktioniert

            mickymM 1 Antwort Letzte Antwort
            0
            • AphofisA Aphofis

              @mickym
              Ich sagte ja fehler hab ich gefunden.
              Die Steuerung läuft
              Bis auf das wenn man den Schalter betätigt und in der BWM läuft geht die Timeout Node auch an und Licht schaltet nach 2 min ab als ob die node bwm nicht aussen vor ist sondern immer funktioniert

              mickymM Offline
              mickymM Offline
              mickym
              Most Active
              schrieb am zuletzt editiert von
              #188

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

              Bis auf das wenn man den Schalter betätigt und in der BWM läuft geht die Timeout Node auch an und Licht schaltet nach 2 min ab als ob die node bwm nicht aussen vor ist sondern immer funktioniert

              Dann könnte es daran liegen, dass wenn der Schalter eingeschaltet wird, kurz vorher aber noch der BWM getriggert hat (z. Bsp. weil der Schalter in dem entsprechenden Raum ist) und in der Triggernode schon der Timer läuft. Dann würde ich vom Schalter noch ein msg.reset = true in die Triggernode schicken.

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

              AphofisA 1 Antwort Letzte Antwort
              1
              • mickymM mickym

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

                Bis auf das wenn man den Schalter betätigt und in der BWM läuft geht die Timeout Node auch an und Licht schaltet nach 2 min ab als ob die node bwm nicht aussen vor ist sondern immer funktioniert

                Dann könnte es daran liegen, dass wenn der Schalter eingeschaltet wird, kurz vorher aber noch der BWM getriggert hat (z. Bsp. weil der Schalter in dem entsprechenden Raum ist) und in der Triggernode schon der Timer läuft. Dann würde ich vom Schalter noch ein msg.reset = true in die Triggernode schicken.

                AphofisA Offline
                AphofisA Offline
                Aphofis
                schrieb am zuletzt editiert von
                #189

                @mickym
                Hab den letzten Fehler gefunden.
                Falsche Verknüpfung, jetzt gehts.
                Screenshot 2024-08-24 163342.png

                [
                    {
                        "id": "4b4d3c488cba7f6d",
                        "type": "ioBroker in",
                        "z": "fca95f262626d456",
                        "name": "Bad",
                        "attrname": "payload",
                        "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                        "payloadType": "value",
                        "onlyack": "",
                        "func": "rbe",
                        "gap": "",
                        "fireOnStart": "false",
                        "outFormat": "MQTT",
                        "x": 100,
                        "y": 110,
                        "wires": [
                            [
                                "f7904135afcd7501"
                            ]
                        ]
                    },
                    {
                        "id": "d17d88371ee4100c",
                        "type": "inject",
                        "z": "fca95f262626d456",
                        "name": "true",
                        "props": [
                            {
                                "p": "payload"
                            },
                            {
                                "p": "topic",
                                "vt": "str"
                            }
                        ],
                        "repeat": "",
                        "crontab": "",
                        "once": false,
                        "onceDelay": 0.1,
                        "topic": "",
                        "payload": "true",
                        "payloadType": "bool",
                        "x": 100,
                        "y": 30,
                        "wires": [
                            [
                                "3e03352303deb36c"
                            ]
                        ]
                    },
                    {
                        "id": "2e62c8d3e0cd270e",
                        "type": "inject",
                        "z": "fca95f262626d456",
                        "name": "false",
                        "props": [
                            {
                                "p": "payload"
                            },
                            {
                                "p": "topic",
                                "vt": "str"
                            }
                        ],
                        "repeat": "",
                        "crontab": "",
                        "once": false,
                        "onceDelay": 0.1,
                        "topic": "",
                        "payload": "false",
                        "payloadType": "bool",
                        "x": 100,
                        "y": 70,
                        "wires": [
                            [
                                "3e03352303deb36c"
                            ]
                        ]
                    },
                    {
                        "id": "c0df8f07016b31ef",
                        "type": "change",
                        "z": "fca95f262626d456",
                        "name": "Bad true",
                        "rules": [
                            {
                                "t": "set",
                                "p": "Schalter.Bad",
                                "pt": "flow",
                                "to": "true",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 270,
                        "y": 260,
                        "wires": [
                            [
                                "48c854225a9cd423"
                            ]
                        ]
                    },
                    {
                        "id": "48c854225a9cd423",
                        "type": "trigger",
                        "z": "fca95f262626d456",
                        "name": "45 min.",
                        "op1": "",
                        "op2": "false",
                        "op1type": "nul",
                        "op2type": "bool",
                        "duration": "30",
                        "extend": true,
                        "overrideDelay": false,
                        "units": "s",
                        "reset": "Schalter.Kueche",
                        "bytopic": "all",
                        "topic": "topic",
                        "outputs": 1,
                        "x": 570,
                        "y": 260,
                        "wires": [
                            [
                                "a10f3834831b9f4e"
                            ]
                        ]
                    },
                    {
                        "id": "a10f3834831b9f4e",
                        "type": "change",
                        "z": "fca95f262626d456",
                        "name": "",
                        "rules": [
                            {
                                "t": "set",
                                "p": "Schalter.Bad",
                                "pt": "flow",
                                "to": "false",
                                "tot": "bool"
                            }
                        ],
                        "action": "",
                        "property": "",
                        "from": "",
                        "to": "",
                        "reg": false,
                        "x": 770,
                        "y": 260,
                        "wires": [
                            [
                                "c98811d9c189fbc3"
                            ]
                        ]
                    },
                    {
                        "id": "89a3ef92e12849c4",
                        "type": "ioBroker in",
                        "z": "fca95f262626d456",
                        "name": "Bad",
                        "attrname": "payload",
                        "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                        "payloadType": "value",
                        "onlyack": "",
                        "func": "rbe",
                        "gap": "",
                        "fireOnStart": "false",
                        "outFormat": "MQTT",
                        "x": 100,
                        "y": 230,
                        "wires": [
                            [
                                "025de60d703a7295"
                            ]
                        ]
                    },
                    {
                        "id": "99b44662062bb3d4",
                        "type": "ioBroker get",
                        "z": "fca95f262626d456",
                        "name": "Status",
                        "topic": "mihome-vacuum.1.info.state",
                        "attrname": "roborock",
                        "payloadType": "value",
                        "errOnInvalidState": "nothing",
                        "x": 610,
                        "y": 190,
                        "wires": [
                            [
                                "8564fb0dcfe06fd9"
                            ]
                        ]
                    },
                    {
                        "id": "8564fb0dcfe06fd9",
                        "type": "switch",
                        "z": "fca95f262626d456",
                        "name": "Robi nicht 5",
                        "property": "roborock",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "neq",
                                "v": "5",
                                "vt": "num"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 1,
                        "x": 750,
                        "y": 190,
                        "wires": [
                            [
                                "349701d013e20e48"
                            ]
                        ]
                    },
                    {
                        "id": "5f5b8902de2a2a06",
                        "type": "trigger",
                        "z": "fca95f262626d456",
                        "name": "3 min. warten bevor false",
                        "op1": "",
                        "op2": "false",
                        "op1type": "nul",
                        "op2type": "bool",
                        "duration": "10",
                        "extend": true,
                        "overrideDelay": false,
                        "units": "s",
                        "reset": "reset",
                        "bytopic": "all",
                        "topic": "topic",
                        "outputs": 1,
                        "x": 670,
                        "y": 140,
                        "wires": [
                            [
                                "b887a87f23e7655c"
                            ]
                        ]
                    },
                    {
                        "id": "b84d05e01c05f457",
                        "type": "switch",
                        "z": "fca95f262626d456",
                        "name": "Bewegung ?",
                        "property": "payload",
                        "propertyType": "msg",
                        "rules": [
                            {
                                "t": "true"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 1,
                        "x": 430,
                        "y": 190,
                        "wires": [
                            [
                                "99b44662062bb3d4",
                                "5f5b8902de2a2a06"
                            ]
                        ]
                    },
                    {
                        "id": "5f18694a523d8c75",
                        "type": "switch",
                        "z": "fca95f262626d456",
                        "name": "",
                        "property": "Schalter.Bad",
                        "propertyType": "flow",
                        "rules": [
                            {
                                "t": "false"
                            }
                        ],
                        "checkall": "true",
                        "repair": false,
                        "outputs": 1,
                        "x": 280,
                        "y": 190,
                        "wires": [
                            [
                                "b84d05e01c05f457"
                            ]
                        ]
                    },
                    {
                        "id": "3d3a0961165b53df",
                        "type": "ioBroker out",
                        "z": "fca95f262626d456",
                        "name": "Bad Decke",
                        "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                        "ack": "false",
                        "autoCreate": "false",
                        "stateName": "",
                        "role": "",
                        "payloadType": "",
                        "readonly": "",
                        "stateUnit": "",
                        "stateMin": "",
                        "stateMax": "",
                        "x": 1030,
                        "y": 80,
                        "wires": []
                    },
                    {
                        "id": "071e0d5fd2c962e6",
                        "type": "ioBroker out",
                        "z": "fca95f262626d456",
                        "name": "Bad Decke",
                        "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                        "ack": "false",
                        "autoCreate": "false",
                        "stateName": "",
                        "role": "",
                        "payloadType": "",
                        "readonly": "",
                        "stateUnit": "",
                        "stateMin": "",
                        "stateMax": "",
                        "x": 1030,
                        "y": 160,
                        "wires": []
                    },
                    {
                        "id": "979db36b18112eba",
                        "type": "ioBroker out",
                        "z": "fca95f262626d456",
                        "name": "Bad Decke",
                        "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                        "ack": "false",
                        "autoCreate": "false",
                        "stateName": "",
                        "role": "",
                        "payloadType": "",
                        "readonly": "",
                        "stateUnit": "",
                        "stateMin": "",
                        "stateMax": "",
                        "x": 1030,
                        "y": 230,
                        "wires": []
                    },
                    {
                        "id": "a1b151d314e59c17",
                        "type": "inject",
                        "z": "fca95f262626d456",
                        "name": "",
                        "props": [
                            {
                                "p": "payload"
                            },
                            {
                                "p": "topic",
                                "vt": "str"
                            }
                        ],
                        "repeat": "",
                        "crontab": "",
                        "once": false,
                        "onceDelay": 0.1,
                        "topic": "",
                        "payload": "true",
                        "payloadType": "bool",
                        "x": 100,
                        "y": 190,
                        "wires": [
                            [
                                "5f18694a523d8c75"
                            ]
                        ]
                    },
                    {
                        "id": "025de60d703a7295",
                        "type": "junction",
                        "z": "fca95f262626d456",
                        "x": 190,
                        "y": 230,
                        "wires": [
                            [
                                "c0df8f07016b31ef",
                                "c98811d9c189fbc3",
                                "5f18694a523d8c75"
                            ]
                        ]
                    },
                    {
                        "id": "c98811d9c189fbc3",
                        "type": "junction",
                        "z": "fca95f262626d456",
                        "x": 930,
                        "y": 230,
                        "wires": [
                            [
                                "979db36b18112eba"
                            ]
                        ]
                    },
                    {
                        "id": "e1b95b792ae78696",
                        "type": "junction",
                        "z": "fca95f262626d456",
                        "x": 920,
                        "y": 50,
                        "wires": [
                            [
                                "3d3a0961165b53df"
                            ]
                        ]
                    },
                    {
                        "id": "b887a87f23e7655c",
                        "type": "junction",
                        "z": "fca95f262626d456",
                        "x": 930,
                        "y": 140,
                        "wires": [
                            [
                                "071e0d5fd2c962e6"
                            ]
                        ]
                    },
                    {
                        "id": "349701d013e20e48",
                        "type": "junction",
                        "z": "fca95f262626d456",
                        "x": 930,
                        "y": 190,
                        "wires": [
                            [
                                "071e0d5fd2c962e6"
                            ]
                        ]
                    },
                    {
                        "id": "f7904135afcd7501",
                        "type": "junction",
                        "z": "fca95f262626d456",
                        "x": 920,
                        "y": 110,
                        "wires": [
                            [
                                "3d3a0961165b53df"
                            ]
                        ]
                    },
                    {
                        "id": "3e03352303deb36c",
                        "type": "junction",
                        "z": "fca95f262626d456",
                        "x": 180,
                        "y": 50,
                        "wires": [
                            [
                                "e1b95b792ae78696"
                            ]
                        ]
                    }
                ]
                

                mickymM 1 Antwort Letzte Antwort
                0
                • AphofisA Aphofis

                  @mickym
                  Hab den letzten Fehler gefunden.
                  Falsche Verknüpfung, jetzt gehts.
                  Screenshot 2024-08-24 163342.png

                  [
                      {
                          "id": "4b4d3c488cba7f6d",
                          "type": "ioBroker in",
                          "z": "fca95f262626d456",
                          "name": "Bad",
                          "attrname": "payload",
                          "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                          "payloadType": "value",
                          "onlyack": "",
                          "func": "rbe",
                          "gap": "",
                          "fireOnStart": "false",
                          "outFormat": "MQTT",
                          "x": 100,
                          "y": 110,
                          "wires": [
                              [
                                  "f7904135afcd7501"
                              ]
                          ]
                      },
                      {
                          "id": "d17d88371ee4100c",
                          "type": "inject",
                          "z": "fca95f262626d456",
                          "name": "true",
                          "props": [
                              {
                                  "p": "payload"
                              },
                              {
                                  "p": "topic",
                                  "vt": "str"
                              }
                          ],
                          "repeat": "",
                          "crontab": "",
                          "once": false,
                          "onceDelay": 0.1,
                          "topic": "",
                          "payload": "true",
                          "payloadType": "bool",
                          "x": 100,
                          "y": 30,
                          "wires": [
                              [
                                  "3e03352303deb36c"
                              ]
                          ]
                      },
                      {
                          "id": "2e62c8d3e0cd270e",
                          "type": "inject",
                          "z": "fca95f262626d456",
                          "name": "false",
                          "props": [
                              {
                                  "p": "payload"
                              },
                              {
                                  "p": "topic",
                                  "vt": "str"
                              }
                          ],
                          "repeat": "",
                          "crontab": "",
                          "once": false,
                          "onceDelay": 0.1,
                          "topic": "",
                          "payload": "false",
                          "payloadType": "bool",
                          "x": 100,
                          "y": 70,
                          "wires": [
                              [
                                  "3e03352303deb36c"
                              ]
                          ]
                      },
                      {
                          "id": "c0df8f07016b31ef",
                          "type": "change",
                          "z": "fca95f262626d456",
                          "name": "Bad true",
                          "rules": [
                              {
                                  "t": "set",
                                  "p": "Schalter.Bad",
                                  "pt": "flow",
                                  "to": "true",
                                  "tot": "bool"
                              }
                          ],
                          "action": "",
                          "property": "",
                          "from": "",
                          "to": "",
                          "reg": false,
                          "x": 270,
                          "y": 260,
                          "wires": [
                              [
                                  "48c854225a9cd423"
                              ]
                          ]
                      },
                      {
                          "id": "48c854225a9cd423",
                          "type": "trigger",
                          "z": "fca95f262626d456",
                          "name": "45 min.",
                          "op1": "",
                          "op2": "false",
                          "op1type": "nul",
                          "op2type": "bool",
                          "duration": "30",
                          "extend": true,
                          "overrideDelay": false,
                          "units": "s",
                          "reset": "Schalter.Kueche",
                          "bytopic": "all",
                          "topic": "topic",
                          "outputs": 1,
                          "x": 570,
                          "y": 260,
                          "wires": [
                              [
                                  "a10f3834831b9f4e"
                              ]
                          ]
                      },
                      {
                          "id": "a10f3834831b9f4e",
                          "type": "change",
                          "z": "fca95f262626d456",
                          "name": "",
                          "rules": [
                              {
                                  "t": "set",
                                  "p": "Schalter.Bad",
                                  "pt": "flow",
                                  "to": "false",
                                  "tot": "bool"
                              }
                          ],
                          "action": "",
                          "property": "",
                          "from": "",
                          "to": "",
                          "reg": false,
                          "x": 770,
                          "y": 260,
                          "wires": [
                              [
                                  "c98811d9c189fbc3"
                              ]
                          ]
                      },
                      {
                          "id": "89a3ef92e12849c4",
                          "type": "ioBroker in",
                          "z": "fca95f262626d456",
                          "name": "Bad",
                          "attrname": "payload",
                          "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                          "payloadType": "value",
                          "onlyack": "",
                          "func": "rbe",
                          "gap": "",
                          "fireOnStart": "false",
                          "outFormat": "MQTT",
                          "x": 100,
                          "y": 230,
                          "wires": [
                              [
                                  "025de60d703a7295"
                              ]
                          ]
                      },
                      {
                          "id": "99b44662062bb3d4",
                          "type": "ioBroker get",
                          "z": "fca95f262626d456",
                          "name": "Status",
                          "topic": "mihome-vacuum.1.info.state",
                          "attrname": "roborock",
                          "payloadType": "value",
                          "errOnInvalidState": "nothing",
                          "x": 610,
                          "y": 190,
                          "wires": [
                              [
                                  "8564fb0dcfe06fd9"
                              ]
                          ]
                      },
                      {
                          "id": "8564fb0dcfe06fd9",
                          "type": "switch",
                          "z": "fca95f262626d456",
                          "name": "Robi nicht 5",
                          "property": "roborock",
                          "propertyType": "msg",
                          "rules": [
                              {
                                  "t": "neq",
                                  "v": "5",
                                  "vt": "num"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 1,
                          "x": 750,
                          "y": 190,
                          "wires": [
                              [
                                  "349701d013e20e48"
                              ]
                          ]
                      },
                      {
                          "id": "5f5b8902de2a2a06",
                          "type": "trigger",
                          "z": "fca95f262626d456",
                          "name": "3 min. warten bevor false",
                          "op1": "",
                          "op2": "false",
                          "op1type": "nul",
                          "op2type": "bool",
                          "duration": "10",
                          "extend": true,
                          "overrideDelay": false,
                          "units": "s",
                          "reset": "reset",
                          "bytopic": "all",
                          "topic": "topic",
                          "outputs": 1,
                          "x": 670,
                          "y": 140,
                          "wires": [
                              [
                                  "b887a87f23e7655c"
                              ]
                          ]
                      },
                      {
                          "id": "b84d05e01c05f457",
                          "type": "switch",
                          "z": "fca95f262626d456",
                          "name": "Bewegung ?",
                          "property": "payload",
                          "propertyType": "msg",
                          "rules": [
                              {
                                  "t": "true"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 1,
                          "x": 430,
                          "y": 190,
                          "wires": [
                              [
                                  "99b44662062bb3d4",
                                  "5f5b8902de2a2a06"
                              ]
                          ]
                      },
                      {
                          "id": "5f18694a523d8c75",
                          "type": "switch",
                          "z": "fca95f262626d456",
                          "name": "",
                          "property": "Schalter.Bad",
                          "propertyType": "flow",
                          "rules": [
                              {
                                  "t": "false"
                              }
                          ],
                          "checkall": "true",
                          "repair": false,
                          "outputs": 1,
                          "x": 280,
                          "y": 190,
                          "wires": [
                              [
                                  "b84d05e01c05f457"
                              ]
                          ]
                      },
                      {
                          "id": "3d3a0961165b53df",
                          "type": "ioBroker out",
                          "z": "fca95f262626d456",
                          "name": "Bad Decke",
                          "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                          "ack": "false",
                          "autoCreate": "false",
                          "stateName": "",
                          "role": "",
                          "payloadType": "",
                          "readonly": "",
                          "stateUnit": "",
                          "stateMin": "",
                          "stateMax": "",
                          "x": 1030,
                          "y": 80,
                          "wires": []
                      },
                      {
                          "id": "071e0d5fd2c962e6",
                          "type": "ioBroker out",
                          "z": "fca95f262626d456",
                          "name": "Bad Decke",
                          "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                          "ack": "false",
                          "autoCreate": "false",
                          "stateName": "",
                          "role": "",
                          "payloadType": "",
                          "readonly": "",
                          "stateUnit": "",
                          "stateMin": "",
                          "stateMax": "",
                          "x": 1030,
                          "y": 160,
                          "wires": []
                      },
                      {
                          "id": "979db36b18112eba",
                          "type": "ioBroker out",
                          "z": "fca95f262626d456",
                          "name": "Bad Decke",
                          "topic": "tuya.0.bf78f027e5e33c3d76xrfe.1",
                          "ack": "false",
                          "autoCreate": "false",
                          "stateName": "",
                          "role": "",
                          "payloadType": "",
                          "readonly": "",
                          "stateUnit": "",
                          "stateMin": "",
                          "stateMax": "",
                          "x": 1030,
                          "y": 230,
                          "wires": []
                      },
                      {
                          "id": "a1b151d314e59c17",
                          "type": "inject",
                          "z": "fca95f262626d456",
                          "name": "",
                          "props": [
                              {
                                  "p": "payload"
                              },
                              {
                                  "p": "topic",
                                  "vt": "str"
                              }
                          ],
                          "repeat": "",
                          "crontab": "",
                          "once": false,
                          "onceDelay": 0.1,
                          "topic": "",
                          "payload": "true",
                          "payloadType": "bool",
                          "x": 100,
                          "y": 190,
                          "wires": [
                              [
                                  "5f18694a523d8c75"
                              ]
                          ]
                      },
                      {
                          "id": "025de60d703a7295",
                          "type": "junction",
                          "z": "fca95f262626d456",
                          "x": 190,
                          "y": 230,
                          "wires": [
                              [
                                  "c0df8f07016b31ef",
                                  "c98811d9c189fbc3",
                                  "5f18694a523d8c75"
                              ]
                          ]
                      },
                      {
                          "id": "c98811d9c189fbc3",
                          "type": "junction",
                          "z": "fca95f262626d456",
                          "x": 930,
                          "y": 230,
                          "wires": [
                              [
                                  "979db36b18112eba"
                              ]
                          ]
                      },
                      {
                          "id": "e1b95b792ae78696",
                          "type": "junction",
                          "z": "fca95f262626d456",
                          "x": 920,
                          "y": 50,
                          "wires": [
                              [
                                  "3d3a0961165b53df"
                              ]
                          ]
                      },
                      {
                          "id": "b887a87f23e7655c",
                          "type": "junction",
                          "z": "fca95f262626d456",
                          "x": 930,
                          "y": 140,
                          "wires": [
                              [
                                  "071e0d5fd2c962e6"
                              ]
                          ]
                      },
                      {
                          "id": "349701d013e20e48",
                          "type": "junction",
                          "z": "fca95f262626d456",
                          "x": 930,
                          "y": 190,
                          "wires": [
                              [
                                  "071e0d5fd2c962e6"
                              ]
                          ]
                      },
                      {
                          "id": "f7904135afcd7501",
                          "type": "junction",
                          "z": "fca95f262626d456",
                          "x": 920,
                          "y": 110,
                          "wires": [
                              [
                                  "3d3a0961165b53df"
                              ]
                          ]
                      },
                      {
                          "id": "3e03352303deb36c",
                          "type": "junction",
                          "z": "fca95f262626d456",
                          "x": 180,
                          "y": 50,
                          "wires": [
                              [
                                  "e1b95b792ae78696"
                              ]
                          ]
                      }
                  ]
                  

                  mickymM Offline
                  mickymM Offline
                  mickym
                  Most Active
                  schrieb am zuletzt editiert von
                  #190

                  @aphofis Na das macht keinen Sinn, aber musst Du wissen.

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

                  AphofisA 1 Antwort Letzte Antwort
                  0
                  • mickymM mickym

                    @aphofis Na das macht keinen Sinn, aber musst Du wissen.

                    AphofisA Offline
                    AphofisA Offline
                    Aphofis
                    schrieb am zuletzt editiert von
                    #191

                    @mickym Ne klappt auch nicht wirklich!
                    Ein Inject Node ist auch nicht das selbe wie ein echter BWM

                    mickymM 1 Antwort Letzte Antwort
                    0
                    • AphofisA Aphofis

                      @mickym Ne klappt auch nicht wirklich!
                      Ein Inject Node ist auch nicht das selbe wie ein echter BWM

                      mickymM Offline
                      mickymM Offline
                      mickym
                      Most Active
                      schrieb am zuletzt editiert von
                      #192

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

                      @mickym Ne klappt auch nicht wirklich!
                      Ein Inject Node ist auch nicht das selbe wie ein echter BWM

                      Ein Inject Node macht das, was der iobroker-In Node auch macht. Eine Nachricht erzeugen, die auf die Reise geschickt wird. Ich habe Dir ja meine Vermutung in dem unteren Post geschildert. Aber das was Du da machst entbehrt halt jeder Logik.

                      Entweder lässt man den BWM ausschalten oder den Trigger. Wie gesagt, unten habe ich Dir ja die Lösung insoweit aufgeschrieben, wenn der BWM kurz vor dem Betätigen des Schalters triggert (also innerhalb der 3 Minuten).

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

                      AphofisA 1 Antwort Letzte Antwort
                      1
                      • mickymM mickym

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

                        @mickym Ne klappt auch nicht wirklich!
                        Ein Inject Node ist auch nicht das selbe wie ein echter BWM

                        Ein Inject Node macht das, was der iobroker-In Node auch macht. Eine Nachricht erzeugen, die auf die Reise geschickt wird. Ich habe Dir ja meine Vermutung in dem unteren Post geschildert. Aber das was Du da machst entbehrt halt jeder Logik.

                        Entweder lässt man den BWM ausschalten oder den Trigger. Wie gesagt, unten habe ich Dir ja die Lösung insoweit aufgeschrieben, wenn der BWM kurz vor dem Betätigen des Schalters triggert (also innerhalb der 3 Minuten).

                        AphofisA Offline
                        AphofisA Offline
                        Aphofis
                        schrieb am zuletzt editiert von Aphofis
                        #193

                        So funktioniert alles wie es soll.
                        Screenshot 2024-08-25 190857.png

                        [
                            {
                                "id": "bbe47e797e5bd352",
                                "type": "change",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Küche true",
                                "rules": [
                                    {
                                        "t": "set",
                                        "p": "Schalter.Kueche",
                                        "pt": "flow",
                                        "to": "true",
                                        "tot": "bool"
                                    }
                                ],
                                "action": "",
                                "property": "",
                                "from": "",
                                "to": "",
                                "reg": false,
                                "x": 410,
                                "y": 440,
                                "wires": [
                                    [
                                        "4d88bc3dbe17d4a0"
                                    ]
                                ]
                            },
                            {
                                "id": "4d88bc3dbe17d4a0",
                                "type": "trigger",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "45 min.",
                                "op1": "",
                                "op2": "false",
                                "op1type": "nul",
                                "op2type": "bool",
                                "duration": "45",
                                "extend": false,
                                "overrideDelay": false,
                                "units": "min",
                                "reset": "Schalter.Kueche",
                                "bytopic": "all",
                                "topic": "topic",
                                "outputs": 1,
                                "x": 560,
                                "y": 440,
                                "wires": [
                                    [
                                        "0be12e6bd4e8e8b0"
                                    ]
                                ]
                            },
                            {
                                "id": "0be12e6bd4e8e8b0",
                                "type": "change",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "",
                                "rules": [
                                    {
                                        "t": "set",
                                        "p": "Schalter.Kueche",
                                        "pt": "flow",
                                        "to": "false",
                                        "tot": "bool"
                                    }
                                ],
                                "action": "",
                                "property": "",
                                "from": "",
                                "to": "",
                                "reg": false,
                                "x": 760,
                                "y": 440,
                                "wires": [
                                    [
                                        "8dbccd4f1d2e0ecb"
                                    ]
                                ]
                            },
                            {
                                "id": "bc31192270462750",
                                "type": "inject",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "",
                                "props": [
                                    {
                                        "p": "payload"
                                    },
                                    {
                                        "p": "topic",
                                        "vt": "str"
                                    }
                                ],
                                "repeat": "",
                                "crontab": "",
                                "once": false,
                                "onceDelay": 0.1,
                                "topic": "payload",
                                "payload": "true",
                                "payloadType": "bool",
                                "x": 100,
                                "y": 490,
                                "wires": [
                                    [
                                        "b4d58094fea6da65"
                                    ]
                                ]
                            },
                            {
                                "id": "e081bb71ad5f804e",
                                "type": "inject",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "",
                                "props": [
                                    {
                                        "p": "payload"
                                    },
                                    {
                                        "p": "topic",
                                        "vt": "str"
                                    }
                                ],
                                "repeat": "",
                                "crontab": "",
                                "once": false,
                                "onceDelay": 0.1,
                                "topic": "payload",
                                "payload": "false",
                                "payloadType": "bool",
                                "x": 100,
                                "y": 540,
                                "wires": [
                                    [
                                        "b4d58094fea6da65"
                                    ]
                                ]
                            },
                            {
                                "id": "f0e98b2901027f4e",
                                "type": "ioBroker in",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Küche",
                                "attrname": "payload",
                                "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                                "payloadType": "value",
                                "onlyack": "",
                                "func": "rbe",
                                "gap": "",
                                "fireOnStart": "false",
                                "outFormat": "MQTT",
                                "x": 100,
                                "y": 440,
                                "wires": [
                                    [
                                        "63524b08cb45c082"
                                    ]
                                ]
                            },
                            {
                                "id": "da7126dab2db34ac",
                                "type": "ioBroker get",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Status",
                                "topic": "mihome-vacuum.1.info.state",
                                "attrname": "roborock",
                                "payloadType": "value",
                                "errOnInvalidState": "nothing",
                                "x": 660,
                                "y": 310,
                                "wires": [
                                    [
                                        "cfd8c9bf0c7f6348"
                                    ]
                                ]
                            },
                            {
                                "id": "cfd8c9bf0c7f6348",
                                "type": "switch",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Robi nicht 5",
                                "property": "roborock",
                                "propertyType": "msg",
                                "rules": [
                                    {
                                        "t": "neq",
                                        "v": "5",
                                        "vt": "num"
                                    }
                                ],
                                "checkall": "true",
                                "repair": false,
                                "outputs": 1,
                                "x": 800,
                                "y": 310,
                                "wires": [
                                    [
                                        "cc199f24c2162a7f"
                                    ]
                                ]
                            },
                            {
                                "id": "3dc8e25bc8ecd68c",
                                "type": "trigger",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "2 min. warten",
                                "op1": "",
                                "op2": "false",
                                "op1type": "nul",
                                "op2type": "bool",
                                "duration": "2",
                                "extend": true,
                                "overrideDelay": false,
                                "units": "min",
                                "reset": "",
                                "bytopic": "all",
                                "topic": "topic",
                                "outputs": 1,
                                "x": 690,
                                "y": 260,
                                "wires": [
                                    [
                                        "ae24e45f243802bf"
                                    ]
                                ]
                            },
                            {
                                "id": "57de54256f54f3d4",
                                "type": "ioBroker in",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Küche Motion",
                                "attrname": "payload",
                                "topic": "hue.0.Küche_Motion_Sensor.presence",
                                "payloadType": "value",
                                "onlyack": "update",
                                "func": "all",
                                "gap": "",
                                "fireOnStart": "true",
                                "outFormat": "MQTT",
                                "x": 100,
                                "y": 270,
                                "wires": [
                                    [
                                        "33cf5d23a026b4a3"
                                    ]
                                ]
                            },
                            {
                                "id": "ae8811169c3918eb",
                                "type": "switch",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Bewegung ?",
                                "property": "payload",
                                "propertyType": "msg",
                                "rules": [
                                    {
                                        "t": "true"
                                    }
                                ],
                                "checkall": "true",
                                "repair": false,
                                "outputs": 1,
                                "x": 440,
                                "y": 290,
                                "wires": [
                                    [
                                        "da7126dab2db34ac",
                                        "3dc8e25bc8ecd68c"
                                    ]
                                ]
                            },
                            {
                                "id": "37235a98bb0b252e",
                                "type": "switch",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "",
                                "property": "Schalter.Kueche",
                                "propertyType": "flow",
                                "rules": [
                                    {
                                        "t": "false"
                                    }
                                ],
                                "checkall": "true",
                                "repair": false,
                                "outputs": 1,
                                "x": 290,
                                "y": 290,
                                "wires": [
                                    [
                                        "ae8811169c3918eb"
                                    ]
                                ]
                            },
                            {
                                "id": "29956a1191d5a375",
                                "type": "inject",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "",
                                "props": [
                                    {
                                        "p": "payload"
                                    },
                                    {
                                        "p": "topic",
                                        "vt": "str"
                                    }
                                ],
                                "repeat": "",
                                "crontab": "",
                                "once": false,
                                "onceDelay": 0.1,
                                "topic": "payload",
                                "payload": "true",
                                "payloadType": "bool",
                                "x": 100,
                                "y": 320,
                                "wires": [
                                    [
                                        "33cf5d23a026b4a3"
                                    ]
                                ]
                            },
                            {
                                "id": "c01b7af31e635058",
                                "type": "ioBroker out",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Küche Unters. rechts",
                                "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
                                "ack": "false",
                                "autoCreate": "false",
                                "stateName": "",
                                "role": "",
                                "payloadType": "",
                                "readonly": "",
                                "stateUnit": "",
                                "stateMin": "",
                                "stateMax": "",
                                "x": 1090,
                                "y": 290,
                                "wires": []
                            },
                            {
                                "id": "e265b3e669cabbed",
                                "type": "ioBroker out",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Küche Decke",
                                "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                                "ack": "false",
                                "autoCreate": "false",
                                "stateName": "",
                                "role": "",
                                "payloadType": "",
                                "readonly": "",
                                "stateUnit": "",
                                "stateMin": "",
                                "stateMax": "",
                                "x": 1060,
                                "y": 340,
                                "wires": []
                            },
                            {
                                "id": "79b702de70404090",
                                "type": "ioBroker out",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Küche Unters. links",
                                "topic": "hue.0.Küche_Unterschr_Links.on",
                                "ack": "false",
                                "autoCreate": "false",
                                "stateName": "",
                                "role": "",
                                "payloadType": "",
                                "readonly": "",
                                "stateUnit": "",
                                "stateMin": "",
                                "stateMax": "",
                                "x": 1080,
                                "y": 240,
                                "wires": []
                            },
                            {
                                "id": "36517556eea614c2",
                                "type": "ioBroker out",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Küche Unters. rechts",
                                "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
                                "ack": "false",
                                "autoCreate": "false",
                                "stateName": "",
                                "role": "",
                                "payloadType": "",
                                "readonly": "",
                                "stateUnit": "",
                                "stateMin": "",
                                "stateMax": "",
                                "x": 1090,
                                "y": 440,
                                "wires": []
                            },
                            {
                                "id": "7bbc1e6a458c30a4",
                                "type": "ioBroker out",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Küche Decke",
                                "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                                "ack": "false",
                                "autoCreate": "false",
                                "stateName": "",
                                "role": "",
                                "payloadType": "",
                                "readonly": "",
                                "stateUnit": "",
                                "stateMin": "",
                                "stateMax": "",
                                "x": 1060,
                                "y": 490,
                                "wires": []
                            },
                            {
                                "id": "e2635897a5b4a26d",
                                "type": "ioBroker out",
                                "z": "f40fbc4eb5ac4f7a",
                                "name": "Küche Unters. links",
                                "topic": "hue.0.Küche_Unterschr_Links.on",
                                "ack": "false",
                                "autoCreate": "false",
                                "stateName": "",
                                "role": "",
                                "payloadType": "",
                                "readonly": "",
                                "stateUnit": "",
                                "stateMin": "",
                                "stateMax": "",
                                "x": 1080,
                                "y": 390,
                                "wires": []
                            },
                            {
                                "id": "63524b08cb45c082",
                                "type": "junction",
                                "z": "f40fbc4eb5ac4f7a",
                                "x": 310,
                                "y": 440,
                                "wires": [
                                    [
                                        "bbe47e797e5bd352"
                                    ]
                                ]
                            },
                            {
                                "id": "8dbccd4f1d2e0ecb",
                                "type": "junction",
                                "z": "f40fbc4eb5ac4f7a",
                                "x": 940,
                                "y": 440,
                                "wires": [
                                    [
                                        "36517556eea614c2",
                                        "e2635897a5b4a26d",
                                        "7bbc1e6a458c30a4"
                                    ]
                                ]
                            },
                            {
                                "id": "b4d58094fea6da65",
                                "type": "junction",
                                "z": "f40fbc4eb5ac4f7a",
                                "x": 260,
                                "y": 490,
                                "wires": [
                                    [
                                        "63524b08cb45c082"
                                    ]
                                ]
                            },
                            {
                                "id": "ae24e45f243802bf",
                                "type": "junction",
                                "z": "f40fbc4eb5ac4f7a",
                                "x": 920,
                                "y": 260,
                                "wires": [
                                    [
                                        "c01b7af31e635058",
                                        "79b702de70404090",
                                        "e265b3e669cabbed"
                                    ]
                                ]
                            },
                            {
                                "id": "cc199f24c2162a7f",
                                "type": "junction",
                                "z": "f40fbc4eb5ac4f7a",
                                "x": 920,
                                "y": 310,
                                "wires": [
                                    [
                                        "c01b7af31e635058",
                                        "79b702de70404090",
                                        "e265b3e669cabbed"
                                    ]
                                ]
                            },
                            {
                                "id": "33cf5d23a026b4a3",
                                "type": "junction",
                                "z": "f40fbc4eb5ac4f7a",
                                "x": 210,
                                "y": 290,
                                "wires": [
                                    [
                                        "37235a98bb0b252e"
                                    ]
                                ]
                            }
                        ]
                        

                        Wenn BWM Signal hat geht licht für 2 min an. wenn roboter sauger nihct beim laden ist. bleibt BWM inaktiv.
                        Schaltet man den Lichtschalter geht nur der 45 min trigger an. auch wenn man in den BWM läuft bleibt 2 min trigger inaktiv. Ist der 45 min trigger abgelaufen geht der BWM ganz normal wieder außer natürlich der Roboter ist unterwegs.
                        Für meine Zwecke ist das alles was ich wollte.

                        mickymM 1 Antwort Letzte Antwort
                        0
                        • AphofisA Aphofis

                          So funktioniert alles wie es soll.
                          Screenshot 2024-08-25 190857.png

                          [
                              {
                                  "id": "bbe47e797e5bd352",
                                  "type": "change",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Küche true",
                                  "rules": [
                                      {
                                          "t": "set",
                                          "p": "Schalter.Kueche",
                                          "pt": "flow",
                                          "to": "true",
                                          "tot": "bool"
                                      }
                                  ],
                                  "action": "",
                                  "property": "",
                                  "from": "",
                                  "to": "",
                                  "reg": false,
                                  "x": 410,
                                  "y": 440,
                                  "wires": [
                                      [
                                          "4d88bc3dbe17d4a0"
                                      ]
                                  ]
                              },
                              {
                                  "id": "4d88bc3dbe17d4a0",
                                  "type": "trigger",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "45 min.",
                                  "op1": "",
                                  "op2": "false",
                                  "op1type": "nul",
                                  "op2type": "bool",
                                  "duration": "45",
                                  "extend": false,
                                  "overrideDelay": false,
                                  "units": "min",
                                  "reset": "Schalter.Kueche",
                                  "bytopic": "all",
                                  "topic": "topic",
                                  "outputs": 1,
                                  "x": 560,
                                  "y": 440,
                                  "wires": [
                                      [
                                          "0be12e6bd4e8e8b0"
                                      ]
                                  ]
                              },
                              {
                                  "id": "0be12e6bd4e8e8b0",
                                  "type": "change",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "",
                                  "rules": [
                                      {
                                          "t": "set",
                                          "p": "Schalter.Kueche",
                                          "pt": "flow",
                                          "to": "false",
                                          "tot": "bool"
                                      }
                                  ],
                                  "action": "",
                                  "property": "",
                                  "from": "",
                                  "to": "",
                                  "reg": false,
                                  "x": 760,
                                  "y": 440,
                                  "wires": [
                                      [
                                          "8dbccd4f1d2e0ecb"
                                      ]
                                  ]
                              },
                              {
                                  "id": "bc31192270462750",
                                  "type": "inject",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "",
                                  "props": [
                                      {
                                          "p": "payload"
                                      },
                                      {
                                          "p": "topic",
                                          "vt": "str"
                                      }
                                  ],
                                  "repeat": "",
                                  "crontab": "",
                                  "once": false,
                                  "onceDelay": 0.1,
                                  "topic": "payload",
                                  "payload": "true",
                                  "payloadType": "bool",
                                  "x": 100,
                                  "y": 490,
                                  "wires": [
                                      [
                                          "b4d58094fea6da65"
                                      ]
                                  ]
                              },
                              {
                                  "id": "e081bb71ad5f804e",
                                  "type": "inject",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "",
                                  "props": [
                                      {
                                          "p": "payload"
                                      },
                                      {
                                          "p": "topic",
                                          "vt": "str"
                                      }
                                  ],
                                  "repeat": "",
                                  "crontab": "",
                                  "once": false,
                                  "onceDelay": 0.1,
                                  "topic": "payload",
                                  "payload": "false",
                                  "payloadType": "bool",
                                  "x": 100,
                                  "y": 540,
                                  "wires": [
                                      [
                                          "b4d58094fea6da65"
                                      ]
                                  ]
                              },
                              {
                                  "id": "f0e98b2901027f4e",
                                  "type": "ioBroker in",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Küche",
                                  "attrname": "payload",
                                  "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                                  "payloadType": "value",
                                  "onlyack": "",
                                  "func": "rbe",
                                  "gap": "",
                                  "fireOnStart": "false",
                                  "outFormat": "MQTT",
                                  "x": 100,
                                  "y": 440,
                                  "wires": [
                                      [
                                          "63524b08cb45c082"
                                      ]
                                  ]
                              },
                              {
                                  "id": "da7126dab2db34ac",
                                  "type": "ioBroker get",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Status",
                                  "topic": "mihome-vacuum.1.info.state",
                                  "attrname": "roborock",
                                  "payloadType": "value",
                                  "errOnInvalidState": "nothing",
                                  "x": 660,
                                  "y": 310,
                                  "wires": [
                                      [
                                          "cfd8c9bf0c7f6348"
                                      ]
                                  ]
                              },
                              {
                                  "id": "cfd8c9bf0c7f6348",
                                  "type": "switch",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Robi nicht 5",
                                  "property": "roborock",
                                  "propertyType": "msg",
                                  "rules": [
                                      {
                                          "t": "neq",
                                          "v": "5",
                                          "vt": "num"
                                      }
                                  ],
                                  "checkall": "true",
                                  "repair": false,
                                  "outputs": 1,
                                  "x": 800,
                                  "y": 310,
                                  "wires": [
                                      [
                                          "cc199f24c2162a7f"
                                      ]
                                  ]
                              },
                              {
                                  "id": "3dc8e25bc8ecd68c",
                                  "type": "trigger",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "2 min. warten",
                                  "op1": "",
                                  "op2": "false",
                                  "op1type": "nul",
                                  "op2type": "bool",
                                  "duration": "2",
                                  "extend": true,
                                  "overrideDelay": false,
                                  "units": "min",
                                  "reset": "",
                                  "bytopic": "all",
                                  "topic": "topic",
                                  "outputs": 1,
                                  "x": 690,
                                  "y": 260,
                                  "wires": [
                                      [
                                          "ae24e45f243802bf"
                                      ]
                                  ]
                              },
                              {
                                  "id": "57de54256f54f3d4",
                                  "type": "ioBroker in",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Küche Motion",
                                  "attrname": "payload",
                                  "topic": "hue.0.Küche_Motion_Sensor.presence",
                                  "payloadType": "value",
                                  "onlyack": "update",
                                  "func": "all",
                                  "gap": "",
                                  "fireOnStart": "true",
                                  "outFormat": "MQTT",
                                  "x": 100,
                                  "y": 270,
                                  "wires": [
                                      [
                                          "33cf5d23a026b4a3"
                                      ]
                                  ]
                              },
                              {
                                  "id": "ae8811169c3918eb",
                                  "type": "switch",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Bewegung ?",
                                  "property": "payload",
                                  "propertyType": "msg",
                                  "rules": [
                                      {
                                          "t": "true"
                                      }
                                  ],
                                  "checkall": "true",
                                  "repair": false,
                                  "outputs": 1,
                                  "x": 440,
                                  "y": 290,
                                  "wires": [
                                      [
                                          "da7126dab2db34ac",
                                          "3dc8e25bc8ecd68c"
                                      ]
                                  ]
                              },
                              {
                                  "id": "37235a98bb0b252e",
                                  "type": "switch",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "",
                                  "property": "Schalter.Kueche",
                                  "propertyType": "flow",
                                  "rules": [
                                      {
                                          "t": "false"
                                      }
                                  ],
                                  "checkall": "true",
                                  "repair": false,
                                  "outputs": 1,
                                  "x": 290,
                                  "y": 290,
                                  "wires": [
                                      [
                                          "ae8811169c3918eb"
                                      ]
                                  ]
                              },
                              {
                                  "id": "29956a1191d5a375",
                                  "type": "inject",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "",
                                  "props": [
                                      {
                                          "p": "payload"
                                      },
                                      {
                                          "p": "topic",
                                          "vt": "str"
                                      }
                                  ],
                                  "repeat": "",
                                  "crontab": "",
                                  "once": false,
                                  "onceDelay": 0.1,
                                  "topic": "payload",
                                  "payload": "true",
                                  "payloadType": "bool",
                                  "x": 100,
                                  "y": 320,
                                  "wires": [
                                      [
                                          "33cf5d23a026b4a3"
                                      ]
                                  ]
                              },
                              {
                                  "id": "c01b7af31e635058",
                                  "type": "ioBroker out",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Küche Unters. rechts",
                                  "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
                                  "ack": "false",
                                  "autoCreate": "false",
                                  "stateName": "",
                                  "role": "",
                                  "payloadType": "",
                                  "readonly": "",
                                  "stateUnit": "",
                                  "stateMin": "",
                                  "stateMax": "",
                                  "x": 1090,
                                  "y": 290,
                                  "wires": []
                              },
                              {
                                  "id": "e265b3e669cabbed",
                                  "type": "ioBroker out",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Küche Decke",
                                  "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                                  "ack": "false",
                                  "autoCreate": "false",
                                  "stateName": "",
                                  "role": "",
                                  "payloadType": "",
                                  "readonly": "",
                                  "stateUnit": "",
                                  "stateMin": "",
                                  "stateMax": "",
                                  "x": 1060,
                                  "y": 340,
                                  "wires": []
                              },
                              {
                                  "id": "79b702de70404090",
                                  "type": "ioBroker out",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Küche Unters. links",
                                  "topic": "hue.0.Küche_Unterschr_Links.on",
                                  "ack": "false",
                                  "autoCreate": "false",
                                  "stateName": "",
                                  "role": "",
                                  "payloadType": "",
                                  "readonly": "",
                                  "stateUnit": "",
                                  "stateMin": "",
                                  "stateMax": "",
                                  "x": 1080,
                                  "y": 240,
                                  "wires": []
                              },
                              {
                                  "id": "36517556eea614c2",
                                  "type": "ioBroker out",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Küche Unters. rechts",
                                  "topic": "sonoff.0.kueche_unterschrank_rechts.POWER",
                                  "ack": "false",
                                  "autoCreate": "false",
                                  "stateName": "",
                                  "role": "",
                                  "payloadType": "",
                                  "readonly": "",
                                  "stateUnit": "",
                                  "stateMin": "",
                                  "stateMax": "",
                                  "x": 1090,
                                  "y": 440,
                                  "wires": []
                              },
                              {
                                  "id": "7bbc1e6a458c30a4",
                                  "type": "ioBroker out",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Küche Decke",
                                  "topic": "tuya.0.bfa31f81841589e9aerhgk.1",
                                  "ack": "false",
                                  "autoCreate": "false",
                                  "stateName": "",
                                  "role": "",
                                  "payloadType": "",
                                  "readonly": "",
                                  "stateUnit": "",
                                  "stateMin": "",
                                  "stateMax": "",
                                  "x": 1060,
                                  "y": 490,
                                  "wires": []
                              },
                              {
                                  "id": "e2635897a5b4a26d",
                                  "type": "ioBroker out",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "name": "Küche Unters. links",
                                  "topic": "hue.0.Küche_Unterschr_Links.on",
                                  "ack": "false",
                                  "autoCreate": "false",
                                  "stateName": "",
                                  "role": "",
                                  "payloadType": "",
                                  "readonly": "",
                                  "stateUnit": "",
                                  "stateMin": "",
                                  "stateMax": "",
                                  "x": 1080,
                                  "y": 390,
                                  "wires": []
                              },
                              {
                                  "id": "63524b08cb45c082",
                                  "type": "junction",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "x": 310,
                                  "y": 440,
                                  "wires": [
                                      [
                                          "bbe47e797e5bd352"
                                      ]
                                  ]
                              },
                              {
                                  "id": "8dbccd4f1d2e0ecb",
                                  "type": "junction",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "x": 940,
                                  "y": 440,
                                  "wires": [
                                      [
                                          "36517556eea614c2",
                                          "e2635897a5b4a26d",
                                          "7bbc1e6a458c30a4"
                                      ]
                                  ]
                              },
                              {
                                  "id": "b4d58094fea6da65",
                                  "type": "junction",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "x": 260,
                                  "y": 490,
                                  "wires": [
                                      [
                                          "63524b08cb45c082"
                                      ]
                                  ]
                              },
                              {
                                  "id": "ae24e45f243802bf",
                                  "type": "junction",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "x": 920,
                                  "y": 260,
                                  "wires": [
                                      [
                                          "c01b7af31e635058",
                                          "79b702de70404090",
                                          "e265b3e669cabbed"
                                      ]
                                  ]
                              },
                              {
                                  "id": "cc199f24c2162a7f",
                                  "type": "junction",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "x": 920,
                                  "y": 310,
                                  "wires": [
                                      [
                                          "c01b7af31e635058",
                                          "79b702de70404090",
                                          "e265b3e669cabbed"
                                      ]
                                  ]
                              },
                              {
                                  "id": "33cf5d23a026b4a3",
                                  "type": "junction",
                                  "z": "f40fbc4eb5ac4f7a",
                                  "x": 210,
                                  "y": 290,
                                  "wires": [
                                      [
                                          "37235a98bb0b252e"
                                      ]
                                  ]
                              }
                          ]
                          

                          Wenn BWM Signal hat geht licht für 2 min an. wenn roboter sauger nihct beim laden ist. bleibt BWM inaktiv.
                          Schaltet man den Lichtschalter geht nur der 45 min trigger an. auch wenn man in den BWM läuft bleibt 2 min trigger inaktiv. Ist der 45 min trigger abgelaufen geht der BWM ganz normal wieder außer natürlich der Roboter ist unterwegs.
                          Für meine Zwecke ist das alles was ich wollte.

                          mickymM Offline
                          mickymM Offline
                          mickym
                          Most Active
                          schrieb am zuletzt editiert von mickym
                          #194

                          @aphofis Ich habe Dir doch gesagt, wie es geht. Geh halt nochmal auf den Flow zurück, den Du gehabt hast und resette die Trigger Node.

                          eee18e5f-2f3b-4256-afee-0974f71b82de-image.png

                          Sowas ist doch NUR Unsinn, sorry - aber da verstehst Du einfach nichts. Was macht ein switch für einen Sinn, wenn Du mit einem Kabel den switch ad absurdum führst und mit einer 2. Nachricht den switch umgehen kannst.

                          AUch das letzte funktioniert nicht wie es soll, weil Du mit dem Schalter nicht ausschalten kannst.
                          c25e5e77-a6a3-4356-bf44-02d06cde5508-image.png
                          Warum analysierst Du nicht, wie ich es gesagt habe. So wie es jetzt ist, kannst Du mt dem Schalter nicht ausschalten. Die Ursache, dass trotzdem Du den Schalter betätigt hast, liegt daran, dass wahrscheinlich der BWM bereits getriggert hat. Und das musst Du halt über einen msg.reset verhindern.

                          Anonsten mische ich mich aber nicht mehr ein, wenn Du zufrieden bist. Jedenfalls wirst Du so mit dem Schalter das Licht nicht mehr ausschalten kannst und das Licht IMMER 45 min brennen, falls Du den Schalter betätigst.

                          Geh auf diesen Flow zurück: https://forum.iobroker.net/post/1194557
                          Und anschliessend setzt Du mit msg.reset die trigger Node des BWM zurück, wenn der Schalter betätigt wird. Wobei das obere Käse ist.

                          7cbf5798-aa8f-430f-b66e-232c9630d4c7-image.png

                          Nee das ist ja auch verkehrt - du hast den Flow so verhunagelt. Du hast ja die beiden Äste auch verändert. Das ist echt schwierig, wenn Du einfach darauf los machst ohne halt den Nachrichtenflow nachzuvollziehen und warum was wie gemacht wurde.

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

                          1 Antwort Letzte Antwort
                          0
                          • mickymM Offline
                            mickymM Offline
                            mickym
                            Most Active
                            schrieb am zuletzt editiert von mickym
                            #195

                            So probiere das nochmal:

                            f77104a0-9971-4284-9d49-8abf20647121-image.png

                            Du musst allerdings die iobroker-IN und iobroker-OUT Nodes überprüfen, weil ich Deine Hardwarepunkte nicht habe.

                            [
                               {
                                   "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": 170,
                                   "y": 500,
                                   "wires": [
                                       [
                                           "cef7aaa694cfe839"
                                       ]
                                   ]
                               },
                               {
                                   "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": 1410,
                                   "y": 520,
                                   "wires": []
                               },
                               {
                                   "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": 1420,
                                   "y": 580,
                                   "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": 1370,
                                   "y": 640,
                                   "wires": []
                               },
                               {
                                   "id": "ded2386bc0ab0eb2",
                                   "type": "ioBroker get",
                                   "z": "2e295f1c879e6af4",
                                   "name": "Reinigung Status",
                                   "topic": "mihome-vacuum.1.info.state",
                                   "attrname": "roborock",
                                   "payloadType": "value",
                                   "errOnInvalidState": "nothing",
                                   "x": 790,
                                   "y": 460,
                                   "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": 540,
                                   "y": 500,
                                   "wires": [
                                       [
                                           "ded2386bc0ab0eb2",
                                           "fdd6a8d770321ddf"
                                       ],
                                       [
                                           "fdd6a8d770321ddf"
                                       ]
                                   ]
                               },
                               {
                                   "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": 1010,
                                   "y": 460,
                                   "wires": [
                                       [
                                           "51e1e3fc8f508df5"
                                       ]
                                   ]
                               },
                               {
                                   "id": "fdd6a8d770321ddf",
                                   "type": "trigger",
                                   "z": "2e295f1c879e6af4",
                                   "name": "",
                                   "op1": "",
                                   "op2": "false",
                                   "op1type": "nul",
                                   "op2type": "bool",
                                   "duration": "2",
                                   "extend": true,
                                   "overrideDelay": false,
                                   "units": "min",
                                   "reset": "true",
                                   "bytopic": "all",
                                   "topic": "topic",
                                   "outputs": 1,
                                   "x": 810,
                                   "y": 540,
                                   "wires": [
                                       [
                                           "51e1e3fc8f508df5"
                                       ]
                                   ]
                               },
                               {
                                   "id": "297571ed13ef2c59",
                                   "type": "ioBroker in",
                                   "z": "2e295f1c879e6af4",
                                   "name": "Lichtschalter Küche",
                                   "attrname": "payload",
                                   "topic": "weiss.ich.nicht",
                                   "payloadType": "object",
                                   "onlyack": "",
                                   "func": "rbe-preinitvalue",
                                   "gap": "",
                                   "fireOnStart": "false",
                                   "outFormat": "MQTT",
                                   "x": 170,
                                   "y": 640,
                                   "wires": [
                                       [
                                           "1706332e7fed829e",
                                           "69551a445935a5ae"
                                       ]
                                   ]
                               },
                               {
                                   "id": "1706332e7fed829e",
                                   "type": "change",
                                   "z": "2e295f1c879e6af4",
                                   "name": "",
                                   "rules": [
                                       {
                                           "t": "set",
                                           "p": "Schalter.Küche",
                                           "pt": "flow",
                                           "to": "true",
                                           "tot": "bool"
                                       }
                                   ],
                                   "action": "",
                                   "property": "",
                                   "from": "",
                                   "to": "",
                                   "reg": false,
                                   "x": 470,
                                   "y": 680,
                                   "wires": [
                                       [
                                           "26ce938c1bbd0c58"
                                       ]
                                   ]
                               },
                               {
                                   "id": "26ce938c1bbd0c58",
                                   "type": "trigger",
                                   "z": "2e295f1c879e6af4",
                                   "name": "",
                                   "op1": "",
                                   "op2": "false",
                                   "op1type": "nul",
                                   "op2type": "bool",
                                   "duration": "15",
                                   "extend": true,
                                   "overrideDelay": false,
                                   "units": "min",
                                   "reset": "",
                                   "bytopic": "all",
                                   "topic": "topic",
                                   "outputs": 1,
                                   "x": 700,
                                   "y": 680,
                                   "wires": [
                                       [
                                           "0182de9c40db9d98"
                                       ]
                                   ]
                               },
                               {
                                   "id": "0182de9c40db9d98",
                                   "type": "change",
                                   "z": "2e295f1c879e6af4",
                                   "name": "",
                                   "rules": [
                                       {
                                           "t": "set",
                                           "p": "Schalter.Küche",
                                           "pt": "flow",
                                           "to": "false",
                                           "tot": "bool"
                                       }
                                   ],
                                   "action": "",
                                   "property": "",
                                   "from": "",
                                   "to": "",
                                   "reg": false,
                                   "x": 930,
                                   "y": 680,
                                   "wires": [
                                       [
                                           "a6be1b601f701719"
                                       ]
                                   ]
                               },
                               {
                                   "id": "cef7aaa694cfe839",
                                   "type": "switch",
                                   "z": "2e295f1c879e6af4",
                                   "name": "",
                                   "property": "Schalter.Küche",
                                   "propertyType": "flow",
                                   "rules": [
                                       {
                                           "t": "false"
                                       }
                                   ],
                                   "checkall": "true",
                                   "repair": false,
                                   "outputs": 1,
                                   "x": 350,
                                   "y": 500,
                                   "wires": [
                                       [
                                           "0c7f79f1670db831"
                                       ]
                                   ]
                               },
                               {
                                   "id": "2983f3dde8459599",
                                   "type": "change",
                                   "z": "2e295f1c879e6af4",
                                   "name": "",
                                   "rules": [
                                       {
                                           "t": "set",
                                           "p": "reset",
                                           "pt": "msg",
                                           "to": "true",
                                           "tot": "bool"
                                       }
                                   ],
                                   "action": "",
                                   "property": "",
                                   "from": "",
                                   "to": "",
                                   "reg": false,
                                   "x": 560,
                                   "y": 560,
                                   "wires": [
                                       [
                                           "fdd6a8d770321ddf"
                                       ]
                                   ]
                               },
                               {
                                   "id": "51e1e3fc8f508df5",
                                   "type": "junction",
                                   "z": "2e295f1c879e6af4",
                                   "x": 1160,
                                   "y": 540,
                                   "wires": [
                                       [
                                           "9d5f84c2aef48af8"
                                       ]
                                   ]
                               },
                               {
                                   "id": "69551a445935a5ae",
                                   "type": "junction",
                                   "z": "2e295f1c879e6af4",
                                   "x": 360,
                                   "y": 620,
                                   "wires": [
                                       [
                                           "a6be1b601f701719",
                                           "2983f3dde8459599"
                                       ]
                                   ]
                               },
                               {
                                   "id": "a6be1b601f701719",
                                   "type": "junction",
                                   "z": "2e295f1c879e6af4",
                                   "x": 1160,
                                   "y": 620,
                                   "wires": [
                                       [
                                           "9d5f84c2aef48af8"
                                       ]
                                   ]
                               },
                               {
                                   "id": "9d5f84c2aef48af8",
                                   "type": "junction",
                                   "z": "2e295f1c879e6af4",
                                   "x": 1200,
                                   "y": 580,
                                   "wires": [
                                       [
                                           "3980458ba6d298ac",
                                           "a7ac79dac573570f",
                                           "f34957801db99988"
                                       ]
                                   ]
                               }
                            ]
                            

                            Und falls Du jetzt neue Kabel ziehst oder die Logik veränderst, dann überleg Dir VORHER was das für Konsequenzen hat und was jetzt genau passiert.

                            Beschreibe jedes Szenario mit Worten und mach nicht einfach.

                            Ach und bitte DEAKTIVIERE Deine jetzigen Flows und Blocklies, damit die nicht dazwischen funken, sonst wird das nichts. Und wenn Du hier nicht exakt arbeitest - dann bin ich ziemlich machtlos.

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

                            AphofisA 1 Antwort Letzte Antwort
                            0
                            • AphofisA Offline
                              AphofisA Offline
                              Aphofis
                              schrieb am zuletzt editiert von Aphofis
                              #196

                              @mickym
                              Das sehr nett das du die Schaltung überarbeitet hast! Nein ich ändere da nichts dran.
                              Nur nach einer Zeit auch wenn man nichts schaltet und auch nichts im BWM sich bewegt drehen die lampen durch und werden wie verrückt geschaltet.
                              Wenn ich die komplette Node deaktiviere dann ist wieder alles normal.
                              Kann das irgendwie sein, weil ja schalter küche so zu sagen in der Iobroker In node ist und in der schaltung alle drei geschaltet werden. da ja ganz oben habe ich ja eine schaltung die mit dem lichtschalter alle lampen zusammen ein und aus schaltet !?
                              Ich habe jetzt an die schaltung mit dem Robo und BWM nur den lichtschalter als out node gelassen. da ja in der ersten schaltung schon alle drei lampen zusammen gefasst sind. vllt kommt die Rückkopplung daher.
                              Weil der Lichschalter schaltet so zu sagen ja nur die Decke an/aus und die beiden LEd Stripes vom Sonoff und vom Tuya Gerät werden ja mit geschaltet durch die normale In/Out node geschichte.
                              Screenshot 2024-08-26 180529.png

                              mickymM 1 Antwort Letzte Antwort
                              0
                              • mickymM mickym

                                So probiere das nochmal:

                                f77104a0-9971-4284-9d49-8abf20647121-image.png

                                Du musst allerdings die iobroker-IN und iobroker-OUT Nodes überprüfen, weil ich Deine Hardwarepunkte nicht habe.

                                [
                                   {
                                       "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": 170,
                                       "y": 500,
                                       "wires": [
                                           [
                                               "cef7aaa694cfe839"
                                           ]
                                       ]
                                   },
                                   {
                                       "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": 1410,
                                       "y": 520,
                                       "wires": []
                                   },
                                   {
                                       "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": 1420,
                                       "y": 580,
                                       "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": 1370,
                                       "y": 640,
                                       "wires": []
                                   },
                                   {
                                       "id": "ded2386bc0ab0eb2",
                                       "type": "ioBroker get",
                                       "z": "2e295f1c879e6af4",
                                       "name": "Reinigung Status",
                                       "topic": "mihome-vacuum.1.info.state",
                                       "attrname": "roborock",
                                       "payloadType": "value",
                                       "errOnInvalidState": "nothing",
                                       "x": 790,
                                       "y": 460,
                                       "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": 540,
                                       "y": 500,
                                       "wires": [
                                           [
                                               "ded2386bc0ab0eb2",
                                               "fdd6a8d770321ddf"
                                           ],
                                           [
                                               "fdd6a8d770321ddf"
                                           ]
                                       ]
                                   },
                                   {
                                       "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": 1010,
                                       "y": 460,
                                       "wires": [
                                           [
                                               "51e1e3fc8f508df5"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "fdd6a8d770321ddf",
                                       "type": "trigger",
                                       "z": "2e295f1c879e6af4",
                                       "name": "",
                                       "op1": "",
                                       "op2": "false",
                                       "op1type": "nul",
                                       "op2type": "bool",
                                       "duration": "2",
                                       "extend": true,
                                       "overrideDelay": false,
                                       "units": "min",
                                       "reset": "true",
                                       "bytopic": "all",
                                       "topic": "topic",
                                       "outputs": 1,
                                       "x": 810,
                                       "y": 540,
                                       "wires": [
                                           [
                                               "51e1e3fc8f508df5"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "297571ed13ef2c59",
                                       "type": "ioBroker in",
                                       "z": "2e295f1c879e6af4",
                                       "name": "Lichtschalter Küche",
                                       "attrname": "payload",
                                       "topic": "weiss.ich.nicht",
                                       "payloadType": "object",
                                       "onlyack": "",
                                       "func": "rbe-preinitvalue",
                                       "gap": "",
                                       "fireOnStart": "false",
                                       "outFormat": "MQTT",
                                       "x": 170,
                                       "y": 640,
                                       "wires": [
                                           [
                                               "1706332e7fed829e",
                                               "69551a445935a5ae"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "1706332e7fed829e",
                                       "type": "change",
                                       "z": "2e295f1c879e6af4",
                                       "name": "",
                                       "rules": [
                                           {
                                               "t": "set",
                                               "p": "Schalter.Küche",
                                               "pt": "flow",
                                               "to": "true",
                                               "tot": "bool"
                                           }
                                       ],
                                       "action": "",
                                       "property": "",
                                       "from": "",
                                       "to": "",
                                       "reg": false,
                                       "x": 470,
                                       "y": 680,
                                       "wires": [
                                           [
                                               "26ce938c1bbd0c58"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "26ce938c1bbd0c58",
                                       "type": "trigger",
                                       "z": "2e295f1c879e6af4",
                                       "name": "",
                                       "op1": "",
                                       "op2": "false",
                                       "op1type": "nul",
                                       "op2type": "bool",
                                       "duration": "15",
                                       "extend": true,
                                       "overrideDelay": false,
                                       "units": "min",
                                       "reset": "",
                                       "bytopic": "all",
                                       "topic": "topic",
                                       "outputs": 1,
                                       "x": 700,
                                       "y": 680,
                                       "wires": [
                                           [
                                               "0182de9c40db9d98"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "0182de9c40db9d98",
                                       "type": "change",
                                       "z": "2e295f1c879e6af4",
                                       "name": "",
                                       "rules": [
                                           {
                                               "t": "set",
                                               "p": "Schalter.Küche",
                                               "pt": "flow",
                                               "to": "false",
                                               "tot": "bool"
                                           }
                                       ],
                                       "action": "",
                                       "property": "",
                                       "from": "",
                                       "to": "",
                                       "reg": false,
                                       "x": 930,
                                       "y": 680,
                                       "wires": [
                                           [
                                               "a6be1b601f701719"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "cef7aaa694cfe839",
                                       "type": "switch",
                                       "z": "2e295f1c879e6af4",
                                       "name": "",
                                       "property": "Schalter.Küche",
                                       "propertyType": "flow",
                                       "rules": [
                                           {
                                               "t": "false"
                                           }
                                       ],
                                       "checkall": "true",
                                       "repair": false,
                                       "outputs": 1,
                                       "x": 350,
                                       "y": 500,
                                       "wires": [
                                           [
                                               "0c7f79f1670db831"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "2983f3dde8459599",
                                       "type": "change",
                                       "z": "2e295f1c879e6af4",
                                       "name": "",
                                       "rules": [
                                           {
                                               "t": "set",
                                               "p": "reset",
                                               "pt": "msg",
                                               "to": "true",
                                               "tot": "bool"
                                           }
                                       ],
                                       "action": "",
                                       "property": "",
                                       "from": "",
                                       "to": "",
                                       "reg": false,
                                       "x": 560,
                                       "y": 560,
                                       "wires": [
                                           [
                                               "fdd6a8d770321ddf"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "51e1e3fc8f508df5",
                                       "type": "junction",
                                       "z": "2e295f1c879e6af4",
                                       "x": 1160,
                                       "y": 540,
                                       "wires": [
                                           [
                                               "9d5f84c2aef48af8"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "69551a445935a5ae",
                                       "type": "junction",
                                       "z": "2e295f1c879e6af4",
                                       "x": 360,
                                       "y": 620,
                                       "wires": [
                                           [
                                               "a6be1b601f701719",
                                               "2983f3dde8459599"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "a6be1b601f701719",
                                       "type": "junction",
                                       "z": "2e295f1c879e6af4",
                                       "x": 1160,
                                       "y": 620,
                                       "wires": [
                                           [
                                               "9d5f84c2aef48af8"
                                           ]
                                       ]
                                   },
                                   {
                                       "id": "9d5f84c2aef48af8",
                                       "type": "junction",
                                       "z": "2e295f1c879e6af4",
                                       "x": 1200,
                                       "y": 580,
                                       "wires": [
                                           [
                                               "3980458ba6d298ac",
                                               "a7ac79dac573570f",
                                               "f34957801db99988"
                                           ]
                                       ]
                                   }
                                ]
                                

                                Und falls Du jetzt neue Kabel ziehst oder die Logik veränderst, dann überleg Dir VORHER was das für Konsequenzen hat und was jetzt genau passiert.

                                Beschreibe jedes Szenario mit Worten und mach nicht einfach.

                                Ach und bitte DEAKTIVIERE Deine jetzigen Flows und Blocklies, damit die nicht dazwischen funken, sonst wird das nichts. Und wenn Du hier nicht exakt arbeitest - dann bin ich ziemlich machtlos.

                                AphofisA Offline
                                AphofisA Offline
                                Aphofis
                                schrieb am zuletzt editiert von
                                #197

                                @mickym Ja habe ich überprüft! Sehr Lieb! der Datenpunkt weiß .ich.nicht ist toll.
                                Den lege ich mit auch an! Echt toll ich denke ich habe jetzt auch alles geprüft es funktioniert.
                                Jetzt muss nur noch die Aquarium Wasser ausgleichssteuerung laufen mit wasser verbrauchs daten in die datenpunkte schreiben dann bin ich auch erstnmal glücklich.

                                1 Antwort Letzte Antwort
                                0
                                • AphofisA Aphofis

                                  @mickym
                                  Das sehr nett das du die Schaltung überarbeitet hast! Nein ich ändere da nichts dran.
                                  Nur nach einer Zeit auch wenn man nichts schaltet und auch nichts im BWM sich bewegt drehen die lampen durch und werden wie verrückt geschaltet.
                                  Wenn ich die komplette Node deaktiviere dann ist wieder alles normal.
                                  Kann das irgendwie sein, weil ja schalter küche so zu sagen in der Iobroker In node ist und in der schaltung alle drei geschaltet werden. da ja ganz oben habe ich ja eine schaltung die mit dem lichtschalter alle lampen zusammen ein und aus schaltet !?
                                  Ich habe jetzt an die schaltung mit dem Robo und BWM nur den lichtschalter als out node gelassen. da ja in der ersten schaltung schon alle drei lampen zusammen gefasst sind. vllt kommt die Rückkopplung daher.
                                  Weil der Lichschalter schaltet so zu sagen ja nur die Decke an/aus und die beiden LEd Stripes vom Sonoff und vom Tuya Gerät werden ja mit geschaltet durch die normale In/Out node geschichte.
                                  Screenshot 2024-08-26 180529.png

                                  mickymM Offline
                                  mickymM Offline
                                  mickym
                                  Most Active
                                  schrieb am zuletzt editiert von mickym
                                  #198

                                  @aphofis Na ja - wenn es am Node Red Flow liegen würde, dann würde es eine Endlosschleife geben. Also achte erst mal darauf, dass in keiner iobroker-OUT Node der gleiche Datenpunkt wie in einer iobroker-IN Node steht.

                                  Und Du auch sonst nirgends weder in Blockly noch in einem anderen Flow die Datenpunkte schaltest, die in den iobroker-IN Nodes einliest.

                                  Ausserdem kannst Du noch direkt an eine iobroker-In NOde direkt eine Debug Node machen. Wenn das ganze Dein Debug Fenster flutet, dann weisst Du dass da ein Datenpunkt verrückt spielt.

                                  Kann das irgendwie sein, weil ja schalter küche so zu sagen in der Iobroker In node ist und in der schaltung alle drei geschaltet werden. da ja ganz oben habe ich ja eine schaltung die mit dem lichtschalter alle lampen zusammen ein und aus schaltet !?

                                  Ich gehe davon aus, dass die Schaltung die ich gemacht habe, die EINZIGE Schaltung ist. Alle anderen Schaltungen deaktivieren.
                                  Außerdem wie gesagt, alle Datenpunkte in iobroker-IN und iobroker-Out überprüfen und wie gesagt alle anderen Schaltungen deaktiveren.

                                  Ich habe mir dafür 2 Tastaturmakros erstellst, mit dem Du über ALT+e markierte Knoten aktivierst bzw. mit ALT+d markierte Knoten deaktivierst.

                                  90673186-99b4-4970-8ee4-e1ea25c59f25-image.png

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

                                  AphofisA 1 Antwort Letzte Antwort
                                  0
                                  • mickymM mickym

                                    @aphofis Na ja - wenn es am Node Red Flow liegen würde, dann würde es eine Endlosschleife geben. Also achte erst mal darauf, dass in keiner iobroker-OUT Node der gleiche Datenpunkt wie in einer iobroker-IN Node steht.

                                    Und Du auch sonst nirgends weder in Blockly noch in einem anderen Flow die Datenpunkte schaltest, die in den iobroker-IN Nodes einliest.

                                    Ausserdem kannst Du noch direkt an eine iobroker-In NOde direkt eine Debug Node machen. Wenn das ganze Dein Debug Fenster flutet, dann weisst Du dass da ein Datenpunkt verrückt spielt.

                                    Kann das irgendwie sein, weil ja schalter küche so zu sagen in der Iobroker In node ist und in der schaltung alle drei geschaltet werden. da ja ganz oben habe ich ja eine schaltung die mit dem lichtschalter alle lampen zusammen ein und aus schaltet !?

                                    Ich gehe davon aus, dass die Schaltung die ich gemacht habe, die EINZIGE Schaltung ist. Alle anderen Schaltungen deaktivieren.
                                    Außerdem wie gesagt, alle Datenpunkte in iobroker-IN und iobroker-Out überprüfen und wie gesagt alle anderen Schaltungen deaktiveren.

                                    Ich habe mir dafür 2 Tastaturmakros erstellst, mit dem Du über ALT+e markierte Knoten aktivierst bzw. mit ALT+d markierte Knoten deaktivierst.

                                    90673186-99b4-4970-8ee4-e1ea25c59f25-image.png

                                    AphofisA Offline
                                    AphofisA Offline
                                    Aphofis
                                    schrieb am zuletzt editiert von Aphofis
                                    #199

                                    @mickym Das ja cool!
                                    Hab mir die Tasetnkobi auch eingerichtet. Vielen dank dafür.
                                    Also es funktioniert alles.

                                    AphofisA 1 Antwort Letzte Antwort
                                    0
                                    • AphofisA Aphofis

                                      @mickym Das ja cool!
                                      Hab mir die Tasetnkobi auch eingerichtet. Vielen dank dafür.
                                      Also es funktioniert alles.

                                      AphofisA Offline
                                      AphofisA Offline
                                      Aphofis
                                      schrieb am zuletzt editiert von
                                      #200

                                      Sag mal nur für mein Verständnis.
                                      Wenn ich eine In node nehme die liefert true/false als value und ich dann eine Change node dran hänge und als msg.topic und value zb robo nehme kann ich das dann weiter verarbeiten also überall wo dann das topic robo eingebunden wird kann man das dann dort verarbeiten !?
                                      sprich das dann auch nur robo topic dort ankommt wo man es auch haben will.

                                      mickymM 1 Antwort Letzte Antwort
                                      0
                                      • AphofisA Aphofis

                                        Sag mal nur für mein Verständnis.
                                        Wenn ich eine In node nehme die liefert true/false als value und ich dann eine Change node dran hänge und als msg.topic und value zb robo nehme kann ich das dann weiter verarbeiten also überall wo dann das topic robo eingebunden wird kann man das dann dort verarbeiten !?
                                        sprich das dann auch nur robo topic dort ankommt wo man es auch haben will.

                                        mickymM Offline
                                        mickymM Offline
                                        mickym
                                        Most Active
                                        schrieb am zuletzt editiert von mickym
                                        #201

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

                                        Sag mal nur für mein Verständnis.
                                        Wenn ich eine In node nehme die liefert true/false als value und ich dann eine Change node dran hänge und als msg.topic und value zb robo nehme kann ich das dann weiter verarbeiten also überall wo dann das topic robo eingebunden wird kann man das dann dort verarbeiten !?
                                        sprich das dann auch nur robo topic dort ankommt wo man es auch haben will.

                                        Na ich verstehe zwar glaub nur halb was Du willst. Grundsätzlich laufen die Nachrichten durch die Kabel bzw. über Link Knoten auch Flow übergreifend.

                                        Das topic repräsentiert, die Art bzw. den Ursprung der payload. Was nützt Dir ein true oder false in einer payload, wenn Du nicht weißt woher es stammt.

                                        Zum Filtern nimmst Du KEINE Change Node. Mit einer Change Node VERÄNDERST DU Nachrichten. Wenn Du Nachrichten filtern oder über Bedingungen unterschiedlich verarbeiten willst, nimmst Du eine SWITCH Node. Du musst Dir wirklich einprägen, wann welche Node benutzt wird.

                                        • Also mit einer Change Node, wenn Du Nachrichten VERÄNDERN willst
                                        • mit einer Switch Node, wenn Du Nachrichten filtern oder über unterschiedliche Bedingungen steuern willst.

                                        Wenn Du mehrere iobroker-IN Knoten (warum auch immer) an eine Switch Node klemmen willst und nur die Nachrichten durchlassen möchtest, die von einem topic kommen, dass (falls Du nicht den ganzen Pfad eingeben willst) filtern willst, die den String "robo" enthalten, nimmst Du eine Switch Node und gibst:

                                        1. An welche Nachrichteneigenschaft (oder Kontextvariable) Du untersuchen willst
                                        2. Welche Bedingung die untersuchte Nachrichteneigenschaft (oder Kontextvariable) erfüllen muss.

                                        d340a633-8da1-48af-8455-09c39a946cc8-image.png

                                        Diese switch node untersucht also die Nachrichteneigenschaft topic und lässt alle Nachrichten durch, wenn das topic die Zeichenkette "robo" (also ohne Anführungszeichen) enthält. Die payload ist dieser switch Node völlig egal, weil die ja nicht untersucht wird. Das kann true, false, 400 oder "Wellensittich" sein. ;)

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

                                        AphofisA 1 Antwort Letzte Antwort
                                        0
                                        • mickymM mickym

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

                                          Sag mal nur für mein Verständnis.
                                          Wenn ich eine In node nehme die liefert true/false als value und ich dann eine Change node dran hänge und als msg.topic und value zb robo nehme kann ich das dann weiter verarbeiten also überall wo dann das topic robo eingebunden wird kann man das dann dort verarbeiten !?
                                          sprich das dann auch nur robo topic dort ankommt wo man es auch haben will.

                                          Na ich verstehe zwar glaub nur halb was Du willst. Grundsätzlich laufen die Nachrichten durch die Kabel bzw. über Link Knoten auch Flow übergreifend.

                                          Das topic repräsentiert, die Art bzw. den Ursprung der payload. Was nützt Dir ein true oder false in einer payload, wenn Du nicht weißt woher es stammt.

                                          Zum Filtern nimmst Du KEINE Change Node. Mit einer Change Node VERÄNDERST DU Nachrichten. Wenn Du Nachrichten filtern oder über Bedingungen unterschiedlich verarbeiten willst, nimmst Du eine SWITCH Node. Du musst Dir wirklich einprägen, wann welche Node benutzt wird.

                                          • Also mit einer Change Node, wenn Du Nachrichten VERÄNDERN willst
                                          • mit einer Switch Node, wenn Du Nachrichten filtern oder über unterschiedliche Bedingungen steuern willst.

                                          Wenn Du mehrere iobroker-IN Knoten (warum auch immer) an eine Switch Node klemmen willst und nur die Nachrichten durchlassen möchtest, die von einem topic kommen, dass (falls Du nicht den ganzen Pfad eingeben willst) filtern willst, die den String "robo" enthalten, nimmst Du eine Switch Node und gibst:

                                          1. An welche Nachrichteneigenschaft (oder Kontextvariable) Du untersuchen willst
                                          2. Welche Bedingung die untersuchte Nachrichteneigenschaft (oder Kontextvariable) erfüllen muss.

                                          d340a633-8da1-48af-8455-09c39a946cc8-image.png

                                          Diese switch node untersucht also die Nachrichteneigenschaft topic und lässt alle Nachrichten durch, wenn das topic die Zeichenkette "robo" (also ohne Anführungszeichen) enthält. Die payload ist dieser switch Node völlig egal, weil die ja nicht untersucht wird. Das kann true, false, 400 oder "Wellensittich" sein. ;)

                                          AphofisA Offline
                                          AphofisA Offline
                                          Aphofis
                                          schrieb am zuletzt editiert von
                                          #202

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

                                          ja nicht untersucht wird. Das kann true, fals

                                          alles klar! Verstanden ich meinte auch die switch node!
                                          Ok Dann hab ich das verstanden.

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          919

                                          Online

                                          32.6k

                                          Benutzer

                                          81.9k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe