Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xml xmlns="https://developers.google.com/blockly/xml">
- <variables>
- <variable id="Pm=Ze@sL?~I^vgg*AUq3">logging</variable>
- <variable id="JeY+@_E!w(syEg?mK:+0">automatic_on</variable>
- <variable id="7y!E^6qd05rX]Kkr-a}%">automatic_off</variable>
- <variable id="z#cHSa2MvS1^fBbPC$Yq">manual_off</variable>
- <variable id="n)CP^tg`er=vV{?DZadA">manual_on</variable>
- <variable id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</variable>
- <variable id=";E!]!KOpUf,eKWM{{.5D">pv_on_running</variable>
- <variable id="Cn13f9O/7KBB|XNl:BJ1">pv_off_running</variable>
- <variable type="timeout" id="pv_timeout_off">pv_timeout_off</variable>
- <variable type="timeout" id="pv_timeout_on">pv_timeout_on</variable>
- <variable type="timeout" id="reset_heating_relay_offline">reset_heating_relay_offline</variable>
- <variable type="timeout" id="reset_heating_relay_offline2">reset_heating_relay_offline2</variable>
- <variable type="timeout" id="wait_for_final_switch_states">wait_for_final_switch_states</variable>
- </variables>
- <block type="create" id="n+F3JD{P@ibfw^n],.;*" disabled="true" x="12" y="-262">
- <field name="NAME">0_userdata.0.Energy.PV.Automatic_Control</field>
- <value name="VALUE">
- <block type="logic_boolean" id="pXsWxp}EEOxPwYj|[=gW">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <value name="COMMON">
- <block type="text" id="YQWbs2msTV?Dps?72rgF">
- <field name="TEXT">{"name": "Automatic Control","role": "state","type": "boolean","role": "switch","read": true,"write": true}</field>
- </block>
- </value>
- </block>
- <block type="variables_set" id="Tau.=pIn-z`b@:{a.mnP" x="13" y="-62">
- <field name="VAR" id="Pm=Ze@sL?~I^vgg*AUq3">logging</field>
- <value name="VALUE">
- <block type="logic_boolean" id="0]*sR15scn|Je#cToo/`">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- <block type="comment" id="Ks$[*)l1bL`+)p:}3[0]" x="12" y="13">
- <field name="COMMENT">Steuerung Heizpatrone</field>
- <next>
- <block type="variables_set" id="df|^ro!#B{O(h53.H/:!">
- <field name="VAR" id="JeY+@_E!w(syEg?mK:+0">automatic_on</field>
- <value name="VALUE">
- <block type="logic_boolean" id="d%n4X-L=(L2qfY=fO7bd">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="vc_r(O#Ul#QpW8%khoC(">
- <field name="VAR" id="7y!E^6qd05rX]Kkr-a}%">automatic_off</field>
- <value name="VALUE">
- <block type="logic_boolean" id="hk%6lJ}tp4g+5k2[$x3%">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="PT;tq4iz$XldQ[iM7@he">
- <field name="VAR" id="z#cHSa2MvS1^fBbPC$Yq">manual_off</field>
- <value name="VALUE">
- <block type="logic_boolean" id="g,[l]HC${SlWMtM8,?~C">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="=6!7?w]$BF#dSHD!Opnd">
- <field name="VAR" id="n)CP^tg`er=vV{?DZadA">manual_on</field>
- <value name="VALUE">
- <block type="logic_boolean" id="N]CM97LfHXt%+]Cbze15">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="l`BqzJ|(nbnrryt5eoB9">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- <value name="VALUE">
- <block type="logic_boolean" id="IQlWC3Nnp-a00{;_2,d)">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="on_ext" id="_Xp].-FWRhg.gb)WYICw">
- <mutation xmlns="http://www.w3.org/1999/xhtml" items="7"></mutation>
- <field name="CONDITION">ne</field>
- <field name="ACK_CONDITION"></field>
- <value name="OID0">
- <shadow type="field_oid" id="g_;:^hOvcr+4VI#1oZmg">
- <field name="oid">default</field>
- </shadow>
- <block type="field_oid" id="(q|{GRV_.~Wb^s]ekw~g">
- <field name="oid">modbus.0.holdingRegisters.210_Battery_SOC</field>
- </block>
- </value>
- <value name="OID1">
- <shadow type="field_oid" id="tLR-wHL4yzm{,lHT+]+6">
- <field name="oid">default</field>
- </shadow>
- <block type="field_oid" id="=x?M0ZAjBhyTZ,scWDNz">
- <field name="oid">modbus.0.holdingRegisters.252_Total_active_power</field>
- </block>
- </value>
- <value name="OID2">
- <shadow type="field_oid" id="Lg0m/*:#%s^oQbP2Vd6Z">
- <field name="oid">default</field>
- </shadow>
- <block type="field_oid" id="GDG+HK^WUM+-JEf[0kOL">
- <field name="oid">modbus.0.holdingRegisters.582_Actual_battery_charge_discharge_power</field>
- </block>
- </value>
- <value name="OID3">
- <shadow type="field_oid" id=")+WWD[[ixNUyUCPM?aUp">
- <field name="oid">default</field>
- </shadow>
- <block type="field_oid" id="/n|O$oAhH3}ZNbZ@Ixa?">
- <field name="oid">modbus.0.holdingRegisters.108_Home_consumption_from_grid</field>
- </block>
- </value>
- <value name="OID4">
- <shadow type="field_oid" id="_Rl48MGa-49/Tw*4iKL$">
- <field name="oid">default</field>
- </shadow>
- <block type="field_oid" id=")zkP;ZzL,q*=Wam1Mppc">
- <field name="oid">modbus.0.holdingRegisters.106_Home_consumption_from_battery</field>
- </block>
- </value>
- <value name="OID5">
- <shadow type="field_oid" id="~Gh,KE{X)-QQ5bYi$?*k">
- <field name="oid">default</field>
- </shadow>
- <block type="field_oid" id="-u#Q^2|Umhox.a8u6[).">
- <field name="oid">sonoff.0.DVES_541E97.ENERGY_Power</field>
- </block>
- </value>
- <value name="OID6">
- <shadow type="field_oid" id="0jyY8=IEl:RlMfxGL%46">
- <field name="oid">default</field>
- </shadow>
- <block type="field_oid" id="Jyyl@m,.}E*8V=lQkmJ5">
- <field name="oid">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- <statement name="STATEMENT">
- <block type="controls_if" id="]?3ZRfHT]o;:Q#$JC?ex">
- <value name="IF0">
- <block type="get_value" id="5xnv)A0]HP/G[;3TNMfg">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.Energy.PV.Automatic_Control</field>
- </block>
- </value>
- <statement name="DO0">
- <block type="controls_if" id="UAz5R}|D%2Cg]oN/{SP[">
- <mutation elseif="1"></mutation>
- <value name="IF0">
- <block type="logic_operation" id=".^W(0`BS[v;{^%RO$~A*" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_operation" id="`4?=x!C0AV{%[dDc%(A9" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_operation" id="6j;/iEvTxG_K:/+?R-$3" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="mxp*e!?.(0;McAf/SNK{">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="]mw$Djb*z.33P]pD+cE?">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.108_Home_consumption_from_grid</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="62$aN9/M8p%sfXk.37X3">
- <field name="NUM">100</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="+u+Q+}bSE?X2qowXn1(b">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="E$a.UX@vt2ou`Bs=?(j`">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.106_Home_consumption_from_battery</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="V=+N`a@eY;bl~UH=Dznw">
- <field name="NUM">100</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="mjM#G~!9THndr6l$eT8v" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="^R%WwNbM:r*e(HcO9vp3">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id=":CV.(B.~qLh9%b.%#[!Z">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.ENERGY_Power</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="T*4|TK.MSh+76#`eZJ6:">
- <field name="NUM">0</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="$H~Hjoj~kIKL42!r%uX1">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="variables_get" id="{bq8qS6cZ=rHB;OdN.w?">
- <field name="VAR" id="n)CP^tg`er=vV{?DZadA">manual_on</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="E@N;:N,u+mVt_cmV7B}6">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="8GBtcfgIRQLmAKGZ6?5(" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="BpO%#j93#!@5OLA~d)1I">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="2NPt#L-pi/%pD56Qyq0s">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.ENERGY_Power</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="tAMT]K_KQW_.}Q90t{-)">
- <field name="NUM">0</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="VM_{=(tesv9kIha^8[+]">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="FpZnS9rRz=eVy.X=F:tt">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="Td]3Jwp@:FZkf/:4OZ@|">
- <field name="NUM">75</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id=",oYGRj*z#wp(i}ZIWF:?">
- <field name="VAR" id=";E!]!KOpUf,eKWM{{.5D">pv_on_running</field>
- <value name="VALUE">
- <block type="logic_boolean" id="B,R{nMK?5!OC-x$sqq7%">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="controls_if" id="uD|BJJIswN/*([O$O4+y">
- <value name="IF0">
- <block type="logic_compare" id="7?]Vxv~{yeK7${z3D8[D">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="variables_get" id="~e~T`@ug6duI[E#e8-$L">
- <field name="VAR" id="Cn13f9O/7KBB|XNl:BJ1">pv_off_running</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="q$GWSRDLZ*l4BoMXGNsi">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="|6Oo6|,Xw^gr4xB;*8P_">
- <field name="VAR" id="Cn13f9O/7KBB|XNl:BJ1">pv_off_running</field>
- <value name="VALUE">
- <block type="logic_boolean" id="vDueZ8|X{sX+f5uEdMx0">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="controls_if" id="p|89h4IW.v:{t{)vX7I)">
- <value name="IF0">
- <block type="logic_operation" id="se5@i]72WgbpmF=FBNKE" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="variables_get" id="HgrA=l/hs9s0Dh]ffH9s">
- <field name="VAR" id="Pm=Ze@sL?~I^vgg*AUq3">logging</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="]BZB=y{XawZF?-0LA?2J">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="ZekzERzYUViipb7n^Rv(">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.ENERGY_Power</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="NN7N}yB{yz(/5%ABmv?b">
- <field name="NUM">0</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="debug" id="~Y@$OoucQYoW(^]nT~(D">
- <field name="Severity">warn</field>
- <value name="TEXT">
- <shadow type="text" id="!h`zW04)E.?RImi;?8@f">
- <field name="TEXT">*** Heizpatrone AUS in 30s</field>
- </shadow>
- </value>
- </block>
- </statement>
- <next>
- <block type="timeouts_settimeout" id="msme~K=nVx=p*6JG7;gw">
- <field name="NAME">pv_timeout_off</field>
- <field name="DELAY">30</field>
- <field name="UNIT">sec</field>
- <statement name="STATEMENT">
- <block type="controls_if" id="Jku;`u?[6i3X$$Uq(k]*">
- <mutation else="1"></mutation>
- <value name="IF0">
- <block type="logic_operation" id="0=d#7.ItzIikOH*NmF8)" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_operation" id="=Qh0Ne*j+=)U::tHK`t^" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_operation" id="%aAW[G=Cb{[E,`%+5@:C" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="nQOBX@ja`+7qoN,j#nd5">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="Z6syP:^r5|9YynmIYdtl">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.108_Home_consumption_from_grid</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="y6,*(8J-[L-7cJ],x{4:">
- <field name="NUM">100</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="uX*N${)AyeCCYaN}9dqr">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="*WHGeT!EK2uQhct3XE?y">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.106_Home_consumption_from_battery</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="pf#I0aV=q{=8`8.AbX7X">
- <field name="NUM">100</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="Y9b,kdNx`uzXz|zvzY{$" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="kx!SM5URS9*~8(]yL.tN">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="5={k/ll,fo#yFmy+=k:`">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.ENERGY_Power</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="z{,^hu:LARz.4$M3xH?t">
- <field name="NUM">0</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="a(V|[F8SMZXivI}z-u$M">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="variables_get" id=";Lkb{_5,|Hls2fTy}A{v">
- <field name="VAR" id="n)CP^tg`er=vV{?DZadA">manual_on</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="z?,p/sZ|@%rlcrIro`C|">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="5rwycv2~L-d=ef$,!:5Q" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="k$x7DgK,^v/!kP]AI93;">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="o*tWq7s6^8+MNwXUgYzj">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.ENERGY_Power</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="k-2~dUulch3u~s$!ZZ,p">
- <field name="NUM">0</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="=yvv{AUz(XIS{_%_ha7c">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="_pW7]7hMCXdIYas-~6f%">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="6c3eDe?:[+0:r#Vkp~FP">
- <field name="NUM">75</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="timeouts_cleartimeout" id="9MubySVF/m7CuD^|*{i$">
- <field name="NAME">pv_timeout_on</field>
- <next>
- <block type="controls_if" id="Duu#YLDpm$W8vJF(C_zl">
- <mutation else="1"></mutation>
- <value name="IF0">
- <block type="get_value" id="]dy,geV087FTF.gp~x_[">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.alive</field>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="HJ[J??HoHAxvHw:~ZR_/">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- <value name="VALUE">
- <block type="logic_boolean" id="P|o(jD*-s:H`k76hmW@b">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_cleartimeout" id="JZI+m+dlp#;]+zh$A(Kz">
- <field name="NAME">reset_heating_relay_offline</field>
- <next>
- <block type="timeouts_cleartimeout" id="n,bO*r8EE86FvoSUFzW{">
- <field name="NAME">reset_heating_relay_offline2</field>
- <next>
- <block type="control" id="o4E=?U7s.nw7m%QB#7o]">
- <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
- <field name="OID">sonoff.0.DVES_541E97.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="5.()L:,}bI6(lWK.G.I.">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id=":Y|r%99pWIwlrhL0U[-D">
- <field name="VAR" id="7y!E^6qd05rX]Kkr-a}%">automatic_off</field>
- <value name="VALUE">
- <block type="logic_boolean" id="a|F%GZ)j/5348TSJT~]Y">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="F^1z4){fJBmO%Xm*U}y?">
- <field name="VAR" id="JeY+@_E!w(syEg?mK:+0">automatic_on</field>
- <value name="VALUE">
- <block type="logic_boolean" id="*Yk0Bw(PVh8ducZsKm42">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="_MWh_nHMw%}vf7Ao|J2K">
- <field name="VAR" id="z#cHSa2MvS1^fBbPC$Yq">manual_off</field>
- <value name="VALUE">
- <block type="logic_boolean" id="t91VP7(O%9v*Nhaq1I{R">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="DiN#~7#*%gC#2cJ7Y,s`">
- <field name="VAR" id="n)CP^tg`er=vV{?DZadA">manual_on</field>
- <value name="VALUE">
- <block type="logic_boolean" id="g^PiP[D/H7kK?;Z,yulY">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_cleartimeout" id="7`*#@-STx?}Fp)r;P.pD">
- <field name="NAME">reset_manual_on</field>
- <next>
- <block type="controls_if" id="Sy-5#B|D,+lJ04AWK+xq">
- <mutation elseif="1"></mutation>
- <value name="IF0">
- <block type="variables_get" id=".n;TP^t`PfT?*Oeks}}@">
- <field name="VAR" id="Pm=Ze@sL?~I^vgg*AUq3">logging</field>
- </block>
- </value>
- <statement name="DO0">
- <block type="debug" id="6[^x|,ZaE+|O=ShA-0h@">
- <field name="Severity">log</field>
- <value name="TEXT">
- <shadow type="text">
- <field name="TEXT"></field>
- </shadow>
- <block type="logic_ternary" id="pbhYk~MW%;Uw]3f-~79$">
- <value name="IF">
- <block type="logic_compare" id="`CT1kNgOR-VW6p531EW}">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="`)[*x-lE?!eX8?D7O2x)">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="%jc2xr=_U^_Lom:{ya4%">
- <field name="NUM">75</field>
- </block>
- </value>
- </block>
- </value>
- <value name="THEN">
- <block type="text_join" id="R[6q2hUxyB!rBh|:iKZ.">
- <mutation items="3"></mutation>
- <value name="ADD0">
- <block type="text" id=";Yh_ZhK$TEsCgmKI=kLJ">
- <field name="TEXT">*** Heizpatrone AUS bei </field>
- </block>
- </value>
- <value name="ADD1">
- <block type="math_rndfixed" id="#~sk,(N$zmWw|#p?9CF/">
- <field name="n">1</field>
- <value name="x">
- <shadow type="math_number">
- <field name="NUM">0</field>
- </shadow>
- <block type="get_value" id="XI^.[k-.fK:kM})?WGaF">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- </block>
- </value>
- <value name="ADD2">
- <block type="text" id="fVLklIwee=7WO8q:^mhE">
- <field name="TEXT"> °C</field>
- </block>
- </value>
- </block>
- </value>
- <value name="ELSE">
- <block type="text" id="G@1de=E7b_+$1NIO82k#">
- <field name="TEXT">*** Heizpatrone AUS</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </statement>
- <value name="IF1">
- <block type="logic_compare" id="0vbR4onv`N~q*[B_..q[">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="C%IDV^USw.};eeFprGmw">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="w]vC%GTH[S_{=;={]#My">
- <field name="NUM">75</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO1">
- <block type="debug" id="j|RMsOvHd@Z)Eu0[|WM(">
- <field name="Severity">log</field>
- <value name="TEXT">
- <shadow type="text" id="m-LaEhM{+eSSb2t}zjRD">
- <field name="TEXT"></field>
- </shadow>
- <block type="text_join" id="65~J{3r;|9`_~H0]n.uk">
- <mutation items="3"></mutation>
- <value name="ADD0">
- <block type="text" id="9/a=bh^#7%m=du;7Ok45">
- <field name="TEXT">*** Heizpatrone AUS bei </field>
- </block>
- </value>
- <value name="ADD1">
- <block type="math_rndfixed" id="@dSV$LdH$l0nq4%;I@lA">
- <field name="n">1</field>
- <value name="x">
- <shadow type="math_number" id="j#-~k~OxI~]G5eM[[ucX">
- <field name="NUM">0</field>
- </shadow>
- <block type="get_value" id="D_E=7*r7i?@gWq]6Pio,">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- </block>
- </value>
- <value name="ADD2">
- <block type="text" id="Mw7ngULF,2`J]([[wzYn">
- <field name="TEXT"> °C</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </statement>
- <next>
- <block type="controls_if" id="kL}`dhYf^$Bq;o(SA(2P">
- <value name="IF0">
- <block type="logic_compare" id="UvTAH!*[KE_@It(.Oqtt">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="O(y|Ger=LsVri#mDak=/">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="8.!~AaSd1B{c#~`t0,pE">
- <field name="NUM">75</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="timeouts_cleartimeout" id="k/}|iTyT:EG{hIXhb{p2">
- <field name="NAME">wait_for_final_switch_states</field>
- <next>
- <block type="timeouts_settimeout" id="kr#fyDGid[6*ftyx/8~R">
- <field name="NAME">wait_for_final_switch_states</field>
- <field name="DELAY">10000</field>
- <field name="UNIT">ms</field>
- <statement name="STATEMENT">
- <block type="telegram" id="a;7,uj+/6;N}KSXXerDZ">
- <field name="INSTANCE"></field>
- <field name="LOG"></field>
- <field name="SILENT">FALSE</field>
- <field name="PARSEMODE">default</field>
- <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
- <value name="MESSAGE">
- <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
- <field name="TEXT"></field>
- </shadow>
- <block type="text_join" id="oTgg2h_?kdi,fmLY3@y?">
- <mutation items="14"></mutation>
- <value name="ADD0">
- <block type="text" id=".Lu_lE4kBs$RA~MDnvrk">
- <field name="TEXT">Warmwasser Abschalttemperatur</field>
- </block>
- </value>
- <value name="ADD1">
- <block type="text_newline" id="P7ru{GJyo~A[V:,K{v*[">
- <field name="Type">\n</field>
- </block>
- </value>
- <value name="ADD2">
- <block type="text" id="$a8x0|9WNAeE%)M}at~%">
- <field name="TEXT">Temperatur: </field>
- </block>
- </value>
- <value name="ADD3">
- <block type="lists_split" id="(V2UaE%~9M+TCYtZkO`l" inline="false">
- <mutation mode="JOIN"></mutation>
- <field name="MODE">JOIN</field>
- <value name="INPUT">
- <block type="lists_split" id="}jhndN,a9k:zZ]EnS9vn" inline="false">
- <mutation mode="SPLIT"></mutation>
- <field name="MODE">SPLIT</field>
- <value name="INPUT">
- <block type="convert_tostring" id="A6@^!9Hze.VWiw.YmE!m">
- <value name="VALUE">
- <block type="get_value" id="4FCL.MOi8.|.g-KUD7TE" inline="false">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- </block>
- </value>
- <value name="DELIM">
- <shadow type="text" id="CGa3S[U{5yjy5,c}=)0b">
- <field name="TEXT">.</field>
- </shadow>
- </value>
- </block>
- </value>
- <value name="DELIM">
- <shadow type="text" id="skvLO~=B._s5tWMizuu3">
- <field name="TEXT">,</field>
- </shadow>
- </value>
- </block>
- </value>
- <value name="ADD4">
- <block type="text" id="oht/sDYLg]%kI+K`IuBy">
- <field name="TEXT"> °C</field>
- </block>
- </value>
- <value name="ADD5">
- <block type="text" id="k?s:fys8gNxO*_4amtC]">
- <field name="TEXT"> (</field>
- </block>
- </value>
- <value name="ADD6">
- <block type="lists_split" id="$w942cCf;r9VGGs^i)zA" inline="false">
- <mutation mode="JOIN"></mutation>
- <field name="MODE">JOIN</field>
- <value name="INPUT">
- <block type="lists_split" id="8/D|s}]=2s,gF?OO*7Gt" inline="false">
- <mutation mode="SPLIT"></mutation>
- <field name="MODE">SPLIT</field>
- <value name="INPUT">
- <block type="convert_tostring" id="7M?3VHYwIa.t@%Yt?.#L">
- <value name="VALUE">
- <block type="get_value" id=",9`0O(9}}paMdFk{zI(9" inline="false">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-2_Temperature</field>
- </block>
- </value>
- </block>
- </value>
- <value name="DELIM">
- <shadow type="text" id="Rr8+u[|}FN.[KPKAJ|kl">
- <field name="TEXT">.</field>
- </shadow>
- </value>
- </block>
- </value>
- <value name="DELIM">
- <shadow type="text" id="{l{dSWoDnzlBrT_1msY(">
- <field name="TEXT">,</field>
- </shadow>
- </value>
- </block>
- </value>
- <value name="ADD7">
- <block type="text" id="l3FG^#E_.?^j5sykF{g1">
- <field name="TEXT">)</field>
- </block>
- </value>
- <value name="ADD8">
- <block type="text_newline" id="yx9HB20@,x{(Tp6X2CQ~">
- <field name="Type">\n</field>
- </block>
- </value>
- <value name="ADD9">
- <block type="text" id="RRkyqU?DU|J[!EL$2$[Q">
- <field name="TEXT">Leistung: </field>
- </block>
- </value>
- <value name="ADD10">
- <block type="get_value" id="8c*^bolhRa.J|Q/jT]v4">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.ENERGY_Power</field>
- </block>
- </value>
- <value name="ADD11">
- <block type="text" id="vty%w3@Gr/!$S5P%0%av">
- <field name="TEXT"> W (Relais: </field>
- </block>
- </value>
- <value name="ADD12">
- <block type="logic_ternary" id="-fI/s.0[.TTEA-?bK+fg">
- <value name="IF">
- <block type="get_value" id="Dx)ns80?Bay5ErxrCJLQ">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.POWER</field>
- </block>
- </value>
- <value name="THEN">
- <block type="text" id="`RtC5O%q$9KaS)Aa)D2a">
- <field name="TEXT">AN</field>
- </block>
- </value>
- <value name="ELSE">
- <block type="text" id="D_t#+KF|U)=H(eD%,M?u">
- <field name="TEXT">AUS</field>
- </block>
- </value>
- </block>
- </value>
- <value name="ADD13">
- <block type="text" id="uemJ)+(6iq|niqtBLafp">
- <field name="TEXT">)</field>
- </block>
- </value>
- </block>
- </value>
- <value name="USERNAME">
- <block type="text" id="GmE``K/X(SQGh]718FvS">
- <field name="TEXT"></field>
- </block>
- </value>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <statement name="ELSE">
- <block type="controls_if" id="m$^Il]~r`V[GHEtjIwF:">
- <value name="IF0">
- <block type="logic_compare" id="CLPU-c@cYSKPY,a%Myr}">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="variables_get" id="v~*PWLR92cA$M4e3G#i9">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="6u*d8@+M*GX~Ah[HGv#r">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="Ea$uV{9A)nrqEHz{g!tC">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- <value name="VALUE">
- <block type="logic_boolean" id="/wR$R,CqCazSpQ6|GjPB">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="telegram" id="lO{Wam/XpN9%[FlSc/iK">
- <field name="INSTANCE"></field>
- <field name="LOG"></field>
- <field name="SILENT">FALSE</field>
- <field name="PARSEMODE">default</field>
- <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
- <value name="MESSAGE">
- <shadow type="text" id="_Py=g+G-f%2l5L[JS_1G">
- <field name="TEXT">Heizpatrone offline, kann nicht automatisch ausgeschaltet werden</field>
- </shadow>
- </value>
- <value name="USERNAME">
- <block type="text" id="s=w?|%HoqHWf2c`]X)9q">
- <field name="TEXT"></field>
- </block>
- </value>
- <next>
- <block type="debug" id="!G#eHpo-FeDM*%OzJLyp">
- <field name="Severity">warn</field>
- <value name="TEXT">
- <shadow type="text" id="hPtdve73s=`JwBw9L,M$">
- <field name="TEXT">*** Heizpatrone offline, kann nicht automatisch ausgeschaltet werden</field>
- </shadow>
- </value>
- <next>
- <block type="timeouts_cleartimeout" id="lo*~Q|@;k`Wl_dJI-38p">
- <field name="NAME">reset_heating_relay_offline</field>
- <next>
- <block type="timeouts_settimeout" id="$0-PJjiJ.}};S6LD9F1`">
- <field name="NAME">reset_heating_relay_offline</field>
- <field name="DELAY">30</field>
- <field name="UNIT">min</field>
- <statement name="STATEMENT">
- <block type="controls_if" id="`k(_L5aa0cVBTb}w-a!n">
- <value name="IF0">
- <block type="logic_compare" id="%F~Sq|;vZ~W5?sSwb})e">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="variables_get" id="HRVd81^4kF=1iv#Iq2H`">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="+7:NDy-.]C{CckO0C{]N">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="+K}Q]aAuWjv$@:/*g%1W">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- <value name="VALUE">
- <block type="logic_boolean" id="!c:(nRLqo}k^D:Q!uY1s">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </statement>
- <statement name="ELSE">
- <block type="timeouts_cleartimeout" id="_5UN4H{deG.qT-){F~Mg">
- <field name="NAME">wait_for_final_switch_states</field>
- <next>
- <block type="controls_if" id="7C1:bheNRb5mPctv,5o-">
- <value name="IF0">
- <block type="variables_get" id="IU(N33n8kTvphl4ZrT/X">
- <field name="VAR" id="Pm=Ze@sL?~I^vgg*AUq3">logging</field>
- </block>
- </value>
- <statement name="DO0">
- <block type="debug" id="R*yupN-0n[zVz)V-gAR+">
- <field name="Severity">warn</field>
- <value name="TEXT">
- <shadow type="text" id="86^=@/3vG]gh@n1sucw%">
- <field name="TEXT"></field>
- </shadow>
- <block type="text_join" id="C+gK4TOoa3*}}RuhcF;m">
- <mutation items="5"></mutation>
- <value name="ADD0">
- <block type="text" id="GB(r/ZC6:svZ2E5j[xM[">
- <field name="TEXT">*** Heizpatrone AUS nach 30s nicht nötig, Switch </field>
- </block>
- </value>
- <value name="ADD1">
- <block type="logic_ternary" id="nv26ZJNtb|Aio$/$=j*=">
- <value name="IF">
- <block type="get_value" id="dtH}Yp_,]+Tu.=E0XwLU">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.POWER</field>
- </block>
- </value>
- <value name="THEN">
- <block type="text" id="v:]3M$(.3Q=7F$RuH(V,">
- <field name="TEXT">AN</field>
- </block>
- </value>
- <value name="ELSE">
- <block type="text" id="W9wm6t+0;x[B@RX|sI9F">
- <field name="TEXT">AUS</field>
- </block>
- </value>
- </block>
- </value>
- <value name="ADD2">
- <block type="text" id="IC_hA,-jW]yW3Fm-=,S7">
- <field name="TEXT"> / </field>
- </block>
- </value>
- <value name="ADD3">
- <block type="get_value" id="RXSQv{8~5lO.]9Y8hJi6">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.ENERGY_Power</field>
- </block>
- </value>
- <value name="ADD4">
- <block type="text" id="kVlK]{$}(^-N.|HO:Lsj">
- <field name="TEXT"> W</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="variables_set" id="O5?f|xosA=C[-LVx!3Uj">
- <field name="VAR" id="Cn13f9O/7KBB|XNl:BJ1">pv_off_running</field>
- <value name="VALUE">
- <block type="logic_boolean" id="f.Ij@96dF;stI^((JR*z">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </statement>
- <value name="IF1">
- <block type="logic_operation" id="^}Uc)AtsgaTG2sa*W/:O" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_operation" id="J,Y!%pm:N3:8ZyI0h#NL" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="9[Cu.(w%BCBvaptp9[FN">
- <field name="OP">LTE</field>
- <value name="A">
- <block type="get_value" id="`|!T;uQPm3)IVGphK,A_">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.252_Total_active_power</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="Zn{vzg.RjpK`,0CUK4b6">
- <field name="NUM">-1600</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="y+(i]g;[7tp?VjkNuUSY" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="?}6i*+hPSrbN5c!Ol21W">
- <field name="OP">LTE</field>
- <value name="A">
- <block type="get_value" id="Uzp^Lnn1iV~)o^(=)-+4">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.582_Actual_battery_charge_discharge_power</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="7l|ckNS3C41g9K~JLzBs">
- <field name="NUM">-2200</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="FUk99I]}3N[ENDNVMfGl" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_operation" id="L$J2BEW|FRLZr_~3lCCc" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="$Mf6),t:QF:#/AK6(z9{">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="u;ZOAQ9hGM3CJMT]9qR7">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.210_Battery_SOC</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="[rdFQ6SVLTJbn8jrP(f(">
- <field name="NUM">40</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="time_compare_ex" id="l$NAsDKuh]cNCQmz!{h%">
- <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
- <field name="USE_ACTUAL_TIME">TRUE</field>
- <field name="OPTION"><</field>
- <value name="START_TIME">
- <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
- <field name="TEXT">12:00</field>
- </shadow>
- <block type="time_astro" id="$.d+b$f1!Doq3,TpMxy+">
- <field name="TYPE">sunsetStart</field>
- <field name="OFFSET">-240</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="t?/Rs6z]~#+FZn0bYQ9T" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="TA{_svYdmc:G7mk)[bl,">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="Vmxgwj_78T?itwExWQb`">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.210_Battery_SOC</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="UFrxs;^{G8Y$Mr@M|0A;">
- <field name="NUM">30</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="time_compare_ex" id="+6@9m.]{j{:^7lcx6#:q">
- <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
- <field name="USE_ACTUAL_TIME">TRUE</field>
- <field name="OPTION"><</field>
- <value name="START_TIME">
- <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
- <field name="TEXT">12:00</field>
- </shadow>
- <block type="time_astro" id="$V5NlR3]K_Re?A@[lIzb">
- <field name="TYPE">sunsetStart</field>
- <field name="OFFSET">-360</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="NcH1Gf~=x}M)Af4s#H:$" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_operation" id="GPVdv_O2uE@;fe{Wx3qA" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="time_compare_ex" id="36B{bSv40=3;)T}rRjBg">
- <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
- <field name="USE_ACTUAL_TIME">TRUE</field>
- <field name="OPTION"><</field>
- <value name="START_TIME">
- <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
- <field name="TEXT">12:00</field>
- </shadow>
- <block type="time_astro" id="=]pKxjRGvp$,;2r6jZmV">
- <field name="TYPE">sunsetStart</field>
- <field name="OFFSET">-120</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id=")tm+wBO/l0-#e[4fj(1O" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="lG799G)/]N.$^+RO$i2]">
- <field name="OP">LT</field>
- <value name="A">
- <block type="get_value" id="Cb}Rk.?7Yg#odlHh0h_(">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="(x|7]gw;/C@W#FhdwoWh">
- <field name="NUM">74</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_negate" id="cm:sskdKk}@nd*@}-J83">
- <value name="BOOL">
- <block type="logic_compare" id="#AK7QfmET9/E5}?z19hQ">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="|v(i#4]ifjeLf(mo]K*6">
- <field name="ATTR">val</field>
- <field name="OID">statistics.0.temp.minmax.sonoff.0.DVES_44B941.DS18B20-1_Temperature.dayMax</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="42(R3.gGcB(l*a!C|Cwx">
- <field name="NUM">75</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="b@/J/x0+[_y00dH3meVE">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="fOdT=oo-TZOULZB7``[.">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="A[zl6URzwLd;,8xET~F}">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO1">
- <block type="variables_set" id="HC3egA;#vYCt9wKKK.02">
- <field name="VAR" id="Cn13f9O/7KBB|XNl:BJ1">pv_off_running</field>
- <value name="VALUE">
- <block type="logic_boolean" id="Q9f_`XE8{K-n@=T*L7XG">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_cleartimeout" id="h,X99~5d%ziK5oDvvq[h">
- <field name="NAME">wait_for_final_switch_states</field>
- <next>
- <block type="controls_if" id="CyTqQZ^ax;oN;43Boy6S">
- <value name="IF0">
- <block type="logic_compare" id="D.dudy69wM0eELZTJ|k5">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="variables_get" id="hA4=hEv)-X3mWM#dzyR@">
- <field name="VAR" id=";E!]!KOpUf,eKWM{{.5D">pv_on_running</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="DDojI[XG-B:%?nHX+-{~">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="/);Z(lq/-=NLxPo{h;Sq">
- <field name="VAR" id=";E!]!KOpUf,eKWM{{.5D">pv_on_running</field>
- <value name="VALUE">
- <block type="logic_boolean" id="S6up@c[,L*6:O1n~xLQ;">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="controls_if" id="w4J]J[VF18cfu;z/95ZL">
- <value name="IF0">
- <block type="variables_get" id="1sYm0BAp,(@Nn=XS$r{e">
- <field name="VAR" id="Pm=Ze@sL?~I^vgg*AUq3">logging</field>
- </block>
- </value>
- <statement name="DO0">
- <block type="controls_if" id="nWwiq`R#RJ`e/`(CRAU5">
- <mutation elseif="1"></mutation>
- <value name="IF0">
- <block type="logic_compare" id="=I9{;m/15.5=E[!Lh|_.">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="zPU++oG9F8$KQ)K6SZ{z">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="`P`Ixw/tLryYYF|d|h|J">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="debug" id="=:~A:@iwIx{YJ^[aYL:I">
- <field name="Severity">warn</field>
- <value name="TEXT">
- <shadow type="text" id="]NHLJCT.tNd6v~*:np]R">
- <field name="TEXT">*** Heizpatrone AN in 15s</field>
- </shadow>
- </value>
- </block>
- </statement>
- <value name="IF1">
- <block type="variables_get" id="e34M)gN.Mp$8J3x(lV07">
- <field name="VAR" id="Cn13f9O/7KBB|XNl:BJ1">pv_off_running</field>
- </block>
- </value>
- <statement name="DO1">
- <block type="debug" id="+fD!.e6vNmeDTCKjH7o,">
- <field name="Severity">warn</field>
- <value name="TEXT">
- <shadow type="text" id="Yx+Y$L4exk4qNSpj*Vd|">
- <field name="TEXT">*** Heizpatrone AUS in 30s gestoppt</field>
- </shadow>
- </value>
- </block>
- </statement>
- </block>
- </statement>
- <next>
- <block type="timeouts_settimeout" id="%u$ne[N.PHC(9:`MBV}t">
- <field name="NAME">pv_timeout_on</field>
- <field name="DELAY">15</field>
- <field name="UNIT">sec</field>
- <statement name="STATEMENT">
- <block type="controls_if" id="NBQHIMhiD9yVn*+M~Ki.">
- <mutation else="1"></mutation>
- <value name="IF0">
- <block type="logic_operation" id=".aHAc@-YnxmFdxp$W|YM" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_operation" id=":+J!*Qd/Gz?qUh]!)ea{" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="-uV8,CWwgNp}Wsl?V=t(">
- <field name="OP">LTE</field>
- <value name="A">
- <block type="get_value" id="jp/q^NGFp5k@(:I~1Z^y">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.252_Total_active_power</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="%yg*@T0vP2SaEjD+K`H@">
- <field name="NUM">-1600</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="*E[7SbtkU%U.@ZPVpm;V" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="~pY5D=,=.SYKZfr)-lCX">
- <field name="OP">LTE</field>
- <value name="A">
- <block type="get_value" id="X2eLpl+t]*kxZ0j3du:s">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.582_Actual_battery_charge_discharge_power</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="0r`C#c]~K%UHErqoN$@.">
- <field name="NUM">-2200</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="9:4wj?K,=KE,eVcCFcHo" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_operation" id="xe0E]-!M|+!MWmwICxRB" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="K$TZ)j-,Q@I2~3e^@^u!">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="X#,eWz;)vv7F]*g@p%_|">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.210_Battery_SOC</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="]0}kOj*~ckk7];RFcoLt">
- <field name="NUM">40</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="time_compare_ex" id="6X*tHj+a+A?E-tk6Z-VN">
- <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
- <field name="USE_ACTUAL_TIME">TRUE</field>
- <field name="OPTION"><</field>
- <value name="START_TIME">
- <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
- <field name="TEXT">12:00</field>
- </shadow>
- <block type="time_astro" id="VQKSL}5PZNVLuS$neezb">
- <field name="TYPE">sunsetStart</field>
- <field name="OFFSET">-240</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="y$`KJ0K}i_/lNdy8}nBT" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="WMbnsiy8=Q=@nw+UuZ^)">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="Zuxm$!36mf$vveX1m=4y">
- <field name="ATTR">val</field>
- <field name="OID">modbus.0.holdingRegisters.210_Battery_SOC</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="O=x6m7X%hUrso2$%Ek]g">
- <field name="NUM">30</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="time_compare_ex" id="w%vND1m2};YI$_$K|Y4f">
- <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
- <field name="USE_ACTUAL_TIME">TRUE</field>
- <field name="OPTION"><</field>
- <value name="START_TIME">
- <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
- <field name="TEXT">12:00</field>
- </shadow>
- <block type="time_astro" id="Ff/*P`krbBGk;Z*IY:Y-">
- <field name="TYPE">sunsetStart</field>
- <field name="OFFSET">-360</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="}ZjGvNhxvzo.8HTt4+my" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_operation" id="}L!vL2gJ(Y(1d}uBRk!t" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="time_compare_ex" id="j?sD+w-?N-;hoBng48:L">
- <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
- <field name="USE_ACTUAL_TIME">TRUE</field>
- <field name="OPTION"><</field>
- <value name="START_TIME">
- <shadow xmlns="http://www.w3.org/1999/xhtml" type="text">
- <field name="TEXT">12:00</field>
- </shadow>
- <block type="time_astro" id="t-BT819]*[QX#2zuIPgb">
- <field name="TYPE">sunsetStart</field>
- <field name="OFFSET">-120</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="{MuA^.jq,R#EpbAoRNw," inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="$wpiFzelRaSGk(48749{">
- <field name="OP">LT</field>
- <value name="A">
- <block type="get_value" id="OtH?qfa+FMER08k]07Cm">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_44B941.DS18B20-1_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="4oug=xrK^.nWZVW(hGQO">
- <field name="NUM">74</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_negate" id="{;inYJK+zRo@IrtRx#oW">
- <value name="BOOL">
- <block type="logic_compare" id="P=ESF7b[*LAde+wU+TL$">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="get_value" id="z$HRu]C-B3nSq?Q+U-(9">
- <field name="ATTR">val</field>
- <field name="OID">statistics.0.temp.minmax.sonoff.0.DVES_44B941.DS18B20-1_Temperature.dayMax</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="9YoyO#wROQGdpltQ*vs^">
- <field name="NUM">75</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="ffZu9}aP#PlQu=/,VcEw">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="(H/Kwg7ySnX1=l[Z?1Q@">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="QO[xm5_zQYf%8YUabq9B">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="timeouts_cleartimeout" id="@$S{{({7A|h=vB8j?HHu">
- <field name="NAME">pv_timeout_off</field>
- <next>
- <block type="controls_if" id="@^ebL;DiB4{0b*#p]OUt">
- <mutation else="1"></mutation>
- <value name="IF0">
- <block type="get_value" id="MTxNOG$AY4$u1!~smT?k">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_541E97.alive</field>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="[3_v@UB-!wA11^ED$dM$">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- <value name="VALUE">
- <block type="logic_boolean" id="LzC`sO;QOZ4G;j_3Dxyl">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_cleartimeout" id="3-?BecKH}T7}(n@e^wpT">
- <field name="NAME">reset_heating_relay_offline</field>
- <next>
- <block type="timeouts_cleartimeout" id="_/Wfz|eF{_Wa/(Nx{RdH">
- <field name="NAME">reset_heating_relay_offline2</field>
- <next>
- <block type="control" id="Ps%aaN%hW?=dI=FWVKl{">
- <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
- <field name="OID">sonoff.0.DVES_541E97.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="inqWD*#E%txNtt3w{A3l">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="xaTO(kiF!.*/xO[W,wm9">
- <field name="VAR" id="7y!E^6qd05rX]Kkr-a}%">automatic_off</field>
- <value name="VALUE">
- <block type="logic_boolean" id="p:v=[LR%{Zis,SS!I]_p">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="L.Ih=gn%+^|;m0iaTR`$">
- <field name="VAR" id="z#cHSa2MvS1^fBbPC$Yq">manual_off</field>
- <value name="VALUE">
- <block type="logic_boolean" id="Z[lolKV74bG?!J3;eQ]Y">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="}zm,/h8%m![yu{6xQ8:g">
- <field name="VAR" id="JeY+@_E!w(syEg?mK:+0">automatic_on</field>
- <value name="VALUE">
- <block type="logic_boolean" id="gc165iKoyu!Y:4KF|LW-">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="controls_if" id="+~a){coV(Tp%?0}3cdSQ">
- <value name="IF0">
- <block type="variables_get" id=",j=1n(C}vk[CD$DJj0/4">
- <field name="VAR" id="Pm=Ze@sL?~I^vgg*AUq3">logging</field>
- </block>
- </value>
- <statement name="DO0">
- <block type="debug" id="v=-I}}$h!3B(K:}0NJEk">
- <field name="Severity">log</field>
- <value name="TEXT">
- <shadow type="text" id="u{({Ac5^p_@n#T%yIiA)">
- <field name="TEXT">*** Heizpatrone AN</field>
- </shadow>
- </value>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <statement name="ELSE">
- <block type="controls_if" id="u;btlx)N^FZC@1|cru1{">
- <value name="IF0">
- <block type="logic_compare" id="x,zhOUgs7%vUsGRoKanI">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="variables_get" id="7cu][3W3/qvw(oY8+qY;">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="QVR6AGRlwc$M0nx)sZ:s">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="v=rClz/:,:+Jf-0a8mT7">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- <value name="VALUE">
- <block type="logic_boolean" id="2+Bwey.~`e(d$qdDyo:.">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="telegram" id="s_)Q~UJ]zBKUGo?b,x$f">
- <field name="INSTANCE"></field>
- <field name="LOG"></field>
- <field name="SILENT">FALSE</field>
- <field name="PARSEMODE">default</field>
- <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
- <value name="MESSAGE">
- <shadow type="text" id="|]aJqfy)(G0Rwr3)4EL6">
- <field name="TEXT">Heizpatrone offline, kann nicht automatisch eingeschaltet werden</field>
- </shadow>
- </value>
- <value name="USERNAME">
- <block type="text" id="U+MI9aql_4Xih6g$gt_q">
- <field name="TEXT">Tom</field>
- </block>
- </value>
- <next>
- <block type="debug" id="q(W]%nXUue(s.,Y};2!$">
- <field name="Severity">warn</field>
- <value name="TEXT">
- <shadow type="text" id="U9HgiJG0c-~J5S9jJV_p">
- <field name="TEXT">*** Heizpatrone offline, kann nicht automatisch eingeschaltet werden</field>
- </shadow>
- </value>
- <next>
- <block type="timeouts_cleartimeout" id=";g=,%X.Cqk?F}JM=}!O{">
- <field name="NAME">reset_heating_relay_offline2</field>
- <next>
- <block type="timeouts_settimeout" id="CCX..]nZ~*7W0;O(hYX5">
- <field name="NAME">reset_heating_relay_offline2</field>
- <field name="DELAY">30</field>
- <field name="UNIT">min</field>
- <statement name="STATEMENT">
- <block type="controls_if" id="KtQ.W8lNPAD6]1h!!d:e">
- <value name="IF0">
- <block type="logic_compare" id="N/zH5ly@VsB#f-|P*9LO">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="variables_get" id="*wT#e-]485rm{FRy:|{/">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="1:oVjauf^qT#:!;+#jH!">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="w{7(b1.W@}vPa6a/CgmK">
- <field name="VAR" id="kuGw}z9eyDfE`~G2^jLe">heating_relay_offline</field>
- <value name="VALUE">
- <block type="logic_boolean" id="#iq;IBe:DDMq:*)|(e{r">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </statement>
- <statement name="ELSE">
- <block type="controls_if" id="$RX(^jXJSo/+bhz~}whw">
- <value name="IF0">
- <block type="variables_get" id="d-hCM]MM[t|Db`db:A/g">
- <field name="VAR" id="Pm=Ze@sL?~I^vgg*AUq3">logging</field>
- </block>
- </value>
- <statement name="DO0">
- <block type="debug" id="6vUSs4-%WB;VK5ch;faB">
- <field name="Severity">warn</field>
- <value name="TEXT">
- <shadow type="text" id="YmrAZEx=cRN!V_%PHVV7">
- <field name="TEXT">*** Heizpatrone AN nach 15s nicht sinnvoll</field>
- </shadow>
- </value>
- </block>
- </statement>
- </block>
- </statement>
- <next>
- <block type="variables_set" id="-vP~)-Wdb7it=V+@!aDZ">
- <field name="VAR" id=";E!]!KOpUf,eKWM{{.5D">pv_on_running</field>
- <value name="VALUE">
- <block type="logic_boolean" id="f+-1kP1},x0FPHhdyR9A">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </statement>
- <next>
- <block type="comment" id="Xqz=cXT:aC1~=Wk{N{=h">
- <field name="COMMENT">Reset Automatik Heizpatrone</field>
- <next>
- <block type="astro" id=":NvC%z)o#OQ!#dSB6UHP">
- <field name="TYPE">sunset</field>
- <field name="OFFSET">0</field>
- <statement name="STATEMENT">
- <block type="controls_if" id="k~m^^=xHRqGZqQyB0t:P">
- <value name="IF0">
- <block type="logic_negate" id="Z`Xj*3bmgehFP,/Xb}xU">
- <value name="BOOL">
- <block type="get_value" id="-^OW`wT)n6Y@/q_I%{1~">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.Energy.PV.Automatic_Control</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="control" id="+sxYqeA-E`gTuD*Dq8rj">
- <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
- <field name="OID">0_userdata.0.Energy.PV.Automatic_Control</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="0-qcoe2fGYv@Tkoz%Ff*">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </xml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement