<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="QyKrT,r/Z.uEZuB1cCk6">Voll</variable>
<variable id="S(r:dJ+2zJ_K^*ns[%8h">Leer</variable>
<variable id="}wmbN}pP_^UnXdMM~xr6">Anz_Tage</variable>
<variable id="qWVLn7Ak;m,K|)ybk+kg">Restzeit</variable>
</variables>
<block type="variables_set" id="-/BuYzQg0[woH]GqqkmV" x="38" y="38">
<field name="VAR" id="QyKrT,r/Z.uEZuB1cCk6">Voll</field>
<value name="VALUE">
<block type="convert_from_date" id="@E9qvt%M_zlAE|3|:Mj">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
<field name="OPTION">object</field>
<value name="VALUE">
<block type="get_value" id="%g#U.;ImFrh34~Czzn%">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Eigene_Datenpunkte.Wassertank.Voll</field>
</block>
</value>
</block>
</value>
<next>
<block type="on" id="{55TC3}K4a@l:4$@M,U$">
<field name="OID">sonoff.0.Wassertank/WemosD1.SR04_Distance</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="jp{,^R.Vr7#:6PH_$dZ(">
<value name="IF0">
<block type="logic_operation" id="ZC1vr^8*rX!jy77q0luR">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="tP3HSdaED,eW3Th9bku">
<field name="OP">LTE</field>
<value name="A">
<block type="on_source" id="^bnv/L~4N2zUJ/EOs{aK">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="]TnH[?LEi@ag6z/Pl:-">
<field name="NUM">21</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id=".*-dan4oBu[5*I@Swff5">
<field name="OP">GT</field>
<value name="A">
<block type="on_source" id="K$:D!0`Y2I%P.$-Nvb!?">
<field name="ATTR">oldState.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id=":DII$nq|U6*;TH22X4D}">
<field name="NUM">21</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="O=4X@^|$adiI^q*scv~3">
<field name="VAR" id="QyKrT,r/Z.uEZuB1cCk6">Voll</field>
<value name="VALUE">
<block type="on_source" id="7Wkmj?g:@4}?o%R~=J;X">
<field name="ATTR">state.lc</field>
</block>
</value>
<next>
<block type="update" id="z^%m8=RBV218J=[!|/G">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Eigene_Datenpunkte.Wassertank.Voll</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_from_date" id="aF.d{;oE?N|V.N^3O?Lg">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
<field name="OPTION">custom</field>
<field name="FORMAT">JJJJ.MM.TT SS:mm:ss</field>
<value name="VALUE">
<block type="variables_get" id="WI:]LM3-YGa8s+:4zrRQ">
<field name="VAR" id="QyKrT,r/Z.uEZuB1cCk6">Voll</field>
</block>
</value>
</block>
</value>
<next>
<block type="telegram" id="1p.mr=8zIRf}BXy2,~TD">
<field name="INSTANCE"></field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow type="text" id="*rldG[s+n+4?Hv%`=e(V">
<field name="TEXT">text</field>
</shadow>
<block type="text_join" id="fb,%OO7l,[v7]4,z$gg:">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="text" id="/:PON)p~%~g~TqP(};v!">
<field name="TEXT">Der Wassertank wurde am </field>
</block>
</value>
<value name="ADD1">
<block type="get_value" id="k;G4V{=C!bk5m|~B8TlC">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Eigene_Datenpunkte.Wassertank.Voll</field>
</block>
</value>
<value name="ADD2">
<block type="text" id=")3HsTjlX8YJOhm:deQmf">
<field name="TEXT"> gefüllt.</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="controls_if" id="s3pcZMzD*9}%R6rGX9cs">
<value name="IF0">
<block type="logic_operation" id="fe]*DHUv|Be7@%1fTNWz">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="~@;s{nvZFR+h!nRAKGb8">
<field name="OP">GTE</field>
<value name="A">
<block type="on_source" id="gw5@LR7.5sA-$iT7pZX@">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="CaIX0%!CYQivKFqO~Ou(">
<field name="NUM">110</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="ti}P_tBRivXN/aNu:9Fw">
<field name="OP">LT</field>
<value name="A">
<block type="on_source" id=");aj?@zfWjF[:=/bW=:l">
<field name="ATTR">oldState.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="jjgusYbSD;6@-P;tl8K+">
<field name="NUM">110</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="gXHSbLd-*=_JDmNEl">
<field name="VAR" id="S(r:dJ+2zJ_K^*ns[%8h">Leer</field>
<value name="VALUE">
<block type="on_source" id="h[X6_8+8x[JCPy9DEq}">
<field name="ATTR">state.lc</field>
</block>
</value>
<next>
<block type="update" id="[2[cL{Ua|eK:qZ^(CRoP">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Eigene_Datenpunkte.Wassertank.Leer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_from_date" id="QDIgRy%}5wUrj@3MMoW/">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
<field name="OPTION">custom</field>
<field name="FORMAT">JJJJ.MM.TT SS:mm:ss</field>
<value name="VALUE">
<block type="variables_get" id="ECaK}:wet.T.pe:lBSi">
<field name="VAR" id="S(r:dJ+2zJ_K^*ns[%8h">Leer</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="b}sNlY!L7iE,_ER:h]1Y">
<field name="VAR" id="}wmbN}pP_^UnXdMM~xr6">Anz_Tage</field>
<value name="VALUE">
<block type="math_round" id="0nnYv?v$QA?..gN_X^#q">
<field name="OP">ROUNDDOWN</field>
<value name="NUM">
<shadow type="math_number" id="c5,$:16H1bT-cf+;moF:">
<field name="NUM">3.1</field>
</shadow>
<block type="math_arithmetic" id="o|Zy%2G/,HaU{)XJo?P" inline="false">
<field name="OP">DIVIDE</field>
<value name="A">
<shadow type="math_number" id=")suP~j2q)26gS7.9,{[">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="]x!sFAc$XT$n}vik|^2E">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="}X5~oVvVh;LtbI;d(_0Q">
<field name="VAR" id="S(r:dJ+2zJ_K^*ns[%8h">Leer</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id=":2JcyX$-f:2ocE;S)l5@">
<field name="VAR" id="QyKrT,r/Z.uEZuB1cCk6">Voll</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id="_-E7:Y6H*,,b5e3qdH}S">
<field name="NUM">86400000</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="KBIKf2YRpM{:%#n?Q">
<field name="VAR" id="qWVLn7Ak;m,K|)ybk+kg">Restzeit</field>
<value name="VALUE">
<block type="math_arithmetic" id="BbO/)KNt2#)?|5=4J_+">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="4-GS=lP3h.#XLw.}c@@">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="v)(k;?Zk!jW_S!PWI$Pt">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="Z,m#-rT3Xws-6F%Wby0">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="aq1P9afQZ(Gj7xacgg%S">
<field name="VAR" id="S(r:dJ+2zJ_K^*ns[%8h">Leer</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="c_D}!OO@RhR206Zi#qH">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="@=p=s3Xd@!0!AyDnwOR">
<field name="VAR" id="QyKrT,r/Z.uEZuB1cCk6">Voll</field>
</block>
</value>
</block>
</value>
<value name="B">
<shadow type="math_number" id=",)dgsw$E3)c+,bbY[ls7">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="|yhqib-MuvJYdFtP+!2t">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="yN!fz~;Et7r6xD{=Wn3b">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="lmsK+|J1FexT+-BVgNK_">
<field name="VAR" id="}wmbN}pP_^UnXdMM~xr6">Anz_Tage</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="jq7@Dz?:VequK|F^;@si">
<field name="NUM">86400000</field>
</shadow>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="@$to!AA:!3r)YTw(M8w@">
<field name="VAR" id="}wmbN}pP_^UnXdMM~xr6">Anz_Tage</field>
<value name="VALUE">
<block type="text_join" id=",_l}mgscm0WIlT(=)qA">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="variables_get" id="Za[vF^ZYI8l|IL+e,Fx%">
<field name="VAR" id="}wmbN}pP_^UnXdMM~xr6">Anz_Tage</field>
</block>
</value>
<value name="ADD1">
<block type="text" id="orElMSg28TSabR{~Mq[">
<field name="TEXT"> Tage </field>
</block>
</value>
<value name="ADD2">
<block type="convert_from_date" id="6U5O/X{y0dqn%u(Ut3_" inline="false">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
<field name="OPTION">hh:mm:ss</field>
<value name="VALUE">
<block type="math_arithmetic" id="QW/i!vUXb*H@qfM;z;ci" inline="false">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="VlPS%BH2i:Plhhh24mK^">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="%xcj_vFN#c.wmDHKTt">
<field name="VAR" id="qWVLn7Ak;m,K|)ybk+kg">Restzeit</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="ae}2S1rscE%C]^fGP-{A">
<field name="NUM">1</field>
</shadow>
<block type="convert_from_date" id="BS_@AFOR/~XqgA2Qo;h(" inline="false">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
<field name="OPTION">object</field>
<value name="VALUE">
<block type="text" id="B8[|sbLGSynC0]eae6jv">
<field name="TEXT">1970-01-01 00:00</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="Xh9:~6:6U8:~j:I_hy5u">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">javascript.0.Eigene_Datenpunkte.Wassertank.Anz_Tage</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text_join" id="ty!AHeO0jd#MR+Yf,KYU">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="_E+FYD:XnDs+/v7Or#DK">
<field name="TEXT">Der Wassertank reichte </field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="5bAUP@U9SX:+m1iDMhYF">
<field name="VAR" id="}wmbN}pP_^UnXdMM~xr6">Anz_Tage</field>
</block>
</value>
</block>
</value>
<next>
<block type="telegram" id="S;]L}vZUyveWjFgtk0ft">
<field name="INSTANCE"></field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow type="text" id="V7*Wd]Z%7G-s^uLr06/.">
<field name="TEXT">text</field>
</shadow>
<block type="text_join" id="AJ=O/^]z=_KNPcModUu%">
<mutation items="4"></mutation>
<value name="ADD0">
<block type="text" id="6o(;tNl-a|~cFL|Ug.^R">
<field name="TEXT">Der Wassertank ist leer seit </field>
</block>
</value>
<value name="ADD1">
<block type="get_value" id="MAH;/TMbltFf!?ztUE:3">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Eigene_Datenpunkte.Wassertank.Leer</field>
</block>
</value>
<value name="ADD2">
<block type="text_newline" id="tu:(+934mUCU4uak|W-n">
<field name="Type">\n</field>
</block>
</value>
<value name="ADD3">
<block type="get_value" id="T,OMM$ZfT*p;B]qy{{@!">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Eigene_Datenpunkte.Wassertank.Anz_Tage</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</xml>