@paul53 Vielen Dank habe etwas gebraucht bis ich es verstanden habe mit stop delay on und off und mit größer als und kleiner als
es funktioniert 👍
ich habe noch die errechnung von der Differenz pv/verbraucher und Pumpe ein und aus in selbe script genommen
ist das ok oder soll ich für alle ein einzelnes script machen?
pv script 2.PNG
v8.8.3
Blockly
Javascript
TypeScript
Rules
Skript läuft nicht
Ausgewählte Blöcke exportieren
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="nEjb|p?EsLR5{aN`2|35">Überschuss</variable>
<variable id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</variable>
<variable type="timeout" id="timeout">timeout</variable>
<variable type="timeout" id="timeout3">timeout3</variable>
<variable type="timeout" id="delayOn">delayOn</variable>
<variable type="timeout" id="delayOn2">delayOn2</variable>
<variable type="timeout" id="timeout2">timeout2</variable>
<variable type="timeout" id="timeout4">timeout4</variable>
<variable type="timeout" id="delayOff">delayOff</variable>
<variable type="timeout" id="delayOff2">delayOff2</variable>
</variables>
<block type="on" id="-NQpr3!O^A*hD2]0oEdN" x="87" y="-688">
<field name="OID">modbus.1.inputRegisters.5016_Total_DC_Power</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="update" id="#GtCWkqW{K2*DY|M.f2#">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.PV.Differenz_pv_/_verbrauch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="?IA2Dx:OvGR^FbtYMi+?">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="}1u~Hp!5XkhUYdxm=h6o">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="(l,yb9PSCsm6of`|NT=j">
<field name="ATTR">val</field>
<field name="OID">modbus.1.inputRegisters.5016_Total_DC_Power</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="8^p9V]%tVNOZqe~Fg6pS">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="lpW$vU9O=X}Yae0mWx_@">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="(0R-fN?h+^Xm7Yibc$:X">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="l}Xv*rYeKvxLfK+;^*[u">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.PV.PvToLoad</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="}p+(]!A}wJN^HOUth^Xk">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="8($Oe_u5R[{)Z.I|!dRN">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.PV.PvToBat</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
<block type="comment" id="WPm2l~GM+37RHd=OYFyY" x="13" y="-512">
<field name="COMMENT">Pumpe Ein</field>
<next>
<block type="on" id="y+r-14Ewj05Fsf@gjAH4">
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
<field name="CONDITION">true</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="/0{JN=6cA-#-%vF$eu]a">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Pumpe_Ein</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="2A!}P{Gr#.@ComCKUQCG">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="BW(MnCZ_62hPuQ,!*`6q">
<field name="NAME">timeout</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="v/+f2XR)B4dGJ{N`]8ov">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Pumpe_Ein</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="AwR|G/OPDzw?[5QFD0St">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="#c#E5mSx*=n7u?2].nr;">
<field name="COMMENT">Pumpe Aus</field>
<next>
<block type="on" id="6uB=v03n4.h}][7-TlOp">
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
<field name="CONDITION">false</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="W~4HGSv~?Tf#C/*TIl%+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Pumpe_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="cM%#2swV-d2?+N8:M8eu">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id=")|LPB+X9Co-Rn5B1P`^G">
<field name="NAME">timeout2</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="RzBa_O)+I4o46fa~jQl,">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Pumpe_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="%./0%a~,beX8;iuc`Mf1">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
<block type="comment" id="}p_QB]4xw559{-3m2{rC" x="638" y="-513">
<field name="COMMENT">Wärmepumpe Ein</field>
<next>
<block type="on" id=")9AL*HO`2UGm)IOCzF7N">
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
<field name="CONDITION">true</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="jTkviAGZ,{(4zLAoit)|">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Wärmepumpe_Ein</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="HZJP|No@Yc/y/aZI+9gA">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="AJ:EI60_DvB4EzS{o?g^">
<field name="NAME">timeout3</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id=";b^oC,43sPD=(96o#J@5">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Wärmepumpe_Ein</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="I;JnDZ^wA`u]=1tvNO2v">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="p/o@j9{}e+AF@HuKyU+6">
<field name="COMMENT">Wärmepumpe Aus</field>
<next>
<block type="on" id="bV90Kj7_p*bjw8v|l%sV">
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
<field name="CONDITION">false</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="4D~XDmp5icWN9fa[|WeJ">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Wärmepumpe_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="BM=?.txF!G[F=g^dUfY-">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="jGbWP%DY{ySYH`SwR9~5">
<field name="NAME">timeout4</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="{)v*.%PV^zXk+CVnHkHG">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Wärmepumpe_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="),A{bxLtK|j*$zd4iVP[">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
<block type="on" id="Nc8U!ba#,^xI8$Yg:j-P" x="63" y="38">
<field name="OID">0_userdata.0.PV.Differenz_pv_/_verbrauch</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="variables_set" id="-$6haeB#-2)OW^kvlyB!">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
<value name="VALUE">
<block type="on_source" id="B8@X:3U**:,HOr_4@%Vn">
<field name="ATTR">state.val</field>
</block>
</value>
<next>
<block type="variables_set" id="n)y_.r9t-)(UwkTNK532">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
<value name="VALUE">
<block type="get_value" id="sF}Kw%3onAz:;V[yB(wu">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
</block>
</value>
<next>
<block type="controls_if" id=",7G`w*Eo_urCYCL0?#Un">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id=",|ck3v*8@PD+Z#hqw1?)">
<field name="OP">LTE</field>
<value name="A">
<block type="variables_get" id="-|TY;46=oT^Hc36Y,XGa">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
</block>
</value>
<value name="B">
<block type="math_number" id="{a#_ANYe]3u6aNEkXGdM">
<field name="NUM">2000</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="]9QTYw3wts7p=@EQ9cut">
<field name="NAME">delayOn</field>
</block>
</statement>
<value name="IF1">
<block type="logic_multi_and" id=":cCmcjwD_-e],%T/#8A[">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="logic_negate" id="G0$fGV3[yat/nBwjRUG3">
<value name="BOOL">
<block type="variables_get" id="H9RHu()pFT|!GagaGf`g">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
</block>
</value>
</block>
</value>
<value name="AND1">
<block type="logic_negate" id="`o~US2I||1wPKpplw2iY">
<value name="BOOL">
<block type="timeouts_gettimeout" id="o95+Pf3;I_ZFgof4W!0F">
<field name="NAME">delayOn</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="#D.FYb[C-^xi5LGS[I`A">
<field name="NAME">delayOn</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="]|~j1%Fb#./Jml%~DP*U">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="%vEi9uqCb-+ukx}_/e#]">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="controls_if" id="e-#TdWURq]={J,Z9V0d@">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="6;i;LeuAmmQ6_ZBHbP#0">
<field name="OP">GTE</field>
<value name="A">
<block type="variables_get" id="T22M$X.Uv_i[n=e)6*vB">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
</block>
</value>
<value name="B">
<block type="math_number" id="$NU^!NN-QNH5f$rv!o]7">
<field name="NUM">500</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="GDH,DrXR;`l6C#[N[]!]">
<field name="NAME">delayOff</field>
</block>
</statement>
<value name="IF1">
<block type="logic_multi_and" id="-(yY@|J|]}/@Ct~D:9G[">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="variables_get" id="9nlvCS00gF=r1~@jLZ|i">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
</block>
</value>
<value name="AND1">
<block type="logic_negate" id="YuHhNBakU2e5Wt~qCk6@">
<value name="BOOL">
<block type="timeouts_gettimeout" id="^pa1Sem^re7V_Mv91!R3">
<field name="NAME">delayOff</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="j,%YP|d9AteH3mM#-Hly">
<field name="NAME">delayOff</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="OvY=ea*Ix$bfb88yl%HU">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="`a34oZ41AUGDKslGKte]">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="on" id="nu@6ik./ph!Gn~}O,W$Z" x="713" y="38">
<field name="OID">0_userdata.0.PV.Differenz_pv_/_verbrauch</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="variables_set" id="]EQa!/(5Is,0=x4pznM^">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
<value name="VALUE">
<block type="on_source" id="9!A4suCLf1),3k-c~*wQ">
<field name="ATTR">state.val</field>
</block>
</value>
<next>
<block type="variables_set" id="!GriOn!YS(lxq+BeR!)C">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
<value name="VALUE">
<block type="get_value" id="h|Ii^#.mO5rhiBay}pv7">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
</block>
</value>
<next>
<block type="controls_if" id="2s+sB:CpQq!SS`3+K%IJ">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="|sH5sjk`}VPTs,za1d6I">
<field name="OP">LTE</field>
<value name="A">
<block type="variables_get" id="R$z9X7z[u.K*1:@ugsR9">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
</block>
</value>
<value name="B">
<block type="math_number" id="#FUFY)*zB$26xi{QVh1]">
<field name="NUM">3000</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="P.nNb7@aW+7/IzKh#OIw">
<field name="NAME">delayOn</field>
</block>
</statement>
<value name="IF1">
<block type="logic_multi_and" id="?(YfGLBAUUO9_T}m;=B-">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="logic_negate" id="#5^Gl^x$`bChz!Y+IE%:">
<value name="BOOL">
<block type="variables_get" id="FS[)M3Qi#f8(ghW)PbLc">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
</block>
</value>
</block>
</value>
<value name="AND1">
<block type="logic_negate" id="R`!Is;Q[Jz326QMtE)by">
<value name="BOOL">
<block type="timeouts_gettimeout" id=":`t*X7j*LMv(.::2c;LL">
<field name="NAME">delayOn</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="6oxe^*|DJsY-gY-CMK@~">
<field name="NAME">delayOn2</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="%n,UAM:;mj:b)$B`EMdL">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="HU#[:ay#t84+el0Y.D$a">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="controls_if" id="1%Lv+2cQw(Pz%)`,xPA5">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="CUw/-!`$EswFWr0Ko9!h">
<field name="OP">GTE</field>
<value name="A">
<block type="variables_get" id="j(uPvN4BLXDTN|%NrAva">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
</block>
</value>
<value name="B">
<block type="math_number" id="7G6l-Hg%arous|=[:QL?">
<field name="NUM">1000</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="3(hJlJMx{E[|LHT6i9!6">
<field name="NAME">delayOff</field>
</block>
</statement>
<value name="IF1">
<block type="logic_multi_and" id="v$KLzQ9|Sn*%;#GzB9hE">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="variables_get" id="u-W^*%bF:ykN.+xv}Vd8">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
</block>
</value>
<value name="AND1">
<block type="logic_negate" id="$V_^H%3`]A3047KF[xm6">
<value name="BOOL">
<block type="timeouts_gettimeout" id=")f6niYqXvB8X9lH/_`kX">
<field name="NAME">delayOff</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="~3EM4oD[4SY%4W,g:`q_">
<field name="NAME">delayOff2</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="2p~AKjXZTIxDl=5r+QcT">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="NZ~9=tVIHgs5W5|]cB}/">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="nEjb|p?EsLR5{aN`2|35">Überschuss</variable>
<variable id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</variable>
<variable type="timeout" id="timeout">timeout</variable>
<variable type="timeout" id="timeout3">timeout3</variable>
<variable type="timeout" id="delayOn">delayOn</variable>
<variable type="timeout" id="delayOn2">delayOn2</variable>
<variable type="timeout" id="timeout2">timeout2</variable>
<variable type="timeout" id="timeout4">timeout4</variable>
<variable type="timeout" id="delayOff">delayOff</variable>
<variable type="timeout" id="delayOff2">delayOff2</variable>
</variables>
<block type="on" id="-NQpr3!O^A*hD2]0oEdN" x="87" y="-688">
<field name="OID">modbus.1.inputRegisters.5016_Total_DC_Power</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="update" id="#GtCWkqW{K2*DY|M.f2#">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.PV.Differenz_pv_/_verbrauch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="?IA2Dx:OvGR^FbtYMi+?">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="}1u~Hp!5XkhUYdxm=h6o">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="(l,yb9PSCsm6of`|NT=j">
<field name="ATTR">val</field>
<field name="OID">modbus.1.inputRegisters.5016_Total_DC_Power</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="8^p9V]%tVNOZqe~Fg6pS">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="lpW$vU9O=X}Yae0mWx_@">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="(0R-fN?h+^Xm7Yibc$:X">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="l}Xv*rYeKvxLfK+;^*[u">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.PV.PvToLoad</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="}p+(]!A}wJN^HOUth^Xk">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="8($Oe_u5R[{)Z.I|!dRN">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.PV.PvToBat</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
<block type="comment" id="WPm2l~GM+37RHd=OYFyY" x="13" y="-512">
<field name="COMMENT">Pumpe Ein</field>
<next>
<block type="on" id="y+r-14Ewj05Fsf@gjAH4">
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
<field name="CONDITION">true</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="/0{JN=6cA-#-%vF$eu]a">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Pumpe_Ein</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="2A!}P{Gr#.@ComCKUQCG">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="BW(MnCZ_62hPuQ,!*`6q">
<field name="NAME">timeout</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="v/+f2XR)B4dGJ{N`]8ov">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Pumpe_Ein</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="AwR|G/OPDzw?[5QFD0St">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="#c#E5mSx*=n7u?2].nr;">
<field name="COMMENT">Pumpe Aus</field>
<next>
<block type="on" id="6uB=v03n4.h}][7-TlOp">
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
<field name="CONDITION">false</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="W~4HGSv~?Tf#C/*TIl%+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Pumpe_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="cM%#2swV-d2?+N8:M8eu">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id=")|LPB+X9Co-Rn5B1P`^G">
<field name="NAME">timeout2</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="RzBa_O)+I4o46fa~jQl,">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Pumpe_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="%./0%a~,beX8;iuc`Mf1">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
<block type="comment" id="}p_QB]4xw559{-3m2{rC" x="638" y="-513">
<field name="COMMENT">Wärmepumpe Ein</field>
<next>
<block type="on" id=")9AL*HO`2UGm)IOCzF7N">
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
<field name="CONDITION">true</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="jTkviAGZ,{(4zLAoit)|">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Wärmepumpe_Ein</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="HZJP|No@Yc/y/aZI+9gA">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="AJ:EI60_DvB4EzS{o?g^">
<field name="NAME">timeout3</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id=";b^oC,43sPD=(96o#J@5">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Wärmepumpe_Ein</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="I;JnDZ^wA`u]=1tvNO2v">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<next>
<block type="comment" id="p/o@j9{}e+AF@HuKyU+6">
<field name="COMMENT">Wärmepumpe Aus</field>
<next>
<block type="on" id="bV90Kj7_p*bjw8v|l%sV">
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
<field name="CONDITION">false</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="4D~XDmp5icWN9fa[|WeJ">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Wärmepumpe_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="BM=?.txF!G[F=g^dUfY-">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="jGbWP%DY{ySYH`SwR9~5">
<field name="NAME">timeout4</field>
<field name="DELAY">1000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="control" id="{)v*.%PV^zXk+CVnHkHG">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">s7.1.DBs.DB1.Wärmepumpe_Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="),A{bxLtK|j*$zd4iVP[">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
<block type="on" id="Nc8U!ba#,^xI8$Yg:j-P" x="63" y="38">
<field name="OID">0_userdata.0.PV.Differenz_pv_/_verbrauch</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="variables_set" id="-$6haeB#-2)OW^kvlyB!">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
<value name="VALUE">
<block type="on_source" id="B8@X:3U**:,HOr_4@%Vn">
<field name="ATTR">state.val</field>
</block>
</value>
<next>
<block type="variables_set" id="n)y_.r9t-)(UwkTNK532">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
<value name="VALUE">
<block type="get_value" id="sF}Kw%3onAz:;V[yB(wu">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
</block>
</value>
<next>
<block type="controls_if" id=",7G`w*Eo_urCYCL0?#Un">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id=",|ck3v*8@PD+Z#hqw1?)">
<field name="OP">LTE</field>
<value name="A">
<block type="variables_get" id="-|TY;46=oT^Hc36Y,XGa">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
</block>
</value>
<value name="B">
<block type="math_number" id="{a#_ANYe]3u6aNEkXGdM">
<field name="NUM">2000</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="]9QTYw3wts7p=@EQ9cut">
<field name="NAME">delayOn</field>
</block>
</statement>
<value name="IF1">
<block type="logic_multi_and" id=":cCmcjwD_-e],%T/#8A[">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="logic_negate" id="G0$fGV3[yat/nBwjRUG3">
<value name="BOOL">
<block type="variables_get" id="H9RHu()pFT|!GagaGf`g">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
</block>
</value>
</block>
</value>
<value name="AND1">
<block type="logic_negate" id="`o~US2I||1wPKpplw2iY">
<value name="BOOL">
<block type="timeouts_gettimeout" id="o95+Pf3;I_ZFgof4W!0F">
<field name="NAME">delayOn</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="#D.FYb[C-^xi5LGS[I`A">
<field name="NAME">delayOn</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="]|~j1%Fb#./Jml%~DP*U">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="%vEi9uqCb-+ukx}_/e#]">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="controls_if" id="e-#TdWURq]={J,Z9V0d@">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="6;i;LeuAmmQ6_ZBHbP#0">
<field name="OP">GTE</field>
<value name="A">
<block type="variables_get" id="T22M$X.Uv_i[n=e)6*vB">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
</block>
</value>
<value name="B">
<block type="math_number" id="$NU^!NN-QNH5f$rv!o]7">
<field name="NUM">500</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="GDH,DrXR;`l6C#[N[]!]">
<field name="NAME">delayOff</field>
</block>
</statement>
<value name="IF1">
<block type="logic_multi_and" id="-(yY@|J|]}/@Ct~D:9G[">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="variables_get" id="9nlvCS00gF=r1~@jLZ|i">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
</block>
</value>
<value name="AND1">
<block type="logic_negate" id="YuHhNBakU2e5Wt~qCk6@">
<value name="BOOL">
<block type="timeouts_gettimeout" id="^pa1Sem^re7V_Mv91!R3">
<field name="NAME">delayOff</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="j,%YP|d9AteH3mM#-Hly">
<field name="NAME">delayOff</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="OvY=ea*Ix$bfb88yl%HU">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Pumpe_Ein/Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="`a34oZ41AUGDKslGKte]">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="on" id="nu@6ik./ph!Gn~}O,W$Z" x="713" y="38">
<field name="OID">0_userdata.0.PV.Differenz_pv_/_verbrauch</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="variables_set" id="]EQa!/(5Is,0=x4pznM^">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
<value name="VALUE">
<block type="on_source" id="9!A4suCLf1),3k-c~*wQ">
<field name="ATTR">state.val</field>
</block>
</value>
<next>
<block type="variables_set" id="!GriOn!YS(lxq+BeR!)C">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
<value name="VALUE">
<block type="get_value" id="h|Ii^#.mO5rhiBay}pv7">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
</block>
</value>
<next>
<block type="controls_if" id="2s+sB:CpQq!SS`3+K%IJ">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="|sH5sjk`}VPTs,za1d6I">
<field name="OP">LTE</field>
<value name="A">
<block type="variables_get" id="R$z9X7z[u.K*1:@ugsR9">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
</block>
</value>
<value name="B">
<block type="math_number" id="#FUFY)*zB$26xi{QVh1]">
<field name="NUM">3000</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="P.nNb7@aW+7/IzKh#OIw">
<field name="NAME">delayOn</field>
</block>
</statement>
<value name="IF1">
<block type="logic_multi_and" id="?(YfGLBAUUO9_T}m;=B-">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="logic_negate" id="#5^Gl^x$`bChz!Y+IE%:">
<value name="BOOL">
<block type="variables_get" id="FS[)M3Qi#f8(ghW)PbLc">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
</block>
</value>
</block>
</value>
<value name="AND1">
<block type="logic_negate" id="R`!Is;Q[Jz326QMtE)by">
<value name="BOOL">
<block type="timeouts_gettimeout" id=":`t*X7j*LMv(.::2c;LL">
<field name="NAME">delayOn</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="6oxe^*|DJsY-gY-CMK@~">
<field name="NAME">delayOn2</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="%n,UAM:;mj:b)$B`EMdL">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="HU#[:ay#t84+el0Y.D$a">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="controls_if" id="1%Lv+2cQw(Pz%)`,xPA5">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="CUw/-!`$EswFWr0Ko9!h">
<field name="OP">GTE</field>
<value name="A">
<block type="variables_get" id="j(uPvN4BLXDTN|%NrAva">
<field name="VAR" id="nEjb|p?EsLR5{aN`2|35">Überschuss</field>
</block>
</value>
<value name="B">
<block type="math_number" id="7G6l-Hg%arous|=[:QL?">
<field name="NUM">1000</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="3(hJlJMx{E[|LHT6i9!6">
<field name="NAME">delayOff</field>
</block>
</statement>
<value name="IF1">
<block type="logic_multi_and" id="v$KLzQ9|Sn*%;#GzB9hE">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<value name="AND0">
<block type="variables_get" id="u-W^*%bF:ykN.+xv}Vd8">
<field name="VAR" id="$wVDvzwVT3g:A#`#ZwjH">Pumpe Ein</field>
</block>
</value>
<value name="AND1">
<block type="logic_negate" id="$V_^H%3`]A3047KF[xm6">
<value name="BOOL">
<block type="timeouts_gettimeout" id=")f6niYqXvB8X9lH/_`kX">
<field name="NAME">delayOff</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="~3EM4oD[4SY%4W,g:`q_">
<field name="NAME">delayOff2</field>
<field name="DELAY">10</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="2p~AKjXZTIxDl=5r+QcT">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Pool.Wärmepumpe_Ein/Aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="NZ~9=tVIHgs5W5|]cB}/">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
und ich habe durch meine Siemens Logo noch einen Datenpunkt erstellt für Pumpe ein und aus
da ich mit der logo keinen taster erstellen kann
kann man den wert für pumpe ein aus in einen trigger unterbringen hab es nicht hinbekommen.
und ich habe auch keine abfrage für den wert wenn ich den taster manuell drücke
ich habe von der Logo Folgende Datenpunkte
Pumpe Ein
Pumpe Aus
und eine Überwachung ob Ein oder Aus
pv iobroker 2.PNG