Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Licht über BWM und Fensterkontakt schalten

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    709

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    5.9k

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

Licht über BWM und Fensterkontakt schalten

Geplant Angeheftet Gesperrt Verschoben Blockly
blocklyscenes
6 Beiträge 2 Kommentatoren 531 Aufrufe 3 Beobachtet
  • Ä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.
  • M Offline
    M Offline
    MikeMike
    schrieb am zuletzt editiert von MikeMike
    #1

    Hallo zusammen.

    Ich bin noch neu in ioBroker und versuche mich in Blockly einzuarbeiten.
    Jetzt komme ich in einem Blockly nicht weiter und brauche eure Hilfe.

    Ich möchte ein Licht während einer bestimmten Zeit über einen BWM einschalten. Das soll aber nicht passierren wenn das Fenster offen ist. Das klappt auch, aber ich möchte zusätzlich erreichen das das Licht ausgeschaltet wird wenn das Fenster geöffnet wird. Das klappt leider noch nicht.
    Vielleicht kann mir ja jemand helfen? :-)

    Blockly.jpg

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable type="timeout" id="timeout">timeout</variable>
      </variables>
      <block type="on" id="ABgA-YpCD0_:FW#`]-D~" x="-212" y="-162">
        <field name="OID">zigbee.0.ec1bbdfffe1a82b4.occupancy</field>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="timeouts_cleartimeout" id="e.%ON12lN}]BY*B:BCwt">
            <field name="NAME">timeout</field>
            <next>
              <block type="controls_if" id="QfNq1ohP{pK)H=??FmfQ">
                <value name="IF0">
                  <block type="logic_operation" id="jjnRS.k,=hos07o5yneu" inline="false">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="RlV8~9VPB00~mD$w;k^{">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="KBZAHBs.b{k=]+|Eiu]z">
                            <field name="ATTR">val</field>
                            <field name="OID">zigbee.0.00158d00052dd8d1.opened</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id=")?Fp#U*iiJ,5)If+7jQz">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="time_compare_ex" id="zHM:E}OhJ:p%$BB}=eMa">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                        <field name="USE_ACTUAL_TIME">TRUE</field>
                        <field name="OPTION">between</field>
                        <value name="START_TIME">
                          <shadow type="text" id=")K$O%{CI}*FS5`a6RSKC">
                            <field name="TEXT">17:00</field>
                          </shadow>
                        </value>
                        <value name="END_TIME">
                          <shadow type="text" id="$/3A,,8V,)56yFVgEg#u">
                            <field name="TEXT">23:00</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="yP_9@cCm@DkF#aB8I$O1">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="pdjZ9Gb69-h@+*E1LISB">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="H^2##*2ItH#w1X9+t;fH">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">zigbee.0.680ae2fffec645c0.brightness</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="f.~rsam/KT3ysd)U^1*=">
                            <field name="NUM">10</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_settimeout" id="x.85~d+6.@PI?.#Ie!(y">
                            <field name="NAME">timeout</field>
                            <field name="DELAY">10</field>
                            <field name="UNIT">min</field>
                            <statement name="STATEMENT">
                              <block type="control" id="hTAP5Uw[pUn.U_[SPAnQ">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="E)v;=@P|%c~!m|P.*o2O">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    
    C 1 Antwort Letzte Antwort
    0
    • M MikeMike

      Hallo zusammen.

      Ich bin noch neu in ioBroker und versuche mich in Blockly einzuarbeiten.
      Jetzt komme ich in einem Blockly nicht weiter und brauche eure Hilfe.

      Ich möchte ein Licht während einer bestimmten Zeit über einen BWM einschalten. Das soll aber nicht passierren wenn das Fenster offen ist. Das klappt auch, aber ich möchte zusätzlich erreichen das das Licht ausgeschaltet wird wenn das Fenster geöffnet wird. Das klappt leider noch nicht.
      Vielleicht kann mir ja jemand helfen? :-)

      Blockly.jpg

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="on" id="ABgA-YpCD0_:FW#`]-D~" x="-212" y="-162">
          <field name="OID">zigbee.0.ec1bbdfffe1a82b4.occupancy</field>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="timeouts_cleartimeout" id="e.%ON12lN}]BY*B:BCwt">
              <field name="NAME">timeout</field>
              <next>
                <block type="controls_if" id="QfNq1ohP{pK)H=??FmfQ">
                  <value name="IF0">
                    <block type="logic_operation" id="jjnRS.k,=hos07o5yneu" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id="RlV8~9VPB00~mD$w;k^{">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="KBZAHBs.b{k=]+|Eiu]z">
                              <field name="ATTR">val</field>
                              <field name="OID">zigbee.0.00158d00052dd8d1.opened</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id=")?Fp#U*iiJ,5)If+7jQz">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="time_compare_ex" id="zHM:E}OhJ:p%$BB}=eMa">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                          <field name="USE_ACTUAL_TIME">TRUE</field>
                          <field name="OPTION">between</field>
                          <value name="START_TIME">
                            <shadow type="text" id=")K$O%{CI}*FS5`a6RSKC">
                              <field name="TEXT">17:00</field>
                            </shadow>
                          </value>
                          <value name="END_TIME">
                            <shadow type="text" id="$/3A,,8V,)56yFVgEg#u">
                              <field name="TEXT">23:00</field>
                            </shadow>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="yP_9@cCm@DkF#aB8I$O1">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="pdjZ9Gb69-h@+*E1LISB">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="H^2##*2ItH#w1X9+t;fH">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">zigbee.0.680ae2fffec645c0.brightness</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="f.~rsam/KT3ysd)U^1*=">
                              <field name="NUM">10</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_settimeout" id="x.85~d+6.@PI?.#Ie!(y">
                              <field name="NAME">timeout</field>
                              <field name="DELAY">10</field>
                              <field name="UNIT">min</field>
                              <statement name="STATEMENT">
                                <block type="control" id="hTAP5Uw[pUn.U_[SPAnQ">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="E)v;=@P|%c~!m|P.*o2O">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      
      C Offline
      C Offline
      Chrunchy
      schrieb am zuletzt editiert von
      #2

      @mikemike Du brauchst einen anderen Trigger, also ein weiteres Script, Wenn Fenster aufgemacht wird, mache Licht aus.

      Gruß Chrunchy

      M 3 Antworten Letzte Antwort
      0
      • C Chrunchy

        @mikemike Du brauchst einen anderen Trigger, also ein weiteres Script, Wenn Fenster aufgemacht wird, mache Licht aus.

        M Offline
        M Offline
        MikeMike
        schrieb am zuletzt editiert von
        #3

        @chrunchy
        Kann ich den Trigger einfach in das bestehende Blockly einfügen?

        1 Antwort Letzte Antwort
        0
        • C Chrunchy

          @mikemike Du brauchst einen anderen Trigger, also ein weiteres Script, Wenn Fenster aufgemacht wird, mache Licht aus.

          M Offline
          M Offline
          MikeMike
          schrieb am zuletzt editiert von
          #4

          @chrunchy
          OK, das war ja ganz einfach... 🙄
          Vielen Dank!

          1 Antwort Letzte Antwort
          0
          • C Chrunchy

            @mikemike Du brauchst einen anderen Trigger, also ein weiteres Script, Wenn Fenster aufgemacht wird, mache Licht aus.

            M Offline
            M Offline
            MikeMike
            schrieb am zuletzt editiert von
            #5

            @chrunchy
            Ist es auch möglich, das wenn das Fenster per Zeitschaltung eingeschaltet und durch den Fensterkontakt kurzzeitig ausgeschaltet wurde, automatisch mit der Zeitschaltung weitermacht und eingeschaltet wird?

            Blockly.jpg

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable type="timeout" id="timeout">timeout</variable>
              </variables>
              <block type="on_ext" id="$i%XYCQCm(WoxC)_L6N/" x="-237" y="-262">
                <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                <field name="CONDITION">true</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="6_H#cx4lra;p3F3Mb2E;">
                    <field name="oid">zigbee.0.00158d00052dd8d1.opened</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="control" id="gx-?.,3q35FN|lsBD[GA">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="PXuFdErbzqctLn,oVp[7">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
              <block type="astro" id="FdDk7K4w1@#%d=f$ET0t" x="238" y="-262">
                <field name="TYPE">sunset</field>
                <field name="OFFSET">0</field>
                <statement name="STATEMENT">
                  <block type="control" id="+xkP8{6x*+7!FqH|J0),">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="Tsd*unyPiC.^MVsj`.v~">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="schedule" id="3VR}H3ML;[Izgqor.aXy">
                    <field name="SCHEDULE">{"time":{"exactTime":true,"start":"23:00"},"period":{"days":1}}</field>
                    <statement name="STATEMENT">
                      <block type="control" id="WPx*Z8-znYH_RW$FIGea">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="7hSS}zX#eQ7dZBI8MwU]">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
              <block type="on" id="ABgA-YpCD0_:FW#`]-D~" x="-230" y="-100">
                <field name="OID">zigbee.0.ec1bbdfffe1a82b4.occupancy</field>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="timeouts_cleartimeout" id="e.%ON12lN}]BY*B:BCwt">
                    <field name="NAME">timeout</field>
                    <next>
                      <block type="controls_if" id="QfNq1ohP{pK)H=??FmfQ">
                        <value name="IF0">
                          <block type="logic_operation" id="jjnRS.k,=hos07o5yneu" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="RlV8~9VPB00~mD$w;k^{">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="KBZAHBs.b{k=]+|Eiu]z">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zigbee.0.00158d00052dd8d1.opened</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id=")?Fp#U*iiJ,5)If+7jQz">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="(vYjZP=Ycm#6VC4H+f|7" inline="false">
                                <field name="OP">OR</field>
                                <value name="A">
                                  <block type="time_compare_ex" id="zHM:E}OhJ:p%$BB}=eMa">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                    <field name="USE_ACTUAL_TIME">TRUE</field>
                                    <field name="OPTION">between</field>
                                    <value name="START_TIME">
                                      <shadow type="text" id=")K$O%{CI}*FS5`a6RSKC">
                                        <field name="TEXT">17:00</field>
                                      </shadow>
                                    </value>
                                    <value name="END_TIME">
                                      <shadow type="text" id="$/3A,,8V,)56yFVgEg#u">
                                        <field name="TEXT">23:00</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="time_compare_ex" id="ob[^YH3wDPu`W!#9TZ~i">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                    <field name="USE_ACTUAL_TIME">TRUE</field>
                                    <field name="OPTION">between</field>
                                    <value name="START_TIME">
                                      <shadow type="text" id=":dX1_VzSz,XHV-Ms:v8x">
                                        <field name="TEXT">05:00</field>
                                      </shadow>
                                    </value>
                                    <value name="END_TIME">
                                      <shadow type="text" id="UlQwWudm[f3_Mc1FE0wS">
                                        <field name="TEXT">08:00</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="yP_9@cCm@DkF#aB8I$O1">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="pdjZ9Gb69-h@+*E1LISB">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="H^2##*2ItH#w1X9+t;fH">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">zigbee.0.680ae2fffec645c0.brightness</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="f.~rsam/KT3ysd)U^1*=">
                                    <field name="NUM">10</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="timeouts_settimeout" id="x.85~d+6.@PI?.#Ie!(y">
                                    <field name="NAME">timeout</field>
                                    <field name="DELAY">10</field>
                                    <field name="UNIT">min</field>
                                    <statement name="STATEMENT">
                                      <block type="control" id="hTAP5Uw[pUn.U_[SPAnQ">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="E)v;=@P|%c~!m|P.*o2O">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </xml>
            
            C 1 Antwort Letzte Antwort
            0
            • M MikeMike

              @chrunchy
              Ist es auch möglich, das wenn das Fenster per Zeitschaltung eingeschaltet und durch den Fensterkontakt kurzzeitig ausgeschaltet wurde, automatisch mit der Zeitschaltung weitermacht und eingeschaltet wird?

              Blockly.jpg

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable type="timeout" id="timeout">timeout</variable>
                </variables>
                <block type="on_ext" id="$i%XYCQCm(WoxC)_L6N/" x="-237" y="-262">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                  <field name="CONDITION">true</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="6_H#cx4lra;p3F3Mb2E;">
                      <field name="oid">zigbee.0.00158d00052dd8d1.opened</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="control" id="gx-?.,3q35FN|lsBD[GA">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="PXuFdErbzqctLn,oVp[7">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
                <block type="astro" id="FdDk7K4w1@#%d=f$ET0t" x="238" y="-262">
                  <field name="TYPE">sunset</field>
                  <field name="OFFSET">0</field>
                  <statement name="STATEMENT">
                    <block type="control" id="+xkP8{6x*+7!FqH|J0),">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="Tsd*unyPiC.^MVsj`.v~">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <next>
                    <block type="schedule" id="3VR}H3ML;[Izgqor.aXy">
                      <field name="SCHEDULE">{"time":{"exactTime":true,"start":"23:00"},"period":{"days":1}}</field>
                      <statement name="STATEMENT">
                        <block type="control" id="WPx*Z8-znYH_RW$FIGea">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="7hSS}zX#eQ7dZBI8MwU]">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
                <block type="on" id="ABgA-YpCD0_:FW#`]-D~" x="-230" y="-100">
                  <field name="OID">zigbee.0.ec1bbdfffe1a82b4.occupancy</field>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <statement name="STATEMENT">
                    <block type="timeouts_cleartimeout" id="e.%ON12lN}]BY*B:BCwt">
                      <field name="NAME">timeout</field>
                      <next>
                        <block type="controls_if" id="QfNq1ohP{pK)H=??FmfQ">
                          <value name="IF0">
                            <block type="logic_operation" id="jjnRS.k,=hos07o5yneu" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="RlV8~9VPB00~mD$w;k^{">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="KBZAHBs.b{k=]+|Eiu]z">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.00158d00052dd8d1.opened</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id=")?Fp#U*iiJ,5)If+7jQz">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_operation" id="(vYjZP=Ycm#6VC4H+f|7" inline="false">
                                  <field name="OP">OR</field>
                                  <value name="A">
                                    <block type="time_compare_ex" id="zHM:E}OhJ:p%$BB}=eMa">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                      <field name="USE_ACTUAL_TIME">TRUE</field>
                                      <field name="OPTION">between</field>
                                      <value name="START_TIME">
                                        <shadow type="text" id=")K$O%{CI}*FS5`a6RSKC">
                                          <field name="TEXT">17:00</field>
                                        </shadow>
                                      </value>
                                      <value name="END_TIME">
                                        <shadow type="text" id="$/3A,,8V,)56yFVgEg#u">
                                          <field name="TEXT">23:00</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="time_compare_ex" id="ob[^YH3wDPu`W!#9TZ~i">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                      <field name="USE_ACTUAL_TIME">TRUE</field>
                                      <field name="OPTION">between</field>
                                      <value name="START_TIME">
                                        <shadow type="text" id=":dX1_VzSz,XHV-Ms:v8x">
                                          <field name="TEXT">05:00</field>
                                        </shadow>
                                      </value>
                                      <value name="END_TIME">
                                        <shadow type="text" id="UlQwWudm[f3_Mc1FE0wS">
                                          <field name="TEXT">08:00</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="yP_9@cCm@DkF#aB8I$O1">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="pdjZ9Gb69-h@+*E1LISB">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="H^2##*2ItH#w1X9+t;fH">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">zigbee.0.680ae2fffec645c0.brightness</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="f.~rsam/KT3ysd)U^1*=">
                                      <field name="NUM">10</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="timeouts_settimeout" id="x.85~d+6.@PI?.#Ie!(y">
                                      <field name="NAME">timeout</field>
                                      <field name="DELAY">10</field>
                                      <field name="UNIT">min</field>
                                      <statement name="STATEMENT">
                                        <block type="control" id="hTAP5Uw[pUn.U_[SPAnQ">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">zigbee.0.680ae2fffec645c0.state</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="E)v;=@P|%c~!m|P.*o2O">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </xml>
              
              C Offline
              C Offline
              Chrunchy
              schrieb am zuletzt editiert von
              #6

              @mikemike Also "weitermachen" kann ich mir nicht vorstellen. Du könntest aber beim trigger am Fensterkontakt prüfen ob welchen Status das Licht hat und diesen Zwischenspeichern und nach Schließen des Fensters wieder aktivieren (Damit würeden dann aber deine Zeit wieder von vorne anfangen zu laufen). Zusätzlich wird es dann aber in sofern aufwendig, weil es eben einige Parameter zu beachten gibt. Was passiert bzw. soll passieren, wenn das Fenster erst nach deinem Aktivitätszeitfenster geschlossen wird?
              Zusätzliche hättest du dann für dein Licht 2 Trigger, nämlich einmel den BWM und zusätzlich noch den Fensterkontakt. Ob das dann im Ergebnis sinnvoll ist, kann ich nicht sagen.

              Gruß Chrunchy

              1 Antwort Letzte Antwort
              0

              Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

              Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

              Mit deinem Input könnte dieser Beitrag noch besser werden 💗

              Registrieren Anmelden
              Antworten
              • In einem neuen Thema antworten
              Anmelden zum Antworten
              • Älteste zuerst
              • Neuste zuerst
              • Meiste Stimmen


              Support us

              ioBroker
              Community Adapters
              Donate

              561

              Online

              32.7k

              Benutzer

              82.6k

              Themen

              1.3m

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

              • Du hast noch kein Konto? Registrieren

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