<xml xmlns="http://www.w3.org/1999/xhtml">
  <variables>
    <variable type="" id=",J*({3o~X3%T^|N6t+oK">Alter_Wert_Stromverbrauchszaehler</variable>
    <variable type="" id="*6zvCnClicNgc!{|Tqno">Aktueller_Zaehlerstand</variable>
    <variable type="" id="yMi#[M)2?*P?P@wp:%}t">Alter_Wert_ZählerstandEinspeisung</variable>
    <variable type="" id="T4+i!+8pa7!-];[}^7ep">Aktueller_ZählerstandEinspeisung</variable>
    <variable type="" id="MqX@mzOW6MgGYG61/]c;">Alter_Wert_ZaehlerstandGesamtproduktion</variable>
    <variable type="" id="Gtfa=qx*sIw|fNj2qMTr">Aktueller_Wert_Gesamtproduktion</variable>
    <variable type="undefined" id="timeout">timeout</variable>
    <variable type="undefined" id="timeout2">timeout2</variable>
  </variables>
  <block type="schedule" id="UO0gJ{~PR3E8Qj/2U-pj" x="-137" y="-362">
    <field name="SCHEDULE">59 23 * * *</field>
    <statement name="STATEMENT">
      <block type="variables_set" id="PyZpF?q2f@fjB|MT}e#A">
        <field name="VAR" id=",J*({3o~X3%T^|N6t+oK" variabletype="">Alter_Wert_Stromverbrauchszaehler</field>
        <value name="VALUE">
          <block type="get_value" id="x!Kgwsh[pKPM9`j?!UAq">
            <field name="ATTR">val</field>
            <field name="OID">javascript.0.ZaehlerstandStromverbrauch_Vorabend</field>
          </block>
        </value>
        <next>
          <block type="variables_set" id="Ah}T;ksh,V67:hr41lUj">
            <field name="VAR" id="*6zvCnClicNgc!{|Tqno" variabletype="">Aktueller_Zaehlerstand</field>
            <value name="VALUE">
              <block type="get_value" id="V2gbH`0oGc@XVq!LU,0I">
                <field name="ATTR">val</field>
                <field name="OID">fronius.0.meter.0.EnergyReal_WAC_Sum_Consumed</field>
              </block>
            </value>
            <next>
              <block type="control" id="kg:P%wPz9X+;bUIBPRk7">
                <mutation delay_input="false"></mutation>
                <field name="OID">javascript.0.ZaehlerstandStromverbrauch_Vorabend</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="get_value" id="LNyg/IgNq@FFQhyL1pKZ">
                    <field name="ATTR">val</field>
                    <field name="OID">fronius.0.meter.0.EnergyReal_WAC_Sum_Consumed</field>
                  </block>
                </value>
                <next>
                  <block type="control" id="ImxF`0vA?,}^+wK4@D#B">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">javascript.0.Stromverbrauchtaeglich</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_arithmetic" id="8*ZF?:@wWX~Yve^|p0HW">
                        <field name="OP">MINUS</field>
                        <value name="A">
                          <shadow type="math_number" id="HM#WA^-a?fs643eCW:fu">
                            <field name="NUM">0</field>
                          </shadow>
                          <block type="variables_get" id="Vd/GnS_+[7sfz5vSI*-G">
                            <field name="VAR" id="*6zvCnClicNgc!{|Tqno" variabletype="">Aktueller_Zaehlerstand</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="eVKQ,]um@kKFFNeTBCk6">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id=";q3w6;/Wms69XuRCldC0">
                            <field name="VAR" id=",J*({3o~X3%T^|N6t+oK" variabletype="">Alter_Wert_Stromverbrauchszaehler</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="debug" id="KjHt2a0)/sU8eYRZkYYM">
                        <field name="Severity">log</field>
                        <value name="TEXT">
                          <shadow type="text" id="st?YebO0.D+54#!gAt0m">
                            <field name="TEXT">Strombezugverbrauch heute:</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="debug" id="@w[[jwNLm.9BZPDD,5Ue">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                              <shadow type="text" id="S[gefBacQ:?bc,p-(hb0">
                                <field name="TEXT">test</field>
                              </shadow>
                              <block type="math_arithmetic" id="!RDxhB@@.M-er9WL*HhE">
                                <field name="OP">MINUS</field>
                                <value name="A">
                                  <shadow type="math_number" id="HM#WA^-a?fs643eCW:fu">
                                    <field name="NUM">0</field>
                                  </shadow>
                                  <block type="variables_get" id=",XZQv#2C(exg+v|nY2_=">
                                    <field name="VAR" id="*6zvCnClicNgc!{|Tqno" variabletype="">Aktueller_Zaehlerstand</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="eVKQ,]um@kKFFNeTBCk6">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="variables_get" id="}A1!r[.k}ruG{%Cws_j;">
                                    <field name="VAR" id=",J*({3o~X3%T^|N6t+oK" variabletype="">Alter_Wert_Stromverbrauchszaehler</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="{{wDv-{*,-]]I#jA~Pj`">
                                <field name="VAR" id="yMi#[M)2?*P?P@wp:%}t" variabletype="">Alter_Wert_ZählerstandEinspeisung</field>
                                <value name="VALUE">
                                  <block type="get_value" id="=7v7%=-wB9NXTh;ih/cV">
                                    <field name="ATTR">val</field>
                                    <field name="OID">javascript.0.ZaehlerstandEinspeisung_Vorabend</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id="U{NTUHSN//lyT.g3+fca">
                                    <field name="VAR" id="T4+i!+8pa7!-];[}^7ep" variabletype="">Aktueller_ZählerstandEinspeisung</field>
                                    <value name="VALUE">
                                      <block type="get_value" id="Q7I|k#k|u.x7~PyW](e7">
                                        <field name="ATTR">val</field>
                                        <field name="OID">fronius.0.meter.0.EnergyReal_WAC_Sum_Produced</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="control" id="s[Z@y6!LxAPW6bYRsrTu">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">javascript.0.ZaehlerstandEinspeisung_Vorabend</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="get_value" id="=(E;(8(!iBLl}U4^MXE,">
                                            <field name="ATTR">val</field>
                                            <field name="OID">fronius.0.meter.0.EnergyReal_WAC_Sum_Produced</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="znwbpj[_5JOg4s,B:;;6">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">javascript.0.Einspeisungtaeglich</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_arithmetic" id=";g[_SH:##wb,+8ZlSMd@">
                                                <field name="OP">MINUS</field>
                                                <value name="A">
                                                  <shadow type="math_number" id="HM#WA^-a?fs643eCW:fu">
                                                    <field name="NUM">0</field>
                                                  </shadow>
                                                  <block type="variables_get" id="8#fGoENAU3p.81i`]?Qh">
                                                    <field name="VAR" id="T4+i!+8pa7!-];[}^7ep" variabletype="">Aktueller_ZählerstandEinspeisung</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="eVKQ,]um@kKFFNeTBCk6">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="NSe0=[Y(tYb6i#{H]7yB">
                                                    <field name="VAR" id="yMi#[M)2?*P?P@wp:%}t" variabletype="">Alter_Wert_ZählerstandEinspeisung</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="debug" id="tv8[~Ck]L_0sB|p3HPRy">
                                                <field name="Severity">log</field>
                                                <value name="TEXT">
                                                  <shadow type="text" id="9,zveGu*Uyn^6[h%Aw~v">
                                                    <field name="TEXT">Stromeinspeisung heute:</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="debug" id="IU*Vn]D_]HIKGBR7/adU">
                                                    <field name="Severity">log</field>
                                                    <value name="TEXT">
                                                      <shadow type="text" id="S[gefBacQ:?bc,p-(hb0">
                                                        <field name="TEXT">test</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="]p|St]6k9s)~?N{vlaA+">
                                                        <field name="OP">MINUS</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="HM#WA^-a?fs643eCW:fu">
                                                            <field name="NUM">0</field>
                                                          </shadow>
                                                          <block type="variables_get" id="AStaBO|[CsBU2H=1Ej^2">
                                                            <field name="VAR" id="T4+i!+8pa7!-];[}^7ep" variabletype="">Aktueller_ZählerstandEinspeisung</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="eVKQ,]um@kKFFNeTBCk6">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id=":`blS{JxWvjD`|{?|+ed">
                                                            <field name="VAR" id="yMi#[M)2?*P?P@wp:%}t" variabletype="">Alter_Wert_ZählerstandEinspeisung</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="variables_set" id="q}1R:FJ9eIh0N+1fvFr7">
                                                        <field name="VAR" id="MqX@mzOW6MgGYG61/]c;" variabletype="">Alter_Wert_ZaehlerstandGesamtproduktion</field>
                                                        <value name="VALUE">
                                                          <block type="get_value" id="q-}V)DE(zWe~Cx_mU.f1">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">javascript.0.GesamtproduktionZaehlerstand_Vorabend</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="variables_set" id="yC}]BkJ19ZR,GM{!^Ugj">
                                                            <field name="VAR" id="Gtfa=qx*sIw|fNj2qMTr" variabletype="">Aktueller_Wert_Gesamtproduktion</field>
                                                            <value name="VALUE">
                                                              <block type="get_value" id="izg`XXp,@#WisFhJJW]b">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">fronius.0.inverter.1.TOTAL_ENERGY</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="^gs`besGoyTr(NiA*!:k">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">javascript.0.GesamtproduktionZaehlerstand_Vorabend</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="get_value" id="K]ISDxHV/wd5K*^icw6O">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">fronius.0.inverter.1.TOTAL_ENERGY</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="2blKM/muSn:j?/^05[V^">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">javascript.0.Gesamtproduktiontaeglich</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_arithmetic" id="Q;PHr},tTuNv=w/l(*O1">
                                                                        <field name="OP">MINUS</field>
                                                                        <value name="A">
                                                                          <shadow type="math_number" id="HM#WA^-a?fs643eCW:fu">
                                                                            <field name="NUM">0</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="@uEj!uWB.6Yxxgsoy~G0">
                                                                            <field name="VAR" id="Gtfa=qx*sIw|fNj2qMTr" variabletype="">Aktueller_Wert_Gesamtproduktion</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id="eVKQ,]um@kKFFNeTBCk6">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="variables_get" id="~o|TUm^J(PRYSRK,TV/)">
                                                                            <field name="VAR" id="MqX@mzOW6MgGYG61/]c;" variabletype="">Alter_Wert_ZaehlerstandGesamtproduktion</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="debug" id="5rF)zwo21BlUWRSp0Vd*">
                                                                        <field name="Severity">log</field>
                                                                        <value name="TEXT">
                                                                          <shadow type="text" id="Zy_7J@;os=PdeJAJOEN[">
                                                                            <field name="TEXT">Stromproduktion heute:</field>
                                                                          </shadow>
                                                                        </value>
                                                                        <next>
                                                                          <block type="debug" id="%:ygsNeNm;S[EgqM,`DW">
                                                                            <field name="Severity">log</field>
                                                                            <value name="TEXT">
                                                                              <shadow type="text" id="S[gefBacQ:?bc,p-(hb0">
                                                                                <field name="TEXT">test</field>
                                                                              </shadow>
                                                                              <block type="math_arithmetic" id="Tj|mf#CC+-VpwRJ4w@+O">
                                                                                <field name="OP">MINUS</field>
                                                                                <value name="A">
                                                                                  <shadow type="math_number" id="HM#WA^-a?fs643eCW:fu">
                                                                                    <field name="NUM">0</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="NUQ0lH4o3Cj_y65MnGv0">
                                                                                    <field name="VAR" id="Gtfa=qx*sIw|fNj2qMTr" variabletype="">Aktueller_Wert_Gesamtproduktion</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <shadow type="math_number" id="eVKQ,]um@kKFFNeTBCk6">
                                                                                    <field name="NUM">1</field>
                                                                                  </shadow>
                                                                                  <block type="variables_get" id="Hnp8i771dH[icQ=ED|gW">
                                                                                    <field name="VAR" id="MqX@mzOW6MgGYG61/]c;" variabletype="">Alter_Wert_ZaehlerstandGesamtproduktion</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="timeouts_settimeout" id="LtaIY2_0CUI|Cf=u)@Uw">
                                                                                <field name="NAME">timeout</field>
                                                                                <field name="DELAY">2000</field>
                                                                                <field name="UNIT">ms</field>
                                                                                <statement name="STATEMENT">
                                                                                  <block type="control" id="|C3e%TATB/fqo){x|sxf">
                                                                                    <mutation delay_input="false"></mutation>
                                                                                    <field name="OID">javascript.0.Stromdirektverbrauch</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="math_arithmetic" id="Q?:vJdj^=%22|_ZR0zV:">
                                                                                        <field name="OP">MINUS</field>
                                                                                        <value name="A">
                                                                                          <shadow type="math_number" id="|{-t?g:.E*.Pkk*0;c{5">
                                                                                            <field name="NUM">1</field>
                                                                                          </shadow>
                                                                                          <block type="get_value" id="d0O=d{AP@rDNEQ^?CxnR">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">javascript.0.Gesamtproduktiontaeglich</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <shadow type="math_number" id="(af#kXu!HoiB,;-Rbt=J">
                                                                                            <field name="NUM">1</field>
                                                                                          </shadow>
                                                                                          <block type="get_value" id="o3X1ehJeaJ6BrQ1xl:wl">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">javascript.0.Einspeisungtaeglich</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="debug" id=",kZ7e{l9^(gvXDA|`FgX">
                                                                                        <field name="Severity">log</field>
                                                                                        <value name="TEXT">
                                                                                          <shadow type="text" id="/0.;43~E_X%0!pw*m};u">
                                                                                            <field name="TEXT">Stromdirektverbrauch heute:</field>
                                                                                          </shadow>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="debug" id="-ca9HcC#=jXis}4S5{_5">
                                                                                            <field name="Severity">log</field>
                                                                                            <value name="TEXT">
                                                                                              <shadow type="text" id="S[gefBacQ:?bc,p-(hb0">
                                                                                                <field name="TEXT">test</field>
                                                                                              </shadow>
                                                                                              <block type="math_arithmetic" id="G2xx^mP#Tdh~]#`(pG#7">
                                                                                                <field name="OP">MINUS</field>
                                                                                                <value name="A">
                                                                                                  <shadow type="math_number" id="|{-t?g:.E*.Pkk*0;c{5">
                                                                                                    <field name="NUM">1</field>
                                                                                                  </shadow>
                                                                                                  <block type="get_value" id="9HEVIJpC*+.km1R.=GJ@">
                                                                                                    <field name="ATTR">val</field>
                                                                                                    <field name="OID">javascript.0.Gesamtproduktiontaeglich</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="B">
                                                                                                  <shadow type="math_number" id="(af#kXu!HoiB,;-Rbt=J">
                                                                                                    <field name="NUM">1</field>
                                                                                                  </shadow>
                                                                                                  <block type="get_value" id="eIq@Iu/t!S_k8^!JbP].">
                                                                                                    <field name="ATTR">val</field>
                                                                                                    <field name="OID">javascript.0.Einspeisungtaeglich</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                            <next>
                                                                                              <block type="timeouts_settimeout" id="mLks~()pi*xt7.ZqfC)a">
                                                                                                <field name="NAME">timeout2</field>
                                                                                                <field name="DELAY">2000</field>
                                                                                                <field name="UNIT">ms</field>
                                                                                                <statement name="STATEMENT">
                                                                                                  <block type="control" id="PpQ.Ki8V-tHaekqBiz.1">
                                                                                                    <mutation delay_input="false"></mutation>
                                                                                                    <field name="OID">javascript.0.Gesamtverbrauch_taeglich</field>
                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                    <value name="VALUE">
                                                                                                      <block type="math_arithmetic" id="F}xDR+N2Uax{c`la0*?!">
                                                                                                        <field name="OP">ADD</field>
                                                                                                        <value name="A">
                                                                                                          <shadow type="math_number" id="|{-t?g:.E*.Pkk*0;c{5">
                                                                                                            <field name="NUM">1</field>
                                                                                                          </shadow>
                                                                                                          <block type="get_value" id="{]9A:_|ko[)(iGJB|TIz">
                                                                                                            <field name="ATTR">val</field>
                                                                                                            <field name="OID">javascript.0.Stromdirektverbrauch</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <value name="B">
                                                                                                          <shadow type="math_number" id="(af#kXu!HoiB,;-Rbt=J">
                                                                                                            <field name="NUM">1</field>
                                                                                                          </shadow>
                                                                                                          <block type="get_value" id="r8qxb-dnP]1U:6kGn+6|">
                                                                                                            <field name="ATTR">val</field>
                                                                                                            <field name="OID">javascript.0.Stromverbrauchtaeglich</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <next>
                                                                                                      <block type="debug" id="(PX.Uaa6d?MTWMY08L=C">
                                                                                                        <field name="Severity">log</field>
                                                                                                        <value name="TEXT">
                                                                                                          <shadow type="text" id="^YAxDybex6rD6IiH4O:B">
                                                                                                            <field name="TEXT">Stromgesamtverbrauch heute:</field>
                                                                                                          </shadow>
                                                                                                        </value>
                                                                                                        <next>
                                                                                                          <block type="debug" id="[e^6{C3}svfz3BUkm}G~">
                                                                                                            <field name="Severity">log</field>
                                                                                                            <value name="TEXT">
                                                                                                              <shadow type="text" id="S[gefBacQ:?bc,p-(hb0">
                                                                                                                <field name="TEXT">test</field>
                                                                                                              </shadow>
                                                                                                              <block type="math_arithmetic" id=")A;w2sh@knw04IFXS-a#">
                                                                                                                <field name="OP">ADD</field>
                                                                                                                <value name="A">
                                                                                                                  <shadow type="math_number" id="|{-t?g:.E*.Pkk*0;c{5">
                                                                                                                    <field name="NUM">1</field>
                                                                                                                  </shadow>
                                                                                                                  <block type="get_value" id="lo}bCD*@z93oRtqc~qu8">
                                                                                                                    <field name="ATTR">val</field>
                                                                                                                    <field name="OID">javascript.0.Stromdirektverbrauch</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                                <value name="B">
                                                                                                                  <shadow type="math_number" id="(af#kXu!HoiB,;-Rbt=J">
                                                                                                                    <field name="NUM">1</field>
                                                                                                                  </shadow>
                                                                                                                  <block type="get_value" id="]2Ox;rYM]ooU2.!gz;}-">
                                                                                                                    <field name="ATTR">val</field>
                                                                                                                    <field name="OID">javascript.0.Stromverbrauchtaeglich</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </next>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </statement>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </next>
                                                                                      </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>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>