Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Fenster noch offen - Funktion

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Fenster noch offen - Funktion

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

      Hallo!

      Ich glaube ich habe ein kleines Problem in meinem Skript. Wenn eines der Fenster auf geht wird der Trigger ausgelöst und die Funktion ausgeführt. Das klappt auch alles super wenn es nur ein Fenster ist. Die Nachricht nach 15 Minuten kommt auch. Es scheint nur ein "Problem" zu geben wenn zwei Fenster auf gehen und eines dann nach 6 Minuten wieder zu geht. Kann es sein das die Funktion dann den Timer auch für das erste Fenster stoppt?

      Hier noch das aktuelle Skript:

      8e56c10d-0514-4323-8af6-569f3944a4c3-image.png

      Wenn ja, wie kann man das lösen oder habt ihr noch komplett andere Überlegungen?

      Jetzt schon vielen Dank für die Hilfe!

      Export:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="2MizCR9HkAEujOmf!glN">Wert</variable>
          <variable id="j]m/.nz{`TQix/0xD}xx">Kanalname</variable>
          <variable id="Svw@IUYdsW_Fb(~Ja1)E">Object</variable>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="procedures_defnoreturn" id="Z/TCkg=3RT?X#387Y9Oe" x="363" y="-437">
          <mutation>
            <arg name="Wert" varid="2MizCR9HkAEujOmf!glN"></arg>
            <arg name="Kanalname" varid="j]m/.nz{`TQix/0xD}xx"></arg>
            <arg name="Object" varid="Svw@IUYdsW_Fb(~Ja1)E"></arg>
          </mutation>
          <field name="NAME">Check_Window</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="comment" id="|(D2Ft[IhoC{g@h_L7.f">
              <field name="COMMENT">Timer aus wenn script getriggerd wurde</field>
              <next>
                <block type="timeouts_cleartimeout" id="`BTocXf}=o!]:?,mQvbX">
                  <field name="NAME">timeout</field>
                  <next>
                    <block type="comment" id="X6m|6_qff4eY.M=AM543">
                      <field name="COMMENT">Verzögerung erst nach 15 min ausführen</field>
                      <next>
                        <block type="timeouts_settimeout" id="/%!)R.tf%9V3ExNR%E!c">
                          <field name="NAME">timeout</field>
                          <field name="DELAY">15</field>
                          <field name="UNIT">min</field>
                          <statement name="STATEMENT">
                            <block type="comment" id="U#t1Kw|!I:TZRf]^5(3}">
                              <field name="COMMENT">Hier noch die richtige object ID rein !</field>
                              <next>
                                <block type="controls_if" id="@}}V1nIS-jq,h%C@Ar}J">
                                  <value name="IF0">
                                    <block type="logic_compare" id="Cl!bHN7]dPn~lW?gLP-R">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value_var" id="Q!-gIEiExRdzwQZx#`Ks">
                                          <field name="ATTR">val</field>
                                          <value name="OID">
                                            <shadow type="text" id="5wCLcygQ:q0X.6[kZnZj">
                                              <field name="TEXT"></field>
                                            </shadow>
                                            <block type="variables_get" id="L!vmaTG_@Py`){.c1LuS">
                                              <field name="VAR" id="Svw@IUYdsW_Fb(~Ja1)E">Object</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="~-OP`RBeB$Ugl_)er*`1">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="comment" id="Z@(`:bH6IbBMDpp2vvaw">
                                      <field name="COMMENT">Und hier den code der ausgeführt werden soll</field>
                                      <next>
                                        <block type="pushover" id="#:a6;f3W5J:_di%U)7Md">
                                          <field name="INSTANCE"></field>
                                          <field name="SOUND"></field>
                                          <field name="PRIORITY">1</field>
                                          <field name="LOG"></field>
                                          <value name="MESSAGE">
                                            <shadow type="text" id="kx4O~(0$KDlJ=4))+b?o">
                                              <field name="TEXT">Fenster im Bad ist noch offen! Bitte schließen</field>
                                            </shadow>
                                            <block type="text_join" id="*O1tF^$z*VwzI0u7]TKT">
                                              <mutation items="3"></mutation>
                                              <value name="ADD0">
                                                <block type="text" id="oHzLgPzbbfZ(94g+JC-Q">
                                                  <field name="TEXT">Fenster im </field>
                                                </block>
                                              </value>
                                              <value name="ADD1">
                                                <block type="variables_get" id="rh=r)YFLF|9W+_?uAJkw">
                                                  <field name="VAR" id="j]m/.nz{`TQix/0xD}xx">Kanalname</field>
                                                </block>
                                              </value>
                                              <value name="ADD2">
                                                <block type="text" id="W^]seXTJPpeeG$Z1r4Bq">
                                                  <field name="TEXT"> ist noch offen! Bitte schließen!</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="TITLE">
                                            <block type="text" id="y1f-,s:;MJ;$%;bAS)]J">
                                              <field name="TEXT">Fenster noch offen!</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="comment" id="Qp$gcn3//.tGzg~eAs`r">
                                              <field name="COMMENT">Timer aus wenn Nachricht geschickt wurde</field>
                                              <next>
                                                <block type="timeouts_cleartimeout" id="ySQgH].tSAq`O%%d@}l[">
                                                  <field name="NAME">timeout</field>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="on_ext" id="C^}q`~i2SEmvcsk9_:s8" x="13" y="-412">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="8"></mutation>
          <field name="CONDITION">true</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="N}{a;,l,W/xvioWD$.Dv">
              <field name="oid">zigbee.0.00158d0003120f02.opened</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id="TPhWhsqPdcp[JNyFJoM8">
              <field name="oid">zigbee.0.00158d0003121015.opened</field>
            </shadow>
          </value>
          <value name="OID2">
            <shadow type="field_oid" id=";{I_Cy#@:{sbESa)GdzP">
              <field name="oid">zigbee.0.00158d000312da05.opened</field>
            </shadow>
          </value>
          <value name="OID3">
            <shadow type="field_oid" id="/W$*YgB`s|ak/MsbL+%l">
              <field name="oid">zigbee.0.00158d000312e002.opened</field>
            </shadow>
          </value>
          <value name="OID4">
            <shadow type="field_oid" id="VY+08XaoA357s;%U3,VX">
              <field name="oid">zigbee.0.00158d00044f5cba.opened</field>
            </shadow>
          </value>
          <value name="OID5">
            <shadow type="field_oid" id=";2)bYyg:h3jJR*XUybOz">
              <field name="oid">zigbee.0.00158d00032b8908.opened</field>
            </shadow>
          </value>
          <value name="OID6">
            <shadow type="field_oid" id="BD~:`8@`#0-2bf66m+BZ">
              <field name="oid">zigbee.0.00158d000456cd54.opened</field>
            </shadow>
          </value>
          <value name="OID7">
            <shadow type="field_oid" id="}$/bJGs=OHMy){EA1`6=">
              <field name="oid">zigbee.0.00158d0004616d03.opened</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="procedures_callnoreturn" id="AwMhv5Rm0MxP8T%FdsGb">
              <mutation name="Check_Window">
                <arg name="Wert"></arg>
                <arg name="Kanalname"></arg>
                <arg name="Object"></arg>
              </mutation>
              <value name="ARG0">
                <block type="on_source" id="/NAI-qhG~:YD^NW;4j*f">
                  <field name="ATTR">state.val</field>
                </block>
              </value>
              <value name="ARG1">
                <block type="on_source" id="Ee^S*Ux-_%lZ1yDp=?SG">
                  <field name="ATTR">channelName</field>
                </block>
              </value>
              <value name="ARG2">
                <block type="on_source" id="3HGXD@aHR^/w.sM5J3Wb">
                  <field name="ATTR">id</field>
                </block>
              </value>
            </block>
          </statement>
        </block>
      </xml>
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Spectrum1981 last edited by

        @Spectrum1981 sagte:

        "Problem" zu geben wenn zwei Fenster auf gehen

        Wenn innerhalb von 15 Minuten ein weiteres Fenster geöffnet wird, wird das erste Fenster nicht mehr gemeldet.

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

          @paul53

          Hast du auch eine Idee wie ich das Lösen kann? Oder kann ich den Timeout auch mit einer Variable steuern?

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

            @Spectrum1981 sagte:

            Hast du auch eine Idee wie ich das Lösen kann?

            Jedes Fenster benötigt einen eigenen Timer, der beim Schließen des Fensters gestoppt wird. Prinzip:

            Blockly_temp.JPG

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

              @paul53

              Danke für die Hilfe. Ich habe das gerade umgebaut und schaue wie es geht. Hat natürlich auch den Vorteil das es so recht einfach ist unterschiedliche Zeiten pro Fenster einzustellen!

              95e244a3-2c5f-45dc-8bcb-8bec83ec4c38-image.png

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

                @Spectrum1981 sagte:

                Ich habe das gerade umgebaut

                Du musst den jeweils zugehörigen Timer stoppen !

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

                  @paul53

                  Übersehen. Habe das angepasst!

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

                    Ich habe noch eine Frage zu einer Erweiterung des Skripts. Ich möchte das ich alle 15 Minuten benachrichtig werden und nicht nur ein mal. Dazu habe ich das hier gebaut, was aber leider nicht funktioniert:

                    fccce101-a876-4271-94cf-5d0c43b0cd82-image.png

                    Hier stürzt immer die Javascript Instanz ab wenn das triggert. Was mache ich falsch?

                    Export:

                    <xml xmlns="https://developers.google.com/blockly/xml">
                      <variables>
                        <variable id="j]m/.nz{`TQix/0xD}xx">Kanalname</variable>
                        <variable id="wW)h{Xs~{IE])^)_wUs1">HWzu</variable>
                        <variable type="timeout" id="timeout">timeout</variable>
                        <variable type="timeout" id="timeout2">timeout2</variable>
                        <variable type="timeout" id="timeout3">timeout3</variable>
                        <variable type="timeout" id="timeout4">timeout4</variable>
                        <variable type="timeout" id="timeout5">timeout5</variable>
                        <variable type="timeout" id="timeout6">timeout6</variable>
                        <variable type="timeout" id="timeout7">timeout7</variable>
                        <variable type="timeout" id="timeout8">timeout8</variable>
                      </variables>
                      <block type="comment" id="b+^u-Y6]z|m}sFr7jVR[" x="-87" y="-612">
                        <field name="COMMENT">HW Raum Tür</field>
                        <next>
                          <block type="on_ext" id="C^}q`~i2SEmvcsk9_:s8">
                            <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="N}{a;,l,W/xvioWD$.Dv">
                                <field name="oid">zigbee.0.00158d0003120f02.opened</field>
                              </shadow>
                            </value>
                            <statement name="STATEMENT">
                              <block type="controls_if" id=".IHnu]vTP5`U]8Q99..0">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="KP)I$=Rt1SUnlqvkW6gp">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="on_source" id="DNvvVjbXGWvHth`(_f#L">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="K8TNP_HBR7hDh7Z/$G{8">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="cH#LpYZII?.rpleg;}Z%">
                                    <field name="VAR" id="wW)h{Xs~{IE])^)_wUs1">HWzu</field>
                                    <value name="VALUE">
                                      <block type="on_source" id="x-It2h]Fr6NB6P5r@+Dp">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_whileUntil" id="B_1$P;No^k?C40$bGy6H">
                                        <field name="MODE">UNTIL</field>
                                        <value name="BOOL">
                                          <block type="logic_compare" id="hArZu.4|GN^r0}l0yz4)">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="variables_get" id="!j^%37QX`}c$^VH*,i^X">
                                                <field name="VAR" id="wW)h{Xs~{IE])^)_wUs1">HWzu</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_boolean" id="iEcth-;^QYeT/Yir#g}l">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO">
                                          <block type="timeouts_settimeout" id="@4#J5)jM[VE4D68;XwiQ">
                                            <field name="NAME">timeout</field>
                                            <field name="DELAY">5</field>
                                            <field name="UNIT">sec</field>
                                            <statement name="STATEMENT">
                                              <block type="variables_set" id="b*]Ud#Ii?w)56PrfkAzb">
                                                <field name="VAR" id="wW)h{Xs~{IE])^)_wUs1">HWzu</field>
                                                <value name="VALUE">
                                                  <block type="get_value" id="5kt`2uC}^Q-y*!`;z+0=">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">zigbee.0.00158d0003120f02.opened</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="procedures_callnoreturn" id="75nVv5f%~GjK}_UnKY(,">
                                                    <mutation name="Check_Window">
                                                      <arg name="Kanalname"></arg>
                                                    </mutation>
                                                    <value name="ARG0">
                                                      <block type="on_source" id=";}Ua-/D1irU+K?2|+W9P">
                                                        <field name="ATTR">channelName</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="timeouts_cleartimeout" id="/4s7!~(^Fvh[X,#e9DUB">
                                    <field name="NAME">timeout</field>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                            <next>
                              <block type="comment" id="1k0,(hOY$3eZfq(1n[`k">
                                <field name="COMMENT">HW Raum Fenster</field>
                                <next>
                                  <block type="on_ext" id="r0lcKWHBe;_{TuW,@6UW">
                                    <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="-COe5D52Eogb2%o!o*bN">
                                        <field name="oid">zigbee.0.00158d0003121015.opened</field>
                                      </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id=",{8bU[MzB]wG.GoY}+V!">
                                        <mutation else="1"></mutation>
                                        <value name="IF0">
                                          <block type="logic_compare" id="j.8S*Rhl!!d]SXBzI*lg">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="on_source" id="LH3rvtbJE/4?8s4N3,UC">
                                                <field name="ATTR">state.val</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_boolean" id="td(.V^t5.-/G:U$LGGmQ">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="timeouts_settimeout" id="Q(icg,m;Iaf@PuUbb?Z=">
                                            <field name="NAME">timeout2</field>
                                            <field name="DELAY">15</field>
                                            <field name="UNIT">min</field>
                                            <statement name="STATEMENT">
                                              <block type="procedures_callnoreturn" id="^{4@Vza@V)4q@CYOmJjN">
                                                <mutation name="Check_Window">
                                                  <arg name="Kanalname"></arg>
                                                </mutation>
                                                <value name="ARG0">
                                                  <block type="on_source" id="z8m|zj/zE5nw}@7@|y`^">
                                                    <field name="ATTR">channelName</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                        <statement name="ELSE">
                                          <block type="timeouts_cleartimeout" id="GBhN#Z2ah#;`I0~?~J#N">
                                            <field name="NAME">timeout2</field>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="comment" id="9^)G$^G-|8lT0:W2l!Y~">
                                        <field name="COMMENT">Badezimmer Fenster</field>
                                        <next>
                                          <block type="on_ext" id="sG=mcW(YPgkay}?^LnE[">
                                            <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="E=IoSOQtj:tE6_$_EiaH">
                                                <field name="oid">zigbee.0.00158d000312da05.opened</field>
                                              </shadow>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="controls_if" id=";iD#6nEPlL|d*^;HMPTv">
                                                <mutation else="1"></mutation>
                                                <value name="IF0">
                                                  <block type="logic_compare" id="K!op{B5rv3zD~^x!?Xu1">
                                                    <field name="OP">EQ</field>
                                                    <value name="A">
                                                      <block type="on_source" id="yI_u,h%X1[clcM`7,8B8">
                                                        <field name="ATTR">state.val</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_boolean" id="T/(h@M{i:J!aK:WH!emE">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="timeouts_settimeout" id="XAbF]z1$%.A4fY-Q7Ij|">
                                                    <field name="NAME">timeout3</field>
                                                    <field name="DELAY">15</field>
                                                    <field name="UNIT">min</field>
                                                    <statement name="STATEMENT">
                                                      <block type="procedures_callnoreturn" id="%._^`XdjE#k/lH7G}P!|">
                                                        <mutation name="Check_Window">
                                                          <arg name="Kanalname"></arg>
                                                        </mutation>
                                                        <value name="ARG0">
                                                          <block type="on_source" id="Mh8n%Q98_AIx,J/Gsa9V">
                                                            <field name="ATTR">channelName</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </statement>
                                                <statement name="ELSE">
                                                  <block type="timeouts_cleartimeout" id="}L|S,.9u,-D?6A*P{^2P">
                                                    <field name="NAME">timeout3</field>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="comment" id="+qn798dk@X.(^7d*:.|c">
                                                <field name="COMMENT">Gäste-WC</field>
                                                <next>
                                                  <block type="on_ext" id="AUf*RD.Uw,EP-[zF9B!^">
                                                    <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="o7;d+S/HuSIi~}hJ1-fY">
                                                        <field name="oid">zigbee.0.00158d000312e002.opened</field>
                                                      </shadow>
                                                    </value>
                                                    <statement name="STATEMENT">
                                                      <block type="controls_if" id="W|)ybp!`BK|c_?.3LIs{">
                                                        <mutation else="1"></mutation>
                                                        <value name="IF0">
                                                          <block type="logic_compare" id=",ht)HFYtau_YPVya5L!Z">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="on_source" id="e74cu?Z]|*X6FEjWy5wU">
                                                                <field name="ATTR">state.val</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_boolean" id=";S9T{l({8+BfVE:~|-)1">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="timeouts_settimeout" id="nH(9~_j?FU/Cw%iR.5pX">
                                                            <field name="NAME">timeout4</field>
                                                            <field name="DELAY">15</field>
                                                            <field name="UNIT">min</field>
                                                            <statement name="STATEMENT">
                                                              <block type="procedures_callnoreturn" id="H[$o/)=VR$D(*f{NOIe4">
                                                                <mutation name="Check_Window">
                                                                  <arg name="Kanalname"></arg>
                                                                </mutation>
                                                                <value name="ARG0">
                                                                  <block type="on_source" id="(h;[b9hvJ3eeg.6.Qt;]">
                                                                    <field name="ATTR">channelName</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </statement>
                                                        <statement name="ELSE">
                                                          <block type="timeouts_cleartimeout" id="Fn=K+UU4Yx8yavF.TLAc">
                                                            <field name="NAME">timeout4</field>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="comment" id="qS;V:+SAw!!j[VmjWB0;">
                                                        <field name="COMMENT">Flor OG</field>
                                                        <next>
                                                          <block type="on_ext" id="ZD`qtMs_Wjtm(5;FQLZ7">
                                                            <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="XqD,ba|TewRuZG0-MtfZ">
                                                                <field name="oid">zigbee.0.00158d00032b8908.opened</field>
                                                              </shadow>
                                                            </value>
                                                            <statement name="STATEMENT">
                                                              <block type="controls_if" id="5oG|hD,ZLGHZl^92F4FV">
                                                                <mutation else="1"></mutation>
                                                                <value name="IF0">
                                                                  <block type="logic_compare" id="A[4)uIB5Rl0U~D73sa%(">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="on_source" id="iM0)gAXNPomX2SU5Tw%;">
                                                                        <field name="ATTR">state.val</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id="zil5,*`pH*a5+/kaKdzW">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO0">
                                                                  <block type="timeouts_settimeout" id="m.n8/,9z~sXVHj9h9A~$">
                                                                    <field name="NAME">timeout5</field>
                                                                    <field name="DELAY">15</field>
                                                                    <field name="UNIT">min</field>
                                                                    <statement name="STATEMENT">
                                                                      <block type="procedures_callnoreturn" id="*ZO?FZ{$8l5sdI/)kM~s">
                                                                        <mutation name="Check_Window">
                                                                          <arg name="Kanalname"></arg>
                                                                        </mutation>
                                                                        <value name="ARG0">
                                                                          <block type="on_source" id="PHC.I$ckO..~KKAFR|Rl">
                                                                            <field name="ATTR">channelName</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </statement>
                                                                <statement name="ELSE">
                                                                  <block type="timeouts_cleartimeout" id="S}I*~j,.H}9|NpRRy^j*">
                                                                    <field name="NAME">timeout5</field>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="comment" id="m;ayz_S.#!k}rxFO-/GW">
                                                                <field name="COMMENT">Küche</field>
                                                                <next>
                                                                  <block type="on_ext" id="xiKeP(~~)!Xfd]Jre}7r">
                                                                    <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="I.~B,][:e#PW{UOs.X;,">
                                                                        <field name="oid">zigbee.0.00158d00044f5cba.opened</field>
                                                                      </shadow>
                                                                    </value>
                                                                    <statement name="STATEMENT">
                                                                      <block type="controls_if" id="|`;0;_A*=Xe4h}%tYVHm">
                                                                        <mutation else="1"></mutation>
                                                                        <value name="IF0">
                                                                          <block type="logic_compare" id="saPXv?Zh#np,6yqvUr%w">
                                                                            <field name="OP">EQ</field>
                                                                            <value name="A">
                                                                              <block type="on_source" id="s{q6sEJgfgn)M2(x*U5}">
                                                                                <field name="ATTR">state.val</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="logic_boolean" id=";-JYS}5VF@CeQ(AG23rq">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <statement name="DO0">
                                                                          <block type="timeouts_settimeout" id="8.%74oR^~$|!`!p[LQQU">
                                                                            <field name="NAME">timeout6</field>
                                                                            <field name="DELAY">15</field>
                                                                            <field name="UNIT">min</field>
                                                                            <statement name="STATEMENT">
                                                                              <block type="procedures_callnoreturn" id="]rB5Tkd38OWqq[Ndn:-/">
                                                                                <mutation name="Check_Window">
                                                                                  <arg name="Kanalname"></arg>
                                                                                </mutation>
                                                                                <value name="ARG0">
                                                                                  <block type="on_source" id="tqxy8JDq6,;#]JYb+UsW">
                                                                                    <field name="ATTR">channelName</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </statement>
                                                                          </block>
                                                                        </statement>
                                                                        <statement name="ELSE">
                                                                          <block type="timeouts_cleartimeout" id="vbB0!c[:OQNE_wHV/Yu$">
                                                                            <field name="NAME">timeout6</field>
                                                                          </block>
                                                                        </statement>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="comment" id="C,IPKM:,+s#^6zp+m~|o">
                                                                        <field name="COMMENT">Moritz</field>
                                                                        <next>
                                                                          <block type="on_ext" id="%@p!$g6E(ytB1j5oG?*_">
                                                                            <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="HA#k8iywG46HCa-tafJh">
                                                                                <field name="oid">zigbee.0.00158d000456cd54.opened</field>
                                                                              </shadow>
                                                                            </value>
                                                                            <statement name="STATEMENT">
                                                                              <block type="controls_if" id="_;V([,!~32.-!vzPW[S9">
                                                                                <mutation else="1"></mutation>
                                                                                <value name="IF0">
                                                                                  <block type="logic_compare" id="p^0-.JY/hWT];p`4qi5$">
                                                                                    <field name="OP">EQ</field>
                                                                                    <value name="A">
                                                                                      <block type="on_source" id="2yzvXgrK$hx/zfs)RnxK">
                                                                                        <field name="ATTR">state.val</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="logic_boolean" id="BOop!,_U2$Q|(T.UW4C@">
                                                                                        <field name="BOOL">TRUE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <statement name="DO0">
                                                                                  <block type="timeouts_settimeout" id="t/G5CW:;fCoJAtsk5m{@">
                                                                                    <field name="NAME">timeout7</field>
                                                                                    <field name="DELAY">15</field>
                                                                                    <field name="UNIT">min</field>
                                                                                    <statement name="STATEMENT">
                                                                                      <block type="procedures_callnoreturn" id="?Mkc8t(fec`DmN|[5^#:">
                                                                                        <mutation name="Check_Window">
                                                                                          <arg name="Kanalname"></arg>
                                                                                        </mutation>
                                                                                        <value name="ARG0">
                                                                                          <block type="on_source" id="=VOH%m|]Iu3eFj@G^G)d">
                                                                                            <field name="ATTR">channelName</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </statement>
                                                                                  </block>
                                                                                </statement>
                                                                                <statement name="ELSE">
                                                                                  <block type="timeouts_cleartimeout" id="jsCw/1k(Hd#r_8b|i*4l">
                                                                                    <field name="NAME">timeout7</field>
                                                                                  </block>
                                                                                </statement>
                                                                              </block>
                                                                            </statement>
                                                                            <next>
                                                                              <block type="comment" id="Tiq;KDShhqR/o7:^Q)2t">
                                                                                <field name="COMMENT">Haustür</field>
                                                                                <next>
                                                                                  <block type="on_ext" id="xWY6tFp9eg_)z^mQl=|E">
                                                                                    <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="hgP=n`wFuk`HX.f3|Q(R">
                                                                                        <field name="oid">zigbee.0.00158d0004616d03.opened</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                    <statement name="STATEMENT">
                                                                                      <block type="controls_if" id="Tg]hiu!s:L,+/IWP9P0?">
                                                                                        <mutation else="1"></mutation>
                                                                                        <value name="IF0">
                                                                                          <block type="logic_compare" id="xju*7su2sbcl[rVLYrQ.">
                                                                                            <field name="OP">EQ</field>
                                                                                            <value name="A">
                                                                                              <block type="on_source" id="ZKk(bq5=Sa=_Rev|}y~Q">
                                                                                                <field name="ATTR">state.val</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="logic_boolean" id="C)LPyJlw~.4H@kPi(6cR">
                                                                                                <field name="BOOL">TRUE</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <statement name="DO0">
                                                                                          <block type="timeouts_settimeout" id="#,});no|-N-,xXWWO#=}">
                                                                                            <field name="NAME">timeout8</field>
                                                                                            <field name="DELAY">15</field>
                                                                                            <field name="UNIT">min</field>
                                                                                            <statement name="STATEMENT">
                                                                                              <block type="procedures_callnoreturn" id="LktJI5]G4lL]CrW{c9fr">
                                                                                                <mutation name="Check_Window">
                                                                                                  <arg name="Kanalname"></arg>
                                                                                                </mutation>
                                                                                                <value name="ARG0">
                                                                                                  <block type="on_source" id="UR5J,x9iv$=Y4s]R]*Bq">
                                                                                                    <field name="ATTR">channelName</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </statement>
                                                                                          </block>
                                                                                        </statement>
                                                                                        <statement name="ELSE">
                                                                                          <block type="timeouts_cleartimeout" id="iRLo`%tENad.`%fdEcnr">
                                                                                            <field name="NAME">timeout8</field>
                                                                                          </block>
                                                                                        </statement>
                                                                                      </block>
                                                                                    </statement>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                      <block type="procedures_defnoreturn" id="ciNdU,VY?6-F1?)q2,On" x="588" y="-562">
                        <mutation>
                          <arg name="Kanalname" varid="j]m/.nz{`TQix/0xD}xx"></arg>
                        </mutation>
                        <field name="NAME">Check_Window</field>
                        <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                        <statement name="STACK">
                          <block type="pushover" id="#:a6;f3W5J:_di%U)7Md">
                            <field name="INSTANCE"></field>
                            <field name="SOUND"></field>
                            <field name="PRIORITY">1</field>
                            <field name="LOG"></field>
                            <value name="MESSAGE">
                              <shadow type="text" id="kx4O~(0$KDlJ=4))+b?o">
                                <field name="TEXT">Fenster im Bad ist noch offen! Bitte schließen</field>
                              </shadow>
                              <block type="text_join" id="*O1tF^$z*VwzI0u7]TKT">
                                <mutation items="3"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="oHzLgPzbbfZ(94g+JC-Q">
                                    <field name="TEXT">Fenster im </field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="variables_get" id="YgI9!*LxWceP{#?^m|Fp">
                                    <field name="VAR" id="j]m/.nz{`TQix/0xD}xx">Kanalname</field>
                                  </block>
                                </value>
                                <value name="ADD2">
                                  <block type="text" id="W^]seXTJPpeeG$Z1r4Bq">
                                    <field name="TEXT"> ist noch offen! Bitte schließen!</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="TITLE">
                              <block type="text" id="y1f-,s:;MJ;$%;bAS)]J">
                                <field name="TEXT">Fenster noch offen!</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </xml>
                    
                    paul53 1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Spectrum1981 last edited by

                      @Spectrum1981 sagte:

                      Was mache ich falsch?

                      Mit "wiederhole bis" wird eine Endlosschleife erzeugt. Die Lösung ist "Intervall".

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

                        @paul53

                        Vielen Dank für die Hilfe. Klappt nun und ich bekomme alle x Minuten eine Info das das Fenster noch offen ist.

                        Hier das Skript wenn das jemand nachbauen will:

                        5e8d148b-fe49-4b47-b0d6-4caa98a2cde6-image.png

                        dslraser Thomas Jansen Zu Hause 3 Replies Last reply Reply Quote 0
                        • dslraser
                          dslraser Forum Testing Most Active @Spectrum1981 last edited by

                          @Spectrum1981
                          falls Wert (ohne = wahr) sollte auch reichen.

                          S 1 Reply Last reply Reply Quote 1
                          • S
                            Spectrum1981 @dslraser last edited by

                            @dslraser

                            Ja, das ist richtig. Spart noch etwas Code 🙂

                            1 Reply Last reply Reply Quote 0
                            • Thomas Jansen
                              Thomas Jansen @Spectrum1981 last edited by

                              @Spectrum1981 Hey, geniales Script, versuche das anzupassen. Läuft auch, jedoch bekomme ich nur die Meldung Fenster im Heat noch offen! Wie oder was ist das mit dem Kanalnamen? Da blick ich als Anfänger noch nicht so durch... LG

                              Hätte gerne die Raumnamen angezeigt z.B wie bei Dir HW Raum Tür...

                              1 Reply Last reply Reply Quote 0
                              • Zu Hause
                                Zu Hause @Spectrum1981 last edited by

                                @Spectrum1981 moin bin ganz neu in der iobroker Welt und würde gern das Skript nachbauen, welcher Baustein ist Check_Window mit: Kanalname?

                                Slowman paul53 2 Replies Last reply Reply Quote 0
                                • Slowman
                                  Slowman @Zu Hause last edited by Slowman

                                  @Zu-Hause

                                  Ist eine selbstdefinierte Variable: https://www.iobroker.net/docu/index-43.htm?page_id=5385&lang=de#Variablen

                                  Schaue mal hier: https://forum.iobroker.net/topic/38279/gelöst-timer-erst-starten-wenn-gerät-nicht-mehr-aktiv-ist/16

                                  Vielleicht kannst du damit mehr anfangen. Hatte da auch ein Problem 😁

                                  1 Reply Last reply Reply Quote 1
                                  • paul53
                                    paul53 @Zu Hause last edited by

                                    @Zu-Hause sagte:

                                    welcher Baustein ist Check_Window mit: Kanalname?

                                    Das ist die Funktion rechts im Bild.

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

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    862
                                    Online

                                    32.0k
                                    Users

                                    80.4k
                                    Topics

                                    1.3m
                                    Posts

                                    6
                                    16
                                    1128
                                    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