Navigation

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

    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

    Javascript spinnt

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Homoran last edited by Homoran

      @Homoran

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="undefined" id="Druckwaechter">Druckwaechter</variable>
        </variables>
        <block type="on_ext" id="7dfyAn6SRa*[nLlE6wNr" x="88" y="-688">
          <mutation items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="22fT?@[Ak,Y,5ARfKDR0">
              <field name="oid">hm-rpc.0.JEQ0646431.1.STATE</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id=")z={;q=@viwHI1]x-E!n">
              <mutation elseif="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="/jjj`+cYZAPxHH@;p6IO">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="AT;0x.hm%lz`yuC5zo!~">
                      <field name="ATTR">val</field>
                      <field name="OID">hm-rpc.0.JEQ0646431.1.STATE</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="zJR/?W/^sfA1]`#W_fHR">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="update" id="w^oDcGY.)jHQKrSZ8_$b">
                  <mutation delay_input="false"></mutation>
                  <field name="OID">Messwerte.0.Pool.Logdaten</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="text_join" id="u=RwAsZJ_SKtf1W^#7G5">
                      <mutation items="1"></mutation>
                      <value name="ADD0">
                        <block type="text" id="dt=P;{^t[WY;|UfTC].9">
                          <field name="TEXT">&lt;h3&gt;Pumpe an!&lt;/h3&gt;</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="comment" id="R!/_I]Eg.Mr8B6BQvpzB">
                      <field name="COMMENT">Überprüfung ob sich nach Start Druck aufbaut</field>
                      <next>
                        <block type="timeouts_setinterval" id="(dmS[J9=$HE%={VXvnap">
                          <field name="NAME">Druckwaechter</field>
                          <field name="INTERVAL">2000</field>
                          <field name="UNIT">ms</field>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="~lhx*Vs2ryN|,wqvP!x)">
                              <mutation elseif="2"></mutation>
                              <value name="IF0">
                                <block type="logic_operation" id="?Ikqjg(-]06dNHALPyD:" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_compare" id="b;EdBH]KsuEYFoEOJRBj">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="Nf}+:qJmE!{r;HPgq08/">
                                          <field name="ATTR">val</field>
                                          <field name="OID">hm-rpc.0.JEQ0646431.1.STATE</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id=";fO$:Hlx9-gvh3~7Sa}J">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="DIsH6?CKt#eeQqseF[*t">
                                      <field name="OP">LT</field>
                                      <value name="A">
                                        <block type="math_arithmetic" id="Kl3]R#u544Gw=Ay0)w*/" inline="false">
                                          <field name="OP">MINUS</field>
                                          <value name="A">
                                            <shadow type="math_number" id="INcml)H.rD~u^7J:xt(0">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="get_value" id="Y6f4Pem}L6T`1T`$8#T8">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.0.NEQ1547414.3.STATE</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number" id="p+mI@^)NJ3V2%8C!BoGN">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="get_value" id="PTrh,nQk_e1_(`lNtDr,">
                                              <field name="ATTR">val</field>
                                              <field name="OID">Messwerte.0.Pool.Druckoffset</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id=")%M0Vs[*Thkh@[P[)fJ5">
                                          <field name="NUM">40</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="update" id="n=2V{qw*}vbeW+j*|3|4">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">Messwerte.0.Pool.Aus-Counter</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_arithmetic" id="zxVr.v)8$`]wuc@gZYJx">
                                      <field name="OP">ADD</field>
                                      <value name="A">
                                        <shadow type="math_number" id="d,c/@aBkqFRf?N@Yr-5G">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="get_value" id="W7K[HLit6M;jMhECjdo4">
                                          <field name="ATTR">val</field>
                                          <field name="OID">Messwerte.0.Pool.Aus-Counter</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="1kl!u(,!aJwjF!_1ef%r">
                                          <field name="NUM">1</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="update" id="FQJt6GsNG#O5-`rURd@b">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">Messwerte.0.Pool.Logdaten</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="text_join" id="V(kh7O_8ml6ima2V=!(H">
                                          <mutation items="3"></mutation>
                                          <value name="ADD0">
                                            <block type="text" id="Kd1m25}S19}M!hrCL4e,">
                                              <field name="TEXT">Der Pumpendruck beträgt </field>
                                            </block>
                                          </value>
                                          <value name="ADD1">
                                            <block type="math_arithmetic" id="u[,4FDg:-2rbUkFQ20vt" inline="false">
                                              <field name="OP">MINUS</field>
                                              <value name="A">
                                                <shadow type="math_number" id="INcml)H.rD~u^7J:xt(0">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="get_value" id="$.~H$I;sBm?`%oi4myvz">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">hm-rpc.0.NEQ1547414.3.STATE</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="p+mI@^)NJ3V2%8C!BoGN">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="get_value" id="i2Ym%.6b/*hby$T3xxS9">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">Messwerte.0.Pool.Druckoffset</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="ADD2">
                                            <block type="text" id="Wrz~UGhB4XFYt@[aiX*O">
                                              <field name="TEXT">kPa, Pumpe zieht Luft!</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <value name="IF1">
                                <block type="logic_operation" id="|lv!dTbr^IxwOdd|IJgr" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_operation" id=";1(v^[i=sQ}QPd`Nt;sI" inline="false">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="]=?Iqha}AKv$sl9yLKC.">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="|yRK#Er%v%mJ))t}Vl1J">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.0.JEQ0646431.1.STATE</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id="y{QTTF,sNl0=?M`;xGxC">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="@FdJz}BkDt0yP`5pV6}(">
                                          <field name="OP">LTE</field>
                                          <value name="A">
                                            <block type="get_value" id="3%]u)I^}Kk;]o8ELq6Q#">
                                              <field name="ATTR">val</field>
                                              <field name="OID">Messwerte.0.Pool.Aus-Counter</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="NXsORCA+acza*%?E%wLq">
                                              <field name="NUM">25</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="Q[q#b4SqBT8h;F^i/Zjv">
                                      <field name="OP">GT</field>
                                      <value name="A">
                                        <block type="math_arithmetic" id="6*z48,4kjj2}MCg~ZLjG" inline="false">
                                          <field name="OP">MINUS</field>
                                          <value name="A">
                                            <shadow type="math_number" id="INcml)H.rD~u^7J:xt(0">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="get_value" id="H=E3)e95V8jZ8]pdse%@">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.0.NEQ1547414.3.STATE</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number" id="p+mI@^)NJ3V2%8C!BoGN">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="get_value" id="+d1+[1Z#U`5~./W%B}0A">
                                              <field name="ATTR">val</field>
                                              <field name="OID">Messwerte.0.Pool.Druckoffset</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="v({r^T(a[x=KmK|YmuqN">
                                          <field name="NUM">70</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO1">
                                <block type="update" id="?`(,B+MiC#:t+,!{9M!|">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">Messwerte.0.Pool.Logdaten</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="text_join" id="ZzygAs|4A8^9~PUdyf7*">
                                      <mutation items="3"></mutation>
                                      <value name="ADD0">
                                        <block type="text" id="zr,%jgd/n~n9@ytoH?tu">
                                          <field name="TEXT">Der Pumpendruck beträgt </field>
                                        </block>
                                      </value>
                                      <value name="ADD1">
                                        <block type="math_arithmetic" id="~FK)M+G_7Ne%6v0ChmVE" inline="false">
                                          <field name="OP">MINUS</field>
                                          <value name="A">
                                            <shadow type="math_number" id="INcml)H.rD~u^7J:xt(0">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="get_value" id="[$afhI/0-qJxDKj$QVZc">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.0.NEQ1547414.3.STATE</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number" id="p+mI@^)NJ3V2%8C!BoGN">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="get_value" id="1OgHM*qIdtfWM-gEF3//">
                                              <field name="ATTR">val</field>
                                              <field name="OID">Messwerte.0.Pool.Druckoffset</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="ADD2">
                                        <block type="text" id="w,_a2K$?2?2*iflXYnj)">
                                          <field name="TEXT">kPa, Pumpe OK!</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="timeouts_clearinterval" id="|{Dx7@}:?^_iT2M|_G8?">
                                      <field name="NAME">Druckwaechter</field>
                                      <next>
                                        <block type="update" id="!dT6Nrdz[0Y;|!wj|G=1">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">Messwerte.0.Pool.Aus-Counter</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="TzTku,Loj.[xHXB24mY}">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="update" id="iE~B{eq9,^?Ez!Vf?uHR">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">Messwerte.0.Pool.Not-Aus</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="q^Xs3OBbw0WoN$E{[EIE">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <value name="IF2">
                                <block type="logic_compare" id="%Fq@t|QV#;J`%V|SU=Ge">
                                  <field name="OP">GT</field>
                                  <value name="A">
                                    <block type="get_value" id="5kxD)T_,/44`#Cahfk{~">
                                      <field name="ATTR">val</field>
                                      <field name="OID">Messwerte.0.Pool.Aus-Counter</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="lf+nFS}/i^VYH4dtC$}d">
                                      <field name="NUM">25</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO2">
                                <block type="timeouts_clearinterval" id="a%U@19LgX0PO$Me/}nib">
                                  <field name="NAME">Druckwaechter</field>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_compare" id=":iR2b(rLjoeR?4xjuuON">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="!L[!9l3mD;7AvQ~rDmeF">
                      <field name="ATTR">val</field>
                      <field name="OID">hm-rpc.0.JEQ0646431.1.STATE</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="z~E`0R`q#Y/i;D7?+I}y">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="update" id="^1$tmg]Y7!4P|:ll$NBe">
                  <mutation delay_input="false"></mutation>
                  <field name="OID">Messwerte.0.Pool.Logdaten</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="text_join" id="LrZELm6;8l:R+9*:fL:F">
                      <mutation items="1"></mutation>
                      <value name="ADD0">
                        <block type="text" id=".Z]]b@r=0Lu1sNu{xXi%">
                          <field name="TEXT">&lt;h3&gt;Pumpe aus!&lt;/h3&gt;</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </statement>
            </block>
          </statement>
          <next>
            <block type="on_ext" id="HS#;aW-p`y;to-YSLL4J">
              <mutation items="3"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="b6JuvqEA44nm61[N@lVo">
                  <field name="oid">Messwerte.0.Pool.Aus-Counter</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id=".N=f*k[2D4pNthJgu~Y{">
                  <field name="oid">hm-rpc.0.NEQ1547414.3.STATE</field>
                </shadow>
              </value>
              <value name="OID2">
                <shadow type="field_oid" id="WrxSTGGW1Wq?LE@DC.~p">
                  <field name="oid">hm-rpc.0.LEQ0773306.2.TEMPERATURE</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="%U70Es]yX`L}p/[AxjP1">
                  <mutation elseif="3"></mutation>
                  <value name="IF0">
                    <block type="logic_compare" id="8!Jg:Bfu6Q4A+KLnT,*b">
                      <field name="OP">GT</field>
                      <value name="A">
                        <block type="get_value" id="$IKf6j:rw8w^!*VjbOZ:">
                          <field name="ATTR">val</field>
                          <field name="OID">Messwerte.0.Pool.Aus-Counter</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="%5eQ}+7UY^z$?FPGnl],">
                          <field name="NUM">25</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="comment" id="$-$=odn6^k,(+zergHsH">
                      <field name="COMMENT">Pumpe Not-Aus bei zu wenig Druck</field>
                      <next>
                        <block type="update" id="l)3U8yrX.QDU4uyjxbsi">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">Messwerte.0.Pool.Logdaten</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text_join" id="8`@-PwY?(}*=(F{Pkj^U">
                              <mutation items="6"></mutation>
                              <value name="ADD0">
                                <block type="text" id="?n:DHx}IsNd:O,1Cky.U">
                                  <field name="TEXT">&lt;h2&gt;ALARM!&lt;/h2&gt;</field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="get_value" id="~dF0?`~[/Y(#|~:*HRo%">
                                  <field name="ATTR">val</field>
                                  <field name="OID">Messwerte.0.Pool.Aus-Counter</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="$RmFWA-Gp,gl}b!1(z.U">
                                  <field name="TEXT"> mal Unterdruck. </field>
                                </block>
                              </value>
                              <value name="ADD3">
                                <block type="text" id="M*E=O7VC|IUA#E=#4FMN">
                                  <field name="TEXT">Der Pumpendruck beträgt </field>
                                </block>
                              </value>
                              <value name="ADD4">
                                <block type="math_arithmetic" id="D)c}D]clt6IUeh/e@{?p" inline="false">
                                  <field name="OP">MINUS</field>
                                  <value name="A">
                                    <shadow type="math_number" id="INcml)H.rD~u^7J:xt(0">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="get_value" id="E.7$4A7|g=*^K@Q#@7bt">
                                      <field name="ATTR">val</field>
                                      <field name="OID">hm-rpc.0.NEQ1547414.3.STATE</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow type="math_number" id="p+mI@^)NJ3V2%8C!BoGN">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="get_value" id="bk+r$]_Yl*(rg8.$?Map">
                                      <field name="ATTR">val</field>
                                      <field name="OID">Messwerte.0.Pool.Druckoffset</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="ADD5">
                                <block type="text" id=":UP_kmS=l!}iC1aw~FYB">
                                  <field name="TEXT">kPa.&lt;br&gt; &lt;br&gt;</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="6E[YV0{Ys9KXi%Dby6~F">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">hm-rpc.0.JEQ0646431.1.STATE</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="p49UcVMoLiob~E|/-1@m">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="update" id="!xVxSwtk;%ke@qXZJ?zs">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">Messwerte.0.Pool.Not-Aus</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="D3v792$dfR`IrOu2@In:">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_compare" id="YSAo!-{JFc!$wao4+j2m">
                      <field name="OP">GT</field>
                      <value name="A">
                        <block type="math_arithmetic" id="@J=anf+JX]jD@hsfW0hw" inline="false">
                          <field name="OP">MINUS</field>
                          <value name="A">
                            <shadow type="math_number" id="INcml)H.rD~u^7J:xt(0">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="get_value" id="{h:u=^)@q2k4wQoackld">
                              <field name="ATTR">val</field>
                              <field name="OID">hm-rpc.0.NEQ1547414.3.STATE</field>
                            </block>
                          </value>
                          <value name="B">
                            <shadow type="math_number" id="p+mI@^)NJ3V2%8C!BoGN">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="get_value" id="_#6yu!U/WKN%|GqKSdsd">
                              <field name="ATTR">val</field>
                              <field name="OID">Messwerte.0.Pool.Druckoffset</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="8nW/qBp)(S8kB#B0Q/ek">
                          <field name="NUM">120</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="comment" id="srcU:kt;_7KKmMXkC/3D">
                      <field name="COMMENT">Pumpe Not-Aus bei zu viel Druck</field>
                      <next>
                        <block type="update" id="2#JIoZ;N,+))BBX:ml;p">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">Messwerte.0.Pool.Logdaten</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text_join" id="N@U]PeHQscf7^LU7q7[,">
                              <mutation items="6"></mutation>
                              <value name="ADD0">
                                <block type="text" id="{d5wnGEgZ{umbsQrj_kt">
                                  <field name="TEXT">&lt;h2&gt;ALARM!&lt;/h2&gt;</field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="text" id="m}^$`#~WSKX{k(f9@%=y">
                                  <field name="TEXT">&lt;strong&gt;Überdruck!&lt;/strong&gt;</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="asVh@FD5s2m+)`%v(#s9">
                                  <field name="TEXT">&lt;br&gt;</field>
                                </block>
                              </value>
                              <value name="ADD3">
                                <block type="text" id="jb?})50m{;]e5^y5FnfD">
                                  <field name="TEXT">Der Pumpendruck beträgt </field>
                                </block>
                              </value>
                              <value name="ADD4">
                                <block type="math_arithmetic" id="bFwHCSei$rE73tfm{UOh" inline="false">
                                  <field name="OP">MINUS</field>
                                  <value name="A">
                                    <shadow type="math_number" id="INcml)H.rD~u^7J:xt(0">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="get_value" id="_044cd+z(,rh,9g][*B#">
                                      <field name="ATTR">val</field>
                                      <field name="OID">hm-rpc.0.NEQ1547414.3.STATE</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow type="math_number" id="p+mI@^)NJ3V2%8C!BoGN">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="get_value" id="bq{9Tw,lD8(R=)Z`gWZq">
                                      <field name="ATTR">val</field>
                                      <field name="OID">Messwerte.0.Pool.Druckoffset</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="ADD5">
                                <block type="text" id="gU/?A(+09:=1:TTlw?AI">
                                  <field name="TEXT">kPa.&lt;br&gt; &lt;br&gt;</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="o$;obhX]9oIG*at)L|l3">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">hm-rpc.0.JEQ0646431.1.STATE</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">2000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="OA|qAe.cxIeZVf8+rgBQ">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="update" id="Gc9;Y}V;+n%s3b0brc-N">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">Messwerte.0.Pool.Not-Aus</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="s`(EWr~/BB}V^^WX.z?s">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <value name="IF2">
                    <block type="logic_compare" id="vig:OLc#4v0Jj)l)=Je/">
                      <field name="OP">GT</field>
                      <value name="A">
                        <block type="get_value" id="=Ub`*$LBbPvdLZ3,GEmU">
                          <field name="ATTR">val</field>
                          <field name="OID">hm-rpc.0.LEQ0773306.2.TEMPERATURE</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="6Q`pFPW8Zt=4wFL`^B1X">
                          <field name="NUM">28</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO2">
                    <block type="comment" id="O:bB$YmPnM9|H8UW`aUb">
                      <field name="COMMENT">Pumpe Not-Aus bei zu hoher Temperatur</field>
                      <next>
                        <block type="update" id="bJkQKjD~r}v_XiyCVE0(">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">Messwerte.0.Pool.Logdaten</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text_join" id=")qKjGD+*k!8_^MP^`/oV">
                              <mutation items="6"></mutation>
                              <value name="ADD0">
                                <block type="text" id="riC$J#F=X=O#(:Ohpnil">
                                  <field name="TEXT">&lt;h2&gt;ALARM!&lt;/h2&gt;</field>
                                </block>
                              </value>
                              <value name="ADD1">
                                <block type="text" id="K-=H$hk=!7kqFb;FVN}P">
                                  <field name="TEXT">&lt;strong&gt;Wasser zu warm!&lt;/strong&gt;</field>
                                </block>
                              </value>
                              <value name="ADD2">
                                <block type="text" id="@W3G/*SnLN8;yjaJBS}+">
                                  <field name="TEXT">&lt;br&gt;</field>
                                </block>
                              </value>
                              <value name="ADD3">
                                <block type="text" id="PO-x3Iuu+|)KEc]n_`E_">
                                  <field name="TEXT">Die Wassertemperatur beträgt </field>
                                </block>
                              </value>
                              <value name="ADD4">
                                <block type="get_value" id="+hG5nSCDExGo{(#/G2tX">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.0.LEQ0773306.2.TEMPERATURE</field>
                                </block>
                              </value>
                              <value name="ADD5">
                                <block type="text" id="#(Q+P)v=TLb^+n,w8aWz">
                                  <field name="TEXT">°C.&lt;br&gt; &lt;br&gt;</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="EAJlBjqtK*l+uBYur3Y#">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">hm-rpc.0.JEQ0646431.1.STATE</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">2000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="fVJuavjl.jsO06[aPo)F">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="update" id="{!_mR[3~qClN^`A@Q!Tb">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">Messwerte.0.Pool.Overheat</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="0ct/Oo|oXSpZS-VWrrBv">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <value name="IF3">
                    <block type="logic_compare" id="=thx*obAlc;Pam/}0pPf">
                      <field name="OP">LT</field>
                      <value name="A">
                        <block type="get_value" id="hBucm0?}qRs/{?1{qn%/">
                          <field name="ATTR">val</field>
                          <field name="OID">hm-rpc.0.LEQ0773306.2.TEMPERATURE</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="3+w/B{M]ER1k8H.oN$BW">
                          <field name="NUM">26</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO3">
                    <block type="update" id="0Y#]wiHNblXC@bWi[%=P">
                      <mutation delay_input="false"></mutation>
                      <field name="OID">Messwerte.0.Pool.Overheat</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="JL[0+M`$vBEE]Dcd[zs1">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      

      Musste ich auf zwei Posts verteilen

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

        @Homoran
        Habe "Pumpenwächter" mal verbessert und hoffe, dass es so zuverlässiger läuft.

        <xml xmlns="http://www.w3.org/1999/xhtml">
         <variables>
           <variable type="" id="Yhi6L$#9ow5|s7Jzml9/">value</variable>
           <variable type="" id="G;[*0*e+|FLxIBWQ?*45">druck</variable>
           <variable type="" id="VA5v~sVeM3MnJiV[ytx3">aus_counter</variable>
           <variable type="undefined" id="Druckwaechter">Druckwaechter</variable>
         </variables>
         <block type="procedures_defnoreturn" id="IgiB--VCkqYFl?t9j=01" x="1012" y="-1138">
           <field name="NAME">Not_Aus</field>
           <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
           <statement name="STACK">
             <block type="control" id="6E[YV0{Ys9KXi%Dby6~F">
               <mutation delay_input="true"></mutation>
               <field name="OID">hm-rpc.0.JEQ0646431.1.STATE</field>
               <field name="WITH_DELAY">TRUE</field>
               <field name="DELAY_MS">1000</field>
               <field name="UNIT">ms</field>
               <field name="CLEAR_RUNNING">FALSE</field>
               <value name="VALUE">
                 <block type="logic_boolean" id="p49UcVMoLiob~E|/-1@m">
                   <field name="BOOL">FALSE</field>
                 </block>
               </value>
               <next>
                 <block type="update" id="!xVxSwtk;%ke@qXZJ?zs">
                   <mutation delay_input="false"></mutation>
                   <field name="OID">Messwerte.0.Pool.Not-Aus</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="logic_boolean" id="D3v792$dfR`IrOu2@In:">
                       <field name="BOOL">TRUE</field>
                     </block>
                   </value>
                 </block>
               </next>
             </block>
           </statement>
         </block>
         <block type="on_ext" id="7dfyAn6SRa*[nLlE6wNr" x="519" y="-1111">
           <mutation items="1"></mutation>
           <field name="CONDITION">ne</field>
           <field name="ACK_CONDITION"></field>
           <value name="OID0">
             <shadow type="field_oid" id="22fT?@[Ak,Y,5ARfKDR0">
               <field name="oid">hm-rpc.0.JEQ0646431.1.STATE</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="controls_if" id=")z={;q=@viwHI1]x-E!n">
               <mutation else="1"></mutation>
               <value name="IF0">
                 <block type="variables_get" id="iu%_ub!E+6~#q4_,A}/U">
                   <field name="VAR" id="Yhi6L$#9ow5|s7Jzml9/" variabletype="">value</field>
                 </block>
               </value>
               <statement name="DO0">
                 <block type="update" id="w^oDcGY.)jHQKrSZ8_$b">
                   <mutation delay_input="false"></mutation>
                   <field name="OID">Messwerte.0.Pool.Logdaten</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="text_join" id="u=RwAsZJ_SKtf1W^#7G5">
                       <mutation items="1"></mutation>
                       <value name="ADD0">
                         <block type="text" id="dt=P;{^t[WY;|UfTC].9">
                           <field name="TEXT">&lt;h3&gt;Pumpe an!&lt;/h3&gt;</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <next>
                     <block type="comment" id="R!/_I]Eg.Mr8B6BQvpzB">
                       <field name="COMMENT">Überprüfung ob sich nach Start Druck aufbaut</field>
                       <next>
                         <block type="timeouts_setinterval" id="(dmS[J9=$HE%={VXvnap">
                           <field name="NAME">Druckwaechter</field>
                           <field name="INTERVAL">2000</field>
                           <field name="UNIT">ms</field>
                           <statement name="STATEMENT">
                             <block type="controls_if" id="~lhx*Vs2ryN|,wqvP!x)">
                               <mutation else="1"></mutation>
                               <value name="IF0">
                                 <block type="logic_compare" id="DIsH6?CKt#eeQqseF[*t">
                                   <field name="OP">LT</field>
                                   <value name="A">
                                     <block type="variables_get" id="3o+{b{HJ;:j-mxz:~W:W">
                                       <field name="VAR" id="G;[*0*e+|FLxIBWQ?*45" variabletype="">druck</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="math_number" id=")%M0Vs[*Thkh@[P[)fJ5">
                                       <field name="NUM">40</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="update" id="FQJt6GsNG#O5-`rURd@b">
                                   <mutation delay_input="false"></mutation>
                                   <field name="OID">Messwerte.0.Pool.Logdaten</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="text_join" id="V(kh7O_8ml6ima2V=!(H">
                                       <mutation items="3"></mutation>
                                       <value name="ADD0">
                                         <block type="text" id="Kd1m25}S19}M!hrCL4e,">
                                           <field name="TEXT">Der Pumpendruck beträgt </field>
                                         </block>
                                       </value>
                                       <value name="ADD1">
                                         <block type="variables_get" id="D9Ll={@$`RYHRj{^CN^`">
                                           <field name="VAR" id="G;[*0*e+|FLxIBWQ?*45" variabletype="">druck</field>
                                         </block>
                                       </value>
                                       <value name="ADD2">
                                         <block type="text" id="Wrz~UGhB4XFYt@[aiX*O">
                                           <field name="TEXT">kPa, Pumpe zieht Luft!</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="math_change" id="?=,w8-!SQr!Dc#L4Sxi3">
                                       <field name="VAR" id="VA5v~sVeM3MnJiV[ytx3" variabletype="">aus_counter</field>
                                       <value name="DELTA">
                                         <shadow type="math_number" id=")XQXyP6cyUlwk@nA,-]C">
                                           <field name="NUM">1</field>
                                         </shadow>
                                       </value>
                                       <next>
                                         <block type="controls_if" id="rk%Q_o*tq-78prD`YgJy">
                                           <value name="IF0">
                                             <block type="logic_compare" id="%Fq@t|QV#;J`%V|SU=Ge">
                                               <field name="OP">GT</field>
                                               <value name="A">
                                                 <block type="variables_get" id="0+d^@TVbroJ{(ru3U7rl">
                                                   <field name="VAR" id="VA5v~sVeM3MnJiV[ytx3" variabletype="">aus_counter</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="math_number" id="lf+nFS}/i^VYH4dtC$}d">
                                                   <field name="NUM">25</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="comment" id="$-$=odn6^k,(+zergHsH">
                                               <field name="COMMENT">Pumpe Not-Aus bei zu wenig Druck</field>
                                               <next>
                                                 <block type="timeouts_clearinterval" id="a%U@19LgX0PO$Me/}nib">
                                                   <field name="NAME">Druckwaechter</field>
                                                   <next>
                                                     <block type="update" id="l)3U8yrX.QDU4uyjxbsi">
                                                       <mutation delay_input="false"></mutation>
                                                       <field name="OID">Messwerte.0.Pool.Logdaten</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="text_join" id="8`@-PwY?(}*=(F{Pkj^U">
                                                           <mutation items="6"></mutation>
                                                           <value name="ADD0">
                                                             <block type="text" id="?n:DHx}IsNd:O,1Cky.U">
                                                               <field name="TEXT">&lt;h2&gt;ALARM!&lt;/h2&gt;</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD1">
                                                             <block type="variables_get" id="/II*(4_ktC4]ztatNDT*">
                                                               <field name="VAR" id="VA5v~sVeM3MnJiV[ytx3" variabletype="">aus_counter</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD2">
                                                             <block type="text" id="$RmFWA-Gp,gl}b!1(z.U">
                                                               <field name="TEXT"> mal Unterdruck. </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD3">
                                                             <block type="text" id="M*E=O7VC|IUA#E=#4FMN">
                                                               <field name="TEXT">Der Pumpendruck beträgt </field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD4">
                                                             <block type="variables_get" id="YYS4xBaHK$iXv1M|yW2D">
                                                               <field name="VAR" id="G;[*0*e+|FLxIBWQ?*45" variabletype="">druck</field>
                                                             </block>
                                                           </value>
                                                           <value name="ADD5">
                                                             <block type="text" id=":UP_kmS=l!}iC1aw~FYB">
                                                               <field name="TEXT">kPa.&lt;br&gt; &lt;br&gt;</field>
                                                             </block>
                                                           </value>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="procedures_callnoreturn" id="}k57ggKysD3)_iu|OPi=">
                                                           <mutation name="Not_Aus"></mutation>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <statement name="ELSE">
                                 <block type="update" id="?`(,B+MiC#:t+,!{9M!|">
                                   <mutation delay_input="false"></mutation>
                                   <field name="OID">Messwerte.0.Pool.Logdaten</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="text_join" id="ZzygAs|4A8^9~PUdyf7*">
                                       <mutation items="3"></mutation>
                                       <value name="ADD0">
                                         <block type="text" id="zr,%jgd/n~n9@ytoH?tu">
                                           <field name="TEXT">Der Pumpendruck beträgt </field>
                                         </block>
                                       </value>
                                       <value name="ADD1">
                                         <block type="variables_get" id="f[Y,?Ct#`o0w=H|=wyKr">
                                           <field name="VAR" id="G;[*0*e+|FLxIBWQ?*45" variabletype="">druck</field>
                                         </block>
                                       </value>
                                       <value name="ADD2">
                                         <block type="text" id="w,_a2K$?2?2*iflXYnj)">
                                           <field name="TEXT">kPa, Pumpe OK!</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="timeouts_clearinterval" id="|{Dx7@}:?^_iT2M|_G8?">
                                       <field name="NAME">Druckwaechter</field>
                                       <next>
                                         <block type="variables_set" id="wRJQ^AST.Bn@#X{{mK7a">
                                           <field name="VAR" id="VA5v~sVeM3MnJiV[ytx3" variabletype="">aus_counter</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="M~Ep{n3b2S6BP*({irQ9">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="update" id="iE~B{eq9,^?Ez!Vf?uHR">
                                               <mutation delay_input="false"></mutation>
                                               <field name="OID">Messwerte.0.Pool.Not-Aus</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="logic_boolean" id="q^Xs3OBbw0WoN$E{[EIE">
                                                   <field name="BOOL">FALSE</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </statement>
               <statement name="ELSE">
                 <block type="timeouts_clearinterval" id="lFQYnd;.XpmUjMY?u{~i">
                   <field name="NAME">Druckwaechter</field>
                   <next>
                     <block type="variables_set" id="SE*I|jbZ7sVdfbu5pHt%">
                       <field name="VAR" id="VA5v~sVeM3MnJiV[ytx3" variabletype="">aus_counter</field>
                       <value name="VALUE">
                         <block type="math_number" id="M-;)GJH$vQoNw;,go_D`">
                           <field name="NUM">0</field>
                         </block>
                       </value>
                       <next>
                         <block type="update" id="^1$tmg]Y7!4P|:ll$NBe">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Messwerte.0.Pool.Logdaten</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="text_join" id="LrZELm6;8l:R+9*:fL:F">
                               <mutation items="1"></mutation>
                               <value name="ADD0">
                                 <block type="text" id=".Z]]b@r=0Lu1sNu{xXi%">
                                   <field name="TEXT">&lt;h3&gt;Pumpe aus!&lt;/h3&gt;</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </statement>
             </block>
           </statement>
           <next>
             <block type="on_ext" id="HS#;aW-p`y;to-YSLL4J">
               <mutation items="1"></mutation>
               <field name="CONDITION">ne</field>
               <field name="ACK_CONDITION"></field>
               <value name="OID0">
                 <shadow type="field_oid" id="y8{BV1mex2n*6^/a:#4.">
                   <field name="oid">Messwerte.0.Pool.Aus-Counter</field>
                 </shadow>
                 <block type="text" id="|G)E)|3fWs.Kb_GnTv4G">
                   <field name="TEXT">hm-rpc.0.NEQ1547414.3.STATE</field>
                 </block>
               </value>
               <statement name="STATEMENT">
                 <block type="variables_set" id="3~Cm|IJku:CqV%[t}/*,">
                   <field name="VAR" id="G;[*0*e+|FLxIBWQ?*45" variabletype="">druck</field>
                   <value name="VALUE">
                     <block type="math_arithmetic" id="Kl3]R#u544Gw=Ay0)w*/" inline="false">
                       <field name="OP">MINUS</field>
                       <value name="A">
                         <shadow type="math_number" id="INcml)H.rD~u^7J:xt(0">
                           <field name="NUM">1</field>
                         </shadow>
                         <block type="variables_get" id="RIiQl|w=7ZKhq?Gop4y[">
                           <field name="VAR" id="Yhi6L$#9ow5|s7Jzml9/" variabletype="">value</field>
                         </block>
                       </value>
                       <value name="B">
                         <shadow type="math_number" id="p+mI@^)NJ3V2%8C!BoGN">
                           <field name="NUM">1</field>
                         </shadow>
                         <block type="get_value" id="PTrh,nQk_e1_(`lNtDr,">
                           <field name="ATTR">val</field>
                           <field name="OID">Messwerte.0.Pool.Druckoffset</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <next>
                     <block type="controls_if" id="%U70Es]yX`L}p/[AxjP1">
                       <value name="IF0">
                         <block type="logic_compare" id="YSAo!-{JFc!$wao4+j2m">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="variables_get" id="[T{qgrx/ka=uQct;L.rj">
                               <field name="VAR" id="G;[*0*e+|FLxIBWQ?*45" variabletype="">druck</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="8nW/qBp)(S8kB#B0Q/ek">
                               <field name="NUM">120</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="comment" id="srcU:kt;_7KKmMXkC/3D">
                           <field name="COMMENT">Pumpe Not-Aus bei zu viel Druck</field>
                           <next>
                             <block type="update" id="2#JIoZ;N,+))BBX:ml;p">
                               <mutation delay_input="false"></mutation>
                               <field name="OID">Messwerte.0.Pool.Logdaten</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="text_join" id="N@U]PeHQscf7^LU7q7[,">
                                   <mutation items="6"></mutation>
                                   <value name="ADD0">
                                     <block type="text" id="{d5wnGEgZ{umbsQrj_kt">
                                       <field name="TEXT">&lt;h2&gt;ALARM!&lt;/h2&gt;</field>
                                     </block>
                                   </value>
                                   <value name="ADD1">
                                     <block type="text" id="m}^$`#~WSKX{k(f9@%=y">
                                       <field name="TEXT">&lt;strong&gt;Überdruck!&lt;/strong&gt;</field>
                                     </block>
                                   </value>
                                   <value name="ADD2">
                                     <block type="text" id="asVh@FD5s2m+)`%v(#s9">
                                       <field name="TEXT">&lt;br&gt;</field>
                                     </block>
                                   </value>
                                   <value name="ADD3">
                                     <block type="text" id="jb?})50m{;]e5^y5FnfD">
                                       <field name="TEXT">Der Pumpendruck beträgt </field>
                                     </block>
                                   </value>
                                   <value name="ADD4">
                                     <block type="variables_get" id="~x8q@FJ0#)?A{C@ZpPb*">
                                       <field name="VAR" id="G;[*0*e+|FLxIBWQ?*45" variabletype="">druck</field>
                                     </block>
                                   </value>
                                   <value name="ADD5">
                                     <block type="text" id="gU/?A(+09:=1:TTlw?AI">
                                       <field name="TEXT">kPa.&lt;br&gt; &lt;br&gt;</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="procedures_callnoreturn" id="nv|r:KV%#/O_+z?Q;0(r">
                                   <mutation name="Not_Aus"></mutation>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </statement>
               <next>
                 <block type="on_ext" id="SO])Tk/2c!54xtFB_[oL">
                   <mutation items="1"></mutation>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <value name="OID0">
                     <shadow type="field_oid" id="pmVg4L-MWaXOHI*aWJ!`">
                       <field name="oid">default</field>
                     </shadow>
                     <block type="text" id="P|5rvg`CN~1X8Gzipc-p">
                       <field name="TEXT">hm-rpc.0.LEQ0773306.2.TEMPERATURE</field>
                     </block>
                   </value>
                   <statement name="STATEMENT">
                     <block type="controls_if" id="EqoCaflD;)3U~6bU/XLm">
                       <mutation elseif="1"></mutation>
                       <value name="IF0">
                         <block type="logic_compare" id="vig:OLc#4v0Jj)l)=Je/">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="variables_get" id="0Bp/Hs;pjf3X(vR~)U59">
                               <field name="VAR" id="Yhi6L$#9ow5|s7Jzml9/" variabletype="">value</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="6Q`pFPW8Zt=4wFL`^B1X">
                               <field name="NUM">28</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="comment" id="O:bB$YmPnM9|H8UW`aUb">
                           <field name="COMMENT">Pumpe Not-Aus bei zu hoher Temperatur</field>
                           <next>
                             <block type="update" id="bJkQKjD~r}v_XiyCVE0(">
                               <mutation delay_input="false"></mutation>
                               <field name="OID">Messwerte.0.Pool.Logdaten</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="text_join" id=")qKjGD+*k!8_^MP^`/oV">
                                   <mutation items="6"></mutation>
                                   <value name="ADD0">
                                     <block type="text" id="riC$J#F=X=O#(:Ohpnil">
                                       <field name="TEXT">&lt;h2&gt;ALARM!&lt;/h2&gt;</field>
                                     </block>
                                   </value>
                                   <value name="ADD1">
                                     <block type="text" id="K-=H$hk=!7kqFb;FVN}P">
                                       <field name="TEXT">&lt;strong&gt;Wasser zu warm!&lt;/strong&gt;</field>
                                     </block>
                                   </value>
                                   <value name="ADD2">
                                     <block type="text" id="@W3G/*SnLN8;yjaJBS}+">
                                       <field name="TEXT">&lt;br&gt;</field>
                                     </block>
                                   </value>
                                   <value name="ADD3">
                                     <block type="text" id="PO-x3Iuu+|)KEc]n_`E_">
                                       <field name="TEXT">Die Wassertemperatur beträgt </field>
                                     </block>
                                   </value>
                                   <value name="ADD4">
                                     <block type="variables_get" id="zb(jL3^bs}fEFF%{tvf/">
                                       <field name="VAR" id="Yhi6L$#9ow5|s7Jzml9/" variabletype="">value</field>
                                     </block>
                                   </value>
                                   <value name="ADD5">
                                     <block type="text" id="#(Q+P)v=TLb^+n,w8aWz">
                                       <field name="TEXT">°C.&lt;br&gt; &lt;br&gt;</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <next>
                                 <block type="control" id="EAJlBjqtK*l+uBYur3Y#">
                                   <mutation delay_input="true"></mutation>
                                   <field name="OID">hm-rpc.0.JEQ0646431.1.STATE</field>
                                   <field name="WITH_DELAY">TRUE</field>
                                   <field name="DELAY_MS">2000</field>
                                   <field name="UNIT">ms</field>
                                   <field name="CLEAR_RUNNING">FALSE</field>
                                   <value name="VALUE">
                                     <block type="logic_boolean" id="fVJuavjl.jsO06[aPo)F">
                                       <field name="BOOL">FALSE</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="update" id="{!_mR[3~qClN^`A@Q!Tb">
                                       <mutation delay_input="false"></mutation>
                                       <field name="OID">Messwerte.0.Pool.Overheat</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="0ct/Oo|oXSpZS-VWrrBv">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </statement>
                       <value name="IF1">
                         <block type="logic_compare" id="=thx*obAlc;Pam/}0pPf">
                           <field name="OP">LT</field>
                           <value name="A">
                             <block type="variables_get" id="z]QkSzInZL]iENdGFqe2">
                               <field name="VAR" id="Yhi6L$#9ow5|s7Jzml9/" variabletype="">value</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="math_number" id="3+w/B{M]ER1k8H.oN$BW">
                               <field name="NUM">26</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO1">
                         <block type="update" id="0Y#]wiHNblXC@bWi[%=P">
                           <mutation delay_input="false"></mutation>
                           <field name="OID">Messwerte.0.Pool.Overheat</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="JL[0+M`$vBEE]Dcd[zs1">
                               <field name="BOOL">FALSE</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </statement>
                 </block>
               </next>
             </block>
           </next>
         </block>
        </xml>
        

        Homoran 2 Replies Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @paul53 last edited by Homoran

          @paul53
          Danke - solltest du aber nicht selber machen 😉
          sehe ich mir heute abend an.

          Allerdings:
          Ich habe aber inzwischen im Forum einige Threads gefunden, die seltsames Verhalten bie früher problemlos laufenden Scripten beschreiben.
          Ich habe diese Threads nicht vollständig gelesen, weiß daher nicht ob es da vergleichbare Szenarien gibt.

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @paul53 last edited by

            @paul53 sagte in Javascript spinnt:

            Habe "Pumpenwächter" mal verbessert und hoffe, dass es so zuverlässiger läuft.

            Auch auf die Gefahr hin, dass ich in zehn Minuten widerrufen muss:
            Es läuft bis jetzt ohne Probleme.

            Dass es auf Anhieb laufen würde war mir ja klar. Daraufhin habe ich auch noch nicht allzu tief in den Code gesehen. Ein paar Dinge wie Objects als text sind mir zwar auch aufgefallen, aber die alles umfassende Frage bleibt:

            Hast du im Wissen um den neuen Compiler etwas geändert, das im Hintergrund anders läuft?

            Ich verstehe nämlich nach wie vor nicht, warum das log geschrieben wurde aber der direkt darauf folgende Befehl die zyklische Ausführung zu beenden eben nicht
            Bild Text

            Oder lag es daran, dass ich am code nichts geändert und dein Skript als neues Skript angelegt habe???
            Neu gestartet habe ich seitdem beide Blocklys und die Instanzen nicht mehr, einige Änderunge, die ich noch in der Pumpensteuerung einbauen wollte habe ich mir bis jetzt verkniffen.

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

              @Homoran sagte:

              Ich verstehe nämlich nach wie vor nicht, warum das log geschrieben wurde aber der direkt darauf folgende Befehl die zyklische Ausführung zu beenden eben nicht

              Wenn mehrere Zyklen gleichzeitig laufen, greift "stop" nicht.

              @Homoran sagte in Javascript spinnt:

              Ein paar Dinge wie Objects als text sind mir zwar auch aufgefallen

              Das musste ich machen, da ich "Select ID" nicht verwenden kann (fremdes System).

              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @paul53 last edited by

                @paul53 Das klingt logisch!
                Und bei mir wurde jedesmal wenn der Druck zu niedrig war ein neuer Zyklus gestartet 🤦

                bleibt nur noch die Frage, warum es die jahre vorher lief

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

                  @Homoran sagte:

                  Und bei mir wurde jedesmal wenn der Druck zu niedrig war ein neuer Zyklus gestartet

                  Ich glaube mich zu erinnern, dass der Zyklus beim normalen Ausschalten der Pumpe nicht gestoppt wurde, so dass beim nächsten Einschalten evtl. ein weiterer Zyklus gestartet wurde.

                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @paul53 last edited by

                    @paul53 sagte in Javascript spinnt:

                    @Homoran sagte:

                    Und bei mir wurde jedesmal wenn der Druck zu niedrig war ein neuer Zyklus gestartet

                    Ich glaube mich zu erinnern, dass der Zyklus beim normalen Ausschalten der Pumpe nicht gestoppt wurde, so dass beim nächsten Einschalten evtl. ein weiterer Zyklus gestartet wurde.

                    Genau so war es.

                    Kann sein, dass ich beim "Aufräumen" den stop cycle Baustein da mal rausgenommen hatte

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

                      @paul53 sagte in Javascript spinnt:

                      Die Fehlermeldung erhalte ich aber auch bei dem zusätzlich installierten Modul "xml2js".

                      Kannst du es bitte mal mit folgender Option versuchen (sollte in 4.5.0 enthalten sein)
                      1fbc0343-ad35-4bb8-b1ec-35ea174cfa70-grafik.png
                      Dort die Module eintragen, die als fehlend angemeckert werden. Die installierten werden nicht automatisch aktiviert, weil manche (gibt eins von Google) so verdammt viele Typdefinitionen enthalten, dass der Adapter direkt mal 200 MB mehr RAM benötigt.

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

                        @AlCalzone sagte:

                        mit folgender Option versuchen (sollte in 4.5.0 enthalten sein)

                        Wird in 4.5.1 trotz Eintrag angemeckert.

                        JS_Instance1.JPG Scripteditort_require.JPG

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

                          @paul53 Danke für den Test. Kann sein, dass ich für JS noch was anders machen muss. Habs immer nur in TS getestet.

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          736
                          Online

                          31.8k
                          Users

                          80.0k
                          Topics

                          1.3m
                          Posts

                          blockly javascript
                          3
                          38
                          1489
                          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