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. Blockly
  5. [gelöst] Kleine Lichtsteuerung mit Bewegungsmelder

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    1.9k

[gelöst] Kleine Lichtsteuerung mit Bewegungsmelder

Geplant Angeheftet Gesperrt Verschoben Blockly
33 Beiträge 7 Kommentatoren 1.4k Aufrufe 4 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 Offline
    AphofisA Offline
    Aphofis
    schrieb am zuletzt editiert von Aphofis
    #1

    Ich habe da eine kleine Licht Steuerung, kann man die irgendwie so erweitern, das bei wieder bewegung das licht wieder angeht so lange bis keine bewegung mehr erkannt wird und das kleine Problem ist, wenn mein Staubsaugroboter aktiv ist soll der Bewegungsmelder deaktiviert sein. weil wenn er fröhlich am reinigen ist geht auch fröhlich das licht im Bad an und aus.

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable type="timeout" id="timeout">timeout</variable>
      </variables>
      <block type="on_ext" id="Nj(te{x3$e6!~{f@69xR" x="-837" y="-837">
        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="c%l5fWgvmI!,g`p~4n;j">
            <field name="oid">hue.0.Bad_Motion_Sensor.presence</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="debug" id="-,p_/V`6t=CYBp)ju!_o">
            <field name="Severity">info</field>
            <value name="TEXT">
              <shadow type="text" id="M2oMY%M)9{AV(Z;_2{qU">
                <field name="TEXT">Bad Bewegung erkannt</field>
              </shadow>
            </value>
            <next>
              <block type="controls_if" id="v%91paFmpsDs~u$16I*j">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="DGg=BVr/KMI3zYgmWWYK">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="+YT7FtsKaa*oQiK*IAP[">
                        <field name="ATTR">val</field>
                        <field name="OID">hue.0.Bad_Motion_Sensor.presence</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_boolean" id="`vYr(:m9rX@y^Sf,6rhX">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="j?7(Fp{-}?,%mB.fxC^`">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="2z-cxu^{UVe{ePvV=a={">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="debug" id="(EUC)LT~MuT5k#W$grTf">
                        <field name="Severity">info</field>
                        <value name="TEXT">
                          <shadow type="text" id="_0$mr||2p`H%wjnCH:_F">
                            <field name="TEXT">Licht Bad ist an</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="telegram_call" id="9G3^ixErf|^tIt3qU09f">
                            <field name="INSTANCE"></field>
                            <field name="LANGUAGE"></field>
                            <field name="REPEATS">1</field>
                            <field name="LOG"></field>
                            <value name="MESSAGE">
                              <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                <field name="TEXT">text</field>
                              </shadow>
                              <block type="text" id="~#]6!f84PvCz[YEoyF_X">
                                <field name="TEXT">Licht Bad ist an</field>
                              </block>
                            </value>
                            <value name="USERNAME">
                              <shadow type="text" id="XNu@~H6!:zs;Z2V%[!h=">
                                <field name="TEXT"></field>
                              </shadow>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="timeouts_settimeout" id="Sl7]EUvd]q9gXk%bteLN">
                    <field name="NAME">timeout</field>
                    <field name="DELAY">50</field>
                    <field name="UNIT">sec</field>
                    <statement name="STATEMENT">
                      <block type="control" id="m|A:PzDnfvu95fRcW=_L">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="k!b54}gJD~x8VPTW#Wsb">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="debug" id="/2njKeH:uVhFB|K6pf*|">
                            <field name="Severity">info</field>
                            <value name="TEXT">
                              <shadow type="text" id="U=bU!6+k/@-4*;I|-ugI">
                                <field name="TEXT">Licht Bad ist aus</field>
                              </shadow>
                            </value>
                            <next>
                              <block type="telegram_call" id="j:X,|g*{b9g+gkSFibOJ">
                                <field name="INSTANCE"></field>
                                <field name="LANGUAGE"></field>
                                <field name="REPEATS">1</field>
                                <field name="LOG"></field>
                                <value name="MESSAGE">
                                  <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                    <field name="TEXT">text</field>
                                  </shadow>
                                  <block type="text" id="oau+hb*9lF70aK6[6U[f">
                                    <field name="TEXT">Licht Bad ist aus</field>
                                  </block>
                                </value>
                                <value name="USERNAME">
                                  <shadow type="text" id="RO2hx`Qbk$n-B}X`^Ia8">
                                    <field name="TEXT"></field>
                                  </shadow>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="timeouts_cleartimeout" id="Zbw-y?`R?n}TqCVr8eS?">
            <field name="NAME">timeout</field>
          </block>
        </next>
      </block>
    </xml>
    

    Screenshot 2024-08-06 131703.png

    CodierknechtC AphofisA 2 Antworten Letzte Antwort
    0
    • AphofisA Aphofis

      Ich habe da eine kleine Licht Steuerung, kann man die irgendwie so erweitern, das bei wieder bewegung das licht wieder angeht so lange bis keine bewegung mehr erkannt wird und das kleine Problem ist, wenn mein Staubsaugroboter aktiv ist soll der Bewegungsmelder deaktiviert sein. weil wenn er fröhlich am reinigen ist geht auch fröhlich das licht im Bad an und aus.

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="on_ext" id="Nj(te{x3$e6!~{f@69xR" x="-837" y="-837">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="c%l5fWgvmI!,g`p~4n;j">
              <field name="oid">hue.0.Bad_Motion_Sensor.presence</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="debug" id="-,p_/V`6t=CYBp)ju!_o">
              <field name="Severity">info</field>
              <value name="TEXT">
                <shadow type="text" id="M2oMY%M)9{AV(Z;_2{qU">
                  <field name="TEXT">Bad Bewegung erkannt</field>
                </shadow>
              </value>
              <next>
                <block type="controls_if" id="v%91paFmpsDs~u$16I*j">
                  <mutation else="1"></mutation>
                  <value name="IF0">
                    <block type="logic_compare" id="DGg=BVr/KMI3zYgmWWYK">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="+YT7FtsKaa*oQiK*IAP[">
                          <field name="ATTR">val</field>
                          <field name="OID">hue.0.Bad_Motion_Sensor.presence</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="`vYr(:m9rX@y^Sf,6rhX">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="j?7(Fp{-}?,%mB.fxC^`">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="2z-cxu^{UVe{ePvV=a={">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                      <next>
                        <block type="debug" id="(EUC)LT~MuT5k#W$grTf">
                          <field name="Severity">info</field>
                          <value name="TEXT">
                            <shadow type="text" id="_0$mr||2p`H%wjnCH:_F">
                              <field name="TEXT">Licht Bad ist an</field>
                            </shadow>
                          </value>
                          <next>
                            <block type="telegram_call" id="9G3^ixErf|^tIt3qU09f">
                              <field name="INSTANCE"></field>
                              <field name="LANGUAGE"></field>
                              <field name="REPEATS">1</field>
                              <field name="LOG"></field>
                              <value name="MESSAGE">
                                <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                  <field name="TEXT">text</field>
                                </shadow>
                                <block type="text" id="~#]6!f84PvCz[YEoyF_X">
                                  <field name="TEXT">Licht Bad ist an</field>
                                </block>
                              </value>
                              <value name="USERNAME">
                                <shadow type="text" id="XNu@~H6!:zs;Z2V%[!h=">
                                  <field name="TEXT"></field>
                                </shadow>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <statement name="ELSE">
                    <block type="timeouts_settimeout" id="Sl7]EUvd]q9gXk%bteLN">
                      <field name="NAME">timeout</field>
                      <field name="DELAY">50</field>
                      <field name="UNIT">sec</field>
                      <statement name="STATEMENT">
                        <block type="control" id="m|A:PzDnfvu95fRcW=_L">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="k!b54}gJD~x8VPTW#Wsb">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="debug" id="/2njKeH:uVhFB|K6pf*|">
                              <field name="Severity">info</field>
                              <value name="TEXT">
                                <shadow type="text" id="U=bU!6+k/@-4*;I|-ugI">
                                  <field name="TEXT">Licht Bad ist aus</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="telegram_call" id="j:X,|g*{b9g+gkSFibOJ">
                                  <field name="INSTANCE"></field>
                                  <field name="LANGUAGE"></field>
                                  <field name="REPEATS">1</field>
                                  <field name="LOG"></field>
                                  <value name="MESSAGE">
                                    <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                      <field name="TEXT">text</field>
                                    </shadow>
                                    <block type="text" id="oau+hb*9lF70aK6[6U[f">
                                      <field name="TEXT">Licht Bad ist aus</field>
                                    </block>
                                  </value>
                                  <value name="USERNAME">
                                    <shadow type="text" id="RO2hx`Qbk$n-B}X`^Ia8">
                                      <field name="TEXT"></field>
                                    </shadow>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
          <next>
            <block type="timeouts_cleartimeout" id="Zbw-y?`R?n}TqCVr8eS?">
              <field name="NAME">timeout</field>
            </block>
          </next>
        </block>
      </xml>
      

      Screenshot 2024-08-06 131703.png

      CodierknechtC Online
      CodierknechtC Online
      Codierknecht
      Developer Most Active
      schrieb am zuletzt editiert von
      #2

      @aphofis

      1. Bei Blockly auch immer einen Screenshot mitliefern
        Die wenigsten hier haben Lust, das XML erstmal zu importieren um etwas zu sehen.

      2. https://forum.iobroker.net/topic/70481/blockly-for-dummies-starthilfe-und-tipps/9
        Da müsste dann als zusätzliche Bedingung rein, dass der Robbi nicht fährt.

      "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

      Proxmox 9.1.1 LXC|8 GB|Core i7-6700
      HmIP|ZigBee|Tasmota|Unifi
      Zabbix Certified Specialist
      Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

      1 Antwort Letzte Antwort
      0
      • AphofisA Aphofis

        Ich habe da eine kleine Licht Steuerung, kann man die irgendwie so erweitern, das bei wieder bewegung das licht wieder angeht so lange bis keine bewegung mehr erkannt wird und das kleine Problem ist, wenn mein Staubsaugroboter aktiv ist soll der Bewegungsmelder deaktiviert sein. weil wenn er fröhlich am reinigen ist geht auch fröhlich das licht im Bad an und aus.

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="timeout" id="timeout">timeout</variable>
          </variables>
          <block type="on_ext" id="Nj(te{x3$e6!~{f@69xR" x="-837" y="-837">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="c%l5fWgvmI!,g`p~4n;j">
                <field name="oid">hue.0.Bad_Motion_Sensor.presence</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="debug" id="-,p_/V`6t=CYBp)ju!_o">
                <field name="Severity">info</field>
                <value name="TEXT">
                  <shadow type="text" id="M2oMY%M)9{AV(Z;_2{qU">
                    <field name="TEXT">Bad Bewegung erkannt</field>
                  </shadow>
                </value>
                <next>
                  <block type="controls_if" id="v%91paFmpsDs~u$16I*j">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="DGg=BVr/KMI3zYgmWWYK">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="+YT7FtsKaa*oQiK*IAP[">
                            <field name="ATTR">val</field>
                            <field name="OID">hue.0.Bad_Motion_Sensor.presence</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="`vYr(:m9rX@y^Sf,6rhX">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="j?7(Fp{-}?,%mB.fxC^`">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="2z-cxu^{UVe{ePvV=a={">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                        <next>
                          <block type="debug" id="(EUC)LT~MuT5k#W$grTf">
                            <field name="Severity">info</field>
                            <value name="TEXT">
                              <shadow type="text" id="_0$mr||2p`H%wjnCH:_F">
                                <field name="TEXT">Licht Bad ist an</field>
                              </shadow>
                            </value>
                            <next>
                              <block type="telegram_call" id="9G3^ixErf|^tIt3qU09f">
                                <field name="INSTANCE"></field>
                                <field name="LANGUAGE"></field>
                                <field name="REPEATS">1</field>
                                <field name="LOG"></field>
                                <value name="MESSAGE">
                                  <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                    <field name="TEXT">text</field>
                                  </shadow>
                                  <block type="text" id="~#]6!f84PvCz[YEoyF_X">
                                    <field name="TEXT">Licht Bad ist an</field>
                                  </block>
                                </value>
                                <value name="USERNAME">
                                  <shadow type="text" id="XNu@~H6!:zs;Z2V%[!h=">
                                    <field name="TEXT"></field>
                                  </shadow>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="timeouts_settimeout" id="Sl7]EUvd]q9gXk%bteLN">
                        <field name="NAME">timeout</field>
                        <field name="DELAY">50</field>
                        <field name="UNIT">sec</field>
                        <statement name="STATEMENT">
                          <block type="control" id="m|A:PzDnfvu95fRcW=_L">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="k!b54}gJD~x8VPTW#Wsb">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="debug" id="/2njKeH:uVhFB|K6pf*|">
                                <field name="Severity">info</field>
                                <value name="TEXT">
                                  <shadow type="text" id="U=bU!6+k/@-4*;I|-ugI">
                                    <field name="TEXT">Licht Bad ist aus</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="telegram_call" id="j:X,|g*{b9g+gkSFibOJ">
                                    <field name="INSTANCE"></field>
                                    <field name="LANGUAGE"></field>
                                    <field name="REPEATS">1</field>
                                    <field name="LOG"></field>
                                    <value name="MESSAGE">
                                      <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                        <field name="TEXT">text</field>
                                      </shadow>
                                      <block type="text" id="oau+hb*9lF70aK6[6U[f">
                                        <field name="TEXT">Licht Bad ist aus</field>
                                      </block>
                                    </value>
                                    <value name="USERNAME">
                                      <shadow type="text" id="RO2hx`Qbk$n-B}X`^Ia8">
                                        <field name="TEXT"></field>
                                      </shadow>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="timeouts_cleartimeout" id="Zbw-y?`R?n}TqCVr8eS?">
                <field name="NAME">timeout</field>
              </block>
            </next>
          </block>
        </xml>
        

        Screenshot 2024-08-06 131703.png

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

        @aphofis sagte in Kleine Lichtsteuerung mit Bewegungsmelder:

        Ich habe da eine kleine Licht Steuerung, kann man die irgendwie so erweitern, das bei wieder bewegung das licht wieder angeht so lange bis keine bewegung mehr erkannt wird und das kleine Problem ist, wenn mein Staubsaugroboter aktiv ist soll der Bewegungsmelder deaktiviert sein. weil wenn er fröhlich am reinigen ist geht auch fröhlich das licht im Bad an und aus.

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="timeout" id="timeout">timeout</variable>
          </variables>
          <block type="on_ext" id="Nj(te{x3$e6!~{f@69xR" x="-837" y="-837">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="c%l5fWgvmI!,g`p~4n;j">
                <field name="oid">hue.0.Bad_Motion_Sensor.presence</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="debug" id="-,p_/V`6t=CYBp)ju!_o">
                <field name="Severity">info</field>
                <value name="TEXT">
                  <shadow type="text" id="M2oMY%M)9{AV(Z;_2{qU">
                    <field name="TEXT">Bad Bewegung erkannt</field>
                  </shadow>
                </value>
                <next>
                  <block type="controls_if" id="v%91paFmpsDs~u$16I*j">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="DGg=BVr/KMI3zYgmWWYK">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="+YT7FtsKaa*oQiK*IAP[">
                            <field name="ATTR">val</field>
                            <field name="OID">hue.0.Bad_Motion_Sensor.presence</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="`vYr(:m9rX@y^Sf,6rhX">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="j?7(Fp{-}?,%mB.fxC^`">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="2z-cxu^{UVe{ePvV=a={">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                        <next>
                          <block type="debug" id="(EUC)LT~MuT5k#W$grTf">
                            <field name="Severity">info</field>
                            <value name="TEXT">
                              <shadow type="text" id="_0$mr||2p`H%wjnCH:_F">
                                <field name="TEXT">Licht Bad ist an</field>
                              </shadow>
                            </value>
                            <next>
                              <block type="telegram_call" id="9G3^ixErf|^tIt3qU09f">
                                <field name="INSTANCE"></field>
                                <field name="LANGUAGE"></field>
                                <field name="REPEATS">1</field>
                                <field name="LOG"></field>
                                <value name="MESSAGE">
                                  <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                    <field name="TEXT">text</field>
                                  </shadow>
                                  <block type="text" id="~#]6!f84PvCz[YEoyF_X">
                                    <field name="TEXT">Licht Bad ist an</field>
                                  </block>
                                </value>
                                <value name="USERNAME">
                                  <shadow type="text" id="XNu@~H6!:zs;Z2V%[!h=">
                                    <field name="TEXT"></field>
                                  </shadow>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="timeouts_settimeout" id="Sl7]EUvd]q9gXk%bteLN">
                        <field name="NAME">timeout</field>
                        <field name="DELAY">50</field>
                        <field name="UNIT">sec</field>
                        <statement name="STATEMENT">
                          <block type="control" id="m|A:PzDnfvu95fRcW=_L">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="k!b54}gJD~x8VPTW#Wsb">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="debug" id="/2njKeH:uVhFB|K6pf*|">
                                <field name="Severity">info</field>
                                <value name="TEXT">
                                  <shadow type="text" id="U=bU!6+k/@-4*;I|-ugI">
                                    <field name="TEXT">Licht Bad ist aus</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="telegram_call" id="j:X,|g*{b9g+gkSFibOJ">
                                    <field name="INSTANCE"></field>
                                    <field name="LANGUAGE"></field>
                                    <field name="REPEATS">1</field>
                                    <field name="LOG"></field>
                                    <value name="MESSAGE">
                                      <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                        <field name="TEXT">text</field>
                                      </shadow>
                                      <block type="text" id="oau+hb*9lF70aK6[6U[f">
                                        <field name="TEXT">Licht Bad ist aus</field>
                                      </block>
                                    </value>
                                    <value name="USERNAME">
                                      <shadow type="text" id="RO2hx`Qbk$n-B}X`^Ia8">
                                        <field name="TEXT"></field>
                                      </shadow>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="timeouts_cleartimeout" id="Zbw-y?`R?n}TqCVr8eS?">
                <field name="NAME">timeout</field>
              </block>
            </next>
          </block>
        </xml>
        

        Screenshot 2024-08-06 131703.png

        sorry vergessen, mache ich sonst immer!

        AphofisA 1 Antwort Letzte Antwort
        0
        • AphofisA Aphofis

          @aphofis sagte in Kleine Lichtsteuerung mit Bewegungsmelder:

          Ich habe da eine kleine Licht Steuerung, kann man die irgendwie so erweitern, das bei wieder bewegung das licht wieder angeht so lange bis keine bewegung mehr erkannt wird und das kleine Problem ist, wenn mein Staubsaugroboter aktiv ist soll der Bewegungsmelder deaktiviert sein. weil wenn er fröhlich am reinigen ist geht auch fröhlich das licht im Bad an und aus.

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable type="timeout" id="timeout">timeout</variable>
            </variables>
            <block type="on_ext" id="Nj(te{x3$e6!~{f@69xR" x="-837" y="-837">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="c%l5fWgvmI!,g`p~4n;j">
                  <field name="oid">hue.0.Bad_Motion_Sensor.presence</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="debug" id="-,p_/V`6t=CYBp)ju!_o">
                  <field name="Severity">info</field>
                  <value name="TEXT">
                    <shadow type="text" id="M2oMY%M)9{AV(Z;_2{qU">
                      <field name="TEXT">Bad Bewegung erkannt</field>
                    </shadow>
                  </value>
                  <next>
                    <block type="controls_if" id="v%91paFmpsDs~u$16I*j">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_compare" id="DGg=BVr/KMI3zYgmWWYK">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="+YT7FtsKaa*oQiK*IAP[">
                              <field name="ATTR">val</field>
                              <field name="OID">hue.0.Bad_Motion_Sensor.presence</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="`vYr(:m9rX@y^Sf,6rhX">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="j?7(Fp{-}?,%mB.fxC^`">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="2z-cxu^{UVe{ePvV=a={">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                          <next>
                            <block type="debug" id="(EUC)LT~MuT5k#W$grTf">
                              <field name="Severity">info</field>
                              <value name="TEXT">
                                <shadow type="text" id="_0$mr||2p`H%wjnCH:_F">
                                  <field name="TEXT">Licht Bad ist an</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="telegram_call" id="9G3^ixErf|^tIt3qU09f">
                                  <field name="INSTANCE"></field>
                                  <field name="LANGUAGE"></field>
                                  <field name="REPEATS">1</field>
                                  <field name="LOG"></field>
                                  <value name="MESSAGE">
                                    <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                      <field name="TEXT">text</field>
                                    </shadow>
                                    <block type="text" id="~#]6!f84PvCz[YEoyF_X">
                                      <field name="TEXT">Licht Bad ist an</field>
                                    </block>
                                  </value>
                                  <value name="USERNAME">
                                    <shadow type="text" id="XNu@~H6!:zs;Z2V%[!h=">
                                      <field name="TEXT"></field>
                                    </shadow>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="timeouts_settimeout" id="Sl7]EUvd]q9gXk%bteLN">
                          <field name="NAME">timeout</field>
                          <field name="DELAY">50</field>
                          <field name="UNIT">sec</field>
                          <statement name="STATEMENT">
                            <block type="control" id="m|A:PzDnfvu95fRcW=_L">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">sonoff.0.bad_deckenlampe.POWER</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="k!b54}gJD~x8VPTW#Wsb">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id="/2njKeH:uVhFB|K6pf*|">
                                  <field name="Severity">info</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="U=bU!6+k/@-4*;I|-ugI">
                                      <field name="TEXT">Licht Bad ist aus</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="telegram_call" id="j:X,|g*{b9g+gkSFibOJ">
                                      <field name="INSTANCE"></field>
                                      <field name="LANGUAGE"></field>
                                      <field name="REPEATS">1</field>
                                      <field name="LOG"></field>
                                      <value name="MESSAGE">
                                        <shadow type="text" id="3IJ49}Fpmth);Noox%}c">
                                          <field name="TEXT">text</field>
                                        </shadow>
                                        <block type="text" id="oau+hb*9lF70aK6[6U[f">
                                          <field name="TEXT">Licht Bad ist aus</field>
                                        </block>
                                      </value>
                                      <value name="USERNAME">
                                        <shadow type="text" id="RO2hx`Qbk$n-B}X`^Ia8">
                                          <field name="TEXT"></field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="timeouts_cleartimeout" id="Zbw-y?`R?n}TqCVr8eS?">
                  <field name="NAME">timeout</field>
                </block>
              </next>
            </block>
          </xml>
          

          Screenshot 2024-08-06 131703.png

          sorry vergessen, mache ich sonst immer!

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

          Das blöde ist nur, das der Roborock Adapter keinen Zustand hat reinigen true oder ähnliches
          Screenshot 2024-08-06 132331.png
          Über das Addon bei Node-Red hatte ich es auch schon versucht, doch dort bekomme ich keine Verbindung und wüsste dann auch nicht ob der Roborock darüber dann zB reinigen true/false ausgibt.

          CodierknechtC Eduard77E 2 Antworten Letzte Antwort
          0
          • AphofisA Aphofis

            Das blöde ist nur, das der Roborock Adapter keinen Zustand hat reinigen true oder ähnliches
            Screenshot 2024-08-06 132331.png
            Über das Addon bei Node-Red hatte ich es auch schon versucht, doch dort bekomme ich keine Verbindung und wüsste dann auch nicht ob der Roborock darüber dann zB reinigen true/false ausgibt.

            CodierknechtC Online
            CodierknechtC Online
            Codierknecht
            Developer Most Active
            schrieb am zuletzt editiert von Codierknecht
            #5

            @aphofis

            1. Das "stop timeout" muss mit in den Trigger. Schau Dir das verlinkte Beispiel an.

            2. Das können nicht alle DP zum Roborock sein. Mein S7 hatte da deutlich mehr.
              9ddf488e-36e3-454c-835f-aeead5c62027-image.png

            "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

            Proxmox 9.1.1 LXC|8 GB|Core i7-6700
            HmIP|ZigBee|Tasmota|Unifi
            Zabbix Certified Specialist
            Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

            1 Antwort Letzte Antwort
            0
            • AphofisA Aphofis

              Das blöde ist nur, das der Roborock Adapter keinen Zustand hat reinigen true oder ähnliches
              Screenshot 2024-08-06 132331.png
              Über das Addon bei Node-Red hatte ich es auch schon versucht, doch dort bekomme ich keine Verbindung und wüsste dann auch nicht ob der Roborock darüber dann zB reinigen true/false ausgibt.

              Eduard77E Online
              Eduard77E Online
              Eduard77
              schrieb am zuletzt editiert von
              #6

              @aphofis
              Ich nutze "MI-Home Vacuum Adapter" und da haben beide meine Roborock (S5 und Q8) ein State DP.

              roborock 1.jpg

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

                @codierknecht
                Ich habe den S6 MaxV
                Ich vermute mal das da irgendwas fehlt.
                Habe im Router die benötigten Ports freigegeben.
                Wenn ich im Adaper Roborock die Mail Adresse weg lasse verbindet er aber hat dann auch nicht alle Daten mit Email gibts keine Verbindung.
                MiHome Vacuum Adapter baut auch keine saubere Verbindung auf.
                Per PC Software kann ich Token auslesen.

                Screenshot 2024-08-06 141520.png

                AphofisA da_WoodyD 2 Antworten Letzte Antwort
                0
                • AphofisA Aphofis

                  @codierknecht
                  Ich habe den S6 MaxV
                  Ich vermute mal das da irgendwas fehlt.
                  Habe im Router die benötigten Ports freigegeben.
                  Wenn ich im Adaper Roborock die Mail Adresse weg lasse verbindet er aber hat dann auch nicht alle Daten mit Email gibts keine Verbindung.
                  MiHome Vacuum Adapter baut auch keine saubere Verbindung auf.
                  Per PC Software kann ich Token auslesen.

                  Screenshot 2024-08-06 141520.png

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

                  und jetzt wirds richtig skuriel, in der Fritze wird der Roborock mit der IP 19.168.0.3 angezeigt.
                  In dem MiHome Vacuum Adapter und in der PC Software Get MiHome Devices wird das Gerät mit der IP 192.168.0.2 angezeigt. In der Fritze ist die .2 nicht belegt.
                  Hab die IP mal ausgelöst in der Fritze und auf die .2 geändert.
                  Roborock Adapter verbindet auch mit Email Adresse aber kommen nicht mehr Daten.
                  MiHome Vacuum Adapter verbindet weiterhin nicht.

                  CodierknechtC 1 Antwort Letzte Antwort
                  0
                  • AphofisA Aphofis

                    @codierknecht
                    Ich habe den S6 MaxV
                    Ich vermute mal das da irgendwas fehlt.
                    Habe im Router die benötigten Ports freigegeben.
                    Wenn ich im Adaper Roborock die Mail Adresse weg lasse verbindet er aber hat dann auch nicht alle Daten mit Email gibts keine Verbindung.
                    MiHome Vacuum Adapter baut auch keine saubere Verbindung auf.
                    Per PC Software kann ich Token auslesen.

                    Screenshot 2024-08-06 141520.png

                    da_WoodyD Online
                    da_WoodyD Online
                    da_Woody
                    schrieb am zuletzt editiert von
                    #9

                    @aphofis sagte in Kleine Lichtsteuerung mit Bewegungsmelder:

                    Habe im Router die benötigten Ports freigegeben.

                    das scheunentor ist geöffnet...
                    ich würd mal alles komplett resetten (adapter deinsten) und neu anfangen.
                    daten per hand eingeben, nicht c/p, da kann schnell eine leerstelle drinnen sein.

                    gruß vom Woody
                    HAPPINESS is not a DESTINATION, it's a WAY of LIFE!

                    1 Antwort Letzte Antwort
                    0
                    • AphofisA Aphofis

                      und jetzt wirds richtig skuriel, in der Fritze wird der Roborock mit der IP 19.168.0.3 angezeigt.
                      In dem MiHome Vacuum Adapter und in der PC Software Get MiHome Devices wird das Gerät mit der IP 192.168.0.2 angezeigt. In der Fritze ist die .2 nicht belegt.
                      Hab die IP mal ausgelöst in der Fritze und auf die .2 geändert.
                      Roborock Adapter verbindet auch mit Email Adresse aber kommen nicht mehr Daten.
                      MiHome Vacuum Adapter verbindet weiterhin nicht.

                      CodierknechtC Online
                      CodierknechtC Online
                      Codierknecht
                      Developer Most Active
                      schrieb am zuletzt editiert von
                      #10

                      @aphofis sagte in Kleine Lichtsteuerung mit Bewegungsmelder:

                      MiHome Vacuum Adapter verbindet weiterhin nicht.

                      Das Problem mit dem Robbi wirst Du wohl eher hier los:
                      https://forum.iobroker.net/topic/67186/neuer-adapter-für-roborock-staubsauger

                      "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

                      Proxmox 9.1.1 LXC|8 GB|Core i7-6700
                      HmIP|ZigBee|Tasmota|Unifi
                      Zabbix Certified Specialist
                      Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

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

                        So habe den Roborock jetzt über MiHome Vacuum Adapter aktiv.
                        Doch wie stelle ich es jetzt an, das die Lichtsteuerung deaktiviert ist wenn die Reinigung aktiv ist.!?

                        [
                            {
                                "id": "2e295f1c879e6af4",
                                "type": "tab",
                                "label": "Küche Bad Motion Timer",
                                "disabled": false,
                                "info": "",
                                "env": []
                            },
                            {
                                "id": "7d4ab0828d82e844",
                                "type": "ioBroker in",
                                "z": "2e295f1c879e6af4",
                                "name": "Bad Motion",
                                "attrname": "payload",
                                "topic": "hue.0.Bad_Motion_Sensor.presence",
                                "payloadType": "value",
                                "onlyack": "",
                                "func": "all",
                                "gap": "",
                                "fireOnStart": "false",
                                "outFormat": "MQTT",
                                "x": 210,
                                "y": 100,
                                "wires": [
                                    [
                                        "0c475f0f9588a3f7"
                                    ]
                                ]
                            },
                            {
                                "id": "c6adf9d10b1da0b1",
                                "type": "ioBroker out",
                                "z": "2e295f1c879e6af4",
                                "name": "Bad Decke",
                                "topic": "sonoff.0.bad_deckenlampe.POWER",
                                "ack": "false",
                                "autoCreate": "false",
                                "stateName": "",
                                "role": "",
                                "payloadType": "",
                                "readonly": "",
                                "stateUnit": "",
                                "stateMin": "",
                                "stateMax": "",
                                "x": 990,
                                "y": 160,
                                "wires": []
                            },
                            {
                                "id": "f2d561282f7163ed",
                                "type": "debug",
                                "z": "2e295f1c879e6af4",
                                "name": "debug 1",
                                "active": true,
                                "tosidebar": true,
                                "console": false,
                                "tostatus": false,
                                "complete": "payload",
                                "targetType": "msg",
                                "statusVal": "",
                                "statusType": "auto",
                                "x": 980,
                                "y": 100,
                                "wires": []
                            },
                            {
                                "id": "0ad0adc9762722c5",
                                "type": "inject",
                                "z": "2e295f1c879e6af4",
                                "name": "",
                                "props": [
                                    {
                                        "p": "payload"
                                    }
                                ],
                                "repeat": "",
                                "crontab": "",
                                "once": false,
                                "onceDelay": 0.1,
                                "topic": "",
                                "payload": "true",
                                "payloadType": "str",
                                "x": 230,
                                "y": 160,
                                "wires": [
                                    [
                                        "0c475f0f9588a3f7"
                                    ]
                                ]
                            },
                            {
                                "id": "d14674cd9f0cb2b4",
                                "type": "trigger",
                                "z": "2e295f1c879e6af4",
                                "name": "",
                                "op1": "true",
                                "op2": "false",
                                "op1type": "bool",
                                "op2type": "bool",
                                "duration": "5",
                                "extend": false,
                                "overrideDelay": true,
                                "units": "s",
                                "reset": "",
                                "bytopic": "all",
                                "topic": "topic",
                                "outputs": 1,
                                "x": 800,
                                "y": 140,
                                "wires": [
                                    [
                                        "f2d561282f7163ed",
                                        "c6adf9d10b1da0b1"
                                    ]
                                ]
                            },
                            {
                                "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": 210,
                                "y": 260,
                                "wires": [
                                    [
                                        "2a11a3084a3bfc87"
                                    ]
                                ]
                            },
                            {
                                "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": 670,
                                "y": 280,
                                "wires": []
                            },
                            {
                                "id": "e2da7a63d3c15673",
                                "type": "debug",
                                "z": "2e295f1c879e6af4",
                                "name": "debug 2",
                                "active": true,
                                "tosidebar": true,
                                "console": false,
                                "tostatus": false,
                                "complete": "payload",
                                "targetType": "msg",
                                "statusVal": "",
                                "statusType": "auto",
                                "x": 620,
                                "y": 220,
                                "wires": []
                            },
                            {
                                "id": "08933b607402d98c",
                                "type": "inject",
                                "z": "2e295f1c879e6af4",
                                "name": "",
                                "props": [
                                    {
                                        "p": "payload"
                                    }
                                ],
                                "repeat": "",
                                "crontab": "",
                                "once": false,
                                "onceDelay": 0.1,
                                "topic": "",
                                "payload": "true",
                                "payloadType": "str",
                                "x": 230,
                                "y": 320,
                                "wires": [
                                    [
                                        "2a11a3084a3bfc87"
                                    ]
                                ]
                            },
                            {
                                "id": "2a11a3084a3bfc87",
                                "type": "trigger",
                                "z": "2e295f1c879e6af4",
                                "name": "",
                                "op1": "true",
                                "op2": "false",
                                "op1type": "bool",
                                "op2type": "bool",
                                "duration": "5",
                                "extend": false,
                                "overrideDelay": true,
                                "units": "s",
                                "reset": "",
                                "bytopic": "all",
                                "topic": "topic",
                                "outputs": 1,
                                "x": 400,
                                "y": 300,
                                "wires": [
                                    [
                                        "e2da7a63d3c15673",
                                        "f34957801db99988",
                                        "3980458ba6d298ac",
                                        "a7ac79dac573570f"
                                    ]
                                ]
                            },
                            {
                                "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": 680,
                                "y": 340,
                                "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": 630,
                                "y": 400,
                                "wires": []
                            },
                            {
                                "id": "0c475f0f9588a3f7",
                                "type": "ioBroker get",
                                "z": "2e295f1c879e6af4",
                                "name": "Reinigung Status",
                                "topic": "mihome-vacuum.0.control.clean_home",
                                "attrname": "payload",
                                "payloadType": "value",
                                "errOnInvalidState": "nothing",
                                "x": 410,
                                "y": 140,
                                "wires": [
                                    [
                                        "f7a7cd85e1339dc9"
                                    ]
                                ]
                            },
                            {
                                "id": "cf5f4179cbb90024",
                                "type": "trigger",
                                "z": "2e295f1c879e6af4",
                                "name": "",
                                "op1": "1",
                                "op2": "0",
                                "op1type": "val",
                                "op2type": "val",
                                "duration": "250",
                                "extend": "false",
                                "overrideDelay": "false",
                                "units": "ms",
                                "reset": "",
                                "bytopic": "all",
                                "topic": "topic",
                                "outputs": 1,
                                "x": 340,
                                "y": 520,
                                "wires": [
                                    []
                                ]
                            },
                            {
                                "id": "f7a7cd85e1339dc9",
                                "type": "toggle",
                                "z": "2e295f1c879e6af4",
                                "name": "",
                                "onOffTopic": "",
                                "onValue": "true",
                                "onType": "str",
                                "offValue": "false",
                                "offType": "str",
                                "toggleTopic": "",
                                "toggleValue": "",
                                "toggleType": "str",
                                "passOnOff": "",
                                "x": 610,
                                "y": 140,
                                "wires": [
                                    [
                                        "d14674cd9f0cb2b4"
                                    ]
                                ]
                            }
                        ]
                        

                        Screenshot 2024-08-11 210907.png

                        Wenn der Roborock Robotersauger beim arbeiten ist, Hat er den Status "5" sprich wenn Roborock den wert 5 hat darf das Badlicht nicht angesprochen werden trotz Bewegung.
                        hat der Status Roborock irgend einen anderen Wert dann kann das Licht per Bewegungsmelder eingeschaltet werden und irgenwie geht das licht immer wieder aus trotz das der bewegungsmelder bewegung erkennt. geht das Licht aus und auch ganz lange nicht mehr an als ob der Trigger nicht auf Bewegung reagiert.

                        CodierknechtC mickymM paul53P 3 Antworten Letzte Antwort
                        0
                        • AphofisA Aphofis

                          So habe den Roborock jetzt über MiHome Vacuum Adapter aktiv.
                          Doch wie stelle ich es jetzt an, das die Lichtsteuerung deaktiviert ist wenn die Reinigung aktiv ist.!?

                          [
                              {
                                  "id": "2e295f1c879e6af4",
                                  "type": "tab",
                                  "label": "Küche Bad Motion Timer",
                                  "disabled": false,
                                  "info": "",
                                  "env": []
                              },
                              {
                                  "id": "7d4ab0828d82e844",
                                  "type": "ioBroker in",
                                  "z": "2e295f1c879e6af4",
                                  "name": "Bad Motion",
                                  "attrname": "payload",
                                  "topic": "hue.0.Bad_Motion_Sensor.presence",
                                  "payloadType": "value",
                                  "onlyack": "",
                                  "func": "all",
                                  "gap": "",
                                  "fireOnStart": "false",
                                  "outFormat": "MQTT",
                                  "x": 210,
                                  "y": 100,
                                  "wires": [
                                      [
                                          "0c475f0f9588a3f7"
                                      ]
                                  ]
                              },
                              {
                                  "id": "c6adf9d10b1da0b1",
                                  "type": "ioBroker out",
                                  "z": "2e295f1c879e6af4",
                                  "name": "Bad Decke",
                                  "topic": "sonoff.0.bad_deckenlampe.POWER",
                                  "ack": "false",
                                  "autoCreate": "false",
                                  "stateName": "",
                                  "role": "",
                                  "payloadType": "",
                                  "readonly": "",
                                  "stateUnit": "",
                                  "stateMin": "",
                                  "stateMax": "",
                                  "x": 990,
                                  "y": 160,
                                  "wires": []
                              },
                              {
                                  "id": "f2d561282f7163ed",
                                  "type": "debug",
                                  "z": "2e295f1c879e6af4",
                                  "name": "debug 1",
                                  "active": true,
                                  "tosidebar": true,
                                  "console": false,
                                  "tostatus": false,
                                  "complete": "payload",
                                  "targetType": "msg",
                                  "statusVal": "",
                                  "statusType": "auto",
                                  "x": 980,
                                  "y": 100,
                                  "wires": []
                              },
                              {
                                  "id": "0ad0adc9762722c5",
                                  "type": "inject",
                                  "z": "2e295f1c879e6af4",
                                  "name": "",
                                  "props": [
                                      {
                                          "p": "payload"
                                      }
                                  ],
                                  "repeat": "",
                                  "crontab": "",
                                  "once": false,
                                  "onceDelay": 0.1,
                                  "topic": "",
                                  "payload": "true",
                                  "payloadType": "str",
                                  "x": 230,
                                  "y": 160,
                                  "wires": [
                                      [
                                          "0c475f0f9588a3f7"
                                      ]
                                  ]
                              },
                              {
                                  "id": "d14674cd9f0cb2b4",
                                  "type": "trigger",
                                  "z": "2e295f1c879e6af4",
                                  "name": "",
                                  "op1": "true",
                                  "op2": "false",
                                  "op1type": "bool",
                                  "op2type": "bool",
                                  "duration": "5",
                                  "extend": false,
                                  "overrideDelay": true,
                                  "units": "s",
                                  "reset": "",
                                  "bytopic": "all",
                                  "topic": "topic",
                                  "outputs": 1,
                                  "x": 800,
                                  "y": 140,
                                  "wires": [
                                      [
                                          "f2d561282f7163ed",
                                          "c6adf9d10b1da0b1"
                                      ]
                                  ]
                              },
                              {
                                  "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": 210,
                                  "y": 260,
                                  "wires": [
                                      [
                                          "2a11a3084a3bfc87"
                                      ]
                                  ]
                              },
                              {
                                  "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": 670,
                                  "y": 280,
                                  "wires": []
                              },
                              {
                                  "id": "e2da7a63d3c15673",
                                  "type": "debug",
                                  "z": "2e295f1c879e6af4",
                                  "name": "debug 2",
                                  "active": true,
                                  "tosidebar": true,
                                  "console": false,
                                  "tostatus": false,
                                  "complete": "payload",
                                  "targetType": "msg",
                                  "statusVal": "",
                                  "statusType": "auto",
                                  "x": 620,
                                  "y": 220,
                                  "wires": []
                              },
                              {
                                  "id": "08933b607402d98c",
                                  "type": "inject",
                                  "z": "2e295f1c879e6af4",
                                  "name": "",
                                  "props": [
                                      {
                                          "p": "payload"
                                      }
                                  ],
                                  "repeat": "",
                                  "crontab": "",
                                  "once": false,
                                  "onceDelay": 0.1,
                                  "topic": "",
                                  "payload": "true",
                                  "payloadType": "str",
                                  "x": 230,
                                  "y": 320,
                                  "wires": [
                                      [
                                          "2a11a3084a3bfc87"
                                      ]
                                  ]
                              },
                              {
                                  "id": "2a11a3084a3bfc87",
                                  "type": "trigger",
                                  "z": "2e295f1c879e6af4",
                                  "name": "",
                                  "op1": "true",
                                  "op2": "false",
                                  "op1type": "bool",
                                  "op2type": "bool",
                                  "duration": "5",
                                  "extend": false,
                                  "overrideDelay": true,
                                  "units": "s",
                                  "reset": "",
                                  "bytopic": "all",
                                  "topic": "topic",
                                  "outputs": 1,
                                  "x": 400,
                                  "y": 300,
                                  "wires": [
                                      [
                                          "e2da7a63d3c15673",
                                          "f34957801db99988",
                                          "3980458ba6d298ac",
                                          "a7ac79dac573570f"
                                      ]
                                  ]
                              },
                              {
                                  "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": 680,
                                  "y": 340,
                                  "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": 630,
                                  "y": 400,
                                  "wires": []
                              },
                              {
                                  "id": "0c475f0f9588a3f7",
                                  "type": "ioBroker get",
                                  "z": "2e295f1c879e6af4",
                                  "name": "Reinigung Status",
                                  "topic": "mihome-vacuum.0.control.clean_home",
                                  "attrname": "payload",
                                  "payloadType": "value",
                                  "errOnInvalidState": "nothing",
                                  "x": 410,
                                  "y": 140,
                                  "wires": [
                                      [
                                          "f7a7cd85e1339dc9"
                                      ]
                                  ]
                              },
                              {
                                  "id": "cf5f4179cbb90024",
                                  "type": "trigger",
                                  "z": "2e295f1c879e6af4",
                                  "name": "",
                                  "op1": "1",
                                  "op2": "0",
                                  "op1type": "val",
                                  "op2type": "val",
                                  "duration": "250",
                                  "extend": "false",
                                  "overrideDelay": "false",
                                  "units": "ms",
                                  "reset": "",
                                  "bytopic": "all",
                                  "topic": "topic",
                                  "outputs": 1,
                                  "x": 340,
                                  "y": 520,
                                  "wires": [
                                      []
                                  ]
                              },
                              {
                                  "id": "f7a7cd85e1339dc9",
                                  "type": "toggle",
                                  "z": "2e295f1c879e6af4",
                                  "name": "",
                                  "onOffTopic": "",
                                  "onValue": "true",
                                  "onType": "str",
                                  "offValue": "false",
                                  "offType": "str",
                                  "toggleTopic": "",
                                  "toggleValue": "",
                                  "toggleType": "str",
                                  "passOnOff": "",
                                  "x": 610,
                                  "y": 140,
                                  "wires": [
                                      [
                                          "d14674cd9f0cb2b4"
                                      ]
                                  ]
                              }
                          ]
                          

                          Screenshot 2024-08-11 210907.png

                          Wenn der Roborock Robotersauger beim arbeiten ist, Hat er den Status "5" sprich wenn Roborock den wert 5 hat darf das Badlicht nicht angesprochen werden trotz Bewegung.
                          hat der Status Roborock irgend einen anderen Wert dann kann das Licht per Bewegungsmelder eingeschaltet werden und irgenwie geht das licht immer wieder aus trotz das der bewegungsmelder bewegung erkennt. geht das Licht aus und auch ganz lange nicht mehr an als ob der Trigger nicht auf Bewegung reagiert.

                          CodierknechtC Online
                          CodierknechtC Online
                          Codierknecht
                          Developer Most Active
                          schrieb am zuletzt editiert von
                          #12

                          @aphofis
                          Bei NodeRed bin ich raus.
                          Vielleicht kann da @mickym weiterhelfen?

                          "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Martin Fowler, "Refactoring")

                          Proxmox 9.1.1 LXC|8 GB|Core i7-6700
                          HmIP|ZigBee|Tasmota|Unifi
                          Zabbix Certified Specialist
                          Konnte ich Dir helfen? Dann benutze bitte das Voting unten rechts im Beitrag

                          AphofisA 1 Antwort Letzte Antwort
                          0
                          • AphofisA Aphofis

                            So habe den Roborock jetzt über MiHome Vacuum Adapter aktiv.
                            Doch wie stelle ich es jetzt an, das die Lichtsteuerung deaktiviert ist wenn die Reinigung aktiv ist.!?

                            [
                                {
                                    "id": "2e295f1c879e6af4",
                                    "type": "tab",
                                    "label": "Küche Bad Motion Timer",
                                    "disabled": false,
                                    "info": "",
                                    "env": []
                                },
                                {
                                    "id": "7d4ab0828d82e844",
                                    "type": "ioBroker in",
                                    "z": "2e295f1c879e6af4",
                                    "name": "Bad Motion",
                                    "attrname": "payload",
                                    "topic": "hue.0.Bad_Motion_Sensor.presence",
                                    "payloadType": "value",
                                    "onlyack": "",
                                    "func": "all",
                                    "gap": "",
                                    "fireOnStart": "false",
                                    "outFormat": "MQTT",
                                    "x": 210,
                                    "y": 100,
                                    "wires": [
                                        [
                                            "0c475f0f9588a3f7"
                                        ]
                                    ]
                                },
                                {
                                    "id": "c6adf9d10b1da0b1",
                                    "type": "ioBroker out",
                                    "z": "2e295f1c879e6af4",
                                    "name": "Bad Decke",
                                    "topic": "sonoff.0.bad_deckenlampe.POWER",
                                    "ack": "false",
                                    "autoCreate": "false",
                                    "stateName": "",
                                    "role": "",
                                    "payloadType": "",
                                    "readonly": "",
                                    "stateUnit": "",
                                    "stateMin": "",
                                    "stateMax": "",
                                    "x": 990,
                                    "y": 160,
                                    "wires": []
                                },
                                {
                                    "id": "f2d561282f7163ed",
                                    "type": "debug",
                                    "z": "2e295f1c879e6af4",
                                    "name": "debug 1",
                                    "active": true,
                                    "tosidebar": true,
                                    "console": false,
                                    "tostatus": false,
                                    "complete": "payload",
                                    "targetType": "msg",
                                    "statusVal": "",
                                    "statusType": "auto",
                                    "x": 980,
                                    "y": 100,
                                    "wires": []
                                },
                                {
                                    "id": "0ad0adc9762722c5",
                                    "type": "inject",
                                    "z": "2e295f1c879e6af4",
                                    "name": "",
                                    "props": [
                                        {
                                            "p": "payload"
                                        }
                                    ],
                                    "repeat": "",
                                    "crontab": "",
                                    "once": false,
                                    "onceDelay": 0.1,
                                    "topic": "",
                                    "payload": "true",
                                    "payloadType": "str",
                                    "x": 230,
                                    "y": 160,
                                    "wires": [
                                        [
                                            "0c475f0f9588a3f7"
                                        ]
                                    ]
                                },
                                {
                                    "id": "d14674cd9f0cb2b4",
                                    "type": "trigger",
                                    "z": "2e295f1c879e6af4",
                                    "name": "",
                                    "op1": "true",
                                    "op2": "false",
                                    "op1type": "bool",
                                    "op2type": "bool",
                                    "duration": "5",
                                    "extend": false,
                                    "overrideDelay": true,
                                    "units": "s",
                                    "reset": "",
                                    "bytopic": "all",
                                    "topic": "topic",
                                    "outputs": 1,
                                    "x": 800,
                                    "y": 140,
                                    "wires": [
                                        [
                                            "f2d561282f7163ed",
                                            "c6adf9d10b1da0b1"
                                        ]
                                    ]
                                },
                                {
                                    "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": 210,
                                    "y": 260,
                                    "wires": [
                                        [
                                            "2a11a3084a3bfc87"
                                        ]
                                    ]
                                },
                                {
                                    "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": 670,
                                    "y": 280,
                                    "wires": []
                                },
                                {
                                    "id": "e2da7a63d3c15673",
                                    "type": "debug",
                                    "z": "2e295f1c879e6af4",
                                    "name": "debug 2",
                                    "active": true,
                                    "tosidebar": true,
                                    "console": false,
                                    "tostatus": false,
                                    "complete": "payload",
                                    "targetType": "msg",
                                    "statusVal": "",
                                    "statusType": "auto",
                                    "x": 620,
                                    "y": 220,
                                    "wires": []
                                },
                                {
                                    "id": "08933b607402d98c",
                                    "type": "inject",
                                    "z": "2e295f1c879e6af4",
                                    "name": "",
                                    "props": [
                                        {
                                            "p": "payload"
                                        }
                                    ],
                                    "repeat": "",
                                    "crontab": "",
                                    "once": false,
                                    "onceDelay": 0.1,
                                    "topic": "",
                                    "payload": "true",
                                    "payloadType": "str",
                                    "x": 230,
                                    "y": 320,
                                    "wires": [
                                        [
                                            "2a11a3084a3bfc87"
                                        ]
                                    ]
                                },
                                {
                                    "id": "2a11a3084a3bfc87",
                                    "type": "trigger",
                                    "z": "2e295f1c879e6af4",
                                    "name": "",
                                    "op1": "true",
                                    "op2": "false",
                                    "op1type": "bool",
                                    "op2type": "bool",
                                    "duration": "5",
                                    "extend": false,
                                    "overrideDelay": true,
                                    "units": "s",
                                    "reset": "",
                                    "bytopic": "all",
                                    "topic": "topic",
                                    "outputs": 1,
                                    "x": 400,
                                    "y": 300,
                                    "wires": [
                                        [
                                            "e2da7a63d3c15673",
                                            "f34957801db99988",
                                            "3980458ba6d298ac",
                                            "a7ac79dac573570f"
                                        ]
                                    ]
                                },
                                {
                                    "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": 680,
                                    "y": 340,
                                    "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": 630,
                                    "y": 400,
                                    "wires": []
                                },
                                {
                                    "id": "0c475f0f9588a3f7",
                                    "type": "ioBroker get",
                                    "z": "2e295f1c879e6af4",
                                    "name": "Reinigung Status",
                                    "topic": "mihome-vacuum.0.control.clean_home",
                                    "attrname": "payload",
                                    "payloadType": "value",
                                    "errOnInvalidState": "nothing",
                                    "x": 410,
                                    "y": 140,
                                    "wires": [
                                        [
                                            "f7a7cd85e1339dc9"
                                        ]
                                    ]
                                },
                                {
                                    "id": "cf5f4179cbb90024",
                                    "type": "trigger",
                                    "z": "2e295f1c879e6af4",
                                    "name": "",
                                    "op1": "1",
                                    "op2": "0",
                                    "op1type": "val",
                                    "op2type": "val",
                                    "duration": "250",
                                    "extend": "false",
                                    "overrideDelay": "false",
                                    "units": "ms",
                                    "reset": "",
                                    "bytopic": "all",
                                    "topic": "topic",
                                    "outputs": 1,
                                    "x": 340,
                                    "y": 520,
                                    "wires": [
                                        []
                                    ]
                                },
                                {
                                    "id": "f7a7cd85e1339dc9",
                                    "type": "toggle",
                                    "z": "2e295f1c879e6af4",
                                    "name": "",
                                    "onOffTopic": "",
                                    "onValue": "true",
                                    "onType": "str",
                                    "offValue": "false",
                                    "offType": "str",
                                    "toggleTopic": "",
                                    "toggleValue": "",
                                    "toggleType": "str",
                                    "passOnOff": "",
                                    "x": 610,
                                    "y": 140,
                                    "wires": [
                                        [
                                            "d14674cd9f0cb2b4"
                                        ]
                                    ]
                                }
                            ]
                            

                            Screenshot 2024-08-11 210907.png

                            Wenn der Roborock Robotersauger beim arbeiten ist, Hat er den Status "5" sprich wenn Roborock den wert 5 hat darf das Badlicht nicht angesprochen werden trotz Bewegung.
                            hat der Status Roborock irgend einen anderen Wert dann kann das Licht per Bewegungsmelder eingeschaltet werden und irgenwie geht das licht immer wieder aus trotz das der bewegungsmelder bewegung erkennt. geht das Licht aus und auch ganz lange nicht mehr an als ob der Trigger nicht auf Bewegung reagiert.

                            mickymM Online
                            mickymM Online
                            mickym
                            Most Active
                            schrieb am zuletzt editiert von mickym
                            #13

                            @aphofis Für so was brauch man keine toggle Node- Auch hier gilt: NodeRed bringt in den meisen Fällen das nötige Rüstzeug bereist mit..

                            Für alle Bedingungen nimmt man einen Switch. Es ist richtig, dass der Bewegungsmelder triggert. Ausserdem würde ich nicht per Trigger das Licht wieder ausschalten, sondern das soll der BWM am Besten selbst machen. Sprich wenn der BWM false sendet dann soll er immer ausschalten, schließlich kann sich Dein Staubi ja in einem anderen Raum befinden.

                            Ich sage also bei false soll er immer ausschalten bei True nur dann einschalten wenn der Staubi nicht arbeitet. Damit der Stautus des Staubi die payload nicht überschriebt, setze ich den Staubi auf ein anderes Attribut des Nachrichtenobjektes

                            Als Erstes weisen wir also dem Staubi in der get Node einen eigenen Status zu, sodass wir die payload des BWM nicht überschreiben:

                            ad5063ca-7ac7-4a71-97ef-db4c66f0f3c7-image.png

                            Dann lassen wir den BWM aus und einschalten und keinen trigger. Ich gehe mal davon aus, dass der BWM true/false liefert und damit auch das Licht schalten kann. Ausschalten darf der BWM also immer, einschalten nur wenn der Roborok nicht den Status 5 hat.

                            da79576b-36f7-477e-aefe-3bbc20da9e75-image.png

                            Hier der Flow zum Import:

                            [
                               {
                                   "id": "0c475f0f9588a3f7",
                                   "type": "ioBroker get",
                                   "z": "2e295f1c879e6af4",
                                   "name": "Reinigung Status",
                                   "topic": "mihome-vacuum.0.control.clean_home",
                                   "attrname": "roborock",
                                   "payloadType": "value",
                                   "errOnInvalidState": "nothing",
                                   "x": 590,
                                   "y": 240,
                                   "wires": [
                                       [
                                           "a48d968fca802b9d"
                                       ]
                                   ]
                               },
                               {
                                   "id": "7d4ab0828d82e844",
                                   "type": "ioBroker in",
                                   "z": "2e295f1c879e6af4",
                                   "name": "Bad Motion",
                                   "attrname": "payload",
                                   "topic": "hue.0.Bad_Motion_Sensor.presence",
                                   "payloadType": "value",
                                   "onlyack": "",
                                   "func": "all",
                                   "gap": "",
                                   "fireOnStart": "false",
                                   "outFormat": "MQTT",
                                   "x": 150,
                                   "y": 240,
                                   "wires": [
                                       [
                                           "94b97498ad6db67d"
                                       ]
                                   ]
                               },
                               {
                                   "id": "c6adf9d10b1da0b1",
                                   "type": "ioBroker out",
                                   "z": "2e295f1c879e6af4",
                                   "name": "Bad Decke",
                                   "topic": "sonoff.0.bad_deckenlampe.POWER",
                                   "ack": "false",
                                   "autoCreate": "false",
                                   "stateName": "",
                                   "role": "",
                                   "payloadType": "",
                                   "readonly": "",
                                   "stateUnit": "",
                                   "stateMin": "",
                                   "stateMax": "",
                                   "x": 1090,
                                   "y": 280,
                                   "wires": []
                               },
                               {
                                   "id": "f2d561282f7163ed",
                                   "type": "debug",
                                   "z": "2e295f1c879e6af4",
                                   "name": "debug 1",
                                   "active": true,
                                   "tosidebar": true,
                                   "console": false,
                                   "tostatus": false,
                                   "complete": "payload",
                                   "targetType": "msg",
                                   "statusVal": "",
                                   "statusType": "auto",
                                   "x": 1060,
                                   "y": 240,
                                   "wires": []
                               },
                               {
                                   "id": "0ad0adc9762722c5",
                                   "type": "inject",
                                   "z": "2e295f1c879e6af4",
                                   "name": "",
                                   "props": [
                                       {
                                           "p": "payload"
                                       }
                                   ],
                                   "repeat": "",
                                   "crontab": "",
                                   "once": false,
                                   "onceDelay": 0.1,
                                   "topic": "",
                                   "payload": "true",
                                   "payloadType": "str",
                                   "x": 150,
                                   "y": 300,
                                   "wires": [
                                       [
                                           "94b97498ad6db67d"
                                       ]
                                   ]
                               },
                               {
                                   "id": "94b97498ad6db67d",
                                   "type": "switch",
                                   "z": "2e295f1c879e6af4",
                                   "name": "Bewegung erkannt?",
                                   "property": "payload",
                                   "propertyType": "msg",
                                   "rules": [
                                       {
                                           "t": "true"
                                       },
                                       {
                                           "t": "false"
                                       }
                                   ],
                                   "checkall": "true",
                                   "repair": false,
                                   "outputs": 2,
                                   "x": 360,
                                   "y": 280,
                                   "wires": [
                                       [
                                           "0c475f0f9588a3f7"
                                       ],
                                       [
                                           "bf71b4df498583c6"
                                       ]
                                   ]
                               },
                               {
                                   "id": "a48d968fca802b9d",
                                   "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": 830,
                                   "y": 240,
                                   "wires": [
                                       [
                                           "bf71b4df498583c6"
                                       ]
                                   ]
                               },
                               {
                                   "id": "bf71b4df498583c6",
                                   "type": "junction",
                                   "z": "2e295f1c879e6af4",
                                   "x": 960,
                                   "y": 280,
                                   "wires": [
                                       [
                                           "c6adf9d10b1da0b1",
                                           "f2d561282f7163ed"
                                       ]
                                   ]
                               }
                            ]
                            

                            Wenn Du willst, dass das false Signal erst nach 1 Minute Verzögerung ausschaltet, dann kannst Du einen entsprechenden Trigger in den false setzen und durch ein true zurücksetzen. Ich modifiziere das noch schnell.

                            2d9695e0-05fe-4f7b-af8e-870ddc89e793-image.png

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

                            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.

                            mickymM AphofisA 2 Antworten Letzte Antwort
                            1
                            • mickymM mickym

                              @aphofis Für so was brauch man keine toggle Node- Auch hier gilt: NodeRed bringt in den meisen Fällen das nötige Rüstzeug bereist mit..

                              Für alle Bedingungen nimmt man einen Switch. Es ist richtig, dass der Bewegungsmelder triggert. Ausserdem würde ich nicht per Trigger das Licht wieder ausschalten, sondern das soll der BWM am Besten selbst machen. Sprich wenn der BWM false sendet dann soll er immer ausschalten, schließlich kann sich Dein Staubi ja in einem anderen Raum befinden.

                              Ich sage also bei false soll er immer ausschalten bei True nur dann einschalten wenn der Staubi nicht arbeitet. Damit der Stautus des Staubi die payload nicht überschriebt, setze ich den Staubi auf ein anderes Attribut des Nachrichtenobjektes

                              Als Erstes weisen wir also dem Staubi in der get Node einen eigenen Status zu, sodass wir die payload des BWM nicht überschreiben:

                              ad5063ca-7ac7-4a71-97ef-db4c66f0f3c7-image.png

                              Dann lassen wir den BWM aus und einschalten und keinen trigger. Ich gehe mal davon aus, dass der BWM true/false liefert und damit auch das Licht schalten kann. Ausschalten darf der BWM also immer, einschalten nur wenn der Roborok nicht den Status 5 hat.

                              da79576b-36f7-477e-aefe-3bbc20da9e75-image.png

                              Hier der Flow zum Import:

                              [
                                 {
                                     "id": "0c475f0f9588a3f7",
                                     "type": "ioBroker get",
                                     "z": "2e295f1c879e6af4",
                                     "name": "Reinigung Status",
                                     "topic": "mihome-vacuum.0.control.clean_home",
                                     "attrname": "roborock",
                                     "payloadType": "value",
                                     "errOnInvalidState": "nothing",
                                     "x": 590,
                                     "y": 240,
                                     "wires": [
                                         [
                                             "a48d968fca802b9d"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "7d4ab0828d82e844",
                                     "type": "ioBroker in",
                                     "z": "2e295f1c879e6af4",
                                     "name": "Bad Motion",
                                     "attrname": "payload",
                                     "topic": "hue.0.Bad_Motion_Sensor.presence",
                                     "payloadType": "value",
                                     "onlyack": "",
                                     "func": "all",
                                     "gap": "",
                                     "fireOnStart": "false",
                                     "outFormat": "MQTT",
                                     "x": 150,
                                     "y": 240,
                                     "wires": [
                                         [
                                             "94b97498ad6db67d"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "c6adf9d10b1da0b1",
                                     "type": "ioBroker out",
                                     "z": "2e295f1c879e6af4",
                                     "name": "Bad Decke",
                                     "topic": "sonoff.0.bad_deckenlampe.POWER",
                                     "ack": "false",
                                     "autoCreate": "false",
                                     "stateName": "",
                                     "role": "",
                                     "payloadType": "",
                                     "readonly": "",
                                     "stateUnit": "",
                                     "stateMin": "",
                                     "stateMax": "",
                                     "x": 1090,
                                     "y": 280,
                                     "wires": []
                                 },
                                 {
                                     "id": "f2d561282f7163ed",
                                     "type": "debug",
                                     "z": "2e295f1c879e6af4",
                                     "name": "debug 1",
                                     "active": true,
                                     "tosidebar": true,
                                     "console": false,
                                     "tostatus": false,
                                     "complete": "payload",
                                     "targetType": "msg",
                                     "statusVal": "",
                                     "statusType": "auto",
                                     "x": 1060,
                                     "y": 240,
                                     "wires": []
                                 },
                                 {
                                     "id": "0ad0adc9762722c5",
                                     "type": "inject",
                                     "z": "2e295f1c879e6af4",
                                     "name": "",
                                     "props": [
                                         {
                                             "p": "payload"
                                         }
                                     ],
                                     "repeat": "",
                                     "crontab": "",
                                     "once": false,
                                     "onceDelay": 0.1,
                                     "topic": "",
                                     "payload": "true",
                                     "payloadType": "str",
                                     "x": 150,
                                     "y": 300,
                                     "wires": [
                                         [
                                             "94b97498ad6db67d"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "94b97498ad6db67d",
                                     "type": "switch",
                                     "z": "2e295f1c879e6af4",
                                     "name": "Bewegung erkannt?",
                                     "property": "payload",
                                     "propertyType": "msg",
                                     "rules": [
                                         {
                                             "t": "true"
                                         },
                                         {
                                             "t": "false"
                                         }
                                     ],
                                     "checkall": "true",
                                     "repair": false,
                                     "outputs": 2,
                                     "x": 360,
                                     "y": 280,
                                     "wires": [
                                         [
                                             "0c475f0f9588a3f7"
                                         ],
                                         [
                                             "bf71b4df498583c6"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "a48d968fca802b9d",
                                     "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": 830,
                                     "y": 240,
                                     "wires": [
                                         [
                                             "bf71b4df498583c6"
                                         ]
                                     ]
                                 },
                                 {
                                     "id": "bf71b4df498583c6",
                                     "type": "junction",
                                     "z": "2e295f1c879e6af4",
                                     "x": 960,
                                     "y": 280,
                                     "wires": [
                                         [
                                             "c6adf9d10b1da0b1",
                                             "f2d561282f7163ed"
                                         ]
                                     ]
                                 }
                              ]
                              

                              Wenn Du willst, dass das false Signal erst nach 1 Minute Verzögerung ausschaltet, dann kannst Du einen entsprechenden Trigger in den false setzen und durch ein true zurücksetzen. Ich modifiziere das noch schnell.

                              2d9695e0-05fe-4f7b-af8e-870ddc89e793-image.png

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

                              mickymM Online
                              mickymM Online
                              mickym
                              Most Active
                              schrieb am zuletzt editiert von mickym
                              #14

                              @Aphofis wenn du nicht willst, dass der BWM false sendet, dann hängst du den trigger node in den true Asr und löschst den false Ast in der 1. switchNode. In diesem Fall vereinfacht sich der Flow wie folgt:

                              20077154-3f7f-41c0-ba2a-86d68beadc3b-image.png
                              Hier zum Import:

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

                              Also nimm diesen Flow - einfach ist immer am Besten - hier ignorierst Du die false Nachrichten des Bewegungsmelders.

                              EDIT: Flow (Trigger Node noch korrigiert siehe anderer Thread).

                              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 Aphofis

                                So habe den Roborock jetzt über MiHome Vacuum Adapter aktiv.
                                Doch wie stelle ich es jetzt an, das die Lichtsteuerung deaktiviert ist wenn die Reinigung aktiv ist.!?

                                [
                                    {
                                        "id": "2e295f1c879e6af4",
                                        "type": "tab",
                                        "label": "Küche Bad Motion Timer",
                                        "disabled": false,
                                        "info": "",
                                        "env": []
                                    },
                                    {
                                        "id": "7d4ab0828d82e844",
                                        "type": "ioBroker in",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Bad Motion",
                                        "attrname": "payload",
                                        "topic": "hue.0.Bad_Motion_Sensor.presence",
                                        "payloadType": "value",
                                        "onlyack": "",
                                        "func": "all",
                                        "gap": "",
                                        "fireOnStart": "false",
                                        "outFormat": "MQTT",
                                        "x": 210,
                                        "y": 100,
                                        "wires": [
                                            [
                                                "0c475f0f9588a3f7"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "c6adf9d10b1da0b1",
                                        "type": "ioBroker out",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Bad Decke",
                                        "topic": "sonoff.0.bad_deckenlampe.POWER",
                                        "ack": "false",
                                        "autoCreate": "false",
                                        "stateName": "",
                                        "role": "",
                                        "payloadType": "",
                                        "readonly": "",
                                        "stateUnit": "",
                                        "stateMin": "",
                                        "stateMax": "",
                                        "x": 990,
                                        "y": 160,
                                        "wires": []
                                    },
                                    {
                                        "id": "f2d561282f7163ed",
                                        "type": "debug",
                                        "z": "2e295f1c879e6af4",
                                        "name": "debug 1",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "payload",
                                        "targetType": "msg",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 980,
                                        "y": 100,
                                        "wires": []
                                    },
                                    {
                                        "id": "0ad0adc9762722c5",
                                        "type": "inject",
                                        "z": "2e295f1c879e6af4",
                                        "name": "",
                                        "props": [
                                            {
                                                "p": "payload"
                                            }
                                        ],
                                        "repeat": "",
                                        "crontab": "",
                                        "once": false,
                                        "onceDelay": 0.1,
                                        "topic": "",
                                        "payload": "true",
                                        "payloadType": "str",
                                        "x": 230,
                                        "y": 160,
                                        "wires": [
                                            [
                                                "0c475f0f9588a3f7"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "d14674cd9f0cb2b4",
                                        "type": "trigger",
                                        "z": "2e295f1c879e6af4",
                                        "name": "",
                                        "op1": "true",
                                        "op2": "false",
                                        "op1type": "bool",
                                        "op2type": "bool",
                                        "duration": "5",
                                        "extend": false,
                                        "overrideDelay": true,
                                        "units": "s",
                                        "reset": "",
                                        "bytopic": "all",
                                        "topic": "topic",
                                        "outputs": 1,
                                        "x": 800,
                                        "y": 140,
                                        "wires": [
                                            [
                                                "f2d561282f7163ed",
                                                "c6adf9d10b1da0b1"
                                            ]
                                        ]
                                    },
                                    {
                                        "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": 210,
                                        "y": 260,
                                        "wires": [
                                            [
                                                "2a11a3084a3bfc87"
                                            ]
                                        ]
                                    },
                                    {
                                        "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": 670,
                                        "y": 280,
                                        "wires": []
                                    },
                                    {
                                        "id": "e2da7a63d3c15673",
                                        "type": "debug",
                                        "z": "2e295f1c879e6af4",
                                        "name": "debug 2",
                                        "active": true,
                                        "tosidebar": true,
                                        "console": false,
                                        "tostatus": false,
                                        "complete": "payload",
                                        "targetType": "msg",
                                        "statusVal": "",
                                        "statusType": "auto",
                                        "x": 620,
                                        "y": 220,
                                        "wires": []
                                    },
                                    {
                                        "id": "08933b607402d98c",
                                        "type": "inject",
                                        "z": "2e295f1c879e6af4",
                                        "name": "",
                                        "props": [
                                            {
                                                "p": "payload"
                                            }
                                        ],
                                        "repeat": "",
                                        "crontab": "",
                                        "once": false,
                                        "onceDelay": 0.1,
                                        "topic": "",
                                        "payload": "true",
                                        "payloadType": "str",
                                        "x": 230,
                                        "y": 320,
                                        "wires": [
                                            [
                                                "2a11a3084a3bfc87"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "2a11a3084a3bfc87",
                                        "type": "trigger",
                                        "z": "2e295f1c879e6af4",
                                        "name": "",
                                        "op1": "true",
                                        "op2": "false",
                                        "op1type": "bool",
                                        "op2type": "bool",
                                        "duration": "5",
                                        "extend": false,
                                        "overrideDelay": true,
                                        "units": "s",
                                        "reset": "",
                                        "bytopic": "all",
                                        "topic": "topic",
                                        "outputs": 1,
                                        "x": 400,
                                        "y": 300,
                                        "wires": [
                                            [
                                                "e2da7a63d3c15673",
                                                "f34957801db99988",
                                                "3980458ba6d298ac",
                                                "a7ac79dac573570f"
                                            ]
                                        ]
                                    },
                                    {
                                        "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": 680,
                                        "y": 340,
                                        "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": 630,
                                        "y": 400,
                                        "wires": []
                                    },
                                    {
                                        "id": "0c475f0f9588a3f7",
                                        "type": "ioBroker get",
                                        "z": "2e295f1c879e6af4",
                                        "name": "Reinigung Status",
                                        "topic": "mihome-vacuum.0.control.clean_home",
                                        "attrname": "payload",
                                        "payloadType": "value",
                                        "errOnInvalidState": "nothing",
                                        "x": 410,
                                        "y": 140,
                                        "wires": [
                                            [
                                                "f7a7cd85e1339dc9"
                                            ]
                                        ]
                                    },
                                    {
                                        "id": "cf5f4179cbb90024",
                                        "type": "trigger",
                                        "z": "2e295f1c879e6af4",
                                        "name": "",
                                        "op1": "1",
                                        "op2": "0",
                                        "op1type": "val",
                                        "op2type": "val",
                                        "duration": "250",
                                        "extend": "false",
                                        "overrideDelay": "false",
                                        "units": "ms",
                                        "reset": "",
                                        "bytopic": "all",
                                        "topic": "topic",
                                        "outputs": 1,
                                        "x": 340,
                                        "y": 520,
                                        "wires": [
                                            []
                                        ]
                                    },
                                    {
                                        "id": "f7a7cd85e1339dc9",
                                        "type": "toggle",
                                        "z": "2e295f1c879e6af4",
                                        "name": "",
                                        "onOffTopic": "",
                                        "onValue": "true",
                                        "onType": "str",
                                        "offValue": "false",
                                        "offType": "str",
                                        "toggleTopic": "",
                                        "toggleValue": "",
                                        "toggleType": "str",
                                        "passOnOff": "",
                                        "x": 610,
                                        "y": 140,
                                        "wires": [
                                            [
                                                "d14674cd9f0cb2b4"
                                            ]
                                        ]
                                    }
                                ]
                                

                                Screenshot 2024-08-11 210907.png

                                Wenn der Roborock Robotersauger beim arbeiten ist, Hat er den Status "5" sprich wenn Roborock den wert 5 hat darf das Badlicht nicht angesprochen werden trotz Bewegung.
                                hat der Status Roborock irgend einen anderen Wert dann kann das Licht per Bewegungsmelder eingeschaltet werden und irgenwie geht das licht immer wieder aus trotz das der bewegungsmelder bewegung erkennt. geht das Licht aus und auch ganz lange nicht mehr an als ob der Trigger nicht auf Bewegung reagiert.

                                paul53P Offline
                                paul53P Offline
                                paul53
                                schrieb am zuletzt editiert von
                                #15

                                @aphofis sagte: wenn Roborock den wert 5 hat darf das Badlicht nicht angesprochen werden trotz Bewegung.

                                Das Thema läuft unter der Kategorie "Blockly". Deshalb Vorschlag:

                                Blockly_temp.JPG

                                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                AphofisA 1 Antwort Letzte Antwort
                                1
                                • CodierknechtC Codierknecht

                                  @aphofis
                                  Bei NodeRed bin ich raus.
                                  Vielleicht kann da @mickym weiterhelfen?

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

                                  @codierknecht sagte in Kleine Lichtsteuerung mit Bewegungsmelder:

                                  @aphofis
                                  Bei NodeRed bin ich raus.
                                  Vielleicht kann da @mickym weiterhelfen?

                                  Danke für die Info

                                  1 Antwort Letzte Antwort
                                  0
                                  • paul53P paul53

                                    @aphofis sagte: wenn Roborock den wert 5 hat darf das Badlicht nicht angesprochen werden trotz Bewegung.

                                    Das Thema läuft unter der Kategorie "Blockly". Deshalb Vorschlag:

                                    Blockly_temp.JPG

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

                                    @paul53
                                    Das Super! Das stimmt, es ging um ein Blockly nur wollte ich mal meine Hussteuerungen mit Node-Red ausprobieren.
                                    Da der Aufbau doch eher nachvollziehbarer ist. Zumindest für meine Verhältnisse.
                                    Funktioniert auch! Vielen Dank

                                    1 Antwort Letzte Antwort
                                    0
                                    • mickymM mickym

                                      @aphofis Für so was brauch man keine toggle Node- Auch hier gilt: NodeRed bringt in den meisen Fällen das nötige Rüstzeug bereist mit..

                                      Für alle Bedingungen nimmt man einen Switch. Es ist richtig, dass der Bewegungsmelder triggert. Ausserdem würde ich nicht per Trigger das Licht wieder ausschalten, sondern das soll der BWM am Besten selbst machen. Sprich wenn der BWM false sendet dann soll er immer ausschalten, schließlich kann sich Dein Staubi ja in einem anderen Raum befinden.

                                      Ich sage also bei false soll er immer ausschalten bei True nur dann einschalten wenn der Staubi nicht arbeitet. Damit der Stautus des Staubi die payload nicht überschriebt, setze ich den Staubi auf ein anderes Attribut des Nachrichtenobjektes

                                      Als Erstes weisen wir also dem Staubi in der get Node einen eigenen Status zu, sodass wir die payload des BWM nicht überschreiben:

                                      ad5063ca-7ac7-4a71-97ef-db4c66f0f3c7-image.png

                                      Dann lassen wir den BWM aus und einschalten und keinen trigger. Ich gehe mal davon aus, dass der BWM true/false liefert und damit auch das Licht schalten kann. Ausschalten darf der BWM also immer, einschalten nur wenn der Roborok nicht den Status 5 hat.

                                      da79576b-36f7-477e-aefe-3bbc20da9e75-image.png

                                      Hier der Flow zum Import:

                                      [
                                         {
                                             "id": "0c475f0f9588a3f7",
                                             "type": "ioBroker get",
                                             "z": "2e295f1c879e6af4",
                                             "name": "Reinigung Status",
                                             "topic": "mihome-vacuum.0.control.clean_home",
                                             "attrname": "roborock",
                                             "payloadType": "value",
                                             "errOnInvalidState": "nothing",
                                             "x": 590,
                                             "y": 240,
                                             "wires": [
                                                 [
                                                     "a48d968fca802b9d"
                                                 ]
                                             ]
                                         },
                                         {
                                             "id": "7d4ab0828d82e844",
                                             "type": "ioBroker in",
                                             "z": "2e295f1c879e6af4",
                                             "name": "Bad Motion",
                                             "attrname": "payload",
                                             "topic": "hue.0.Bad_Motion_Sensor.presence",
                                             "payloadType": "value",
                                             "onlyack": "",
                                             "func": "all",
                                             "gap": "",
                                             "fireOnStart": "false",
                                             "outFormat": "MQTT",
                                             "x": 150,
                                             "y": 240,
                                             "wires": [
                                                 [
                                                     "94b97498ad6db67d"
                                                 ]
                                             ]
                                         },
                                         {
                                             "id": "c6adf9d10b1da0b1",
                                             "type": "ioBroker out",
                                             "z": "2e295f1c879e6af4",
                                             "name": "Bad Decke",
                                             "topic": "sonoff.0.bad_deckenlampe.POWER",
                                             "ack": "false",
                                             "autoCreate": "false",
                                             "stateName": "",
                                             "role": "",
                                             "payloadType": "",
                                             "readonly": "",
                                             "stateUnit": "",
                                             "stateMin": "",
                                             "stateMax": "",
                                             "x": 1090,
                                             "y": 280,
                                             "wires": []
                                         },
                                         {
                                             "id": "f2d561282f7163ed",
                                             "type": "debug",
                                             "z": "2e295f1c879e6af4",
                                             "name": "debug 1",
                                             "active": true,
                                             "tosidebar": true,
                                             "console": false,
                                             "tostatus": false,
                                             "complete": "payload",
                                             "targetType": "msg",
                                             "statusVal": "",
                                             "statusType": "auto",
                                             "x": 1060,
                                             "y": 240,
                                             "wires": []
                                         },
                                         {
                                             "id": "0ad0adc9762722c5",
                                             "type": "inject",
                                             "z": "2e295f1c879e6af4",
                                             "name": "",
                                             "props": [
                                                 {
                                                     "p": "payload"
                                                 }
                                             ],
                                             "repeat": "",
                                             "crontab": "",
                                             "once": false,
                                             "onceDelay": 0.1,
                                             "topic": "",
                                             "payload": "true",
                                             "payloadType": "str",
                                             "x": 150,
                                             "y": 300,
                                             "wires": [
                                                 [
                                                     "94b97498ad6db67d"
                                                 ]
                                             ]
                                         },
                                         {
                                             "id": "94b97498ad6db67d",
                                             "type": "switch",
                                             "z": "2e295f1c879e6af4",
                                             "name": "Bewegung erkannt?",
                                             "property": "payload",
                                             "propertyType": "msg",
                                             "rules": [
                                                 {
                                                     "t": "true"
                                                 },
                                                 {
                                                     "t": "false"
                                                 }
                                             ],
                                             "checkall": "true",
                                             "repair": false,
                                             "outputs": 2,
                                             "x": 360,
                                             "y": 280,
                                             "wires": [
                                                 [
                                                     "0c475f0f9588a3f7"
                                                 ],
                                                 [
                                                     "bf71b4df498583c6"
                                                 ]
                                             ]
                                         },
                                         {
                                             "id": "a48d968fca802b9d",
                                             "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": 830,
                                             "y": 240,
                                             "wires": [
                                                 [
                                                     "bf71b4df498583c6"
                                                 ]
                                             ]
                                         },
                                         {
                                             "id": "bf71b4df498583c6",
                                             "type": "junction",
                                             "z": "2e295f1c879e6af4",
                                             "x": 960,
                                             "y": 280,
                                             "wires": [
                                                 [
                                                     "c6adf9d10b1da0b1",
                                                     "f2d561282f7163ed"
                                                 ]
                                             ]
                                         }
                                      ]
                                      

                                      Wenn Du willst, dass das false Signal erst nach 1 Minute Verzögerung ausschaltet, dann kannst Du einen entsprechenden Trigger in den false setzen und durch ein true zurücksetzen. Ich modifiziere das noch schnell.

                                      2d9695e0-05fe-4f7b-af8e-870ddc89e793-image.png

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

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

                                      @mickym
                                      Hab jetzt diese Steuerung am laufen und funktioniert nur der Datenpunkt für die bedingung ist:

                                      mihome-vacuum.1.info.state
                                      

                                      Screenshot 2024-08-12 195518.png
                                      Das war die einzige Änderung die ich gemacht hatte. Es läuft prima.
                                      Wenn der Roborock unterwegs ist und den Wert Cleaning (5) Hat geht das Licht nicht an.
                                      Wenn er andere Werte hat löse ich diese wenn dann sowieso manuell aus wenn ich zu Hause bin.
                                      Ansonsten steht er beim laden auf Charging (8). Auch Licht getestet wenn Bewegung bleibt, bleibt das Licht auch an bzw bei kurzem nicht bewegen geht das Licht aus und nach bewegung sofort wieder an. Also alles TippiToppi

                                      mickymM 1 Antwort Letzte Antwort
                                      0
                                      • AphofisA Aphofis

                                        @mickym
                                        Hab jetzt diese Steuerung am laufen und funktioniert nur der Datenpunkt für die bedingung ist:

                                        mihome-vacuum.1.info.state
                                        

                                        Screenshot 2024-08-12 195518.png
                                        Das war die einzige Änderung die ich gemacht hatte. Es läuft prima.
                                        Wenn der Roborock unterwegs ist und den Wert Cleaning (5) Hat geht das Licht nicht an.
                                        Wenn er andere Werte hat löse ich diese wenn dann sowieso manuell aus wenn ich zu Hause bin.
                                        Ansonsten steht er beim laden auf Charging (8). Auch Licht getestet wenn Bewegung bleibt, bleibt das Licht auch an bzw bei kurzem nicht bewegen geht das Licht aus und nach bewegung sofort wieder an. Also alles TippiToppi

                                        mickymM Online
                                        mickymM Online
                                        mickym
                                        Most Active
                                        schrieb am zuletzt editiert von
                                        #19

                                        @aphofis OK wenn Du diesen Flow nimmst funktioniert das. Wenn Du den letzten Flow nimmst, musst Du die Trigger node noch ändern. Aber wenn Du mit dem Flow zufrieden bist, ist OK. Ansonsten vielleicht lieber den anderen Thread nehmen, weil hier sind wir im Bockly Forum.

                                        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
                                          #20

                                          @mickym
                                          I know hatte ich vergessen.

                                          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

                                          907

                                          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