<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="~bv5l}lJAJ*QvjiCf8}D">kWh</variable>
<variable id="``;8?y6]sW`g$l)FEf+$">kosten</variable>
<variable id="1FxLO6;u5+HXu78D?dr~">kWhStunde</variable>
</variables>
<block type="comment" id="C^+af*9Nxs1NE.5U$+$T" x="312" y="63">
<field name="COMMENT">Stromzähler</field>
</block>
<block type="variables_set" id="f(Impw@FbLMot:4tHn9)" x="63" y="88">
<field name="VAR" id="~bv5l}lJAJ*QvjiCf8}D">kWh</field>
<value name="VALUE">
<block type="get_value" id="%zwH}7swA`wsSE_xpl!+">
<field name="ATTR">val</field>
<field name="OID">wiffi-wz.0.root.10_1_30_10.w_counter_1</field>
</block>
</value>
<next>
<block type="variables_set" id="8QjP{,ABWGo{?@kz]]h/">
<field name="VAR" id="``;8?y6]sW`g$l)FEf+$">kosten</field>
<value name="VALUE">
<block type="math_number" id="krcx/{eaKV3ruP!2S.-m">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="on_ext" id="I|k$!JS[Z/E3JHtWDT_w">
<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="+bCQzw0[Z0*;H;%:CHoL">
<field name="oid">wiffi-wz.0.root.10_1_30_10.w_counter_1</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="G1EVoPhC%xx|%num]%Uz">
<value name="IF0">
<block type="on_source" id=",XiBVQbvl@]c[k9hE72P">
<field name="ATTR">state.val</field>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="{w-Wf*y?0BX-i]qsCny?">
<field name="VAR" id="~bv5l}lJAJ*QvjiCf8}D">kWh</field>
<value name="VALUE">
<block type="get_value" id="|UlmN%RUxps9;3}ACco;">
<field name="ATTR">val</field>
<field name="OID">wiffi-wz.0.root.10_1_30_10.w_counter_1</field>
</block>
</value>
<next>
<block type="variables_set" id="L/}|ZJ){q4cQK`H7bI9M">
<field name="VAR" id="``;8?y6]sW`g$l)FEf+$">kosten</field>
<value name="VALUE">
<block type="math_number" id="w,=2S;vWAQ]y(r3N#JvI">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="math_change" id="[15V=b-1%miyl`w}tky0">
<field name="VAR" id="``;8?y6]sW`g$l)FEf+$">kosten</field>
<value name="DELTA">
<shadow type="math_number" id="8Sn,@`@iT_M2gG|:phv)">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="1-g856BSw%8`7bV5y^YX" inline="false">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id=",YmSizo08~k2Kdu]nm_I">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="L2N[9lo,YwlVz;rraw4f">
<field name="ATTR">val</field>
<field name="OID">tibberconnect.0.Homes.c9e2ebbe-ca02-4111-b9bf-726b93493aa5.CurrentPrice.total</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="J)vkcIKw#*]=8%=zSDVj">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="w%E~OkTN(e@o9+iVwvY0">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id=".Yu#^d7D,*$t_XzR/sDW">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="oJ6Yk,`3j%%Wz,379+M/">
<field name="VAR" id="~bv5l}lJAJ*QvjiCf8}D">kWh</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id=")yXjkl:.bV=bb2%|0N0;">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="kP=uU)x]NfpWx,=~f{s:">
<field name="NUM">126515.053</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="EGM}$Q:?(5ru_6[n~i0k">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Stromkosten.Gesamtstrom</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="=k~m{lCc~%Q6[:mU,amL">
<field name="VAR" id="``;8?y6]sW`g$l)FEf+$">kosten</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
<next>
<block type="on_ext" id="xY{E]_r$nK7:GmjKI4HI">
<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="jC5AUn]cZ)!dR|zPhbd4">
<field name="oid">tibberconnect.0.Homes.c9e2ebbe-ca02-4111-b9bf-726b93493aa5.CurrentPrice.total</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id=")cis05nu?2tVd%5.qDGf">
<field name="VAR" id="1FxLO6;u5+HXu78D?dr~">kWhStunde</field>
<value name="VALUE">
<block type="get_value" id="p}-xZFGJ4Azjj]*D3~pu">
<field name="ATTR">val</field>
<field name="OID">wiffi-wz.0.root.10_1_30_10.w_counter_1</field>
</block>
</value>
<next>
<block type="math_change" id="@e1vcrk3i[E#VpJ)R1Hc">
<field name="VAR" id="``;8?y6]sW`g$l)FEf+$">kosten</field>
<value name="DELTA">
<shadow type="math_number" id=",NINoZ;(8H(uZp/4U=Q~">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="dC^+t{P9f+Sx9w;|nk@`">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number" id="ukRC~;/{9!0o]i{xymI*">
<field name="NUM">1</field>
</shadow>
<block type="on_source" id="qj/d~$DMnCBwc7^UnZz0">
<field name="ATTR">oldState.val</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="math_arithmetic" id="4,Qb4`;adLZ?y?[yP3uT">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number" id="eXhLomaNY*[fDJ|pMO8u">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="c$SF*W,GMxORc|`Vu._b">
<field name="VAR" id="1FxLO6;u5+HXu78D?dr~">kWhStunde</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="variables_get" id="+2sd7tZ5/XyOM%R*jOtI">
<field name="VAR" id="~bv5l}lJAJ*QvjiCf8}D">kWh</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="IMz-bO[CwqJ)(W1^7CQ4">
<field name="VAR" id="~bv5l}lJAJ*QvjiCf8}D">kWh</field>
<value name="VALUE">
<block type="variables_get" id="N`J{8y)MP?U#!R]a6t]l">
<field name="VAR" id="1FxLO6;u5+HXu78D?dr~">kWhStunde</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
<block type="comment" id="e5c3?+aV)u7!m9UA;wdp" x="512" y="262">
<field name="COMMENT">Strompreis</field>
</block>
<block type="comment" id="4=I:Bf;(Nhqz_GM=b0.S" x="612" y="312">
<field name="COMMENT">Zählerstand zu Jahresbeginn</field>
</block>
<block type="on_ext" id="{S+ieK;*:-7*^WRqLx.e" x="115" y="972">
<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=".FpvT~gI9q1M^BUf}]wH">
<field name="oid">0_userdata.0.Tibber.verbrauchte-Kwh</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="update" id=":opV82uV:D8*8kDt$0xv">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">0_userdata.0.Tibber.verbrauchte_Kwh_gesamt</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">2</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="*q+s@hq[DePBP3B^|V4K">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="[:VaP^P^EmQVkY}1Sva%">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="zgppA70QM!W@A.{/]Kix">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.verbrauchte_Kwh_gesamt</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="2FN_Orib60ub],,DZS+H">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.verbrauchte-Kwh</field>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
<block type="on_ext" id="tBmG-/JKxX_*w4KdWDbh" x="88" y="1238">
<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=")q6~lL^JKZdRQ;HXIV0~">
<field name="oid">0_userdata.0.Tibber.verbrauchte_Kwh_gesamt</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="update" id="xA*D=9/sy.zOp{3EasuY">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Tibber.Stromkosten_Tibber_Gesamt</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="H(|HOjm#Jd_fG9sqK|_R">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="lHbCy=:L?XI-1M]_j$8Y">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.Stromkosten_Tibber_Gesamt</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="z|/9gkc2z@zI}cj8$=bL">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.Stromkosten_Tibber</field>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="-HNLF,(twL$fMSn@]-eN">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Tibber.Stromkosten_Festpreis</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="E/6~-7Eb]ccHKE[|6wNB">
<field name="OP">MULTIPLY</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="YDMlssEP$|C9#H{1m|?w">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.verbrauchte-Kwh</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="wtrjOCDXo+7vhl=ktZpr">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.Strompreis_Festpreis</field>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="VkHBz-t+mU7.d{8W+G|G">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Tibber.Stromkosten_Festpreis_gesamt</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="RB`(yw-{r5uiL:a*0|GY">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="kzl5nM?F1L1kfskZ`g9p">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.Stromkosten_Festpreis_gesamt</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="d9bWX@W,,G7`T[x,}EX/">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.Stromkosten_Festpreis</field>
</block>
</value>
</block>
</value>
<next>
<block type="update" id="6:~X:]aqJoY1qRnzlWMX">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">0_userdata.0.Tibber.Ersparnis</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="8}tP5Pmz:+#H.=Xfuv#r">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="{PB|VZ+FG6!Q3%MYx)UM">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.Stromkosten_Tibber_Gesamt</field>
</block>
</value>
<value name="B">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id=";hm`/`LUvZ|8mA,YrR({">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Tibber.Stromkosten_Festpreis_gesamt</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>