Navigation

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

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Heizung smart machen

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

      Hallo, ich brauch mal bitte etwas Unterstützung mit Blockly. Vermutlich seh ich den Wald vor lauter Blocks nicht mehr. Schaut mal bitte aufm Bild mein Konstrukt an. Leider läuft es nicht wie es soll. Debug zeigt immer Tagbetrieb...Bildschirmfoto 2019-11-11 um 20.45.03.png

      Hier noch der Code dazu. Die Idee was ich machen will erschließt sich ,denk ich soweit.

      Kann mir da bitte jemand helfen?

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="" id="(K/qqY[+(osL*rii+b%]">solltemperatur</variable>
          <variable type="undefined" id="Intervall">Intervall</variable>
        </variables>
        <block type="schedule" id="z3|3Z`:}x#1u.*8NZ289" x="-1612" y="-1388">
          <field name="SCHEDULE">* * * * *</field>
          <statement name="STATEMENT">
            <block type="controls_if" id="GU09`m^EF$kz9vx(]Q#T">
              <mutation elseif="2"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="UKyfa`eBaQ#e`Np0Z6I,">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="BDi6%Uz4;p)Kn~MC-$g(">
                      <field name="ATTR">val</field>
                      <field name="OID">homee.0.Homee-0.HomeeMode-1</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="R;6`yu_v;_#;,f!Ws^qx">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="comment" id=":[!rc6As]6q3c##Roc;H">
                  <field name="COMMENT">Tagbetrieb anwesend</field>
                  <next>
                    <block type="controls_if" id="5J/RyclJAZE4F?H*fJ^-">
                      <value name="IF0">
                        <block type="time_compare_ex" id="4bxeAc}%Dqbx6kbGK!#Z">
                          <mutation end_time="true" actual_time="true"></mutation>
                          <field name="USE_ACTUAL_TIME">TRUE</field>
                          <field name="OPTION">between</field>
                          <value name="START_TIME">
                            <shadow type="text" id="]^K?]C](/OwqYvD8U{s?">
                              <field name="TEXT">07:00</field>
                            </shadow>
                          </value>
                          <value name="END_TIME">
                            <shadow type="text" id="[ZmrSoM.$BY?KJ^!ua-1">
                              <field name="TEXT">20:00</field>
                            </shadow>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="timeouts_setinterval" id="b%@w5hg~?Bex;c|D.L={">
                          <field name="NAME">Intervall</field>
                          <field name="INTERVAL">60</field>
                          <field name="UNIT">min</field>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="D@]v(aCZ4W+nA8RCUmq`">
                              <mutation elseif="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="?_0(PM@|MPWl$.Rf])uW" inline="false">
                                  <field name="OP">GT</field>
                                  <value name="A">
                                    <block type="get_value" id="BO!4(O-=ztNObsg*OSw$">
                                      <field name="ATTR">val</field>
                                      <field name="OID">viessmannapi.0.heating.sensors.temperature.outside.value</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="j`UtFP7%$)c0^Gf)`UyU">
                                      <field name="NUM">5</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="variables_set" id="KH_2v1G,-Oy+(yMMA~be">
                                  <field name="VAR" id="(K/qqY[+(osL*rii+b%]" variabletype="">solltemperatur</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="dm-3L5QNgevQj9]m~n%E">
                                      <field name="NUM">22</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                              <value name="IF1">
                                <block type="logic_compare" id="]XkZzuuJ[)N6~a(Qdg%L" inline="false">
                                  <field name="OP">LT</field>
                                  <value name="A">
                                    <block type="get_value" id="Q7Wki82=VR!DO!@]yH4W">
                                      <field name="ATTR">val</field>
                                      <field name="OID">viessmannapi.0.heating.sensors.temperature.outside.value</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="O?ryyr_pzFgo5EjbQpYv">
                                      <field name="NUM">5</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO1">
                                <block type="variables_set" id="f}K?`/9B~=6O-kJgy0p7">
                                  <field name="VAR" id="(K/qqY[+(osL*rii+b%]" variabletype="">solltemperatur</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="KUesSOPW]5Uan1I_#N^]">
                                      <field name="NUM">20</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <next>
                            <block type="sendto_custom" id="eDM)BJUm;DE56-X7Sz^*">
                              <mutation items="feature,action,payload" with_statement="false"></mutation>
                              <field name="INSTANCE">viessmannapi.0</field>
                              <field name="COMMAND">action</field>
                              <field name="WITH_STATEMENT">FALSE</field>
                              <field name="LOG"></field>
                              <value name="ARG0">
                                <shadow type="text" id="7sNhWS6ToU[L}`(M?dVy">
                                  <field name="TEXT">heating.circuits.0.operating.programs.normal</field>
                                </shadow>
                              </value>
                              <value name="ARG1">
                                <shadow type="text" id="uvLk{|o@Lop:+cfTXPr)">
                                  <field name="TEXT">setTemperature</field>
                                </shadow>
                              </value>
                              <value name="ARG2">
                                <shadow type="text" id="0Y1s4WBl12|?9J{Cu#Ut">
                                  <field name="TEXT">{targetTemperature: solltemperatur}</field>
                                </shadow>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <next>
                        <block type="debug" id="Vd^4SKxTN=Y)K4,X@GVB">
                          <field name="Severity">log</field>
                          <value name="TEXT">
                            <shadow type="text" id="`SKtuY2h*cB7.dnqQVtI">
                              <field name="TEXT">Tagbetrieb läuft</field>
                            </shadow>
                          </value>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <value name="IF1">
                <block type="time_compare_ex" id="089E|v@^0$JKv+DvZ0{]">
                  <mutation end_time="true" actual_time="true"></mutation>
                  <field name="USE_ACTUAL_TIME">TRUE</field>
                  <field name="OPTION">not between</field>
                  <value name="START_TIME">
                    <shadow type="text" id="$bLFLH@PvSs)#t%t^r3M">
                      <field name="TEXT">07:00</field>
                    </shadow>
                  </value>
                  <value name="END_TIME">
                    <shadow type="text" id="WBv{-Sh/S;Esf)Yyx3]3">
                      <field name="TEXT">20:00</field>
                    </shadow>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="comment" id="X#0/pyHF[@+4Q8cJ.g|6">
                  <field name="COMMENT">Nachtabsenkung</field>
                  <next>
                    <block type="variables_set" id="0F*/.8dDjn(Y%+W`UK$c">
                      <field name="VAR" id="(K/qqY[+(osL*rii+b%]" variabletype="">solltemperatur</field>
                      <value name="VALUE">
                        <block type="math_number" id="$uko71Lk_S$c9nuf-i]0">
                          <field name="NUM">9</field>
                        </block>
                      </value>
                      <next>
                        <block type="sendto_custom" id="b@9?VM*tPWtlv.2VM_pk">
                          <mutation items="feature,action,payload" with_statement="false"></mutation>
                          <field name="INSTANCE">viessmannapi.0</field>
                          <field name="COMMAND">action</field>
                          <field name="WITH_STATEMENT">FALSE</field>
                          <field name="LOG"></field>
                          <value name="ARG0">
                            <shadow type="text" id="pJxGJ9M)LvfpGB%c?ugU">
                              <field name="TEXT">heating.circuits.0.operating.programs.normal</field>
                            </shadow>
                          </value>
                          <value name="ARG1">
                            <shadow type="text" id="Gi{g}@oLW~Q0M}7%_%7V">
                              <field name="TEXT">setTemperature</field>
                            </shadow>
                          </value>
                          <value name="ARG2">
                            <shadow type="text" id="c,N~!C,/xlX9:tnzPC:p">
                              <field name="TEXT">{targetTemperature: solltemperatur}</field>
                            </shadow>
                          </value>
                          <next>
                            <block type="debug" id="Lz,G7xNOaQ@2z]{Hc]3F">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text" id="$7nnnl9rtqJQKbAB${dB">
                                  <field name="TEXT">Nachtabsenkung</field>
                                </shadow>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <value name="IF2">
                <block type="logic_compare" id="wp7H7~FW25q]Ny]Z7m5c">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="+g#vV^3$rb?EbOswz$yQ">
                      <field name="ATTR">val</field>
                      <field name="OID">homee.0.Homee-0.HomeeMode-1</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="9+7zbb1xT^7;kAwBlSIe">
                      <field name="NUM">2</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO2">
                <block type="comment" id="edIxF82$*[oGK-y5Lm![">
                  <field name="COMMENT">Abwesend</field>
                  <next>
                    <block type="variables_set" id="Si!WTE.HJ5.$ml]l0G+2">
                      <field name="VAR" id="(K/qqY[+(osL*rii+b%]" variabletype="">solltemperatur</field>
                      <value name="VALUE">
                        <block type="math_number" id="IJ3yuLaUo1vIo9tZ0iD$">
                          <field name="NUM">10</field>
                        </block>
                      </value>
                      <next>
                        <block type="sendto_custom" id="g9{.h.8(Keg-dtEE:F+:">
                          <mutation items="feature,action,payload" with_statement="false"></mutation>
                          <field name="INSTANCE">viessmannapi.0</field>
                          <field name="COMMAND">action</field>
                          <field name="WITH_STATEMENT">FALSE</field>
                          <field name="LOG"></field>
                          <value name="ARG0">
                            <shadow type="text" id="z;YR:[08:YyiN.UzI7$y">
                              <field name="TEXT">heating.circuits.0.operating.programs.normal</field>
                            </shadow>
                          </value>
                          <value name="ARG1">
                            <shadow type="text" id="9]u-I5/FB=W!=)CXgbWo">
                              <field name="TEXT">setTemperature</field>
                            </shadow>
                          </value>
                          <value name="ARG2">
                            <shadow type="text" id="_gEi9puCiCgbl8:uR+=R">
                              <field name="TEXT">{targetTemperature: solltemperatur}</field>
                            </shadow>
                          </value>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      paul53 1 Reply Last reply Reply Quote 0
      • Dr. Bakterius
        Dr. Bakterius Most Active last edited by

        Das Intervall im Tagbetrieb läuft bei dir ewig weiter, auch im Nachtmodus. Also wird die Temperatur immer für den Tag eingestellt sein. Du musst im Nachtteil das Intervall stoppen!

        H 1 Reply Last reply Reply Quote 0
        • H
          Hamudulu @Dr. Bakterius last edited by

          @Dr-Bakterius Ok, Danke, wie kann ich stoppen? Ich hab mir sowas gedacht, hab aber jetzt ein Knoten im Hirn, und komm nicht drauf wie ich das lösen kann. Ich hab jetzt auch die erste Zeitbedingung Tagbetrieb getauscht mit dem ersten falls. Jetzt läuft es besser, aber das mit dem Stoppen würde ich trotzdem gern verstehen und anwenden.

          Dr. Bakterius 1 Reply Last reply Reply Quote 0
          • Dr. Bakterius
            Dr. Bakterius Most Active @Hamudulu last edited by

            @Hamudulu Also nach deinem obigen Skript würde ich drei Stopps einbauen. Funktioniert so:
            zyklus.jpg

            Wobei das dann trotzdem nicht funktioniert. Du prüfst jede Minute und startest auch jede Minute das Skript. In deinem ursprünglichen Blockly wird also jede Minute ein neuer Intervall gestartet. Da laufen dann hunderte! Müsstest du im Log sehen wenn da jede Minute steht, dass der Tagbetrieb läuft. Wenn du die Stopps einbaust, wird das Intervall nie schlagend, weil jede Minute gestoppt und wieder gestartet.

            Du musst dir also ein komplett anderes Skript schreiben damit das funktioniert. Ich habe so auf die Schnelle auch keine Lösung für dich, sorry...

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

              @Hamudulu sagte:

              brauch mal bitte etwas Unterstützung mit Blockly.

              Vorschlag:

              Blockly_temp.JPG

              <xml xmlns="http://www.w3.org/1999/xhtml">
               <variables>
                 <variable type="" id="(B*.i$?=:Z/@zm9h(ab)">anwesend</variable>
                 <variable type="" id="[8FVGmlBF@N?v$xwfL#r">winter</variable>
                 <variable type="" id="Lv/#?]#gfWreC?fS%m4d">tag</variable>
                 <variable type="" id="+$tHFD?K_R/[l(}yuSYY">solltemperatur</variable>
                 <variable type="" id="|Bed.?5!cqRbD{#Lvn[@">merker</variable>
               </variables>
               <block type="comment" id="M!ZZ@pn}RJs+$wHk2il#" x="38" y="-113">
                 <field name="COMMENT">HomeeMode</field>
                 <next>
                   <block type="on_ext" id="A8^ai?hR%4U$=ufQ`+GF">
                     <mutation items="1"></mutation>
                     <field name="CONDITION">ne</field>
                     <field name="ACK_CONDITION"></field>
                     <value name="OID0">
                       <shadow type="field_oid" id="}DYy],8@=uM=H^721oyU">
                         <field name="oid">default</field>
                       </shadow>
                     </value>
                     <statement name="STATEMENT">
                       <block type="controls_if" id="poY540!PU2/+Qx.iZG}B">
                         <mutation else="1"></mutation>
                         <value name="IF0">
                           <block type="logic_compare" id="oi0Fnc(eqg?=-Hv7T)L,">
                             <field name="OP">EQ</field>
                             <value name="A">
                               <block type="on_source" id="c?#gp~6{OKpXl#YAr04c">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id="})wwr[d#h;;btdk|m@Rj">
                                 <field name="NUM">2</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="variables_set" id="[5^lL}G0P4*3zzlf@Ux4">
                             <field name="VAR" id="(B*.i$?=:Z/@zm9h(ab)" variabletype="">anwesend</field>
                             <value name="VALUE">
                               <block type="logic_boolean" id="vNO^YS)A(^}Rvz4#!%z`">
                                 <field name="BOOL">FALSE</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                         <statement name="ELSE">
                           <block type="variables_set" id=")!]hRgT$.C$:O(1Ey!tN">
                             <field name="VAR" id="(B*.i$?=:Z/@zm9h(ab)" variabletype="">anwesend</field>
                             <value name="VALUE">
                               <block type="logic_boolean" id="Q.97jV*%v?0Z(]+OQ5Lt">
                                 <field name="BOOL">TRUE</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                         <next>
                           <block type="procedures_callnoreturn" id="KEw@)QuVJv^~CF/@}Zmh">
                             <mutation name="Heizung"></mutation>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <next>
                       <block type="comment" id=":l`H$GprV;f|TQumI.N(">
                         <field name="COMMENT">Aussentemperatur</field>
                         <next>
                           <block type="on_ext" id="(57P08c=o{Hy:yk%{@)t">
                             <mutation items="1"></mutation>
                             <field name="CONDITION">ne</field>
                             <field name="ACK_CONDITION"></field>
                             <value name="OID0">
                               <shadow type="field_oid" id="U_=FtFd:|*5FXLzSk}BG">
                                 <field name="oid">default</field>
                               </shadow>
                             </value>
                             <statement name="STATEMENT">
                               <block type="variables_set" id="*i|KC;`Y_WWY68n@o)F6">
                                 <field name="VAR" id="|Bed.?5!cqRbD{#Lvn[@" variabletype="">merker</field>
                                 <value name="VALUE">
                                   <block type="variables_get" id="y4xtNNa/%kve=9(-WAc@">
                                     <field name="VAR" id="[8FVGmlBF@N?v$xwfL#r" variabletype="">winter</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="controls_if" id="t+UdDouks(mnH/,|5z[S">
                                     <mutation elseif="1"></mutation>
                                     <value name="IF0">
                                       <block type="logic_compare" id="qu#8{0QCUIRA!cpB~F|P">
                                         <field name="OP">LT</field>
                                         <value name="A">
                                           <block type="on_source" id="x^m9@?QW(|m;k`N^Si*/">
                                             <field name="ATTR">state.val</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="f-1Hw2cUGpQ0d;;p|RGw">
                                             <field name="NUM">5</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="variables_set" id=".l;d;vt0y91=gJ[?.Gta">
                                         <field name="VAR" id="[8FVGmlBF@N?v$xwfL#r" variabletype="">winter</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="5RSo{T5:Zl.yfk^0M8W@">
                                             <field name="BOOL">TRUE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                     <value name="IF1">
                                       <block type="logic_compare" id="vEOe(5fi$u;Q19HX5153">
                                         <field name="OP">GT</field>
                                         <value name="A">
                                           <block type="on_source" id="aa{DP^w84U|W%v)$cZ}Y">
                                             <field name="ATTR">state.val</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="math_number" id="PQ;WRMT90k:5?1u/a`Y1">
                                             <field name="NUM">5.5</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO1">
                                       <block type="variables_set" id=":)5nCSp9cnVzWKTEugU2">
                                         <field name="VAR" id="[8FVGmlBF@N?v$xwfL#r" variabletype="">winter</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id="QDMfIC@3sWG{,!P(Ai,)">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                     <next>
                                       <block type="controls_if" id="Fxke}gG7MAB|8K47XW3h">
                                         <value name="IF0">
                                           <block type="logic_compare" id="s$2A]+*:q/_gxliw`V{!">
                                             <field name="OP">NEQ</field>
                                             <value name="A">
                                               <block type="variables_get" id="#epfbwExL@;ASDgsS,OE">
                                                 <field name="VAR" id="[8FVGmlBF@N?v$xwfL#r" variabletype="">winter</field>
                                               </block>
                                             </value>
                                             <value name="B">
                                               <block type="variables_get" id="?,b|/{/QjQ*Yxh0^+|A+">
                                                 <field name="VAR" id="|Bed.?5!cqRbD{#Lvn[@" variabletype="">merker</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <statement name="DO0">
                                           <block type="procedures_callnoreturn" id="Vxv2pctYKes~^8:m_Sdi">
                                             <mutation name="Heizung"></mutation>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <next>
                               <block type="schedule" id="W6[98VIYo/%cQqEU*PDf">
                                 <field name="SCHEDULE">0 7 * * *</field>
                                 <statement name="STATEMENT">
                                   <block type="variables_set" id="xDatxvMBuqjh^=WSl6Q(">
                                     <field name="VAR" id="Lv/#?]#gfWreC?fS%m4d" variabletype="">tag</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id=":x^PASn/#E-S-na/e@?A">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="procedures_callnoreturn" id="J(vfR7jzc8DWK:ZJQdN1">
                                         <mutation name="Heizung"></mutation>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="schedule" id="Nvy;WPmY[=@uRD]6B;L1">
                                     <field name="SCHEDULE">0 20 * * *</field>
                                     <statement name="STATEMENT">
                                       <block type="variables_set" id="Yvc3Gkz-J[~cM|!~Zn]y">
                                         <field name="VAR" id="Lv/#?]#gfWreC?fS%m4d" variabletype="">tag</field>
                                         <value name="VALUE">
                                           <block type="logic_boolean" id=":)x[/y`mc2a]%@_.C0dn">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="procedures_callnoreturn" id="Q*ao@,/(ig0=@gl^JuSP">
                                             <mutation name="Heizung"></mutation>
                                           </block>
                                         </next>
                                       </block>
                                     </statement>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
               <block type="controls_if" id=",]X8n{]$%iE(X/|!rY*+" x="437" y="-88">
                 <mutation else="1"></mutation>
                 <value name="IF0">
                   <block type="logic_compare" id="!tqV^qhccI@@ly:}dK`d">
                     <field name="OP">EQ</field>
                     <value name="A">
                       <block type="get_value" id="djy)lb~PFy17,6uDl_@z">
                         <field name="ATTR">val</field>
                         <field name="OID">ID auswählen</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id=".{F8F#8nBcOYoyCJXE1O">
                         <field name="NUM">2</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="variables_set" id="NKpt*u+9jUHKrhGj|;)#">
                     <field name="VAR" id="(B*.i$?=:Z/@zm9h(ab)" variabletype="">anwesend</field>
                     <value name="VALUE">
                       <block type="logic_boolean" id="0?u[vHgys+/YB([K~}E^">
                         <field name="BOOL">FALSE</field>
                       </block>
                     </value>
                   </block>
                 </statement>
                 <statement name="ELSE">
                   <block type="variables_set" id="H%Op*=zYsC0:b!Glc$%,">
                     <field name="VAR" id="(B*.i$?=:Z/@zm9h(ab)" variabletype="">anwesend</field>
                     <value name="VALUE">
                       <block type="logic_boolean" id="JN}=GE.;3v+ZO!)VOkxZ">
                         <field name="BOOL">TRUE</field>
                       </block>
                     </value>
                   </block>
                 </statement>
                 <next>
                   <block type="controls_if" id="lX}5)S**6TsdkJiLq4#V">
                     <mutation else="1"></mutation>
                     <value name="IF0">
                       <block type="logic_compare" id="SLw;FwMDsMuhP:n;bp_y">
                         <field name="OP">LT</field>
                         <value name="A">
                           <block type="get_value" id="i,0qwc!E*@F;[wy(.+r-">
                             <field name="ATTR">val</field>
                             <field name="OID">ID auswählen</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="[b#I]Luci1mil`K#9iTP">
                             <field name="NUM">5</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="variables_set" id="d+Gy^J(qu}^IU5Q|_E-B">
                         <field name="VAR" id="[8FVGmlBF@N?v$xwfL#r" variabletype="">winter</field>
                         <value name="VALUE">
                           <block type="logic_boolean" id="%]jEw@5Pwb;lqS+imMN1">
                             <field name="BOOL">TRUE</field>
                           </block>
                         </value>
                       </block>
                     </statement>
                     <statement name="ELSE">
                       <block type="variables_set" id="loM]+vPz[2%O#JXIIyQ$">
                         <field name="VAR" id="[8FVGmlBF@N?v$xwfL#r" variabletype="">winter</field>
                         <value name="VALUE">
                           <block type="logic_boolean" id="oIwDl{zQX/K+X?Y7{RZl">
                             <field name="BOOL">FALSE</field>
                           </block>
                         </value>
                       </block>
                     </statement>
                     <next>
                       <block type="variables_set" id="3Sd_7a9hr|id}an3d]`?">
                         <field name="VAR" id="Lv/#?]#gfWreC?fS%m4d" variabletype="">tag</field>
                         <value name="VALUE">
                           <block type="time_compare" id="X;T!G+NQx0W0%X$;`2#b">
                             <mutation end_time="true"></mutation>
                             <field name="OPTION">between</field>
                             <field name="START_TIME">7:00</field>
                             <field name="END_TIME">20:00</field>
                           </block>
                         </value>
                         <next>
                           <block type="procedures_callnoreturn" id="K1S|d!2Lp:g[%.t4g:Pu">
                             <mutation name="Heizung"></mutation>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
               <block type="procedures_defnoreturn" id="~b)D{PD27_%[RUAYQr(-" x="437" y="238">
                 <field name="NAME">Heizung</field>
                 <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                 <statement name="STACK">
                   <block type="controls_if" id=":@5|m#mR~#xLK-%.#6ks">
                     <mutation else="1"></mutation>
                     <value name="IF0">
                       <block type="variables_get" id="t!rnBt%.Ts#dr;a1c_pr">
                         <field name="VAR" id="(B*.i$?=:Z/@zm9h(ab)" variabletype="">anwesend</field>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="controls_if" id="N1RvCNQ9x(8l(|a,1jTP">
                         <mutation else="1"></mutation>
                         <value name="IF0">
                           <block type="variables_get" id="=XFnTl/dY!FrwAPj4KPw">
                             <field name="VAR" id="Lv/#?]#gfWreC?fS%m4d" variabletype="">tag</field>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="controls_if" id="S^X*~{)qG9v^jT3Kfijj">
                             <mutation else="1"></mutation>
                             <value name="IF0">
                               <block type="variables_get" id="?xexR?d=lBF?%CP-tzzb">
                                 <field name="VAR" id="[8FVGmlBF@N?v$xwfL#r" variabletype="">winter</field>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="variables_set" id=".R%1npMxg6^aVm4Gw.-y">
                                 <field name="VAR" id="+$tHFD?K_R/[l(}yuSYY" variabletype="">solltemperatur</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="aI+2~+n[7+4+~3]J7T.}">
                                     <field name="NUM">20</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                             <statement name="ELSE">
                               <block type="variables_set" id="g9d4OsZoSD}e[Q@/XzO+">
                                 <field name="VAR" id="+$tHFD?K_R/[l(}yuSYY" variabletype="">solltemperatur</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="):2Lg9s;G68uUZ$!EZO!">
                                     <field name="NUM">22</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                           </block>
                         </statement>
                         <statement name="ELSE">
                           <block type="variables_set" id="//,IxQQj.~J:WQ}5+5he">
                             <field name="VAR" id="+$tHFD?K_R/[l(}yuSYY" variabletype="">solltemperatur</field>
                             <value name="VALUE">
                               <block type="math_number" id="00%sIw[3S3I]{-Sqh4Gp">
                                 <field name="NUM">19</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                       </block>
                     </statement>
                     <statement name="ELSE">
                       <block type="variables_set" id="LiyZ/V_v0J{+8p3Pgz^}">
                         <field name="VAR" id="+$tHFD?K_R/[l(}yuSYY" variabletype="">solltemperatur</field>
                         <value name="VALUE">
                           <block type="math_number" id="%zG^F4M0h2h~p%I.RV6K">
                             <field name="NUM">10</field>
                           </block>
                         </value>
                       </block>
                     </statement>
                     <next>
                       <block type="sendto_custom" id=",GmHSucAhjRls+`vR;jU">
                         <mutation items="feature,action,payload" with_statement="false"></mutation>
                         <field name="INSTANCE">admin.0</field>
                         <field name="COMMAND">action</field>
                         <field name="WITH_STATEMENT">FALSE</field>
                         <field name="LOG"></field>
                         <value name="ARG0">
                           <shadow type="text" id="UQ$|KCr4]{w[r^s5HK|y">
                             <field name="TEXT">heating.circuits.0.operating.programs.normal</field>
                           </shadow>
                         </value>
                         <value name="ARG1">
                           <shadow type="text" id="tdj-4pBp]WEx1noZLU!o">
                             <field name="TEXT">setTemperature</field>
                           </shadow>
                         </value>
                         <value name="ARG2">
                           <shadow type="text" id="rwizuNjDo6r}-*WRZKn[">
                             <field name="TEXT">{targetTemperature: solltemperatur}</field>
                           </shadow>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
              </xml>
              

              H 1 Reply Last reply Reply Quote 1
              • H
                Hamudulu last edited by

                Krass , vielen Dank für den Denkanstoß und Vorschlag. Ich werd das ausprobieren.
                Ihr seid die besten, vielen Dank nochmal

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

                  @paul53 Vielen Dank, es scheint soweit zu laufen. Auf das Konstrukt wäre ich vermutlich so nie gekommen....Super

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

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  377
                  Online

                  31.9k
                  Users

                  80.3k
                  Topics

                  1.3m
                  Posts

                  3
                  7
                  520
                  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