<xml xmlns="https://developers.google.com/blockly/xml">
  <variables>
    <variable id="+,CP+_uq0*1=v8@Re#S~">Monat</variable>
  </variables>
  <block type="comment" id="AN@.9y9]AcYv?A3R5+!I" x="-362" y="-962">
    <field name="COMMENT">Strom Monatsverbrauch</field>
    <next>
      <block type="variables_set" id="E-?KQiNw.Vv0rdt.PZ%0">
        <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
        <value name="VALUE">
          <block type="math_number" id="O.GBoZLb|JKbyHrq,K(X">
            <field name="NUM">0</field>
          </block>
        </value>
        <next>
          <block type="schedule" id="3Kooa)jWvC}nz814XmII">
            <field name="SCHEDULE">{"time":{"start":"00:00","end":"23:59","mode":"hours","interval":1},"period":{"days":1}}</field>
            <statement name="STATEMENT">
              <block type="variables_set" id="n|/h;+EO@^b(~M!:3lt]">
                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                <value name="VALUE">
                  <block type="time_get" id="+L6*;OEcP)p}]W.h!r%o">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                    <field name="OPTION">M</field>
                  </block>
                </value>
                <next>
                  <block type="debug" id="CWlgXiW-2fwhCkLJ%yg4">
                    <field name="Severity">info</field>
                    <value name="TEXT">
                      <shadow type="text" id="st_D}5R;oQn6@)Q!9,*z">
                        <field name="TEXT">test</field>
                      </shadow>
                      <block type="text_join" id="a!7N,3[t1VJQ]6{7Km]z">
                        <mutation items="2"></mutation>
                        <value name="ADD0">
                          <block type="text" id="0/di#:3iM+ToQq8lgYNq">
                            <field name="TEXT">Strom Monat = </field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="-#d,U1,mnz)sl{X)3L^]">
                            <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="controls_if" id="rpmL?~_%2T_cK_JC=ePh">
                        <mutation elseif="11"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="tqsjEyAr4ftRTG~#dwN0">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="GOgbXY4_MjiJ;bW$Gv2W">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="$nSKgK#_8/HuyO0fi4SF">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="update" id="hE*8H^+G(5KTZd*Jk?uU">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.01</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="l](#j]D@QyxS$FZ]dEyz">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_compare" id="F$)z*v^eV%GE+m#:1#LG">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="yw6[H,)yn%mZ7?k%#Z9!">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="R]VhJYrHaEFW5*ZAOjW(">
                                <field name="NUM">2</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="update" id="W/aa)!9!qEY=^jq8y%qx">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.02</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="FlJG[zxXL+73H1daKHM)">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF2">
                          <block type="logic_compare" id="ZbKv0Ac@}XV2|c=+%9$#">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="y:qvHG+=K3SPVaP6;$Bk">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="Kw.6Kl$MQ0xK|t)qNrJf">
                                <field name="NUM">3</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO2">
                          <block type="update" id="K.]_{3,yI{4L]bS[yNK_">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.03</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="EV[gp%C9eTt?9M3lL?Y0">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF3">
                          <block type="logic_compare" id="gAP]0|:{tY~5P^Iz/Xe/">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="S|9DI-je_3Ty]U-_P.%-">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="ZH)k;O3O6~ht/Xu|PpgC">
                                <field name="NUM">4</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO3">
                          <block type="update" id="7$RR([.nFrj}*,_J)(c0">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.04</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="#[_%prfTALwKPhtOoZ=w">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF4">
                          <block type="logic_compare" id="hw:Ip}PT:M8W:11-((A0">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="1f/{PBjapOO-F`WL(9{O">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="czJ*/D}L~iI$/08;|680">
                                <field name="NUM">5</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO4">
                          <block type="update" id="KvG({Zc99)1K(hhEv!db">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.05</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="yatx}}9;3suCKpfhH1|p">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF5">
                          <block type="logic_compare" id="psT}WfFn30p`bRj[A0#/">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="mf_L^2*VNm24$rY$%6qc">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="ykf2@Zcvc;(QhVoDw!Gv">
                                <field name="NUM">6</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO5">
                          <block type="update" id="jPl~k3XnIEG?y`JC,0)K">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.06</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="J1KlDj%l*Al@z/~{^cs]">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF6">
                          <block type="logic_compare" id="yXmpX?9-fa]./*$u?_ym">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id=":SL8DJU%7n@U96$CvU[.">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="3PdpRr`wIp`64BhzBd6)">
                                <field name="NUM">7</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO6">
                          <block type="update" id=";AjWH[F{t9lKZCjGlbi?">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.07</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="p(avYXDI_22MhTAbC@X]">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF7">
                          <block type="logic_compare" id="YzB[BT#h~yb!A|3YdSFK">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="Ud5-NSG$Up3Yt+Gd.3dm">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="T$76g@9.t*-l}%=*;1)P">
                                <field name="NUM">8</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO7">
                          <block type="update" id="V16b`5e~~Oc!di)XXgZZ">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.08</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="Py511I}I(4:w4;XB~|~}">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF8">
                          <block type="logic_compare" id="^jq]kA7}USIDPqe2Rz4x">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="GKT@6`{Zz{Oc1Bg*#_j(">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="4Ip1HN:Yz5@g2utIYDl,">
                                <field name="NUM">9</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO8">
                          <block type="update" id="X;=bBMopV7#OHHP;7H?6">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.09</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="|D_(%]hvOZg~MLA*~tY~">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF9">
                          <block type="logic_compare" id="8$W{Uz=Y#Q}(:yVa?~d]">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="+G0m*[:_!Sb6O{7E8.e_">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="pM_g7t-m*qFnABEs{ke:">
                                <field name="NUM">10</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO9">
                          <block type="update" id="JfEL:4(-57-S(%N?3E0N">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.10</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="eAuTLV#i*9nSl;_^!#;K">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF10">
                          <block type="logic_compare" id="6a;m!PU*.tTu(Xbo~iNz">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="lz.)~Ml:fL($qZF9ipBZ">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="aA1,ygn4V+,!u}xtYaep">
                                <field name="NUM">11</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO10">
                          <block type="update" id="y7X,3-Ky{!e7mWT8_F!r">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.11</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="y{8L])/[{33]RZ[K`Wh;">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF11">
                          <block type="logic_compare" id=";TbuzY3z_y)AAFg.w[0z">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="pqbQnauuEcx*tv5~FCt=">
                                <field name="VAR" id="+,CP+_uq0*1=v8@Re#S~">Monat</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="ql}SWiRuE]sBly#oYd,A">
                                <field name="NUM">12</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO11">
                          <block type="update" id="?+Ziz|MnbJ#Tz0gF0$vx">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.12</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="get_value" id="(i`-BejE*WBTF,OEpLL3">
                                <field name="ATTR">val</field>
                                <field name="OID">sonoff.0.Stromzähler.DD3_Verbrauch Monat</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </next>
  </block>
  <block type="comment" id="?/Zv;m+zy~govE.1A*w3" x="-337" y="213">
    <field name="COMMENT">Jahreswechsel Einträge Löschen</field>
    <next>
      <block type="schedule" id="31Z*s@S:5a#w(/^48hu:">
        <field name="SCHEDULE">0 0 1 1 *</field>
        <statement name="STATEMENT">
          <block type="update" id="m0)Vp=Z,dQz9=H!UifhU">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.01</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="math_number" id="-Mz3%5Gx!OyeG(l;*R~4">
                <field name="NUM">0</field>
              </block>
            </value>
            <next>
              <block type="update" id="4HX=149LZCJiNWS}Mq|b">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.02</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="math_number" id="~tLX.,peEN)H,QjV3WSP">
                    <field name="NUM">0</field>
                  </block>
                </value>
                <next>
                  <block type="update" id="2|]sbtUYz(Ymszi}SI/~">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.03</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="M5tOn$n)/FybI``AVZ.,">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="update" id=")-KbZWQ:Pq`9PHJn+N/a">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.04</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="dv7U+opYB@E/CiFM(CQv">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="update" id="`O$S1}!_x.]Q!,7wgO%[">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.05</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="XbY,1Ex[?w7ynvYpKxso">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                            <next>
                              <block type="update" id="!EE-}Zfemz{?dpttIpvM">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.06</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="pTKF5^B;9nU]xK%1F;}u">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="update" id="YTS8Sz@Y@ITJnc??%Bd-">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.07</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="ZZj9VM%ey8c8StuQjb7;">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="update" id="U;Kn[aCDAU%zR][=0XAg">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.08</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="G3%GF|A5yA=jf6AD7W,;">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="update" id="?VO+nX8/Ihv#R8s[II0Z">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.09</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="M|76@Bpilu~AT8.O;p}f">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="update" id="41}*Zbgyj%@4k/sPj^9x">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.10</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="+!,C1{Qtao|P4|]pFD^x">
                                                    <field name="NUM">0</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="update" id="h@enuX[hSI1s.D|B)zP$">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.11</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id="x/[$v?[+m[6E!I:4dzlc">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="update" id="^`/,ypYbyVj;gyv`%M;:">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">0_userdata.0.Stromverbrauch.Strom_Monat.12</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id="S(TEy3S(I$4eJ?am4CKS">
                                                            <field name="NUM">0</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </next>
  </block>
</xml>