Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Tado Fenstersteuerung Blockly

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Tado Fenstersteuerung Blockly

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Robbi12 last edited by

      Hallo, ich bekomme es einfach nicht mehr hin. Hat schon mal sehr gut funktioniert. Ich denke seit ich den Java Adapter aktualisiert habe funktioniert es nicht mehr. Kann mich aber täuschen.

      Unbenannt.JPG
      Unbenannt1.JPG
      Unbenannt3.JPG

      Was will ich. Ich möchte, dass die Meldung Offen erst nach 2 Minuten kommt und auch nach 2 Minuten erst ausgeschaltet wird. Das kommt auch.

      Wenn ich aber weniger als 2 Minuten öffne, soll nichts passieren. Das klappt nicht. Es wird nach 2 Minuten trotzdem geschaltet. Erst wenn ich das Fenster auf und wieder zu mache wird wieder umgeschaltet

      S paul53 2 Replies Last reply Reply Quote 0
      • S
        SoerenKaiser99 @Robbi12 last edited by SoerenKaiser99

        @robbi12
        Hi Robbi,

        vielleicht hilft dir mein Skript als Vorlage.
        Es fehlen zwar die punkte zur Lautstärke weil die bei uns niemand an den entsprechenden Echos verstellt aber ansonsten müsstest du es übertragen können.

        Ich verwende nur statt clear zone overlay power on/off mit einer variable weil tado sonst immer auf den Zeitplan zurück fällt.

        Das ist recht nervig wenn der Zeitplan heizen vorsieht, man aber eben die Heizung ausgestellt hat weil es draußen schön ist oder wird. Wenn dann ein Fenster geöffnet und wieder geschlossen wird, gilt wieder der Zeitplayn durch den clear befehl und nicht die vorherige Ausschaltung.... Das hat meine Frau Gemahlin wahnsinnig gemacht 😜

        Mit on off wird zumindest der Zustand beibehalten - allerdings auf unendlich bis vom Nutzer geändert... Wer hier den kompleten Zustand erhalten mag muss mit mehr variablen arbeiten.

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="3Xk#BH(rqF#nM*$Y}|=e">Schlafzimmer</variable>
            <variable id="D@N*+eOFIbunD!vf:Q5o">Bad</variable>
            <variable type="timeout" id="timeout3">timeout3</variable>
            <variable id="i8UF|w=io=A9t3`I=aFD">Wohnzimmer</variable>
            <variable id="%W)-/oXgd7pMKeb*l/ML">Kind</variable>
            <variable type="timeout" id="timeout2">timeout2</variable>
            <variable id="n!B_0)R/[j2NaO}-|h8E">Büro</variable>
            <variable type="timeout" id="timeout">timeout</variable>
          </variables>
          <block type="comment" id="VB.@{]Z62ZlxsBnYt-he" x="-1013" y="-2288">
            <field name="COMMENT">Schlafzimmer</field>
            <next>
              <block type="on_ext" id="[[(Tj4q@gL@d|Vr3/Xg3">
                <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="5W$STEPHZuK#0_t|Hsv8">
                    <field name="oid">deconz.0.sensors.00158d0004aaf243.open</field>
                  </shadow>
                </value>
                <value name="OID1">
                  <shadow type="field_oid" id="lq+{F8#c!nMf)mf)K5kE">
                    <field name="oid">deconz.0.sensors.00158d0002435288.open</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="sa2=BBs^A0YFI.PJg1CA">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="%^@M/%PL5T/AX6m~A@CY">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="logic_operation" id="0!ix)U/_{G]LzmB)rk@g" inline="false">
                            <field name="OP">OR</field>
                            <value name="A">
                              <block type="get_value" id="n]C{ZV?X}.Acd]{#R/gr">
                                <field name="ATTR">val</field>
                                <field name="OID">deconz.0.sensors.00158d0002435288.open</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="get_value" id="W99G*XZ?g/2#A$#ne6Hx">
                                <field name="ATTR">val</field>
                                <field name="OID">deconz.0.sensors.00158d0004aaf243.open</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="6h+^BZ%*O.X%viO8[3/v">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="comment" id="JI*mh!^--_`gK1Ks8:zh">
                        <field name="COMMENT">Aktuelle Einstellung EIN/AUS</field>
                        <next>
                          <block type="variables_set" id="]6j1:Pc+3XB4H?GBTh~Y">
                            <field name="VAR" id="3Xk#BH(rqF#nM*$Y}|=e">Schlafzimmer</field>
                            <value name="VALUE">
                              <block type="get_value" id="o.n0re!l]ykr:yE6noNe">
                                <field name="ATTR">val</field>
                                <field name="OID">tado.0.214860.Rooms.6.setting.power</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="Bu-NOIlHgLIVbe03qv;K">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                <field name="OID">tado.0.214860.Rooms.6.setting.power</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">2</field>
                                <field name="UNIT">sec</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="text" id="K]JPI4[2]aQDh!~Pd/Cr">
                                    <field name="TEXT">OFF</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="control" id="km!$MG9}uo.%z4PDmAV0">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">tado.0.214860.Rooms.6.setting.power</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="variables_get" id="z3ar{#~-)8^PV|Q0Ps(9">
                            <field name="VAR" id="3Xk#BH(rqF#nM*$Y}|=e">Schlafzimmer</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
                <next>
                  <block type="comment" id="x-iE,7r`K_T.7qhR)`q-">
                    <field name="COMMENT">Badezimmer</field>
                    <next>
                      <block type="on_ext" id=")o-Xo]EiP*ZhdA^@B+q7">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="`v;b(M[`C,dD6[P3Qi]!">
                            <field name="oid">deconz.0.sensors.00158d000236fddb.open</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="D4Svlia2ymbF~4(_TmTa">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="PBGh-]PUH~L%l7`r*;+9">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="I=l0wz~Q`anqpYTQUi!8">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.sensors.00158d000236fddb.open</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="nnTf$cWA`JyLMqmE7eBz">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="Oa6JODL6R9ub}{PE@4Oh">
                                <field name="VAR" id="D@N*+eOFIbunD!vf:Q5o">Bad</field>
                                <value name="VALUE">
                                  <block type="get_value" id="GWkBB/f4*e}|RH1q+,_$">
                                    <field name="ATTR">val</field>
                                    <field name="OID">tado.0.214860.Rooms.4.setting.power</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="vWhWo)=%AdeGa0w=HXw{">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                    <field name="OID">tado.0.214860.Rooms.4.setting.power</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">2</field>
                                    <field name="UNIT">sec</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <value name="VALUE">
                                      <block type="text" id="-eyJ`?%Kqu)R8/Y#99h-">
                                        <field name="TEXT">OFF</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="timeouts_settimeout" id="-Rl*LzV{.3py=^Ig#tP$">
                                        <field name="NAME">timeout3</field>
                                        <field name="DELAY">3</field>
                                        <field name="UNIT">min</field>
                                        <statement name="STATEMENT">
                                          <block type="controls_if" id="Htt6^WVR+(Xy5#cQ7D(u">
                                            <value name="IF0">
                                              <block type="logic_compare" id="_)Q35M,K6mkZ{Iw]19S3">
                                                <field name="OP">LTE</field>
                                                <value name="A">
                                                  <block type="get_value" id="UkLH.f/a857}N?[Dq1p|">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">wiffi-wz.0.root.192_168_3_207.w_temperatur</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="^=a?Kc~/YXd|ZiMhjGYe">
                                                    <field name="NUM">20</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id="sY*5sbXiKl}AlLcykeD(">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">alexa2.0.Echo-Devices.G0916D1004520AAH.Commands.announcement</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="text" id="L|0:]+1j#F0/qv`UQ(,Y">
                                                    <field name="TEXT">Badezimmerenster schließen</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="bzHVKbGNLu?{7j?=}(JP">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">alexa2.0.Echo-Devices.G090XG09950713QB.Commands.announcement</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="text" id="znza;#k%y8R!q!((wgWT">
                                                        <field name="TEXT">Badezimmerenster schließen</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="telegram" id="M9,U{9QO4NzeCd[fM!/j">
                                                        <field name="INSTANCE"></field>
                                                        <field name="LOG"></field>
                                                        <field name="SILENT">FALSE</field>
                                                        <field name="PARSEMODE">default</field>
                                                        <value name="MESSAGE">
                                                          <shadow type="text" id="v6@H^JbH!9*(._:Z!hMU">
                                                            <field name="TEXT">Badezimmerfenster schließen</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="timeouts_cleartimeout" id="oHiBOyY#ja%%zvL5Vu%~">
                                <field name="NAME">timeout3</field>
                                <next>
                                  <block type="control" id="!cEsCEt?2YxJIxq*5Z5=">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">tado.0.214860.Rooms.4.setting.power</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="variables_get" id=";hP,Ux:~J_)r)=}Pzc`N">
                                        <field name="VAR" id="D@N*+eOFIbunD!vf:Q5o">Bad</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <next>
                          <block type="comment" id="JUOF:o6f2;393q=MhF*X">
                            <field name="COMMENT">Wohnzimmer</field>
                            <next>
                              <block type="on_ext" id="h65yb*v,O[Q*Ld~OJ6az">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                                <field name="CONDITION">ne</field>
                                <field name="ACK_CONDITION"></field>
                                <value name="OID0">
                                  <shadow type="field_oid" id="+mZd2YEc|Vi2;u=(!zu;">
                                    <field name="oid">deconz.0.sensors.00158d000232c24e.open</field>
                                  </shadow>
                                </value>
                                <value name="OID1">
                                  <shadow type="field_oid" id="j/QB`MO~pEf;HIc5Dk_j">
                                    <field name="oid">deconz.0.sensors.00158d000232de78.open</field>
                                  </shadow>
                                </value>
                                <value name="OID2">
                                  <shadow type="field_oid" id="6,Byw4I,_Fw!+x5y/~O2">
                                    <field name="oid">deconz.0.sensors.00158d000248cc0c.open</field>
                                  </shadow>
                                </value>
                                <statement name="STATEMENT">
                                  <block type="controls_if" id="T-M^_5VI]mKBN6$-s{t5">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="logic_compare" id="(is_@8I`0]~A2NdX2D)s">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="logic_operation" id="9Y`vm:L%7y}Q#n[#KjY8" inline="false">
                                            <field name="OP">OR</field>
                                            <value name="A">
                                              <block type="get_value" id="QyP(ht4^N)#GW}xF^gdg">
                                                <field name="ATTR">val</field>
                                                <field name="OID">deconz.0.sensors.00158d000232c24e.open</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_operation" id="(S[W,MODT5d#HV8v;Wrz" inline="false">
                                                <field name="OP">OR</field>
                                                <value name="A">
                                                  <block type="get_value" id="VP@(b[2^?;iZ#JmAA;DQ">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">deconz.0.sensors.00158d000248cc0c.open</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="get_value" id="r@ZN]ejvqgo{Tl1{*RQS">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">deconz.0.sensors.00158d000232de78.open</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="logic_boolean" id="Jb;)/$rQdMo43~~m$d4~">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id=".auoFgnjTa#weh$nPf*`">
                                        <field name="VAR" id="i8UF|w=io=A9t3`I=aFD">Wohnzimmer</field>
                                        <value name="VALUE">
                                          <block type="get_value" id="50es|s^4Ja`v`siC+.^N">
                                            <field name="ATTR">val</field>
                                            <field name="OID">tado.0.214860.Rooms.1.setting.power</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="I(Yf)D=NHKPY;0z=fRSU">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                            <field name="OID">tado.0.214860.Rooms.1.setting.power</field>
                                            <field name="WITH_DELAY">TRUE</field>
                                            <field name="DELAY_MS">2</field>
                                            <field name="UNIT">sec</field>
                                            <field name="CLEAR_RUNNING">FALSE</field>
                                            <value name="VALUE">
                                              <block type="text" id="1o7N$o55xA;5wZALhji:">
                                                <field name="TEXT">OFF</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="timeouts_settimeout" id="XOK+,@R#W?t[*=W~^4(Z">
                                                <field name="NAME">timeout2</field>
                                                <field name="DELAY">3</field>
                                                <field name="UNIT">min</field>
                                                <statement name="STATEMENT">
                                                  <block type="controls_if" id="k.QgHH|-U3[Ktxs#:bd;">
                                                    <value name="IF0">
                                                      <block type="logic_compare" id="o^-j(FWko/aW%nB;uy8o">
                                                        <field name="OP">LTE</field>
                                                        <value name="A">
                                                          <block type="get_value" id="}j|LhydOO@4TVB{6%NQI">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">wiffi-wz.0.root.192_168_3_207.w_temperatur</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id="DW;18Qt)!1pR$jMP|m.6">
                                                            <field name="NUM">20</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="control" id="41Df4n`mQj5B_EGTD{Ss">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">alexa2.0.Echo-Devices.G0916D1004520AAH.Commands.announcement</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="text" id="N{BY3^SSDQ1Rveogy3rT">
                                                            <field name="TEXT">Wohnzimmerfenster schließen</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="telegram" id="k{[uNS9K5Y!=-5ZNZ!]F">
                                                            <field name="INSTANCE"></field>
                                                            <field name="LOG"></field>
                                                            <field name="SILENT">FALSE</field>
                                                            <field name="PARSEMODE">default</field>
                                                            <value name="MESSAGE">
                                                              <shadow type="text" id="n,f0bupPuvoQ,BBh7IE@">
                                                                <field name="TEXT">Wohnzimmerfenster schließen</field>
                                                              </shadow>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="timeouts_cleartimeout" id="X4UmVKSq%aOP^-:MrEh7">
                                        <field name="NAME">timeout2</field>
                                        <next>
                                          <block type="control" id="pt|YyQF_TIwyk34k~UdK">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">tado.0.214860.Rooms.1.setting.power</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="]CZOeBEF{SdUy(^=a@BL">
                                                <field name="VAR" id="i8UF|w=io=A9t3`I=aFD">Wohnzimmer</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <next>
                                  <block type="comment" id="8Y{|x^QsNV}ZUFVaAq^R">
                                    <field name="COMMENT">Kinderzimmer</field>
                                    <next>
                                      <block type="on_ext" id="4Gi1nBuO2S+mxLTl}epT">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                        <field name="CONDITION">ne</field>
                                        <field name="ACK_CONDITION"></field>
                                        <value name="OID0">
                                          <shadow type="field_oid" id="XHB!*OX6*o84Gt4[Pn*7">
                                            <field name="oid">deconz.0.sensors.00158d000236fcdc.open</field>
                                          </shadow>
                                        </value>
                                        <statement name="STATEMENT">
                                          <block type="controls_if" id="ydy@XgA~bi[gY!tF5(?Q">
                                            <mutation else="1"></mutation>
                                            <value name="IF0">
                                              <block type="logic_compare" id="9v#a5uccPH?Q]|?U#[K|">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="get_value" id="+#B*]:bhc!}Q!9b#`tcy">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">deconz.0.sensors.00158d000236fcdc.open</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="OBD}`w1|=lTFfZl%9sSw">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="variables_set" id="F^Dfa08Y8z_Z=nF9/EZq">
                                                <field name="VAR" id="%W)-/oXgd7pMKeb*l/ML">Kind</field>
                                                <value name="VALUE">
                                                  <block type="get_value" id="YdKf7Tr3C`TA$koJPZ--">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">tado.0.214860.Rooms.5.setting.power</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="L@54=]FDv%deKOrK3`Y{">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                    <field name="OID">tado.0.214860.Rooms.5.setting.power</field>
                                                    <field name="WITH_DELAY">TRUE</field>
                                                    <field name="DELAY_MS">2</field>
                                                    <field name="UNIT">sec</field>
                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="text" id="3lqypId)OSMOCvr~_{UL">
                                                        <field name="TEXT">OFF</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <statement name="ELSE">
                                              <block type="control" id="h^z_+?]yT*9+!X!Jm#}4">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">tado.0.214860.Rooms.5.setting.power</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="variables_get" id="~Dk]T:mSTJgINp=!l!P+">
                                                    <field name="VAR" id="%W)-/oXgd7pMKeb*l/ML">Kind</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="comment" id="yk+ATt+TpbCOK-a^%umP">
                                            <field name="COMMENT">Büro</field>
                                            <next>
                                              <block type="on_ext" id="h+/IW~uT#3v4b7:7wC/v">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                <field name="CONDITION">ne</field>
                                                <field name="ACK_CONDITION"></field>
                                                <value name="OID0">
                                                  <shadow type="field_oid" id="y`RQ7lnk.j1*HCq4M%)d">
                                                    <field name="oid">deconz.0.sensors.00158d000243645d.open</field>
                                                  </shadow>
                                                </value>
                                                <statement name="STATEMENT">
                                                  <block type="controls_if" id="wI)+]*D^H^nVtZp:nb].">
                                                    <mutation else="1"></mutation>
                                                    <value name="IF0">
                                                      <block type="logic_compare" id="O%aI?6Qzu5]}_x~+K{8]">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="1WQ$FMs.a^=sUUl2pK|!">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">deconz.0.sensors.00158d000243645d.open</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="PbF+5,syG7DX{7+kp6=M">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="variables_set" id="ewR!dxzp1%bda!P:Rt{!">
                                                        <field name="VAR" id="n!B_0)R/[j2NaO}-|h8E">Büro</field>
                                                        <value name="VALUE">
                                                          <block type="get_value" id="Dyv#ol{kj!C};^(]@s,[">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">tado.0.214860.Rooms.3.setting.power</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="p~__AH.1:S]{x*fj8%:_">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                            <field name="OID">tado.0.214860.Rooms.3.setting.power</field>
                                                            <field name="WITH_DELAY">TRUE</field>
                                                            <field name="DELAY_MS">2</field>
                                                            <field name="UNIT">sec</field>
                                                            <field name="CLEAR_RUNNING">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="text" id="Mhe@P0?v8O86^@F-o~w{">
                                                                <field name="TEXT">OFF</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="timeouts_settimeout" id="dV~lHwnzKHn`%Z[eb9`g">
                                                                <field name="NAME">timeout</field>
                                                                <field name="DELAY">3</field>
                                                                <field name="UNIT">min</field>
                                                                <statement name="STATEMENT">
                                                                  <block type="controls_if" id="z!`c!f{=AwD*C~@{1(Ze">
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id="QfF!d}vB]/haaLl^-*NK">
                                                                        <field name="OP">LTE</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="@mJExl-Kyrab~fXfvsYj">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">wiffi-wz.0.root.192_168_3_207.w_temperatur</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="math_number" id="1gr3:RJgh:galRz!3]U/">
                                                                            <field name="NUM">20</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="control" id="$yf.4Wbt}7xc?Wd.r`dc">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alexa2.0.Echo-Devices.G090VP04908501B0.Commands.announcement</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="text" id="QR,@;I{[}6V}cuz}zq73">
                                                                            <field name="TEXT">Bürofenster schließen</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="telegram" id="nd.;imH!@Zl,=19Bh$VG">
                                                                            <field name="INSTANCE"></field>
                                                                            <field name="LOG"></field>
                                                                            <field name="SILENT">FALSE</field>
                                                                            <field name="PARSEMODE">default</field>
                                                                            <value name="MESSAGE">
                                                                              <shadow type="text" id="Ukh.I:ZJrVBm0`Hz_6EL">
                                                                                <field name="TEXT">Bürofenster schließen</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                    <statement name="ELSE">
                                                      <block type="timeouts_cleartimeout" id="xt.MXLYfsP8;=ZWh-Rc?">
                                                        <field name="NAME">timeout</field>
                                                        <next>
                                                          <block type="control" id="TP}3[V8]bq7:Q7(8s(IK">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">tado.0.214860.Rooms.3.setting.power</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="variables_get" id="*ZN%HT6XKwbk~T5e}w*:">
                                                                <field name="VAR" id="n!B_0)R/[j2NaO}-|h8E">Büro</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>
        

        Ansonsten kann ich dir das Fensterskript von Pittini empfehlen. dort bekommst du eine Lüftungsempfehlung pro Raum als Datenpunkt True/false... Dann kannst im skript schauen wie lang der DP true ist und bei wechsel die Meldung ausgeben:

        iobroker-Fensterauswertung

        Slowman 1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @Robbi12 last edited by paul53

          @robbi12 sagte: Es wird nach 2 Minuten trotzdem geschaltet.

          Beim Schließen müssen timeout und Intervall gestoppt werden. Etwa so:

          Bild_2021-05-02_181713.png

          1 Reply Last reply Reply Quote 0
          • Slowman
            Slowman @SoerenKaiser99 last edited by

            @soerenkaiser99

            Verstehe ich nicht ganz, habe dasselbe Problem, wenn man die Heizung per App ausmacht und irgendwo ein Fenster schließt, das Automatikprogramm (clear zone overlay power on) wieder läuft. Nimmt er den letzten Schaltpunkt, zur Wiederherstellung an?
            Danke für einen Tipp.

            S 1 Reply Last reply Reply Quote 0
            • S
              SoerenKaiser99 @Slowman last edited by

              @slowman du darfst eben nicht clear zone overlay schalten sondern power in dem Fall dann wieder auf on.
              Er nimmt alle letzten Eeinstellungen weil diese nicht geändert werden. Bei clear wird eben alles gelöscht und der Zeitplan wieder hergestellt

              Bluelinux 1 Reply Last reply Reply Quote 1
              • Bluelinux
                Bluelinux @SoerenKaiser99 last edited by

                @soerenkaiser99
                Hallo,

                vielen dank für das Skript, allerdings läuft das bei mir leider nicht so richtig. Eventuell kannst du mir ja helfen.

                Problem: Ich habe im Wohnzimmer 3 Fenster und eine Balkontür. Wenn ich erst ein Fenster öffne und dann die Balkontür, bleibt der Zustand nach schleißen des Fenster und der Balkontür "OFF". Irgendwie bekomme ich das nicht hin das es danach wieder in den ON modus geht.

                <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="h65yb*v,O[Q*Ld~OJ6az" x="-1013" y="-1537">
                 <mutation xmlns="http://www.w3.org/1999/xhtml" items="4"></mutation>
                 <field name="CONDITION">ne</field>
                 <field name="ACK_CONDITION"></field>
                 <value name="OID0">
                   <shadow type="field_oid" id="+mZd2YEc|Vi2;u=(!zu;">
                     <field name="oid">zigbee.0.00158d0002138432.opened</field>
                   </shadow>
                 </value>
                 <value name="OID1">
                   <shadow type="field_oid" id="j/QB`MO~pEf;HIc5Dk_j">
                     <field name="oid">zigbee.0.00158d0002a62167.opened</field>
                   </shadow>
                 </value>
                 <value name="OID2">
                   <shadow type="field_oid" id="6,Byw4I,_Fw!+x5y/~O2">
                     <field name="oid">zigbee.0.00158d0002a62171.opened</field>
                   </shadow>
                 </value>
                 <value name="OID3">
                   <shadow type="field_oid" id="UV%3o/*cH$18NQFC)CN)">
                     <field name="oid">zigbee.0.00158d0002a65faf.opened</field>
                   </shadow>
                 </value>
                 <statement name="STATEMENT">
                   <block type="controls_if" id="T-M^_5VI]mKBN6$-s{t5">
                     <mutation else="1"></mutation>
                     <value name="IF0">
                       <block type="logic_compare" id="(is_@8I`0]~A2NdX2D)s">
                         <field name="OP">EQ</field>
                         <value name="A">
                           <block type="logic_operation" id="9Y`vm:L%7y}Q#n[#KjY8" inline="false">
                             <field name="OP">OR</field>
                             <value name="A">
                               <block type="logic_operation" id="PwMsWRWlrGLfM*C]!cJF" inline="false">
                                 <field name="OP">OR</field>
                                 <value name="A">
                                   <block type="get_value" id="LNS4Qkr_ZJG$Gs;fnM6:">
                                     <field name="ATTR">val</field>
                                     <field name="OID">zigbee.0.00158d0002138432.opened</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="get_value" id="g`q:Y?-wPMyHTt?|]L*J">
                                     <field name="ATTR">val</field>
                                     <field name="OID">zigbee.0.00158d0002a62167.opened</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <value name="B">
                               <block type="logic_operation" id="(S[W,MODT5d#HV8v;Wrz" inline="false">
                                 <field name="OP">OR</field>
                                 <value name="A">
                                   <block type="get_value" id="VP@(b[2^?;iZ#JmAA;DQ">
                                     <field name="ATTR">val</field>
                                     <field name="OID">zigbee.0.00158d0002a62171.opened</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="get_value" id="r@ZN]ejvqgo{Tl1{*RQS">
                                     <field name="ATTR">val</field>
                                     <field name="OID">zigbee.0.00158d0002a65faf.opened</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <value name="B">
                           <block type="logic_boolean" id="Jb;)/$rQdMo43~~m$d4~">
                             <field name="BOOL">TRUE</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="variables_set" id=".auoFgnjTa#weh$nPf*`">
                         <field name="VAR" id="i8UF|w=io=A9t3`I=aFD">Wohnzimmer</field>
                         <value name="VALUE">
                           <block type="get_value" id="50es|s^4Ja`v`siC+.^N">
                             <field name="ATTR">val</field>
                             <field name="OID">tado.0.830071.Rooms.1.setting.power</field>
                           </block>
                         </value>
                         <next>
                           <block type="control" id="I(Yf)D=NHKPY;0z=fRSU">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                             <field name="OID">tado.0.830071.Rooms.1.setting.power</field>
                             <field name="WITH_DELAY">TRUE</field>
                             <field name="DELAY_MS">2</field>
                             <field name="UNIT">sec</field>
                             <field name="CLEAR_RUNNING">FALSE</field>
                             <value name="VALUE">
                               <block type="text" id="1o7N$o55xA;5wZALhji:">
                                 <field name="TEXT">OFF</field>
                               </block>
                             </value>
                             <next>
                               <block type="timeouts_settimeout" id="XOK+,@R#W?t[*=W~^4(Z">
                                 <field name="NAME">timeout2</field>
                                 <field name="DELAY">3</field>
                                 <field name="UNIT">min</field>
                                 <statement name="STATEMENT">
                                   <block type="controls_if" id="k.QgHH|-U3[Ktxs#:bd;">
                                     <value name="IF0">
                                       <block type="logic_compare" id="o^-j(FWko/aW%nB;uy8o">
                                         <field name="OP">LTE</field>
                                         <value name="A">
                                           <block type="get_value" id="}j|LhydOO@4TVB{6%NQI">
                                             <field name="ATTR">val</field>
                                             <field name="OID">zigbee.0.00158d000246575f.temperature</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="DW;18Qt)!1pR$jMP|m.6">
                                             <field name="NUM">20</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="control" id="41Df4n`mQj5B_EGTD{Ss">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                         <field name="OID">alexa2.0.Echo-Devices.612babf408084ce1b34b3c1fc56d7c5b.Commands.announcement</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="text" id="N{BY3^SSDQ1Rveogy3rT">
                                             <field name="TEXT">Wohnzimmerfenster schließen</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="telegram" id="k{[uNS9K5Y!=-5ZNZ!]F">
                                             <field name="INSTANCE"></field>
                                             <field name="LOG"></field>
                                             <field name="SILENT">FALSE</field>
                                             <field name="PARSEMODE">default</field>
                                             <value name="MESSAGE">
                                               <shadow type="text" id="n,f0bupPuvoQ,BBh7IE@">
                                                 <field name="TEXT">Wohnzimmerfenster schließen</field>
                                               </shadow>
                                             </value>
                                           </block>
                                         </next>
                                       </block>
                                     </statement>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <statement name="ELSE">
                       <block type="timeouts_cleartimeout" id="X4UmVKSq%aOP^-:MrEh7">
                         <field name="NAME">timeout2</field>
                         <next>
                           <block type="control" id="pt|YyQF_TIwyk34k~UdK">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">tado.0.830071.Rooms.1.setting.power</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="variables_get" id="]CZOeBEF{SdUy(^=a@BL">
                                 <field name="VAR" id="i8UF|w=io=A9t3`I=aFD">Wohnzimmer</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                 </statement>
                </block>
                


                problem.PNG
                Vielleicht kann mir jemand bei der Lösung helfen.

                Danke

                paul53 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Bluelinux last edited by paul53

                  @bluelinux
                  Bei Mehrfach-Triggern benötigt man eine zusätzliche Sperre "falls nicht timeout2", die den Mehrfachstart des Timers verhindert, wenn ein weiteres Fenster geöffnet wird.

                  Bild_2021-12-15_103822.png

                  Bluelinux 1 Reply Last reply Reply Quote 1
                  • Bluelinux
                    Bluelinux @paul53 last edited by

                    @paul53
                    Super leiben Dank... jetzt klappt das... aber sage mal was passiert denn nach den 3 Minuten? Angenommen ich mach nach den 3 Minuten ein zweites Fenster auf?

                    paul53 1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Bluelinux last edited by

                      @bluelinux sagte: was passiert denn nach den 3 Minuten? Angenommen ich mach nach den 3 Minuten ein zweites Fenster auf?

                      Dann funktioniert es auch ohne Sperre.

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      966
                      Online

                      31.9k
                      Users

                      80.1k
                      Topics

                      1.3m
                      Posts

                      5
                      9
                      994
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      Reply
                      • Reply as topic
                      Log in to reply
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                      The ioBroker Community 2014-2023
                      logo