Skip to content
  • 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
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Bewegungsmelder script

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

Bewegungsmelder script

Geplant Angeheftet Gesperrt Verschoben Blockly
84 Beiträge 4 Kommentatoren 8.0k 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.
  • Michael SchmittM Michael Schmitt

    Leider scheint das zu langsam zu reagieren. Sprich wenn man den Lichtschalter drückt, öffnet man ja fast gleichzeitig die Tür und der Wert braucht ca. 3-6 Sek bis er geändert ist.

    Michael SchmittM Online
    Michael SchmittM Online
    Michael Schmitt
    schrieb am zuletzt editiert von
    #44

    Hallo,
    mein Script für den Flur (weiter oben im Thread) habe ich nun nochmal geändert und anstatt das nur zu bestimmten Zeiten zu steuern soll nun auch noch mit Lux gesteuert werden. Der Flur ist bei teilweise geschlossenen Zimmertüren recht dunkel. Das was ich nun habe sieht so aus, kann man da noch was optimieren/verbessern ?
    flur.jpg

    Michael SchmittM 1 Antwort Letzte Antwort
    1
    • Michael SchmittM Michael Schmitt

      Hallo,
      mein Script für den Flur (weiter oben im Thread) habe ich nun nochmal geändert und anstatt das nur zu bestimmten Zeiten zu steuern soll nun auch noch mit Lux gesteuert werden. Der Flur ist bei teilweise geschlossenen Zimmertüren recht dunkel. Das was ich nun habe sieht so aus, kann man da noch was optimieren/verbessern ?
      flur.jpg

      Michael SchmittM Online
      Michael SchmittM Online
      Michael Schmitt
      schrieb am zuletzt editiert von
      #45

      Hallo,
      ich würde gerne mein Blockly dahingehend ändern, dass 30 Sekunden vor Ablauf des Timeouts (301Sek) das Licht ein wenig gedimmt wird. Damit man die Möglichkeit hat sich nochmal kurz zu bewegen, damit das Licht nicht ausgeht.

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</variable>
          <variable type="timeout" id="timeout">timeout</variable>
          <variable type="timeout" id="timeout2">timeout2</variable>
        </variables>
        <block type="on_ext" id="XZShE%!^7aSwliAf9~Rx" x="-137" y="-87">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="L{OHfK*J*RCS6SxTvn.W">
              <field name="oid">alias.0.Bewegungsmelder.BWM_Bad_1</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id="G/Yr4W}YyjpF]+|%z/EC">
              <field name="oid">alias.0.Bewegungsmelder.BWM_Bad_2</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="timeouts_cleartimeout" id="/RL0jba2]_3:HxV/l8Ew">
              <field name="NAME">timeout</field>
              <next>
                <block type="controls_if" id="Vwd`yH-?dfX(g?Yz#vYe">
                  <value name="IF0">
                    <block type="logic_negate" id=",LLLwoaashRhQLF/$id:">
                      <value name="BOOL">
                        <block type="variables_get" id="inbzB=3u.=59#v8Z=b=6">
                          <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="controls_if" id="e@LN;c0-3IiQ3mPlWpKL">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_operation" id="8e(k771IWU7%#IjR{c5a" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="on_source" id="cRq(*e^$wwz39yls}{S-">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_compare" id="*ZCE)GOz2,J$~hQIU5oz">
                              <field name="OP">LT</field>
                              <value name="A">
                                <block type="get_value" id="6wR+e).a1]VM%0Xi/8Wb">
                                  <field name="ATTR">val</field>
                                  <field name="OID">deconz.0.Sensors.53.lux</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id=")WR61J+C}769J}O3dm]:">
                                  <field name="NUM">20</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="$XZ-=YslQG]u-p;EEF#U">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">deconz.0.Groups.8.on</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="w~mMGbfeV-X~0!%vn`c.">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="*SPNj7{@=N{N%oO!3H~]">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">deconz.0.Groups.8.level</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="t}=aW)^Z`;h+qCZbF2XT">
                                  <field name="NUM">60</field>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id="/}Lh|M^gv9R|glZ_S1#S">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="Kjf7:mgncC3)9VTO/OC]">
                                      <field name="TEXT">Bewegung Bad erkannt und Licht ein</field>
                                    </shadow>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="timeouts_settimeout" id="yCutu!$pMQ|(uT+cjX(N">
                          <field name="NAME">timeout</field>
                          <field name="DELAY">301</field>
                          <field name="UNIT">sec</field>
                          <statement name="STATEMENT">
                            <block type="control" id="*^7bIYM3vHC69N7p1xbg">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">deconz.0.Groups.8.on</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="qboY~;^nMM6jj;+3$MC/">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id="e?zC_:GX/.@u!`}SQ7P4">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="HfoKib*o7AG:EM$;dKxK">
                                      <field name="TEXT">Keine Bewegung Bad erkannt und Licht aus</field>
                                    </shadow>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="on_ext" id="6Ep1xYZhs;fE6{ULi%Jt" x="612" y="-87">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="AE4kvQEZVO!/B=Wlkv4T">
              <field name="oid">deconz.0.Sensors.33.buttonpressed</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id="La(|naQX?J|zf8Q^n5VV">
              <field name="oid">deconz.0.Sensors.43.buttonpressed</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="Fkmp#,:[](:u|m1#rZ_M">
              <mutation elseif="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="^)G:O?pb#Tbd271bURO$">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="on_source" id="?6-BDA}x4o%Aln2|96fd">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="@%Ajr9?},raMKRV!(=/=">
                      <field name="NUM">1002</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="variables_set" id="F{0JN,.1_g`wZWYrw.pR">
                  <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="*wTIZ1^W|{M;oGnj3Q0+">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="._;caH:!d941]JJqQ)Bq">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">deconz.0.Groups.8.on</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="`16Y0trSNFT_B7k@{9BC">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="+aG3-VAYoW0pMMChPL1?">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">deconz.0.Groups.8.level</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="A3zgfihO$uonYS1s~`O=">
                              <field name="NUM">90</field>
                            </block>
                          </value>
                          <next>
                            <block type="debug" id="s27(YkT^AGc`83_%J3Zd">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="Q||#DNqJ/[9n5RS[6PP2">
                                  <field name="TEXT">Bad Licht ein</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="timeouts_cleartimeout" id="m:`.KX;MDj^|ED^4z4aW">
                                  <field name="NAME">timeout2</field>
                                  <next>
                                    <block type="timeouts_settimeout" id="0:sb5p?!eZ!znzO[1(69">
                                      <field name="NAME">timeout2</field>
                                      <field name="DELAY">30</field>
                                      <field name="UNIT">min</field>
                                      <statement name="STATEMENT">
                                        <block type="variables_set" id="-s[lpxk5doij*w1,UvMA">
                                          <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="w?GQqiy04Q492pLC(nU)">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="sM[^@W|+zd]m9ARP?-gD">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">deconz.0.Groups.8.on</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="eD@WOW(a|3-0(ry1xknq">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="debug" id="/4|EcQ]TynC4o+noB;3a">
                                                  <field name="Severity">log</field>
                                                  <value name="TEXT">
                                                    <shadow type="text" id=";PqhWZ5LTye-)S}yNyT8">
                                                      <field name="TEXT">Bad Licht aus</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_compare" id=";4#O$q`D[B#=f,^9NGI*">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="on_source" id="H.t!a2Lu/rQwl^GKA1u#">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="YLPM8pOSPN|R3K2~Mfma">
                      <field name="NUM">2002</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="variables_set" id="Gn_Ru)Jnrgbqz6q7oVxn">
                  <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="f-CJ_Jv6Vs%FG!m-1V_r">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="8rIG})y1{r`bWzJaxSfc">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">deconz.0.Groups.8.on</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="kS1@UaWUS.|}:!En8EjD">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="debug" id="k)[PJ.|/R~/N#P#WB`Ix">
                          <field name="Severity">log</field>
                          <value name="TEXT">
                            <shadow type="text" id="]vzf`[9YDH~Mx(_k=!cT">
                              <field name="TEXT">Bad Licht aus</field>
                            </shadow>
                          </value>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      paul53P 1 Antwort Letzte Antwort
      0
      • Michael SchmittM Michael Schmitt

        Hallo,
        ich würde gerne mein Blockly dahingehend ändern, dass 30 Sekunden vor Ablauf des Timeouts (301Sek) das Licht ein wenig gedimmt wird. Damit man die Möglichkeit hat sich nochmal kurz zu bewegen, damit das Licht nicht ausgeht.

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</variable>
            <variable type="timeout" id="timeout">timeout</variable>
            <variable type="timeout" id="timeout2">timeout2</variable>
          </variables>
          <block type="on_ext" id="XZShE%!^7aSwliAf9~Rx" x="-137" y="-87">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="L{OHfK*J*RCS6SxTvn.W">
                <field name="oid">alias.0.Bewegungsmelder.BWM_Bad_1</field>
              </shadow>
            </value>
            <value name="OID1">
              <shadow type="field_oid" id="G/Yr4W}YyjpF]+|%z/EC">
                <field name="oid">alias.0.Bewegungsmelder.BWM_Bad_2</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="timeouts_cleartimeout" id="/RL0jba2]_3:HxV/l8Ew">
                <field name="NAME">timeout</field>
                <next>
                  <block type="controls_if" id="Vwd`yH-?dfX(g?Yz#vYe">
                    <value name="IF0">
                      <block type="logic_negate" id=",LLLwoaashRhQLF/$id:">
                        <value name="BOOL">
                          <block type="variables_get" id="inbzB=3u.=59#v8Z=b=6">
                            <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="controls_if" id="e@LN;c0-3IiQ3mPlWpKL">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="8e(k771IWU7%#IjR{c5a" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="on_source" id="cRq(*e^$wwz39yls}{S-">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="*ZCE)GOz2,J$~hQIU5oz">
                                <field name="OP">LT</field>
                                <value name="A">
                                  <block type="get_value" id="6wR+e).a1]VM%0Xi/8Wb">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.Sensors.53.lux</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id=")WR61J+C}769J}O3dm]:">
                                    <field name="NUM">20</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="$XZ-=YslQG]u-p;EEF#U">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">deconz.0.Groups.8.on</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="w~mMGbfeV-X~0!%vn`c.">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="*SPNj7{@=N{N%oO!3H~]">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">deconz.0.Groups.8.level</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="t}=aW)^Z`;h+qCZbF2XT">
                                    <field name="NUM">60</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="debug" id="/}Lh|M^gv9R|glZ_S1#S">
                                    <field name="Severity">log</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="Kjf7:mgncC3)9VTO/OC]">
                                        <field name="TEXT">Bewegung Bad erkannt und Licht ein</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="timeouts_settimeout" id="yCutu!$pMQ|(uT+cjX(N">
                            <field name="NAME">timeout</field>
                            <field name="DELAY">301</field>
                            <field name="UNIT">sec</field>
                            <statement name="STATEMENT">
                              <block type="control" id="*^7bIYM3vHC69N7p1xbg">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">deconz.0.Groups.8.on</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="qboY~;^nMM6jj;+3$MC/">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="debug" id="e?zC_:GX/.@u!`}SQ7P4">
                                    <field name="Severity">log</field>
                                    <value name="TEXT">
                                      <shadow type="text" id="HfoKib*o7AG:EM$;dKxK">
                                        <field name="TEXT">Keine Bewegung Bad erkannt und Licht aus</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </statement>
          </block>
          <block type="on_ext" id="6Ep1xYZhs;fE6{ULi%Jt" x="612" y="-87">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="AE4kvQEZVO!/B=Wlkv4T">
                <field name="oid">deconz.0.Sensors.33.buttonpressed</field>
              </shadow>
            </value>
            <value name="OID1">
              <shadow type="field_oid" id="La(|naQX?J|zf8Q^n5VV">
                <field name="oid">deconz.0.Sensors.43.buttonpressed</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="Fkmp#,:[](:u|m1#rZ_M">
                <mutation elseif="1"></mutation>
                <value name="IF0">
                  <block type="logic_compare" id="^)G:O?pb#Tbd271bURO$">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="on_source" id="?6-BDA}x4o%Aln2|96fd">
                        <field name="ATTR">state.val</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="@%Ajr9?},raMKRV!(=/=">
                        <field name="NUM">1002</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="F{0JN,.1_g`wZWYrw.pR">
                    <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="*wTIZ1^W|{M;oGnj3Q0+">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="._;caH:!d941]JJqQ)Bq">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">deconz.0.Groups.8.on</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="`16Y0trSNFT_B7k@{9BC">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="+aG3-VAYoW0pMMChPL1?">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">deconz.0.Groups.8.level</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="A3zgfihO$uonYS1s~`O=">
                                <field name="NUM">90</field>
                              </block>
                            </value>
                            <next>
                              <block type="debug" id="s27(YkT^AGc`83_%J3Zd">
                                <field name="Severity">log</field>
                                <value name="TEXT">
                                  <shadow type="text" id="Q||#DNqJ/[9n5RS[6PP2">
                                    <field name="TEXT">Bad Licht ein</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="timeouts_cleartimeout" id="m:`.KX;MDj^|ED^4z4aW">
                                    <field name="NAME">timeout2</field>
                                    <next>
                                      <block type="timeouts_settimeout" id="0:sb5p?!eZ!znzO[1(69">
                                        <field name="NAME">timeout2</field>
                                        <field name="DELAY">30</field>
                                        <field name="UNIT">min</field>
                                        <statement name="STATEMENT">
                                          <block type="variables_set" id="-s[lpxk5doij*w1,UvMA">
                                            <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="w?GQqiy04Q492pLC(nU)">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="sM[^@W|+zd]m9ARP?-gD">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">deconz.0.Groups.8.on</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="eD@WOW(a|3-0(ry1xknq">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="debug" id="/4|EcQ]TynC4o+noB;3a">
                                                    <field name="Severity">log</field>
                                                    <value name="TEXT">
                                                      <shadow type="text" id=";PqhWZ5LTye-)S}yNyT8">
                                                        <field name="TEXT">Bad Licht aus</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <value name="IF1">
                  <block type="logic_compare" id=";4#O$q`D[B#=f,^9NGI*">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="on_source" id="H.t!a2Lu/rQwl^GKA1u#">
                        <field name="ATTR">state.val</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="math_number" id="YLPM8pOSPN|R3K2~Mfma">
                        <field name="NUM">2002</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO1">
                  <block type="variables_set" id="Gn_Ru)Jnrgbqz6q7oVxn">
                    <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="f-CJ_Jv6Vs%FG!m-1V_r">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="8rIG})y1{r`bWzJaxSfc">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">deconz.0.Groups.8.on</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="kS1@UaWUS.|}:!En8EjD">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="debug" id="k)[PJ.|/R~/N#P#WB`Ix">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                              <shadow type="text" id="]vzf`[9YDH~Mx(_k=!cT">
                                <field name="TEXT">Bad Licht aus</field>
                              </shadow>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </xml>
        
        paul53P Offline
        paul53P Offline
        paul53
        schrieb am zuletzt editiert von
        #46

        @michael-schmitt sagte: 30 Sekunden vor Ablauf des Timeouts (301Sek) das Licht ein wenig gedimmt wird.

        Bild_2022-07-10_155448761.png

        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

        Michael SchmittM 2 Antworten Letzte Antwort
        1
        • paul53P paul53

          @michael-schmitt sagte: 30 Sekunden vor Ablauf des Timeouts (301Sek) das Licht ein wenig gedimmt wird.

          Bild_2022-07-10_155448761.png

          Michael SchmittM Online
          Michael SchmittM Online
          Michael Schmitt
          schrieb am zuletzt editiert von
          #47

          @paul53 Danke läuft 👍

          1 Antwort Letzte Antwort
          0
          • paul53P paul53

            @michael-schmitt sagte: 30 Sekunden vor Ablauf des Timeouts (301Sek) das Licht ein wenig gedimmt wird.

            Bild_2022-07-10_155448761.png

            Michael SchmittM Online
            Michael SchmittM Online
            Michael Schmitt
            schrieb am zuletzt editiert von
            #48

            @paul53 Hab mich zu früh gefreut. Wenn ich nun das Licht per Schalter manuell ausschalte, dann wird nachdem die Zeit abgelaufen ist das licht mit 40% eingeschalten und nach 30Sek ausgeschalten.

            paul53P 1 Antwort Letzte Antwort
            0
            • Michael SchmittM Michael Schmitt

              @paul53 Hab mich zu früh gefreut. Wenn ich nun das Licht per Schalter manuell ausschalte, dann wird nachdem die Zeit abgelaufen ist das licht mit 40% eingeschalten und nach 30Sek ausgeschalten.

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

              @michael-schmitt
              Den zusätzlichen Timer-Stop hast Du oben eingebaut?

              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

              Michael SchmittM 1 Antwort Letzte Antwort
              0
              • paul53P paul53

                @michael-schmitt
                Den zusätzlichen Timer-Stop hast Du oben eingebaut?

                Michael SchmittM Online
                Michael SchmittM Online
                Michael Schmitt
                schrieb am zuletzt editiert von
                #50

                @paul53 ja habe ich

                paul53P 1 Antwort Letzte Antwort
                0
                • Michael SchmittM Michael Schmitt

                  @paul53 ja habe ich

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

                  @michael-schmitt
                  Dann muss nach dem manuellen Ausschalten ein BWM angesprochen haben.

                  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

                  Michael SchmittM 1 Antwort Letzte Antwort
                  0
                  • paul53P paul53

                    @michael-schmitt
                    Dann muss nach dem manuellen Ausschalten ein BWM angesprochen haben.

                    Michael SchmittM Online
                    Michael SchmittM Online
                    Michael Schmitt
                    schrieb am zuletzt editiert von Michael Schmitt
                    #52

                    @paul53 Nein, es wird dann auch mit 40% eingeschalten (für 30 Sek). Wenn der BWM reagiert dann mit 60%.

                    paul53P 1 Antwort Letzte Antwort
                    0
                    • Michael SchmittM Michael Schmitt

                      @paul53 Nein, es wird dann auch mit 40% eingeschalten (für 30 Sek). Wenn der BWM reagiert dann mit 60%.

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

                      @michael-schmitt
                      Ohne BWM-Trigger wird kein Timer gestartet. Wenn nur der sonst-Zweig abgearbeitet wird: Trigger auf keine Bewegung oder Lux >= 20.

                      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

                      Michael SchmittM 1 Antwort Letzte Antwort
                      0
                      • paul53P paul53

                        @michael-schmitt
                        Ohne BWM-Trigger wird kein Timer gestartet. Wenn nur der sonst-Zweig abgearbeitet wird: Trigger auf keine Bewegung oder Lux >= 20.

                        Michael SchmittM Online
                        Michael SchmittM Online
                        Michael Schmitt
                        schrieb am zuletzt editiert von
                        #54

                        @paul53
                        ich gehe ins Bad - BWM schaltet Licht ein
                        ich gehe aus dem Bad und schalte per Schalter das Licht aus - Licht aus

                        aber scheinbar läuft der Timer weiter und schaltet das Licht nach der eingestellten Zeit mit 40% an und 30 Sekunden später wieder aus.

                        paul53P 2 Antworten Letzte Antwort
                        0
                        • Michael SchmittM Michael Schmitt

                          @paul53
                          ich gehe ins Bad - BWM schaltet Licht ein
                          ich gehe aus dem Bad und schalte per Schalter das Licht aus - Licht aus

                          aber scheinbar läuft der Timer weiter und schaltet das Licht nach der eingestellten Zeit mit 40% an und 30 Sekunden später wieder aus.

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

                          @michael-schmitt sagte: scheinbar läuft der Timer weiter

                          Stoppe mal alle Timer bei Tastenbetätigung.

                          Bild_2022-07-10_230419940.png

                          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

                          Michael SchmittM 1 Antwort Letzte Antwort
                          0
                          • paul53P paul53

                            @michael-schmitt sagte: scheinbar läuft der Timer weiter

                            Stoppe mal alle Timer bei Tastenbetätigung.

                            Bild_2022-07-10_230419940.png

                            Michael SchmittM Online
                            Michael SchmittM Online
                            Michael Schmitt
                            schrieb am zuletzt editiert von
                            #56

                            @paul53 selbes Ergebnis. Habe auch mal Javascript Instanz neu gestartet.

                            1 Antwort Letzte Antwort
                            0
                            • Michael SchmittM Michael Schmitt

                              @paul53
                              ich gehe ins Bad - BWM schaltet Licht ein
                              ich gehe aus dem Bad und schalte per Schalter das Licht aus - Licht aus

                              aber scheinbar läuft der Timer weiter und schaltet das Licht nach der eingestellten Zeit mit 40% an und 30 Sekunden später wieder aus.

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

                              @michael-schmitt sagte: ich gehe aus dem Bad und schalte per Schalter das Licht aus

                              In dem Moment liefert mind. ein BWM noch true und wechselt erst verzögert auf false. Deshalb muss man die Automatik-Freigabe verzögern.

                              Bild_2022-07-11_084751881.png

                              Die richtige Verzögerungszeit musst Du selbst ermitteln:

                              Bild_2022-07-11_112725404.png

                              Ohne den Dimmer 30 s vor Ausschalten ist es nicht aufgefallen, dass nach ca. 5 Minuten nochmal ausgeschaltet wurde.

                              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

                              Michael SchmittM 1 Antwort Letzte Antwort
                              0
                              • paul53P paul53

                                @michael-schmitt sagte: ich gehe aus dem Bad und schalte per Schalter das Licht aus

                                In dem Moment liefert mind. ein BWM noch true und wechselt erst verzögert auf false. Deshalb muss man die Automatik-Freigabe verzögern.

                                Bild_2022-07-11_084751881.png

                                Die richtige Verzögerungszeit musst Du selbst ermitteln:

                                Bild_2022-07-11_112725404.png

                                Ohne den Dimmer 30 s vor Ausschalten ist es nicht aufgefallen, dass nach ca. 5 Minuten nochmal ausgeschaltet wurde.

                                Michael SchmittM Online
                                Michael SchmittM Online
                                Michael Schmitt
                                schrieb am zuletzt editiert von
                                #58

                                @paul53 Ich habe von 20-90 Sekunden in 10 Sek. Schritten probiert aber es funktioniert nicht. Die BWMs haben eine Duration von 30 Sekunden und schalten dann auf "false".

                                2022-07-11 13:45:51.194 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_1:true
                                2022-07-11 13:45:51.195 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Bewegung Bad erkannt und Licht ein
                                2022-07-11 13:45:51.614 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_2:true
                                2022-07-11 13:45:51.615 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Bewegung Bad erkannt und Licht ein
                                2022-07-11 13:45:57.579 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Bad Licht aus
                                2022-07-11 13:46:21.468 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_1:false
                                2022-07-11 13:46:22.108 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_2:false
                                2022-07-11 13:48:29.329 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.FLUR_BEWEGUNG: Keine Bewegung im Flur erkannt und Licht aus
                                2022-07-11 13:48:52.111 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Keine Bewegung Bad erkannt und Licht aus
                                
                                paul53P 1 Antwort Letzte Antwort
                                0
                                • Michael SchmittM Michael Schmitt

                                  @paul53 Ich habe von 20-90 Sekunden in 10 Sek. Schritten probiert aber es funktioniert nicht. Die BWMs haben eine Duration von 30 Sekunden und schalten dann auf "false".

                                  2022-07-11 13:45:51.194 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_1:true
                                  2022-07-11 13:45:51.195 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Bewegung Bad erkannt und Licht ein
                                  2022-07-11 13:45:51.614 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_2:true
                                  2022-07-11 13:45:51.615 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Bewegung Bad erkannt und Licht ein
                                  2022-07-11 13:45:57.579 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Bad Licht aus
                                  2022-07-11 13:46:21.468 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_1:false
                                  2022-07-11 13:46:22.108 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_2:false
                                  2022-07-11 13:48:29.329 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.FLUR_BEWEGUNG: Keine Bewegung im Flur erkannt und Licht aus
                                  2022-07-11 13:48:52.111 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Keine Bewegung Bad erkannt und Licht aus
                                  
                                  paul53P Offline
                                  paul53P Offline
                                  paul53
                                  schrieb am zuletzt editiert von paul53
                                  #59

                                  @michael-schmitt sagte:

                                  2022-07-11 13:45:57.579 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Bad Licht aus
                                  2022-07-11 13:46:21.468 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_1:false
                                  2022-07-11 13:46:22.108 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_2:false
                                  

                                  Demnach sollten 40 s als Freigabe-Verzögerung genügen.
                                  Der Trigger um 13:46:22.108 Uhr muss noch blockiert werden.

                                  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

                                  Michael SchmittM 1 Antwort Letzte Antwort
                                  0
                                  • paul53P paul53

                                    @michael-schmitt sagte:

                                    2022-07-11 13:45:57.579 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: Bad Licht aus
                                    2022-07-11 13:46:21.468 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_1:false
                                    2022-07-11 13:46:22.108 - info: javascript.0 (13166) script.js.common.Bewegungsmelder.BAD_BEWEGUNG_NEU_2: alias.0.Bewegungsmelder.BWM_Bad_2:false
                                    

                                    Demnach sollten 40 s als Freigabe-Verzögerung genügen.
                                    Der Trigger um 13:46:22.108 Uhr muss noch blockiert werden.

                                    Michael SchmittM Online
                                    Michael SchmittM Online
                                    Michael Schmitt
                                    schrieb am zuletzt editiert von
                                    #60

                                    @paul53 sagte in Bewegungsmelder script:

                                    Der Trigger um 13:46:22.108 Uhr muss noch blockiert werden.

                                    und wie stell ich das an ?

                                    paul53P 1 Antwort Letzte Antwort
                                    0
                                    • Michael SchmittM Michael Schmitt

                                      @paul53 sagte in Bewegungsmelder script:

                                      Der Trigger um 13:46:22.108 Uhr muss noch blockiert werden.

                                      und wie stell ich das an ?

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

                                      @michael-schmitt sagte: und wie stell ich das an ?

                                      Mit 40 s Verzögerung für die Freigabe. Voraussetzung für die Sperre "manuell ein" ist allerdings, dass das Licht manuell eingeschaltet wurde, was offenbar nicht erfolgte.

                                      EDIT: Es wird wohl noch eine Variable manuell_aus benötigt?

                                      Bild_2022-07-11_142039651.png

                                      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

                                      Michael SchmittM 2 Antworten Letzte Antwort
                                      1
                                      • paul53P paul53

                                        @michael-schmitt sagte: und wie stell ich das an ?

                                        Mit 40 s Verzögerung für die Freigabe. Voraussetzung für die Sperre "manuell ein" ist allerdings, dass das Licht manuell eingeschaltet wurde, was offenbar nicht erfolgte.

                                        EDIT: Es wird wohl noch eine Variable manuell_aus benötigt?

                                        Bild_2022-07-11_142039651.png

                                        Michael SchmittM Online
                                        Michael SchmittM Online
                                        Michael Schmitt
                                        schrieb am zuletzt editiert von
                                        #62

                                        @paul53 das schaut gut aus .... werde mal die Zeiten wieder auf normal stellen, hatte ich zum testen verringert. Berichte dann noch wenn alles rund läuft. Dankeschön @paul53

                                        Michael SchmittM 1 Antwort Letzte Antwort
                                        0
                                        • Michael SchmittM Michael Schmitt

                                          @paul53 das schaut gut aus .... werde mal die Zeiten wieder auf normal stellen, hatte ich zum testen verringert. Berichte dann noch wenn alles rund läuft. Dankeschön @paul53

                                          Michael SchmittM Online
                                          Michael SchmittM Online
                                          Michael Schmitt
                                          schrieb am zuletzt editiert von Michael Schmitt
                                          #63

                                          Hallo,
                                          das Script funktioniert einwandfrei. Hier nochmal komplett falls es jemand braucht.

                                          <xml xmlns="https://developers.google.com/blockly/xml">
                                            <variables>
                                              <variable id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</variable>
                                              <variable type="timeout" id="timeout">timeout</variable>
                                              <variable id="pZ[L2!Sz/zZ8Tn.^iQ_n">manuell_aus</variable>
                                              <variable type="timeout" id="timeout2">timeout2</variable>
                                              <variable type="timeout" id="timeout4">timeout4</variable>
                                              <variable type="timeout" id="timeout3">timeout3</variable>
                                            </variables>
                                            <block type="comment" id="y}~#(AZB|hTb^Ld_.JUl" x="-137" y="-112">
                                              <field name="COMMENT">BWM</field>
                                              <next>
                                                <block type="on_ext" id="XZShE%!^7aSwliAf9~Rx">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                  <field name="CONDITION">ne</field>
                                                  <field name="ACK_CONDITION"></field>
                                                  <value name="OID0">
                                                    <shadow type="field_oid" id="L{OHfK*J*RCS6SxTvn.W">
                                                      <field name="oid">alias.0.Bewegungsmelder.BWM_Bad_1</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="OID1">
                                                    <shadow type="field_oid" id="G/Yr4W}YyjpF]+|%z/EC">
                                                      <field name="oid">alias.0.Bewegungsmelder.BWM_Bad_2</field>
                                                    </shadow>
                                                  </value>
                                                  <statement name="STATEMENT">
                                                    <block type="timeouts_cleartimeout" id="toBX/cPb=i?Or$.qiN,F">
                                                      <field name="NAME">timeout2</field>
                                                      <next>
                                                        <block type="timeouts_cleartimeout" id="_Hz+||A6ro8|8yv8]Ooi">
                                                          <field name="NAME">timeout</field>
                                                          <next>
                                                            <block type="controls_if" id="Vwd`yH-?dfX(g?Yz#vYe">
                                                              <value name="IF0">
                                                                <block type="logic_negate" id=",LLLwoaashRhQLF/$id:">
                                                                  <value name="BOOL">
                                                                    <block type="variables_get" id="inbzB=3u.=59#v8Z=b=6">
                                                                      <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="controls_if" id="e@LN;c0-3IiQ3mPlWpKL">
                                                                  <mutation elseif="1"></mutation>
                                                                  <value name="IF0">
                                                                    <block type="logic_operation" id="6v~3[Iz6cF1M~J(S25+G" inline="false">
                                                                      <field name="OP">AND</field>
                                                                      <value name="A">
                                                                        <block type="on_source" id="cRq(*e^$wwz39yls}{S-">
                                                                          <field name="ATTR">state.val</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="logic_compare" id="@^Dp2#8GB.Oy@4/MB-vg">
                                                                          <field name="OP">LT</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="7g|W6K@c0DT:HJ*+4ah3">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">deconz.0.Sensors.53.lux</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="math_number" id="j2%%WLUaz-KTRbmljU4#">
                                                                              <field name="NUM">30</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="control" id="$XZ-=YslQG]u-p;EEF#U">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">deconz.0.Groups.8.on</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="logic_boolean" id="w~mMGbfeV-X~0!%vn`c.">
                                                                          <field name="BOOL">TRUE</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="*SPNj7{@=N{N%oO!3H~]">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">deconz.0.Groups.8.level</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_number" id="t}=aW)^Z`;h+qCZbF2XT">
                                                                              <field name="NUM">60</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="/}Lh|M^gv9R|glZ_S1#S">
                                                                              <field name="Severity">log</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="Kjf7:mgncC3)9VTO/OC]">
                                                                                  <field name="TEXT">Bewegung Bad erkannt und Licht ein</field>
                                                                                </shadow>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                  <value name="IF1">
                                                                    <block type="logic_negate" id="^{YtaV0y5~2[=lKpQAL-">
                                                                      <value name="BOOL">
                                                                        <block type="variables_get" id="I!~xR%=zNGWL`zz^=zO$">
                                                                          <field name="VAR" id="pZ[L2!Sz/zZ8Tn.^iQ_n">manuell_aus</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO1">
                                                                    <block type="timeouts_settimeout" id="@8?nIfDj6,k({35ys);-">
                                                                      <field name="NAME">timeout</field>
                                                                      <field name="DELAY">270</field>
                                                                      <field name="UNIT">sec</field>
                                                                      <statement name="STATEMENT">
                                                                        <block type="control" id="hyd4D(bw]R)6Eqc4T:cg">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">deconz.0.Groups.8.level</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_number" id="~C;z/$$W`Lj@Q_#1xt=6">
                                                                              <field name="NUM">30</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="FLx$#Esc,{WeXH_)Uzh)">
                                                                              <field name="Severity">log</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="EZrd7+22lfbP!E,,dU|F">
                                                                                  <field name="TEXT">Bad Level 30%</field>
                                                                                </shadow>
                                                                              </value>
                                                                              <next>
                                                                                <block type="timeouts_settimeout" id="CF3;eZo]Eo9getERiifI">
                                                                                  <field name="NAME">timeout2</field>
                                                                                  <field name="DELAY">50</field>
                                                                                  <field name="UNIT">sec</field>
                                                                                  <statement name="STATEMENT">
                                                                                    <block type="control" id="*^7bIYM3vHC69N7p1xbg">
                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                      <field name="OID">deconz.0.Groups.8.on</field>
                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="logic_boolean" id="qboY~;^nMM6jj;+3$MC/">
                                                                                          <field name="BOOL">FALSE</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="debug" id="e?zC_:GX/.@u!`}SQ7P4">
                                                                                          <field name="Severity">log</field>
                                                                                          <value name="TEXT">
                                                                                            <shadow type="text" id="HfoKib*o7AG:EM$;dKxK">
                                                                                              <field name="TEXT">Keine Bewegung Bad erkannt und Licht aus</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </statement>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                            <block type="comment" id="NY-@v@#r:`0vft9X@NKp" x="563" y="-112">
                                              <field name="COMMENT">Lichtschalter</field>
                                              <next>
                                                <block type="on_ext" id="6Ep1xYZhs;fE6{ULi%Jt">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                  <field name="CONDITION">ne</field>
                                                  <field name="ACK_CONDITION"></field>
                                                  <value name="OID0">
                                                    <shadow type="field_oid" id="AE4kvQEZVO!/B=Wlkv4T">
                                                      <field name="oid">deconz.0.Sensors.33.buttonpressed</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="OID1">
                                                    <shadow type="field_oid" id="La(|naQX?J|zf8Q^n5VV">
                                                      <field name="oid">deconz.0.Sensors.43.buttonpressed</field>
                                                    </shadow>
                                                  </value>
                                                  <statement name="STATEMENT">
                                                    <block type="controls_if" id="Fkmp#,:[](:u|m1#rZ_M">
                                                      <mutation elseif="1"></mutation>
                                                      <value name="IF0">
                                                        <block type="logic_compare" id="^)G:O?pb#Tbd271bURO$">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="on_source" id="?6-BDA}x4o%Aln2|96fd">
                                                              <field name="ATTR">state.val</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="@%Ajr9?},raMKRV!(=/=">
                                                              <field name="NUM">1002</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="timeouts_cleartimeout" id="{SHPTG__y3ak6N9v^oCO">
                                                          <field name="NAME">timeout</field>
                                                          <next>
                                                            <block type="timeouts_cleartimeout" id="di*i)K3`C=Vv=*8+ZTyK">
                                                              <field name="NAME">timeout2</field>
                                                              <next>
                                                                <block type="variables_set" id="F{0JN,.1_g`wZWYrw.pR">
                                                                  <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="*wTIZ1^W|{M;oGnj3Q0+">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="control" id="._;caH:!d941]JJqQ)Bq">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">deconz.0.Groups.8.on</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="logic_boolean" id="`16Y0trSNFT_B7k@{9BC">
                                                                          <field name="BOOL">TRUE</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="+aG3-VAYoW0pMMChPL1?">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">deconz.0.Groups.8.level</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_number" id="A3zgfihO$uonYS1s~`O=">
                                                                              <field name="NUM">90</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="s27(YkT^AGc`83_%J3Zd">
                                                                              <field name="Severity">log</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="Q||#DNqJ/[9n5RS[6PP2">
                                                                                  <field name="TEXT">Bad Licht ein</field>
                                                                                </shadow>
                                                                              </value>
                                                                              <next>
                                                                                <block type="timeouts_cleartimeout" id="_E8?epb.J!$fTY1MBN=s">
                                                                                  <field name="NAME">timeout3</field>
                                                                                  <next>
                                                                                    <block type="timeouts_settimeout" id="V_2-N,X]ya1S?r+Q,J()">
                                                                                      <field name="NAME">timeout3</field>
                                                                                      <field name="DELAY">30</field>
                                                                                      <field name="UNIT">min</field>
                                                                                      <statement name="STATEMENT">
                                                                                        <block type="variables_set" id="-s[lpxk5doij*w1,UvMA">
                                                                                          <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="logic_boolean" id="w?GQqiy04Q492pLC(nU)">
                                                                                              <field name="BOOL">FALSE</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="control" id="sM[^@W|+zd]m9ARP?-gD">
                                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                              <field name="OID">deconz.0.Groups.8.on</field>
                                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                                              <value name="VALUE">
                                                                                                <block type="logic_boolean" id="eD@WOW(a|3-0(ry1xknq">
                                                                                                  <field name="BOOL">FALSE</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <next>
                                                                                                <block type="debug" id="/4|EcQ]TynC4o+noB;3a">
                                                                                                  <field name="Severity">log</field>
                                                                                                  <value name="TEXT">
                                                                                                    <shadow type="text" id=";PqhWZ5LTye-)S}yNyT8">
                                                                                                      <field name="TEXT">Bad Licht aus</field>
                                                                                                    </shadow>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </statement>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                      <value name="IF1">
                                                        <block type="logic_compare" id=";4#O$q`D[B#=f,^9NGI*">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="on_source" id="H.t!a2Lu/rQwl^GKA1u#">
                                                              <field name="ATTR">state.val</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="YLPM8pOSPN|R3K2~Mfma">
                                                              <field name="NUM">2002</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO1">
                                                        <block type="timeouts_cleartimeout" id="cvldmkj?L,L$,[t:LanB">
                                                          <field name="NAME">timeout</field>
                                                          <next>
                                                            <block type="timeouts_cleartimeout" id="Uw3Ay8-ZqW2+]$/25[h$">
                                                              <field name="NAME">timeout2</field>
                                                              <next>
                                                                <block type="timeouts_cleartimeout" id="P^vLE*)N--2h!42cHFH6">
                                                                  <field name="NAME">timeout3</field>
                                                                  <next>
                                                                    <block type="variables_set" id="%(48J6sJ#-|Rr]:QL,Q$">
                                                                      <field name="VAR" id="pZ[L2!Sz/zZ8Tn.^iQ_n">manuell_aus</field>
                                                                      <value name="VALUE">
                                                                        <block type="logic_boolean" id="3gg;50[h953%nvHozWmA">
                                                                          <field name="BOOL">TRUE</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="8rIG})y1{r`bWzJaxSfc">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">deconz.0.Groups.8.on</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="logic_boolean" id="kS1@UaWUS.|}:!En8EjD">
                                                                              <field name="BOOL">FALSE</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="k)[PJ.|/R~/N#P#WB`Ix">
                                                                              <field name="Severity">log</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="]vzf`[9YDH~Mx(_k=!cT">
                                                                                  <field name="TEXT">Bad Licht aus</field>
                                                                                </shadow>
                                                                              </value>
                                                                              <next>
                                                                                <block type="timeouts_settimeout" id="`MGIftqgU}6Wm`fbe[10">
                                                                                  <field name="NAME">timeout4</field>
                                                                                  <field name="DELAY">40</field>
                                                                                  <field name="UNIT">sec</field>
                                                                                  <statement name="STATEMENT">
                                                                                    <block type="variables_set" id="Gn_Ru)Jnrgbqz6q7oVxn">
                                                                                      <field name="VAR" id="pZ[L2!Sz/zZ8Tn.^iQ_n">manuell_aus</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="logic_boolean" id="f-CJ_Jv6Vs%FG!m-1V_r">
                                                                                          <field name="BOOL">FALSE</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="variables_set" id="Y8tI~`!iCw9ose3:)5kJ">
                                                                                          <field name="VAR" id="qrCfu6RSlbXJjjCPf/P-">manuell_ein</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="logic_boolean" id="^1zjkY*Rc`Cp7Ru}~VhZ">
                                                                                              <field name="BOOL">FALSE</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </statement>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </xml>
                                          

                                          Anmerkung 2022-07-12 211030.jpg

                                          EDIT: der Fehler den ich im unteren Beitrag noch hatte ist nun behoben.

                                          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

                                          562

                                          Online

                                          32.4k

                                          Benutzer

                                          81.4k

                                          Themen

                                          1.3m

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

                                          • Du hast noch kein Konto? Registrieren

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