<block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="0(:[c[tL-|nHl`v3wPBb" x="113" y="187">
  <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="m@VB{hnnLf|KT)NJFR2o">
      <field name="oid">growatt.0.1030054.devices.DFK0BKD00C.historyLast.ppv</field>
    </shadow>
  </value>
  <statement name="STATEMENT">
    <block type="variables_set" id="fU@KEbIA}1y#ynOyjF::">
      <field name="VAR" id="F8f4@I|1PZp4|e+=J8Fm">Solarertrag</field>
      <value name="VALUE">
        <block type="get_value" id="?XsSJGH-s:#O,^k;$W1l">
          <field name="ATTR">val</field>
          <field name="OID">growatt.0.1030054.devices.DFK0BKD00C.historyLast.ppv</field>
        </block>
      </value>
      <next>
        <block type="variables_set" id="Wn]mq1MbjI8$mBK|)$y2">
          <field name="VAR" id="8[5Z+B9@E/g_W0flQ+4%">Verbrauch</field>
          <value name="VALUE">
            <block type="math_arithmetic" id="rsH0@-UN]OhFBB[cwR2j">
              <field name="OP">ADD</field>
              <value name="A">
                <shadow type="math_number">
                  <field name="NUM">1</field>
                </shadow>
                <block type="get_value" id=",$r*seBD9Jfui?T}?81#">
                  <field name="ATTR">val</field>
                  <field name="OID">shelly.1.SHEM-3#3494547556B3#1.Emeter0.Power</field>
                </block>
              </value>
              <value name="B">
                <shadow type="math_number">
                  <field name="NUM">1</field>
                </shadow>
                <block type="math_arithmetic" id="f/o=G@bUdqmFIq`dv;8e">
                  <field name="OP">ADD</field>
                  <value name="A">
                    <shadow type="math_number">
                      <field name="NUM">1</field>
                    </shadow>
                    <block type="get_value" id="2so:aWV6dMDIr5uej.-7">
                      <field name="ATTR">val</field>
                      <field name="OID">shelly.1.SHEM-3#3494547556B3#1.Emeter1.Power</field>
                    </block>
                  </value>
                  <value name="B">
                    <shadow type="math_number">
                      <field name="NUM">1</field>
                    </shadow>
                    <block type="get_value" id="{VxTQ,!i|4*FN@6c.ugu">
                      <field name="ATTR">val</field>
                      <field name="OID">shelly.1.SHEM-3#3494547556B3#1.Emeter2.Power</field>
                    </block>
                  </value>
                </block>
              </value>
            </block>
          </value>
          <next>
            <block type="variables_set" id="RXhp503vl$!j}7/]|fZ,">
              <field name="VAR" id="0zrG@3W%(GQDN;F90RXi">Schalter3</field>
              <value name="VALUE">
                <block type="get_value" id="]MgryB]W!G^tng-ho(G=">
                  <field name="ATTR">val</field>
                  <field name="OID">shelly.0.shellyplus1#7c87ce725954#1.Relay0.Switch</field>
                </block>
              </value>
              <next>
                <block type="variables_set" id="ILRx*Z1vqLWhS88`tra`">
                  <field name="VAR" id="X}evr81e[c]vk,{VOl}Q">Schalter2</field>
                  <value name="VALUE">
                    <block type="get_value" id="GZOQ!IP#FCK.:HQlH0I{">
                      <field name="ATTR">val</field>
                      <field name="OID">shelly.0.shellyplus1#441793c4001c#1.Relay0.Switch</field>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id="GKJ8fVlw){|2x4Aqi}=9">
                      <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                      <value name="VALUE">
                        <block type="get_value" id="kdkmAu)?*+(jw@w+_);_">
                          <field name="ATTR">val</field>
                          <field name="OID">shelly.0.shellyplus1#7c87ce63d85c#1.Relay0.Switch</field>
                        </block>
                      </value>
                      <next>
                        <block type="controls_if" id="Ha2uyCL|_T^fO(;=Ka?r">
                          <value name="IF0">
                            <block type="logic_compare" id="AURDY)V3;G`V{y%ar`!@">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="variables_get" id="?k4-QlStK5KAbrX4OrtG">
                                  <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="}@I~e(ZL~f_U|:-~:u_L">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="controls_if" id="f/mpu4.m@JfyFKxeREyX">
                              <mutation else="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="6Sv4;DT/.iH3Y)}9UFu$">
                                  <field name="OP">GT</field>
                                  <value name="A">
                                    <block type="variables_get" id="fsho.N-[nVeXO5hV#jB_">
                                      <field name="VAR" id="F8f4@I|1PZp4|e+=J8Fm">Solarertrag</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_arithmetic" id="S$2I6#*nB(`vYe:Fh:9|">
                                      <field name="OP">ADD</field>
                                      <value name="A">
                                        <shadow type="math_number" id="Q,81P6/)I2TS@Pz]]m9D">
                                          <field name="NUM">3000</field>
                                        </shadow>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="variables_get" id="%o=x/^Q^;)kKt}y3eKQ*">
                                          <field name="VAR" id="8[5Z+B9@E/g_W0flQ+4%">Verbrauch</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="variables_set" id="=6Bp9$)E_*Hg2k:1Tm7~">
                                  <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="1}hShvAC5Z;-c^`hvPCu">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                              <statement name="ELSE">
                                <block type="controls_if" id=":Gu^z:_CL1AB9zE)rX#h">
                                  <value name="IF0">
                                    <block type="logic_compare" id="]+N5Y*W?}#|EJ`wZurYb">
                                      <field name="OP">LT</field>
                                      <value name="A">
                                        <block type="variables_get" id="wKBA@YjiCkeC3{bzX6N^">
                                          <field name="VAR" id="F8f4@I|1PZp4|e+=J8Fm">Solarertrag</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_arithmetic" id="7Hx`|s7)ps4jN)DPHY-o">
                                          <field name="OP">ADD</field>
                                          <value name="A">
                                            <shadow type="math_number" id="%E!u]8/HR-Af=C,r2EZ`">
                                              <field name="NUM">-300</field>
                                            </shadow>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="variables_get" id="Qe$*v:;cOD*f8R%D$e%$">
                                              <field name="VAR" id="8[5Z+B9@E/g_W0flQ+4%">Verbrauch</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="variables_set" id="3F8!StK1(;Mx+wX/a^z]">
                                      <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="!t^j^|w6m,L#tE#/X_(k">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id="SE4Cp=b^*K4GKrK{$72i">
                              <value name="IF0">
                                <block type="logic_compare" id="AqNUq3[^atzP;dD_$)v`">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="variables_get" id="GEq`J*0E_e5{pgxul/Aj">
                                      <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_operation" id="dcTz=JG5oU_:dcNBk:S)">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_boolean" id=",0@E|@8-XB1q![T[WRMO">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="5HC?vnXYJ}Mg7Nl;@/8^">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="variables_get" id="oi[4T1dC~fq.)OZnns}k">
                                              <field name="VAR" id="X}evr81e[c]vk,{VOl}Q">Schalter2</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id=".wYm1~TX$=)LN-#VfkEz">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="controls_if" id="iw6:hQVjyaI+%SrPnNf_">
                                  <mutation else="1"></mutation>
                                  <value name="IF0">
                                    <block type="logic_compare" id="5P[/!xZ:tEda67%80PX1">
                                      <field name="OP">GT</field>
                                      <value name="A">
                                        <block type="variables_get" id="{~^I[~.XN6#LI4:sPTfc">
                                          <field name="VAR" id="F8f4@I|1PZp4|e+=J8Fm">Solarertrag</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_arithmetic" id="xq;qo#F,?sl.M^ng4NVs">
                                          <field name="OP">ADD</field>
                                          <value name="A">
                                            <shadow type="math_number" id="[%7ej`nSzvN$o.PouQU@">
                                              <field name="NUM">3000</field>
                                            </shadow>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="variables_get" id="/`X_Bw_EDT3qjw;73$%z">
                                              <field name="VAR" id="8[5Z+B9@E/g_W0flQ+4%">Verbrauch</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="variables_set" id="~hqm|Sb$Y1dETW,$L.0d">
                                      <field name="VAR" id="X}evr81e[c]vk,{VOl}Q">Schalter2</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="~(+KU~]BaGrbjir%y!6G">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <statement name="ELSE">
                                    <block type="controls_if" id="QBG@*7!H/H!VKuUcXH;_">
                                      <value name="IF0">
                                        <block type="logic_compare" id="tUJOS:[y4%N3w!YtaDYy">
                                          <field name="OP">LT</field>
                                          <value name="A">
                                            <block type="variables_get" id="Jt`w]~F3g-AxObsX;taR">
                                              <field name="VAR" id="F8f4@I|1PZp4|e+=J8Fm">Solarertrag</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_arithmetic" id="R1BLV%C4MnkVXq]xhzHF">
                                              <field name="OP">ADD</field>
                                              <value name="A">
                                                <shadow type="math_number" id=":G:Z9YMNdFu%#.;-U}9N">
                                                  <field name="NUM">-300</field>
                                                </shadow>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="variables_get" id=",CL7iSd%=X887_s=ia4z">
                                                  <field name="VAR" id="8[5Z+B9@E/g_W0flQ+4%">Verbrauch</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id="Qm_!E2cJ2iJ4F2)#L0V)">
                                          <field name="VAR" id="X}evr81e[c]vk,{VOl}Q">Schalter2</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="oa{xsuTnKs=|%~gCT.da">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                              <next>
                                <block type="controls_if" id="j(K8EAy;x3n%eSXl|r1W">
                                  <value name="IF0">
                                    <block type="logic_compare" id="%(Y#.wN@y4TmpN(xlB{!">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="variables_get" id="Ot:{nqLfZf!J(c8$6h;!">
                                          <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_operation" id="CWOLx%Ol8O.MP|($4bkZ">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="logic_boolean" id="%6P~?WfSiF;h+nJ]8bsL">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_compare" id="eQA0H_tb;x^%w*u[@!1N">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="variables_get" id="_?-NG-ZwNf]T8dUAOl(O">
                                                  <field name="VAR" id="X}evr81e[c]vk,{VOl}Q">Schalter2</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_operation" id=",%X3lF{{T=,Z%?o?oa4]">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_boolean" id="15Ibm!.,{qDfPdTbH1x,">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_compare" id="S}Kq]m;g$y.{~|t#Yo^M">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="variables_get" id=",1!QZeBy2B2npqXP1;Kn">
                                                          <field name="VAR" id="0zrG@3W%(GQDN;F90RXi">Schalter3</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="#wa`QhPc|]o}(%L+DhXU">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="controls_if" id="[VbUao44||ndB%W5DO~,">
                                      <mutation else="1"></mutation>
                                      <value name="IF0">
                                        <block type="logic_compare" id=".+VK~dE08RxJ+d$IMY,[">
                                          <field name="OP">GT</field>
                                          <value name="A">
                                            <block type="variables_get" id=";D{Ay1te(vmq4r%C)rns">
                                              <field name="VAR" id="F8f4@I|1PZp4|e+=J8Fm">Solarertrag</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_arithmetic" id="LAaaW%dkJ0c`Zt?/Fd57">
                                              <field name="OP">ADD</field>
                                              <value name="A">
                                                <shadow type="math_number" id=";0#mAQ:42|qdV)Ko*1UJ">
                                                  <field name="NUM">3000</field>
                                                </shadow>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="variables_get" id="lwM/=iCmW;*2E8yX^Xa~">
                                                  <field name="VAR" id="8[5Z+B9@E/g_W0flQ+4%">Verbrauch</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id="li993Nn{;ii?y,Zn:}4^">
                                          <field name="VAR" id="0zrG@3W%(GQDN;F90RXi">Schalter3</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="NDTUopBS%LBBsu*6YE},">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                      <statement name="ELSE">
                                        <block type="controls_if" id="WfPq}gOHQ,7TO~Il[Xlq">
                                          <value name="IF0">
                                            <block type="logic_compare" id="ab3zTrB]IE);qftG@Ik0">
                                              <field name="OP">LT</field>
                                              <value name="A">
                                                <block type="variables_get" id="p{g_ban,h,0HEapQ#bIY">
                                                  <field name="VAR" id="F8f4@I|1PZp4|e+=J8Fm">Solarertrag</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_arithmetic" id="W?o7o:+YX~oO@3^q$pOs">
                                                  <field name="OP">ADD</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="{TX_K,BLb-F]m)o=ul](">
                                                      <field name="NUM">-300</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="variables_get" id="bT[og-{3EL~m-)cq85H.">
                                                      <field name="VAR" id="8[5Z+B9@E/g_W0flQ+4%">Verbrauch</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="variables_set" id="eEE)%.K:5@,iZbdXrk%L">
                                              <field name="VAR" id="0zrG@3W%(GQDN;F90RXi">Schalter3</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="`}L!qe610$XP}u`L~H,@">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="controls_if" id="8Y%T^!{7L=BMqeB,#c1$">
                                      <value name="IF0">
                                        <block type="logic_compare" id="%C)(/#3+RfbGbD+LjT;t">
                                          <field name="OP">NEQ</field>
                                          <value name="A">
                                            <block type="variables_get" id="hCI+wo@z8Emt/*|#w+|W">
                                              <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="get_value" id="cyA?3m|)eIb{v~0fr[5h">
                                              <field name="ATTR">val</field>
                                              <field name="OID">shelly.0.shellyplus1#7c87ce63d85c#1.Relay0.Switch</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="control" id="~%!i!p^F22%G*w45Ih|8">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">shelly.0.shellyplus1#7c87ce63d85c#1.Relay0.Switch</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="variables_get" id="R.YWx|kd0UN-QEKFmvM.">
                                              <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="controls_if" id="9i~2*z1r*mo9v20{R0z0">
                                          <value name="IF0">
                                            <block type="logic_compare" id="T_*xX8P{C:AC3#Uje$#1">
                                              <field name="OP">NEQ</field>
                                              <value name="A">
                                                <block type="variables_get" id="RUCC4T`.+)u:7|yLg%i$">
                                                  <field name="VAR" id="X}evr81e[c]vk,{VOl}Q">Schalter2</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="get_value" id="yh5d*{|lkv@y1L$80!vv">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">shelly.0.shellyplus1#441793c4001c#1.Relay0.Switch</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="crm%2S84CMHRcK?vm8M.">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">shelly.0.shellyplus1#441793c4001c#1.Relay0.Switch</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="uD?BIBc=qfbULZ-zJ!f`">
                                                  <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="controls_if" id="dEEd6tEJ|rEYKgEGf+nq">
                                              <value name="IF0">
                                                <block type="logic_compare" id="tU()ZgIv^~50Q91;^8-b">
                                                  <field name="OP">NEQ</field>
                                                  <value name="A">
                                                    <block type="variables_get" id=",W^GS1!r2{$oFn`});fp">
                                                      <field name="VAR" id="0zrG@3W%(GQDN;F90RXi">Schalter3</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="get_value" id="Z9kPgWAM|-dOPbnL=Lb^">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">shelly.0.shellyplus1#7c87ce725954#1.Relay0.Switch</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="control" id="1%Nvo1f%T)3R]F1?Jb]D">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">shelly.0.shellyplus1#7c87ce725954#1.Relay0.Switch</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="variables_get" id="U?|ouEMvs-=v331B0^8[">
                                                      <field name="VAR" id="GuPpX==]V3#5@|H/(*Tl">Schalter1</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </next>
    </block>
  </statement>
</block>