Navigation

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

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Blocky script

    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ingenii @ingenii last edited by

      @Cinimod

      Was gehört hier ?
      Switch oder State ?

      Danke

      daten swi.JPG

      Cinimod 1 Reply Last reply Reply Quote 0
      • Cinimod
        Cinimod Most Active @ingenii last edited by

        @ingenii sagte in Blocky script:

        @Cinimod

        Was gehört hier ?
        Switch oder State ?

        State

        Was genau ist denn jetzt dein Problem ?

        I 2 Replies Last reply Reply Quote 0
        • I
          ingenii @Cinimod last edited by

          @cinimod
          Hallo,
          es hat immer was Heizung für 1 bis 2 Minuten eingeschaltet auch wen Temperatur zu hoch wahr.Problem wahr das ich immer zu spät gesehen hab und nicht nachvollziehen kann von wo das kommt.
          Dann Detail suche und bin drauf gekommen das ein Temp sensor bei Sonoff kaputt ist liefert ab und zu verschiedene Daten.
          Jetzt passt alles,
          Danke

          1 Reply Last reply Reply Quote 0
          • I
            ingenii @Cinimod last edited by ingenii

            @cinimod

            Hallo,
            hab ein kleines Problem, in Verwendung sind deine Scripts .In Wohnzimmer passiert das mir etwas Datenpunkt auf False steuert und ich weiß nicht was. Ich hab schon ein neuen Datenpunk erstellt das der nicht unabsichtlich irgendwo in anders drinnen ist und passiert wieder, ich stelle Set Point Temp um 2 Grad mehr das ich weiss das sicher Heizung ganze zeit lauf.
            Es ist ein Fußboden Heizung deswegen rennt Heizung nur cca 45 Minuten und Dann geht automatisch heizung auf OFF aber nicht Datenpunkt denn steuere ich mit einem Script der heist Restart Datenpunk aber bei dem hab ich 90Minuten also muss Heizung starten(Datenpunk) und Datenpunk wen Temp nicht erreicht Set Temp musst erst nach 90Minuten auf Datenpunkt False und dan soll wieder Staten, aber bei mir auch wen ich dieser Neustart Datenpunk deaktiviere geht jeden cca 10 Minuten Datenpunk auf False und gleich wieder auf True.

            Script :

            <xml xmlns="https://developers.google.com/blockly/xml">
              <block type="on_ext" id="xDq%i~$rGx~A.83cmM%;" x="-287" y="-787">
                <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                <field name="CONDITION">any</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="S5Ja?RFgi-amy%b3nasc">
                    <field name="oid">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                  </shadow>
                </value>
                <value name="OID1">
                  <shadow type="field_oid" id=",x^o!!V53@cT%;x8@hr]">
                    <field name="oid">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="^IQpxvAC2OFS~7?Wb54p">
                    <mutation elseif="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="wv?fv3Sv#4)xrUA!h,;d">
                        <field name="OP">LT</field>
                        <value name="A">
                          <block type="get_value" id="~FmMS%jS(50Pu}fG;xD(">
                            <field name="ATTR">val</field>
                            <field name="OID">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="get_value" id="29K2ZhjmlM^.$R%?*O?r">
                            <field name="ATTR">val</field>
                            <field name="OID">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="BCFn=IlgKqu+C@xy)z`p">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="CjsW,Fb567aTJf@*m@?U">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <value name="IF1">
                      <block type="logic_compare" id="r*KEn=z,[kyIxuL5}P;p">
                        <field name="OP">GTE</field>
                        <value name="A">
                          <block type="get_value" id="2T7[PNo`#A#Y.u(Q`c*H">
                            <field name="ATTR">val</field>
                            <field name="OID">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="get_value" id="E+-PcFA;?0rjyn;u~35W">
                            <field name="ATTR">val</field>
                            <field name="OID">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO1">
                      <block type="control" id="@*N1BGqFp,k14kZ$emx]">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="knxl8#k^UDaS0z/qJVoA">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </xml>
            
            

            Restart Datenpunkt

            <xml xmlns="https://developers.google.com/blockly/xml">
              <block type="on" id="g^ts;K(Z?cyM6vDaU%4X" x="-162" y="-420">
                <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                <field name="CONDITION">true</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="control" id="J.Vb7Iz{qxWpi`hHY_:6">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                    <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                    <field name="WITH_DELAY">TRUE</field>
                    <field name="DELAY_MS">90</field>
                    <field name="UNIT">min</field>
                    <field name="CLEAR_RUNNING">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="tw;W8Kimp?RG,kGR5}(e">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </xml>
            

            Temp_wohn.JPG

            Cinimod 1 Reply Last reply Reply Quote 0
            • Cinimod
              Cinimod Most Active @ingenii last edited by

              @ingenii

              Dein Skript welches nach 90 min. automatisch die Heizung abschaltet ist das Problem. Jedesmal wenn die Heizung Wahr angesteuert wird, wir dein Abschalt-block neu angestoßen mit 90 minütiger Verzögerung.
              Dieser wird immer und immer wieder angestoßen, und lässt sich nicht stoppen.

              Probier mal das:

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable type="timeout" id="timeout">timeout</variable>
                </variables>
                <block type="on_ext" id="xDq%i~$rGx~A.83cmM%;" x="-238" y="-787">
                  <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="S5Ja?RFgi-amy%b3nasc">
                      <field name="oid">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                    </shadow>
                  </value>
                  <value name="OID1">
                    <shadow type="field_oid" id=",x^o!!V53@cT%;x8@hr]">
                      <field name="oid">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="^IQpxvAC2OFS~7?Wb54p">
                      <mutation elseif="1"></mutation>
                      <value name="IF0">
                        <block type="logic_operation" id=".lsG$2HZt^DVJB*6ws~|" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="wv?fv3Sv#4)xrUA!h,;d">
                              <field name="OP">LT</field>
                              <value name="A">
                                <block type="get_value" id="~FmMS%jS(50Pu}fG;xD(">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="get_value" id="29K2ZhjmlM^.$R%?*O?r">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_negate" id="hBnvi-LmQ(j=.^{v)hq3">
                              <value name="BOOL">
                                <block type="get_value" id="1MBCiGjZW$VJF?c^n+R.">
                                  <field name="ATTR">val</field>
                                  <field name="OID">ID auswählen</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="BCFn=IlgKqu+C@xy)z`p">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="CjsW,Fb567aTJf@*m@?U">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <value name="IF1">
                        <block type="logic_operation" id="8J!J=QuO[VRTAwL--$??" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="r*KEn=z,[kyIxuL5}P;p">
                              <field name="OP">GTE</field>
                              <value name="A">
                                <block type="get_value" id="2T7[PNo`#A#Y.u(Q`c*H">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="get_value" id="E+-PcFA;?0rjyn;u~35W">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="get_value" id="7(Ir`)[bFBmxYn!Eq^cZ">
                              <field name="ATTR">val</field>
                              <field name="OID">ID auswählen</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO1">
                        <block type="control" id="@*N1BGqFp,k14kZ$emx]">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="knxl8#k^UDaS0z/qJVoA">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                  <next>
                    <block type="on" id="g^ts;K(Z?cyM6vDaU%4X">
                      <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <statement name="STATEMENT">
                        <block type="timeouts_cleartimeout" id="J0R;547HQ}}x15c(FKl:">
                          <field name="NAME">timeout</field>
                          <next>
                            <block type="controls_if" id="BCO@@c0uweSQ/iFZ4i.6">
                              <value name="IF0">
                                <block type="on_source" id="X=x!S!Z(EN`|N_%s/rwU">
                                  <field name="ATTR">state.val</field>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_settimeout" id="Vop9tK*z:cv$14_4.[B+">
                                  <field name="NAME">timeout</field>
                                  <field name="DELAY">90</field>
                                  <field name="UNIT">min</field>
                                  <statement name="STATEMENT">
                                    <block type="control" id="J.Vb7Iz{qxWpi`hHY_:6">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="tw;W8Kimp?RG,kGR5}(e">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
                <block type="comment" id="T+k|y}jvRS_RuIjyrW(j" x="338" y="-637">
                  <field name="COMMENT">&lt;- hier noch Wohnzimmer_Heizung eintragen</field>
                </block>
                <block type="comment" id="/tI;IUq6a#gMH4?[s|MR" x="237" y="-537">
                  <field name="COMMENT">&lt;- hier noch Wohnzimmer_Heizung eintragen</field>
                </block>
              </xml>
              

              I 1 Reply Last reply Reply Quote 0
              • I
                ingenii @Cinimod last edited by

                @cinimod

                Ja das Problem ist das fussboden Heizung eine Träge ist ich brauche das Heizung nur cca 45 lauft und dann gewisse zeit aus ist weil die warme Boden gibt gewisse zeit wärme ab erst nach gewisse zeit soll das wieder starten.

                Cinimod 1 Reply Last reply Reply Quote 0
                • Cinimod
                  Cinimod Most Active @ingenii last edited by

                  @ingenii

                  Also nach 45 Minuten an, soll die Heizung auf jeden fall aus gehen, und wie lange soll sie mindestens aus bleiben, bis sie wieder an gehen darf ?

                  I 1 Reply Last reply Reply Quote 0
                  • I
                    ingenii @Cinimod last edited by

                    @cinimod

                    am Relle was Heizung einschaltet und abschaltet hab ich (Tasmota:Pulsetime cca 45 minuten) das geht nach einschalten automatisch auf AUS aber nicht Datenpunkt Wohnzimmer, aber das hab ich schon geschrieben, ja zeit 120 minuten.

                    Danke

                    Cinimod 1 Reply Last reply Reply Quote 0
                    • Cinimod
                      Cinimod Most Active @ingenii last edited by

                      @ingenii

                      Ich denke das entspricht etwa deiner Vorstellung :

                      Die Zeiten kannst du ja anpassen, und dein zweites Skript ganz weg lassen.

                      Bildschirmfoto 2022-01-05 um 23.10.32.png

                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <variables>
                          <variable id="eXyCA~sNI-z]Gw*blb(Q">sperre</variable>
                          <variable type="timeout" id="timeout">timeout</variable>
                          <variable type="timeout" id="timeout2">timeout2</variable>
                        </variables>
                        <block type="variables_set" id="2;(@A~;1iYQo@dys$@4E" x="-313" y="-812">
                          <field name="VAR" id="eXyCA~sNI-z]Gw*blb(Q">sperre</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="_*@_O2V@z)nbx}2a}ABw">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="on_ext" id="xDq%i~$rGx~A.83cmM%;">
                              <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="S5Ja?RFgi-amy%b3nasc">
                                  <field name="oid">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                                </shadow>
                              </value>
                              <value name="OID1">
                                <shadow type="field_oid" id=",x^o!!V53@cT%;x8@hr]">
                                  <field name="oid">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="^IQpxvAC2OFS~7?Wb54p">
                                  <mutation elseif="1"></mutation>
                                  <value name="IF0">
                                    <block type="logic_operation" id=".lsG$2HZt^DVJB*6ws~|" inline="false">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="wv?fv3Sv#4)xrUA!h,;d">
                                          <field name="OP">LT</field>
                                          <value name="A">
                                            <block type="get_value" id="~FmMS%jS(50Pu}fG;xD(">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="get_value" id="29K2ZhjmlM^.$R%?*O?r">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_operation" id="eF6.mJ8)tZyOk]FLkTs/" inline="false">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_negate" id="hBnvi-LmQ(j=.^{v)hq3">
                                              <value name="BOOL">
                                                <block type="get_value" id="1MBCiGjZW$VJF?c^n+R.">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">ID auswählen</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_negate" id="-/QD8C}5Tjf-sJ3C)yE-">
                                              <value name="BOOL">
                                                <block type="variables_get" id="_{`SnXEPu~xnz!QQ;HIg">
                                                  <field name="VAR" id="eXyCA~sNI-z]Gw*blb(Q">sperre</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="BCFn=IlgKqu+C@xy)z`p">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="CjsW,Fb567aTJf@*m@?U">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="NpRPBz7Hf6OrB9tVI/7]">
                                          <field name="VAR" id="eXyCA~sNI-z]Gw*blb(Q">sperre</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="HK7*w];WI5DxeR|H%([2">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="timeouts_settimeout" id="}DJ},dg?Mi)VpfdMRY9{">
                                              <field name="NAME">timeout</field>
                                              <field name="DELAY">45</field>
                                              <field name="UNIT">min</field>
                                              <statement name="STATEMENT">
                                                <block type="control" id="?sZli[f~Dg(yt|nc.o7.">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="}JIStyb]!4X!,7OnDcO@">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="timeouts_settimeout" id="m|w:|K(tQvZk+Ivqybk~">
                                                  <field name="NAME">timeout2</field>
                                                  <field name="DELAY">90</field>
                                                  <field name="UNIT">min</field>
                                                  <statement name="STATEMENT">
                                                    <block type="variables_set" id="JY3sfC=._q~axwH|VG#!">
                                                      <field name="VAR" id="eXyCA~sNI-z]Gw*blb(Q">sperre</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="f!j:dr|hTSbTHpM20JJ(">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <value name="IF1">
                                    <block type="logic_operation" id="8J!J=QuO[VRTAwL--$??" inline="false">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="r*KEn=z,[kyIxuL5}P;p">
                                          <field name="OP">GTE</field>
                                          <value name="A">
                                            <block type="get_value" id="2T7[PNo`#A#Y.u(Q`c*H">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="get_value" id="E+-PcFA;?0rjyn;u~35W">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="get_value" id="7(Ir`)[bFBmxYn!Eq^cZ">
                                          <field name="ATTR">val</field>
                                          <field name="OID">ID auswählen</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO1">
                                    <block type="control" id="@*N1BGqFp,k14kZ$emx]">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="knxl8#k^UDaS0z/qJVoA">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="timeouts_cleartimeout" id="I{OA]-{AEf|djZqwmIP#">
                                          <field name="NAME">timeout</field>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                        <block type="comment" id="T+k|y}jvRS_RuIjyrW(j" x="262" y="-638">
                          <field name="COMMENT">&lt;- hier noch Wohnzimmer_Heizung eintragen</field>
                        </block>
                        <block type="comment" id="/tI;IUq6a#gMH4?[s|MR" x="163" y="-337">
                          <field name="COMMENT">&lt;- hier noch Wohnzimmer_Heizung eintragen</field>
                        </block>
                      </xml>
                      
                      I 1 Reply Last reply Reply Quote 0
                      • I
                        ingenii @Cinimod last edited by

                        @cinimod

                        Ich werde das jetzt laufen lassen und Bericht Morgen.

                        Danke

                        Cinimod 1 Reply Last reply Reply Quote 0
                        • Cinimod
                          Cinimod Most Active @ingenii last edited by

                          @ingenii

                          Gerne,

                          so richtig verstehe ich aber garnicht wieso du überhaupt Pulsetime benutzt, lass das Skript doch ein und ausschalten. Abgesehen davon muss das abschalten mit Pulsetime aber doch auch den Datenpunkt wieder auf false setzen 🤔 oder ist das Heizung-Relais nicht der Datenpunkt den wir hier ansteuern ?

                          I 1 Reply Last reply Reply Quote 0
                          • I
                            ingenii @Cinimod last edited by

                            @cinimod

                            Hallo,
                            es Funk.. super, nach Minuten hab ich das nicht kontrolliert aber schaut besser aus meine Lösung.
                            Sollte was mit Iobroker passieren brauche ich mir keine sorgen machen das Heizung ganze Tag rennt, Pulsetime ist Back Up.

                            Cinimod 1 Reply Last reply Reply Quote 0
                            • Cinimod
                              Cinimod Most Active @ingenii last edited by

                              @ingenii

                              Sehr schön das freut mich. 👍

                              I 2 Replies Last reply Reply Quote 0
                              • I
                                ingenii @Cinimod last edited by

                                @cinimod

                                Hallo,
                                heute ist das passiert, Datenpunkt hat sich nicht neu gestartet und seitdem hat Heizung nicht mehr gestartet, wahr leider nicht zu hause dann ich ich zu spät auf das gekommen.
                                ich hab auch Scheduller für Script instantz Neustarten aber das bringt nichts weil Datenpunk wahr schon auf True und er rechnet erst von False auf True die 90 Minuten.
                                Es gehört was anderes für Datenpunkt Restart.
                                Eine idee ?

                                wohn_08012022.JPG

                                I 1 Reply Last reply Reply Quote 0
                                • I
                                  ingenii @ingenii last edited by ingenii

                                  @ingenii

                                  Kann das die Ursachen sein ? Was passiert wen dieser 90 Minuten zeit rennt und der Scheduller Startet die Ganze Script Instanz neu ?

                                  Cinimod 1 Reply Last reply Reply Quote 0
                                  • I
                                    ingenii @Cinimod last edited by

                                    @cinimod

                                    Hilft das da :

                                    <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="xDq%i~$rGx~A.83cmM%;" x="-227" y="-848">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                      <field name="CONDITION">any</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="S5Ja?RFgi-amy%b3nasc">
                                          <field name="oid">sonoff.0.Heizung_R08.POWER6</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="^IQpxvAC2OFS~7?Wb54p">
                                          <value name="IF0">
                                            <block type="logic_compare" id="wv?fv3Sv#4)xrUA!h,;d">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="get_value" id="~FmMS%jS(50Pu}fG;xD(">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">sonoff.0.Heizung_R08.POWER6</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="4AB~efGz{|usYULCq%,U">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="BCFn=IlgKqu+C@xy)z`p">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">0_userdata.0.Testordner.Wohnzimmer_temp_Heizung</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="CjsW,Fb567aTJf@*m@?U">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                    </block>
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • Cinimod
                                      Cinimod Most Active @ingenii last edited by Cinimod

                                      @ingenii

                                      Ja das Neustarten des Script ist natürlich nicht all zu hilfreich. Wer oder was Startet denn bei mir die JS Instanz neu. Das sollte eigentlich nicht so sein.

                                      Man könnte um so ein Problem zu umgehen, einen Datenpunkt anlegen, welcher als CronTrigger benutzt werden kann. Und beim einschalten der Heizung kann man diesen Datenpunkt beschreiben, mit Aktueller Uhrzeit + 90 min.

                                      Das wird dann aber etwas komplexer, schau dir das mal an:

                                      <xml xmlns="https://developers.google.com/blockly/xml">
                                       <variables>
                                         <variable id="eXyCA~sNI-z]Gw*blb(Q">sperre</variable>
                                         <variable id="fg=~hsoRkJ/f1erCwxY_">zeit</variable>
                                         <variable type="cron" id="zeitplan1">zeitplan1</variable>
                                         <variable type="timeout" id="timeout">timeout</variable>
                                       </variables>
                                       <block type="variables_set" id="2;(@A~;1iYQo@dys$@4E" x="-663" y="-537">
                                         <field name="VAR" id="eXyCA~sNI-z]Gw*blb(Q">sperre</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="_*@_O2V@z)nbx}2a}ABw">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="on_ext" id="VphE2!M;LJJ=~uZvk/xi">
                                             <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="vUFdz09%BrFVW5w0eU77">
                                                 <field name="oid">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                                               </shadow>
                                             </value>
                                             <value name="OID1">
                                               <shadow type="field_oid" id=",x^o!!V53@cT%;x8@hr]">
                                                 <field name="oid">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                                               </shadow>
                                             </value>
                                             <statement name="STATEMENT">
                                               <block type="controls_if" id="l/FriLrfo-]gnk$y7$Tw">
                                                 <mutation elseif="1"></mutation>
                                                 <value name="IF0">
                                                   <block type="logic_operation" id=".lsG$2HZt^DVJB*6ws~|" inline="false">
                                                     <field name="OP">AND</field>
                                                     <value name="A">
                                                       <block type="logic_compare" id=";AhA%((|o~s0b|*thGD6">
                                                         <field name="OP">LT</field>
                                                         <value name="A">
                                                           <block type="get_value" id="gjq:kVVA[oP|2(Y7L844">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <block type="get_value" id="29K2ZhjmlM^.$R%?*O?r">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="logic_negate" id="-/QD8C}5Tjf-sJ3C)yE-">
                                                         <value name="BOOL">
                                                           <block type="variables_get" id="_{`SnXEPu~xnz!QQ;HIg">
                                                             <field name="VAR" id="eXyCA~sNI-z]Gw*blb(Q">sperre</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <statement name="DO0">
                                                   <block type="variables_set" id="NpRPBz7Hf6OrB9tVI/7]">
                                                     <field name="VAR" id="eXyCA~sNI-z]Gw*blb(Q">sperre</field>
                                                     <value name="VALUE">
                                                       <block type="logic_boolean" id="HK7*w];WI5DxeR|H%([2">
                                                         <field name="BOOL">TRUE</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="control" id="ZZFRY;*PxD?EZ)2O8iS~">
                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                         <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                                                         <field name="WITH_DELAY">FALSE</field>
                                                         <value name="VALUE">
                                                           <block type="logic_boolean" id="AZ;;@J$SjYySbf|5:yvr">
                                                             <field name="BOOL">TRUE</field>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="control" id="i2+|k}fQJFZmiWvI:0Cw">
                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                             <field name="OID">0_userdata.0.testen.ende_sperrzeit_heizung</field>
                                                             <field name="WITH_DELAY">FALSE</field>
                                                             <value name="VALUE">
                                                               <block type="convert_from_date" id="BRV!/gf]Za[d5Y(U`d0-">
                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                 <field name="OPTION">hh:mm</field>
                                                                 <value name="VALUE">
                                                                   <block type="math_arithmetic" id="tuB?8ijdf97ecwM8P`*w">
                                                                     <field name="OP">ADD</field>
                                                                     <value name="A">
                                                                       <shadow type="math_number" id="1[@ffvW*[Z0s+B1HE8Ly">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="time_get" id="KTm,|(3-~.1%vh$ZOkK2">
                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                         <field name="OPTION">object</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <shadow type="math_number" id="D.zbz$49YxC2c1azX=r~">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="math_number" id="4O*(gsP.Zd2UY@m+r=ot">
                                                                         <field name="NUM">5400000</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="timeouts_settimeout" id="}DJ},dg?Mi)VpfdMRY9{">
                                                                 <field name="NAME">timeout</field>
                                                                 <field name="DELAY">45</field>
                                                                 <field name="UNIT">min</field>
                                                                 <statement name="STATEMENT">
                                                                   <block type="control" id="?sZli[f~Dg(yt|nc.o7.">
                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                     <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                                                                     <field name="WITH_DELAY">FALSE</field>
                                                                     <value name="VALUE">
                                                                       <block type="logic_boolean" id="}JIStyb]!4X!,7OnDcO@">
                                                                         <field name="BOOL">FALSE</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </statement>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                                 <value name="IF1">
                                                   <block type="logic_operation" id="8J!J=QuO[VRTAwL--$??" inline="false">
                                                     <field name="OP">AND</field>
                                                     <value name="A">
                                                       <block type="logic_compare" id="r*KEn=z,[kyIxuL5}P;p">
                                                         <field name="OP">GTE</field>
                                                         <value name="A">
                                                           <block type="get_value" id="2T7[PNo`#A#Y.u(Q`c*H">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">hm-rpc.1.000A9D899F65CB.1.ACTUAL_TEMPERATURE</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <block type="get_value" id="E+-PcFA;?0rjyn;u~35W">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">hm-rpc.1.000A9D899F65CB.1.SET_POINT_TEMPERATURE</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="get_value" id="7(Ir`)[bFBmxYn!Eq^cZ">
                                                         <field name="ATTR">val</field>
                                                         <field name="OID">ID auswählen</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <statement name="DO1">
                                                   <block type="control" id="@*N1BGqFp,k14kZ$emx]">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                     <field name="OID">0_userdata.0.Testordner.Wohnzimmer_heizung</field>
                                                     <field name="WITH_DELAY">FALSE</field>
                                                     <value name="VALUE">
                                                       <block type="logic_boolean" id="knxl8#k^UDaS0z/qJVoA">
                                                         <field name="BOOL">FALSE</field>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="timeouts_cleartimeout" id="I{OA]-{AEf|djZqwmIP#">
                                                         <field name="NAME">timeout</field>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="procedures_callnoreturn" id=";3^[{UoVAq5`gkRtpD?+">
                                                 <mutation name="Zeitsperre_bis"></mutation>
                                                 <next>
                                                   <block type="on_ext" id="=4vB/efwXf{;.80x]1y?">
                                                     <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="dAFjD#$p%Lzu1jq3RS9]">
                                                         <field name="oid">default</field>
                                                       </shadow>
                                                       <block type="field_oid" id=",IESp[Ge{|7kYC1=gg=S">
                                                         <field name="oid">0_userdata.0.testen.testzeit</field>
                                                       </block>
                                                     </value>
                                                     <statement name="STATEMENT">
                                                       <block type="schedule_clear" id="h,,l!_u[m(Ft2dtAt2T{">
                                                         <field name="NAME">zeitplan1</field>
                                                         <next>
                                                           <block type="procedures_callnoreturn" id="-Hznl}|3vix)`JPzQ/YB">
                                                             <mutation name="Zeitsperre_bis"></mutation>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </statement>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                       <block type="comment" id="/tI;IUq6a#gMH4?[s|MR" x="-38" y="-112">
                                         <field name="COMMENT">&lt;- hier noch Wohnzimmer_Heizung eintragen</field>
                                       </block>
                                       <block type="procedures_defnoreturn" id="|LCv6$f*g37VQ?B!V$ps" x="-62" y="-13">
                                         <field name="NAME">Zeitsperre_bis</field>
                                         <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                         <statement name="STACK">
                                           <block type="variables_set" id="x7f9J?+b7Qu=AF?$sI;4">
                                             <field name="VAR" id="fg=~hsoRkJ/f1erCwxY_">zeit</field>
                                             <value name="VALUE">
                                               <block type="lists_split" id="kptth:MB]agxCGQ?-)qa">
                                                 <mutation mode="SPLIT"></mutation>
                                                 <field name="MODE">SPLIT</field>
                                                 <value name="INPUT">
                                                   <block type="get_value" id="QygiyzLaO=zz{Dp-G9RT">
                                                     <field name="ATTR">val</field>
                                                     <field name="OID">0_userdata.0.testen.ende_sperrzeit_heizung</field>
                                                   </block>
                                                 </value>
                                                 <value name="DELIM">
                                                   <shadow type="text" id="C^2ndiGkG`#^BEOZ$bps">
                                                     <field name="TEXT">:</field>
                                                   </shadow>
                                                 </value>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="schedule_create" id="eg*Lvnr-IRQStaiT4NY5">
                                                 <field name="NAME">zeitplan1</field>
                                                 <value name="SCHEDULE">
                                                   <shadow type="field_cron" id="onj(4EW)2d!N)oPKwA/S">
                                                     <field name="CRON">* * * * *</field>
                                                   </shadow>
                                                   <block type="cron_builder" id="Qy6NqfiE?grGs~5%-^C=">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                     <field name="LINE">FALSE</field>
                                                     <field name="WITH_SECONDS">FALSE</field>
                                                     <value name="DOW">
                                                       <shadow type="text" id="A6*h2v8D04+n#3t;9SV*">
                                                         <field name="TEXT">*</field>
                                                       </shadow>
                                                     </value>
                                                     <value name="MONTHS">
                                                       <shadow type="text" id="kkj[+iBB0jDS2z`Vj:qp">
                                                         <field name="TEXT">*</field>
                                                       </shadow>
                                                     </value>
                                                     <value name="DAYS">
                                                       <shadow type="text" id=":[o_I*K3u]iD[j^L{?jr">
                                                         <field name="TEXT">*</field>
                                                       </shadow>
                                                     </value>
                                                     <value name="HOURS">
                                                       <shadow type="text" id="Me,A#JM[54h`IlMna.SA">
                                                         <field name="TEXT">*</field>
                                                       </shadow>
                                                       <block type="lists_getIndex" id="@]7.cxTzhF%v1~,rn|U3">
                                                         <mutation statement="false" at="true"></mutation>
                                                         <field name="MODE">GET</field>
                                                         <field name="WHERE">FROM_START</field>
                                                         <value name="VALUE">
                                                           <block type="variables_get" id="]D6yb:QK;_}Y49Hp8VZ3">
                                                             <field name="VAR" id="fg=~hsoRkJ/f1erCwxY_">zeit</field>
                                                           </block>
                                                         </value>
                                                         <value name="AT">
                                                           <block type="math_number" id="/O{8z)AE/*DPUK8ShGl5">
                                                             <field name="NUM">1</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <value name="MINUTES">
                                                       <shadow type="text" id="!UEdIA.vdk8{5|gyYfw9">
                                                         <field name="TEXT">*</field>
                                                       </shadow>
                                                       <block type="lists_getIndex" id="o/Rh3*^06Se:p3a0a8Qb">
                                                         <mutation statement="false" at="true"></mutation>
                                                         <field name="MODE">GET</field>
                                                         <field name="WHERE">FROM_START</field>
                                                         <value name="VALUE">
                                                           <block type="variables_get" id="Xu4l]4uWm}|BnWF,bwr+">
                                                             <field name="VAR" id="fg=~hsoRkJ/f1erCwxY_">zeit</field>
                                                           </block>
                                                         </value>
                                                         <value name="AT">
                                                           <block type="math_number" id="N#%1PD{UYraQF)o6l@ie">
                                                             <field name="NUM">2</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <statement name="STATEMENT">
                                                   <block type="variables_set" id="JY3sfC=._q~axwH|VG#!">
                                                     <field name="VAR" id="eXyCA~sNI-z]Gw*blb(Q">sperre</field>
                                                     <value name="VALUE">
                                                       <block type="logic_boolean" id="f!j:dr|hTSbTHpM20JJ(">
                                                         <field name="BOOL">FALSE</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </statement>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                       </block>
                                      </xml>
                                      

                                      So richtig toll ist die Lösung aber auch nicht, wenn ich mir es recht überlege.

                                      I 1 Reply Last reply Reply Quote 0
                                      • I
                                        ingenii @Cinimod last edited by

                                        @cinimod

                                        Danke aber das ist mir zu kompliziert.

                                        1 Reply Last reply Reply Quote 0
                                        • I
                                          ingenii @Cinimod last edited by ingenii

                                          @cinimod

                                          Hallo,
                                          ich brauche wen Datenpunkten auf Wahr sind dann schalten ein Sonoff aber ausschalten erst wen alle auf False sind.
                                          ich hab mir so was geschrieben es funktioniert aber es kommt ein Fehler in Log.
                                          Kannst du mir bitte schreiben wieso ?

                                          test.JPG

                                          <xml xmlns="https://developers.google.com/blockly/xml">
                                            <block type="comment" id="_9LVB+mDFTm*bn-vUbQ{" x="993" y="-2106">
                                              <field name="COMMENT">1.og</field>
                                              <next>
                                                <block type="on_ext" id="K,WN,pgM_?_@X4vx9kNn">
                                                  <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="4WJh[A=5{zfL8JJaexmQ">
                                                      <field name="oid">0_userdata.0.Testordner.Bad_1og_temp_Heizung</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="OID1">
                                                    <shadow type="field_oid" id="o1VmVTjNh.{faXSdtcf%">
                                                      <field name="oid">0_userdata.0.Testordner.Geastezimmer_temp_Heizung</field>
                                                    </shadow>
                                                  </value>
                                                  <statement name="STATEMENT">
                                                    <block type="controls_if" id="zr))xYp5q6uk7gWR:FLp">
                                                      <mutation elseif="1"></mutation>
                                                      <value name="IF0">
                                                        <block type="logic_compare" id="(%ip:yl;!KUbNeYJO=Q.">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="on_source" id="IQvqF`Ea*52V%WOo$(BG">
                                                              <field name="ATTR">state.val</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_boolean" id="I[ss_EoVs)Q`.9$2jDOM">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="control" id="hS]=O?t$f/y`yv?xV.9v">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">0_userdata.0.Testordner.Heizung-1og-AN</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="@WvR96o@/GT_W,v[-k@;">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                      <value name="IF1">
                                                        <block type="logic_operation" id="NI74tl{Cv%y2nnZ2mq(_" inline="false">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="logic_compare" id="7uPMqgWG]Q790FDLTidp">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="5o;cwewhu(gE!B3`kDDT">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">0_userdata.0.Testordner.Bad_1og_temp_Heizung</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_boolean" id="yVMjFYj};xch]pRb%O~O">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_compare" id="(OQ76rw~]R]9Q_P/kA`V">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="R-*;=g!1Qh_#Zl_G0VM4">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">0_userdata.0.Testordner.Geastezimmer_temp_Heizung</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_boolean" id="a(@N2R~G23z9_{+2v:.H">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO1">
                                                        <block type="control" id="a010)~%,.3zP6z08$:dG">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">0_userdata.0.Testordner.Heizung-1og-AN</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="*Bs?pd`s{_^$#C6$ZaQ%">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="on_ext" id="PbE+r6ibR_B!K.FQ}Fa$">
                                                      <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="R*u+`^~1q(-5RFx%o(wQ">
                                                          <field name="oid">0_userdata.0.Testordner.Heizung-1og-AN</field>
                                                        </shadow>
                                                      </value>
                                                      <statement name="STATEMENT">
                                                        <block type="controls_if" id="r*B?@=L`.guY]MLJ.H@.">
                                                          <mutation elseif="1"></mutation>
                                                          <value name="IF0">
                                                            <block type="logic_compare" id="yG^]{6_J#ybwkkR--1fQ">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id=",~*oG6T^1=4~o,45tX/h">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">0_userdata.0.Testordner.Heizung-1og-AN</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_boolean" id="Ds_@mglbN-,}cDM*CoR3">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="control" id="#5GKyB|4=F4zr^[k^cQk">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">sonoff.0.T2_WC_EG.POWER2</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="wjLU9dHN#h7Y?!IU[;}G">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </statement>
                                                          <value name="IF1">
                                                            <block type="logic_compare" id="-3=In3^#!.98tjamQv=M">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="IFmUuw4PVYZsI)!mwF{b">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">0_userdata.0.Testordner.Heizung-1og-AN</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_boolean" id="X~3*IfnF7=:[xg@w.[9y">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <statement name="DO1">
                                                            <block type="control" id="ahb3Mq`:H=Unj~Jji#z:">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">sonoff.0.T2_WC_EG.POWER2</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="hZi.6P!TF_zeAvEvho]4">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </xml>
                                          
                                          Cinimod 2 Replies Last reply Reply Quote 0
                                          • Cinimod
                                            Cinimod Most Active @ingenii last edited by Cinimod

                                            @ingenii

                                            Ich hätte es etwas anders gebaut, aber von der Funktion her ist alles ok. Weiß auch nicht wieso du die Warnungen bekommst, sorry.

                                            <xml xmlns="https://developers.google.com/blockly/xml">
                                              <block type="comment" id="_9LVB+mDFTm*bn-vUbQ{" x="993" y="-2106">
                                                <field name="COMMENT">1.og</field>
                                                <next>
                                                  <block type="on_ext" id="K,WN,pgM_?_@X4vx9kNn">
                                                    <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="4WJh[A=5{zfL8JJaexmQ">
                                                        <field name="oid">0_userdata.0.Testordner.Bad_1og_temp_Heizung</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="OID1">
                                                      <shadow type="field_oid" id="o1VmVTjNh.{faXSdtcf%">
                                                        <field name="oid">0_userdata.0.Testordner.Geastezimmer_temp_Heizung</field>
                                                      </shadow>
                                                    </value>
                                                    <statement name="STATEMENT">
                                                      <block type="controls_if" id="zr))xYp5q6uk7gWR:FLp">
                                                        <mutation elseif="1"></mutation>
                                                        <value name="IF0">
                                                          <block type="on_source" id="IQvqF`Ea*52V%WOo$(BG">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="control" id="hS]=O?t$f/y`yv?xV.9v">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">0_userdata.0.Testordner.Heizung-1og-AN</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="@WvR96o@/GT_W,v[-k@;">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </statement>
                                                        <value name="IF1">
                                                          <block type="logic_operation" id="NI74tl{Cv%y2nnZ2mq(_" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_negate" id="jk|97gb=SGULHK]i-VF+">
                                                                <value name="BOOL">
                                                                  <block type="get_value" id="5o;cwewhu(gE!B3`kDDT">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">0_userdata.0.Testordner.Bad_1og_temp_Heizung</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_negate" id="Yh1Rk9{J)7{|ysC(ieb+">
                                                                <value name="BOOL">
                                                                  <block type="get_value" id="R-*;=g!1Qh_#Zl_G0VM4">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">0_userdata.0.Testordner.Geastezimmer_temp_Heizung</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO1">
                                                          <block type="control" id="a010)~%,.3zP6z08$:dG">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">0_userdata.0.Testordner.Heizung-1og-AN</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="*Bs?pd`s{_^$#C6$ZaQ%">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="on_ext" id="PbE+r6ibR_B!K.FQ}Fa$">
                                                        <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="R*u+`^~1q(-5RFx%o(wQ">
                                                            <field name="oid">0_userdata.0.Testordner.Heizung-1og-AN</field>
                                                          </shadow>
                                                        </value>
                                                        <statement name="STATEMENT">
                                                          <block type="controls_if" id="r*B?@=L`.guY]MLJ.H@.">
                                                            <mutation else="1"></mutation>
                                                            <value name="IF0">
                                                              <block type="on_source" id=")M?HBgc%+wvanXNJN!6@">
                                                                <field name="ATTR">state.val</field>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="control" id="#5GKyB|4=F4zr^[k^cQk">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">sonoff.0.T2_WC_EG.POWER2</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="wjLU9dHN#h7Y?!IU[;}G">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <statement name="ELSE">
                                                              <block type="control" id="ahb3Mq`:H=Unj~Jji#z:">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">sonoff.0.T2_WC_EG.POWER2</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="hZi.6P!TF_zeAvEvho]4">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </xml>
                                            

                                            Wenn du den Datenpunkt "0_userdata.0.Testordner.Heizung-1og-AN" nicht noch für irgendwas anderes brauchst, kannst du dir den 2. Trigger natürlich sparen und direkt oben den Sonoff "an-aus" schalten.

                                            <xml xmlns="https://developers.google.com/blockly/xml">
                                              <block type="comment" id="_9LVB+mDFTm*bn-vUbQ{" x="993" y="-2106">
                                                <field name="COMMENT">1.og</field>
                                                <next>
                                                  <block type="on_ext" id="K,WN,pgM_?_@X4vx9kNn">
                                                    <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="4WJh[A=5{zfL8JJaexmQ">
                                                        <field name="oid">0_userdata.0.Testordner.Bad_1og_temp_Heizung</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="OID1">
                                                      <shadow type="field_oid" id="o1VmVTjNh.{faXSdtcf%">
                                                        <field name="oid">0_userdata.0.Testordner.Geastezimmer_temp_Heizung</field>
                                                      </shadow>
                                                    </value>
                                                    <statement name="STATEMENT">
                                                      <block type="controls_if" id="zr))xYp5q6uk7gWR:FLp">
                                                        <mutation elseif="1"></mutation>
                                                        <value name="IF0">
                                                          <block type="on_source" id="IQvqF`Ea*52V%WOo$(BG">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="control" id="#5GKyB|4=F4zr^[k^cQk">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">sonoff.0.T2_WC_EG.POWER2</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="wjLU9dHN#h7Y?!IU[;}G">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </statement>
                                                        <value name="IF1">
                                                          <block type="logic_operation" id="NI74tl{Cv%y2nnZ2mq(_" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_negate" id="jk|97gb=SGULHK]i-VF+">
                                                                <value name="BOOL">
                                                                  <block type="get_value" id="5o;cwewhu(gE!B3`kDDT">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">0_userdata.0.Testordner.Bad_1og_temp_Heizung</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_negate" id="Yh1Rk9{J)7{|ysC(ieb+">
                                                                <value name="BOOL">
                                                                  <block type="get_value" id="R-*;=g!1Qh_#Zl_G0VM4">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">0_userdata.0.Testordner.Geastezimmer_temp_Heizung</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO1">
                                                          <block type="control" id="ahb3Mq`:H=Unj~Jji#z:">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">sonoff.0.T2_WC_EG.POWER2</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="hZi.6P!TF_zeAvEvho]4">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </xml>
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            603
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            86
                                            5038
                                            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