<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="timeout" id="BadOn">BadOn</variable>
<variable type="timeout" id="WPOn">WPOn</variable>
<variable type="timeout" id="BadOff">BadOff</variable>
<variable type="timeout" id="WPOff">WPOff</variable>
</variables>
<block type="on_ext" id="Vk!`Ru5(z=}lka56G|sS" x="-1262" y="-1212">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="_H{a+UiEMQa/Hvz{+]m,">
<field name="oid">0_userdata.0.Stromzaehler.Aktuell</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id=";-c|_OeqD9AJHA3yS.]O">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="g9EByzdjgOW=N6bdMFuN">
<field name="OP">GTE</field>
<value name="A">
<block type="on_source" id="aOe%6d2ijN}EAW6n6M!G">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id=",6I/H7C!Rzb9nlk=)+~G">
<field name="NUM">-500</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="zoSm;acfB*sAm`_1Q9bm">
<field name="NAME">BadOn</field>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="hhAJOM.@{n)?p,I7nNp=">
<field name="OP">GTE</field>
<value name="A">
<block type="on_source" id="i[w%(9n|G0;=zRw_?Lap">
<field name="ATTR">oldState.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="|=syCv%87$-nf}mYqNi3">
<field name="NUM">-500</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="*PuamP#)z)Y,@rWv]OCg">
<field name="NAME">BadOn</field>
<field name="DELAY">150</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id=".PM3||_$}I(@D~55m7Bk">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.a4c138c5b266a383.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="`UZopM?377{Qt2jn:QBH">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="controls_if" id="}0#xg;X*.!)n27!ZE!S7">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="#E:et(au|V?@~N^FAlAB">
<field name="OP">GTE</field>
<value name="A">
<block type="on_source" id="DhcUTan,=uaK~7Iwjz.j">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="PMh-=2@@H=Z!o%L+:5,H">
<field name="NUM">-1000</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id=",kBP5wN-pd{YWr6uNc[n">
<field name="NAME">WPOn</field>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id=")+u8[OWw{_R`*E,KZzi#">
<field name="OP">GTE</field>
<value name="A">
<block type="on_source" id="Z2hY9iEce{NW-hbz603j">
<field name="ATTR">oldState.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="L,TSJ}TL|wQ8-E(iP6u8">
<field name="NUM">-1000</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="1_H;fY4@IROl%B?Gdm/I">
<field name="NAME">WPOn</field>
<field name="DELAY">150</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id=",~#4%+H))7LJu{w27H52">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.a4c138c5b266a383.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="6D,;)go=#[Z2B7:le,z7">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="control" id="giOOVGxxZQcwV:tsBKRJ">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Blockly.Switch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="cQ6CM7F9zQw89D=]{yO2">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
<next>
<block type="controls_if" id="_ichMh#kZF3kZan@2w}O">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="[DsB+yY)TZwx[6^5MV}D">
<field name="OP">LTE</field>
<value name="A">
<block type="on_source" id="/#xd(wiy=pV.=L6)U2y_">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id=")!4?b`XZ2NCj=mtuUGx3">
<field name="NUM">-20</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="q-s4]kEZHvys$9$(~w1*">
<field name="NAME">BadOff</field>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="TF6x8%zv;jBVW:3Z[]jc">
<field name="OP">LTE</field>
<value name="A">
<block type="on_source" id="@_G;s)Ws{V,1{0hAXXta">
<field name="ATTR">oldState.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="y2l{,^~g`3@l4EiYzg!S">
<field name="NUM">-20</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="Os=E:51nQq#-Y(T!sT?X">
<field name="NAME">BadOff</field>
<field name="DELAY">120</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="Y(LyJ^@ZkO_G(_NL`Q:+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">zigbee.0.a4c138c5b266a383.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="JXhIApHzB]RuIapvt0*f">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
<next>
<block type="controls_if" id="K^Y1A!$K,l3LKxdd3CW!">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="U=et!uU$?WtNBLFd*9n|">
<field name="OP">LTE</field>
<value name="A">
<block type="on_source" id="!)DUMg?[vFBHWH3L4N=.">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="tgLzrg=Wl9W_$aeN%li=">
<field name="NUM">400</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="5F.#I0U_/Fv-:fX{CZ?,">
<field name="NAME">WPOff</field>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="c=Tg;VU;um,eqg85^Egn">
<field name="OP">LTE</field>
<value name="A">
<block type="on_source" id="B%N8/c(+IX?DuEDf$uZY">
<field name="ATTR">oldState.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id=".!T6PgD4}9N!wz{Qj3z4">
<field name="NUM">400</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="SJ-swm78U@Z[PPFv}Oo*">
<field name="NAME">WPOff</field>
<field name="DELAY">90</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="zu:NS;t`@gCzP1hEN5$+">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Blockly.Switch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="%6givn4N1E/Gfq)]gBu8">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
<block type="on_ext" id="@4`.~ED)M=MdrIu7^a=e" x="-562" y="-1212">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="l5jBM,Dnty}GLYo[8y%K">
<field name="oid">default</field>
</shadow>
<block type="text" id="cnL_juyDIvH5Pyg)ad-/">
<field name="TEXT">zigbee.0.a4c138c5b266a383.state</field>
</block>
</value>
<statement name="STATEMENT">
<block type="telegram" id="D]_RwFq7u3/*W~~d!E2{">
<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="^HO7u[,7m*ZH(cgXlq_r">
<field name="TEXT">Heizung Bad2 ist aus</field>
</shadow>
<block type="text_join" id="llif0$``7rg,!9s+H0JQ">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="(%s?wKRYR?$!c=!UN8lc">
<field name="TEXT">Heizung Bad2 ist </field>
</block>
</value>
<value name="ADD1">
<block type="logic_ternary" id="U@s976kEk#A{@9$Dw~w3">
<value name="IF">
<block type="on_source" id="N-p`pim$!xOa`a-fpv1|">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="THEN">
<block type="text" id=".~/u?:Tjgd7Q^4F_Jc/y">
<field name="TEXT">an</field>
</block>
</value>
<value name="ELSE">
<block type="text" id="IaAtw3_Of?-/;~zmjSA0">
<field name="TEXT">aus</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
<next>
<block type="on_ext" id="7XAl,I4rWK70,QpHn:lu">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="QeaK^hfm}pHgOD+?bx2o">
<field name="oid">0_userdata.0.Blockly.Switch</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="telegram" id="K.4F{_SjV2~ZgHA]TwVT">
<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">
<field name="TEXT">Heizung Bad2 ist aus</field>
</shadow>
<block type="text_join" id="El)d!2nwS-[M!{~6irsS">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="0p=ur+VH,.4ha)kqlw+|">
<field name="TEXT">Heizstab bwbp ist </field>
</block>
</value>
<value name="ADD1">
<block type="logic_ternary" id="rGwzB!JofwDWV)xk?d7K">
<value name="IF">
<block type="on_source" id="%dxdS.MEsY+f|/Qk?|ob">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="THEN">
<block type="text" id="fyKg@gT*NW#Ad%0-/q4{">
<field name="TEXT">an</field>
</block>
</value>
<value name="ELSE">
<block type="text" id="u6./+x-Nlhy`HA8M|s9I">
<field name="TEXT">aus</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</xml>