Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Regelung eines Hoymiles Solarinverters (Nulleinspeisung)

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Regelung eines Hoymiles Solarinverters (Nulleinspeisung)

    This topic has been deleted. Only users with topic management privileges can see it.
    • Duffy
      Duffy @Armilar last edited by Duffy

      @armilar

      Kann ich die API irgendwie herausfinden? Dann könnte ich es vielleicht mal probieren.

      LG Duffy

      1 Reply Last reply Reply Quote 0
      • T
        Tigger66 @Duffy last edited by

        @duffy ja ist schwer zu lesen gebe ich zu. Deshalb habe ich in das Blockly an der entsprechenden Stelle mal einen Kommentar eingefügt. Eventuell ist dass besser und hilft Dir weiter.

        code_text
        ```<xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="?~:J:;gqC%-pt?=zNsH:">Sunrise</variable>
            <variable id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</variable>
            <variable id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</variable>
            <variable id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</variable>
            <variable id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</variable>
            <variable id="le#}gR{6G.yhW=x|6pS8">neededPower</variable>
            <variable id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</variable>
            <variable id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</variable>
            <variable id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</variable>
            <variable id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</variable>
            <variable id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</variable>
          </variables>
          <block type="schedule" id="!P+uzJ#%y!_wHsKqo2~M" x="-428" y="-600">
            <field name="SCHEDULE">*/20 * * * * *</field>
            <statement name="STATEMENT">
              <block type="variables_set" id="~v~t5u;a_q(#kb+E{(FH">
                <field name="VAR" id="?~:J:;gqC%-pt?=zNsH:">Sunrise</field>
                <value name="VALUE">
                  <block type="time_astro" id="Svgszky6QE2/10f8vck1">
                    <field name="TYPE">sunrise</field>
                    <field name="OFFSET">0</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" id="~/087{!i@]6[`rKxsw]j">
                    <field name="VAR" id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</field>
                    <value name="VALUE">
                      <block type="time_astro" id="BO/%++Qd.ktL4PfK.r3?">
                        <field name="TYPE">sunset</field>
                        <field name="OFFSET">0</field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_if" id="xaOp|xXgB@BB44iq}cJ.">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="|K,B[pWUT`!LyJsB6,pK">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="time_compare_ex" id="Y8n@Iqzd:%qZbp|#P_v^">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                <field name="USE_ACTUAL_TIME">TRUE</field>
                                <field name="OPTION">&gt;=</field>
                                <value name="START_TIME">
                                  <shadow type="text" id="]-0N3DkP*7?ghtYzXwX!">
                                    <field name="TEXT">12:00</field>
                                  </shadow>
                                  <block type="variables_get" id="!,6PYgrHnSxh#Evn[Yie">
                                    <field name="VAR" id="?~:J:;gqC%-pt?=zNsH:">Sunrise</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="time_compare_ex" id="qRYvI=rC7,D?`B=PV@^6">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                <field name="USE_ACTUAL_TIME">TRUE</field>
                                <field name="OPTION">&lt;=</field>
                                <value name="START_TIME">
                                  <shadow type="text" id="glFY~.cOK_{V@+Ssh4-G">
                                    <field name="TEXT">12:00</field>
                                  </shadow>
                                  <block type="variables_get" id="LMy)6-$QN(f3d9klxV`O">
                                    <field name="VAR" id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="~p6WKGjCNU[UXfc{|$8|">
                            <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                            <value name="VALUE">
                              <block type="math_number" id="Z(v(#cMkS]/o.,;iyE/|">
                                <field name="NUM">1500</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id="Ih%sQzzK`!Ec=`tscEm-">
                                <field name="VAR" id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</field>
                                <value name="VALUE">
                                  <block type="get_value" id="E60zTd:yszZT-@pD[YB#">
                                    <field name="ATTR">val</field>
                                    <field name="OID">shelly.0.SHEM-3#E8DB84D68CFF#1.Total.InstantPower</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="variables_set" id=":rlAB32E^@yPP9Jh?EMO">
                                    <field name="VAR" id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</field>
                                    <value name="VALUE">
                                      <block type="get_value" id="Q8pLDlgI~N(N2-6)X@Qu">
                                        <field name="ATTR">val</field>
                                        <field name="OID">opendtu.0.116180216966.ac.phase_1.power</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="t8-xB+K`%rr)x]%:Q5cN">
                                        <field name="VAR" id="le#}gR{6G.yhW=x|6pS8">neededPower</field>
                                        <value name="VALUE">
                                          <block type="math_arithmetic" id="2FaDMR/kS5K9d!j=`dK3">
                                            <field name="OP">ADD</field>
                                            <value name="A">
                                              <shadow type="math_number" id="2FEk%?jHI2)Hvf4}p|*;">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="Z`YZ!4FileGG?5VwaP-/">
                                                <field name="VAR" id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="+10nRI6/x]hugF{/lmxM">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="n0BqKn~p@qPw.Jvfrj,s">
                                                <field name="VAR" id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" id="$61h{3os=)%X-VEx9M:i">
                                            <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                            <value name="VALUE">
                                              <block type="math_round" id="3$tH.4.P)ukPPcI4xw.A">
                                                <field name="OP">ROUND</field>
                                                <value name="NUM">
                                                  <shadow type="math_number" id="{D8W1ElJ#97Cg:]vDkM;">
                                                    <field name="NUM">3.1</field>
                                                  </shadow>
                                                  <block type="math_arithmetic" id="ju~9S8j-`0c/OF%2$7-o">
                                                    <field name="OP">MULTIPLY</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="6:p#t,*^;)z:Wb:@dc|3">
                                                        <field name="NUM">100</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id=".fYZ,3H9RSS}:wD=%Bvk">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="math_arithmetic" id="Z9S-r-/8^FbCeq,[{ULB">
                                                        <field name="OP">DIVIDE</field>
                                                        <value name="A">
                                                          <shadow type="math_number" id="jul_lM$(9.yj`:ZH8}%@">
                                                            <field name="NUM">1</field>
                                                          </shadow>
                                                          <block type="variables_get" id="_mPBX.l-0%hNvWtND[z1">
                                                            <field name="VAR" id="le#}gR{6G.yhW=x|6pS8">neededPower</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <shadow type="math_number" id="{Q+JfjzDv.)Z1KRbU*uv">
                                                            <field name="NUM">600</field>
                                                          </shadow>
                                                          <block type="variables_get" id="M!sN^/9!7$b}.ru.lqgC">
                                                            <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="g3gA+F5X4*$4x2),%sJV">
                                                <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                <value name="VALUE">
                                                  <block type="get_value" id="7wbrC,7l;@ahCGcw2/pL">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">0_userdata.0.PV-Anlage.storedNeededPower</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="variables_set" id="2KI]WdQd`0MzEf%mOPaL">
                                                    <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                    <value name="VALUE">
                                                      <block type="math_round" id="Ha.~N]M`[1eWboby_aYe">
                                                        <field name="OP">ROUND</field>
                                                        <value name="NUM">
                                                          <shadow type="math_number" id=":C/cpWh)P`-jK9}]IN*4">
                                                            <field name="NUM">3.1</field>
                                                          </shadow>
                                                          <block type="math_arithmetic" id="v}v!|Jkv3JHVqQR7poM0">
                                                            <field name="OP">ADD</field>
                                                            <value name="A">
                                                              <shadow type="math_number" id="_*N#-UtoOyCCNRG:MT$G">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="variables_get" id="{dg*rTfc(I5I1PoYYN;l">
                                                                <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <shadow type="math_number" id="XXNAI/IWnSoIOe,/5ADG">
                                                                <field name="NUM">1</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="#Aa[sC!ija_TtL9Go*jl">
                                                                <field name="OP">MULTIPLY</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id="7C(o9]E8#1f$b$PQ}QI8">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="?YS@_}6Hup[`ZsLR!Z45">
                                                                    <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="YxGb?xk[MY37)!7O-Cqe">
                                                                    <field name="NUM">0.05</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="variables_set" id="+KJ71_Z(eLN.a(uoEuci">
                                                        <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                        <value name="VALUE">
                                                          <block type="math_round" id="=HYNg!vGE)^Z7m{+e$cs">
                                                            <field name="OP">ROUND</field>
                                                            <value name="NUM">
                                                              <shadow type="math_number" id="|d.50MyF$Zxnn(B]!gq~">
                                                                <field name="NUM">3.1</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="?8HAOa[X,LM#h`p]lLc4">
                                                                <field name="OP">MINUS</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id="(8p!3BSrd)N0m`PVj}cd">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id="?$cU!rsg;wkU}CP.VsR.">
                                                                    <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="@kP8*eoC!D4/Wa?%grKM">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="math_arithmetic" id="D$_kryX`Gb5eu$gnYS_q">
                                                                    <field name="OP">MULTIPLY</field>
                                                                    <value name="A">
                                                                      <shadow type="math_number" id="{uQ;!=]WR=k,Ql+}ELpJ">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="variables_get" id="nrL6t1UCC{jy1*U[O|Xq">
                                                                        <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow type="math_number" id="||~-FC.nb3oU=fuLJzw}">
                                                                        <field name="NUM">0.1</field>
                                                                      </shadow>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="debug" id="8cGY=ms*^/Fbn#Cde4/e">
                                                            <field name="Severity">log</field>
                                                            <value name="TEXT">
                                                              <shadow type="text" id="8u`-eQZsJ=N^9[Nwyzr{">
                                                                <field name="TEXT">test</field>
                                                              </shadow>
                                                              <block type="text_join" id="QUQf.~7J|ziuD3sLdl)|">
                                                                <mutation items="2"></mutation>
                                                                <value name="ADD0">
                                                                  <block type="text" id="lGPf[Ci!QdAF4j#Bn34-">
                                                                    <field name="TEXT">Sonnenaufgang; </field>
                                                                  </block>
                                                                </value>
                                                                <value name="ADD1">
                                                                  <block type="variables_get" id="kwmbl:u%6-!)]lE{Bhdj">
                                                                    <field name="VAR" id="?~:J:;gqC%-pt?=zNsH:">Sunrise</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="debug" id="yaFK]t~sZKg}j1WzH!TL">
                                                                <field name="Severity">log</field>
                                                                <value name="TEXT">
                                                                  <shadow type="text" id="5kc0b5N6@)8r+tC_SBV0">
                                                                    <field name="TEXT">test</field>
                                                                  </shadow>
                                                                  <block type="text_join" id="g_%Dq-ksE!p;Tib-dWoB">
                                                                    <mutation items="2"></mutation>
                                                                    <value name="ADD0">
                                                                      <block type="text" id="(bZZUaTT0bt~IQ|a~%#R">
                                                                        <field name="TEXT">Sonnenuntergang; </field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD1">
                                                                      <block type="variables_get" id="weuYcyZ5+:mfnpSK9UiP">
                                                                        <field name="VAR" id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="debug" id="1|f1K~GhCe(a;/q4o_X]">
                                                                    <field name="Severity">log</field>
                                                                    <value name="TEXT">
                                                                      <shadow type="text" id="isk%CvpuNR,wvYPt_wB+">
                                                                        <field name="TEXT">test</field>
                                                                      </shadow>
                                                                      <block type="text_join" id="2Zo2{I0w6J%`$2:qEY1l">
                                                                        <mutation items="2"></mutation>
                                                                        <value name="ADD0">
                                                                          <block type="text" id="+YI.VRyx;em.YT$D(|bs">
                                                                            <field name="TEXT">Istwert: </field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="ADD1">
                                                                          <block type="variables_get" id="z%3ACfZd0~)KLgj0p}%@">
                                                                            <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="debug" id="r+xN[i`4xS-M`OYDBpb.">
                                                                        <field name="Severity">log</field>
                                                                        <value name="TEXT">
                                                                          <shadow type="text" id=",}Dzrhya8%oQx6j)vfw6">
                                                                            <field name="TEXT">test</field>
                                                                          </shadow>
                                                                          <block type="text_join" id="(f(78JM#Hy0@?Z0hJe~l">
                                                                            <mutation items="2"></mutation>
                                                                            <value name="ADD0">
                                                                              <block type="text" id="~}`O(MW.TU:J%_oS)#Xu">
                                                                                <field name="TEXT">obere Grenze: </field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD1">
                                                                              <block type="variables_get" id=",vBoJg7x{3!@v.c5w4q]">
                                                                                <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="debug" id="qBNh2:P3U}F#$|$6FZFn">
                                                                            <field name="Severity">log</field>
                                                                            <value name="TEXT">
                                                                              <shadow type="text" id="2kPK8(t-SdR9TZvb.%-l">
                                                                                <field name="TEXT">test</field>
                                                                              </shadow>
                                                                              <block type="text_join" id="}cq5v9RJT$55w(=?6BX)">
                                                                                <mutation items="2"></mutation>
                                                                                <value name="ADD0">
                                                                                  <block type="text" id="*q^TTVgJ+?:b!z,x/S;V">
                                                                                    <field name="TEXT">untere Grenze: </field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD1">
                                                                                  <block type="variables_get" id="Vh$)4$K%:ZHW:~MiMXet">
                                                                                    <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="debug" id="k}*+@}8y%^u*6nB1JGm^">
                                                                                <field name="Severity">log</field>
                                                                                <value name="TEXT">
                                                                                  <shadow type="text" id=".H}TUS0!y6z-f2}@^Brb">
                                                                                    <field name="TEXT">test</field>
                                                                                  </shadow>
                                                                                  <block type="text_join" id="9O/.cB+R0J#M=YHuIJn?">
                                                                                    <mutation items="2"></mutation>
                                                                                    <value name="ADD0">
                                                                                      <block type="text" id="3Uv-x,Irz%wnP{oXU!s^">
                                                                                        <field name="TEXT">benötigte Power in Prozent:</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD1">
                                                                                      <block type="variables_get" id="T);Yxf;X[xS0z_7}_YkI">
                                                                                        <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="controls_if" id="//Rx),f%pyif!qW8O/?G">
                                                                                    <mutation elseif="1" else="1"></mutation>
                                                                                    <value name="IF0">
                                                                                      <block type="logic_operation" id="6|n{EZ*g-L?wwMuw~`pt">
                                                                                        <field name="OP">AND</field>
                                                                                        <value name="A">
                                                                                          <block type="logic_compare" id="@s)ep$AZC}nn4%[Y{zXv">
                                                                                            <field name="OP">GTE</field>
                                                                                            <value name="A">
                                                                                              <block type="variables_get" id="rLGQIwoD@(-[)i.@Gek1">
                                                                                                <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="math_number" id="i.8)/]r6EY5E@{+61}ch">
                                                                                                <field name="NUM">100</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="logic_compare" id="M%7gn=%*6!Oo0Iy!N0HE">
                                                                                            <field name="OP">EQ</field>
                                                                                            <value name="A">
                                                                                              <block type="variables_get" id="FPBUa4}8MCdw~u2(u=Z4">
                                                                                                <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="math_number" id="])#t~DUCT78?qe_~1/X)">
                                                                                                <field name="NUM">100</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <statement name="DO0">
                                                                                      <block type="debug" id="_|aD2Z`JU`?BoQCCcfTz">
                                                                                        <field name="Severity">log</field>
                                                                                        <value name="TEXT">
                                                                                          <shadow type="text" id="wcNA/`cj2DUcJLr26^bd">
                                                                                            <field name="TEXT">keine Änderung, Wert ist gleich gespeichertem Wert</field>
                                                                                          </shadow>
                                                                                        </value>
                                                                                      </block>
                                                                                    </statement>
                                                                                    <value name="IF1">
                                                                                      <block type="logic_operation" id="4WJuW,40dOlCCnG8!=A(">
                                                                                        <field name="OP">OR</field>
                                                                                        <value name="A">
                                                                                          <block type="logic_compare" id="0U*fZT58L0uKFJsD)N{;">
                                                                                            <field name="OP">GT</field>
                                                                                            <value name="A">
                                                                                              <block type="variables_get" id="%=U`G7.6z`w:8|:XtgTI">
                                                                                                <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="variables_get" id="IE{(_NPVQP{:.^rxbG?4">
                                                                                                <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="logic_compare" id="7GGwP6lHcmy!ILxZJvYk">
                                                                                            <field name="OP">LT</field>
                                                                                            <value name="A">
                                                                                              <block type="variables_get" id="EN^7brshgWEicI7V4)C!">
                                                                                                <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="variables_get" id="7B.88d1a^Hr`R-b6!iMZ">
                                                                                                <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <statement name="DO1">
                                                                                      <block type="controls_if" id="P8/_4.KJ/zZ6qh9iBh+o">
                                                                                        <mutation else="1"></mutation>
                                                                                        <value name="IF0">
                                                                                          <block type="logic_compare" id="mk*xKT^,LdqKZpmRr}r4">
                                                                                            <field name="OP">LTE</field>
                                                                                            <value name="A">
                                                                                              <block type="variables_get" id=".d_KP;p/?wytr_{S7(db">
                                                                                                <field name="VAR" id="le#}gR{6G.yhW=x|6pS8">neededPower</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="variables_get" id="R!EQmKR0*lP1iR`NTG%f">
                                                                                                <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <statement name="DO0">
                                                                                          <block type="variables_set" id="v_^pc%4YAqueF4@xp/Ph">
                                                                                            <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                            <value name="VALUE">
                                                                                              <block type="variables_get" id="rba!2I;EQyijkPfjo!Ze">
                                                                                                <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <next>
                                                                                              <block type="update" id="E7HJvqAC,*BNAxN~e8sd">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">0_userdata.0.PV-Anlage.storedNeededPower</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="variables_get" id="hR1[WimPbd@1ICN+UAdn">
                                                                                                    <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </statement>
                                                                                        <statement name="ELSE">
                                                                                          <block type="variables_set" id="iqqD`P-h34,:2q7p$CH|">
                                                                                            <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                            <value name="VALUE">
                                                                                              <block type="math_number" id="dowAhu.+=iz#Wc-F]p:X">
                                                                                                <field name="NUM">100</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <next>
                                                                                              <block type="update" id="*?5=;cANP)NJ|KuX_[PF">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">0_userdata.0.PV-Anlage.storedNeededPower</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="math_number" id="7vXqNl1zb}n*oh6q3:]4">
                                                                                                    <field name="NUM">100</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </statement>
                                                                                        <next>
                                                                                          <block type="controls_if" id="]^/I[vJo!sr5LpkbcFB!">
                                                                                            <value name="IF0">
                                                                                              <block type="logic_compare" id="%50d#)U*~RScC:F-kp{g">
                                                                                                <field name="OP">LTE</field>
                                                                                                <value name="A">
                                                                                                  <block type="variables_get" id="KVYNgaA$~@zFf4U(-2G(">
                                                                                                    <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="B">
                                                                                                  <block type="math_number" id="!0pj`kNb_!ZOVov*^)[3">
                                                                                                    <field name="NUM">4</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                            <statement name="DO0">
                                                                                              <block type="variables_set" id="/4+e9gEK~pdujzM|}ksi">
                                                                                                <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="math_number" id="c+YG2dsZvm-}l6dXt[1Z">
                                                                                                    <field name="NUM">5</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </statement>
                                                                                            <next>
                                                                                              <block type="comment" id="mmrY@qskLJtaIa0[VZTK">
                                                                                                <field name="COMMENT">Hier wird der Wert vom ersten WR Abgefragt</field>
                                                                                                <next>
                                                                                                  <block type="comment" id="*]Dr4qZjVkb|R|^W48:+">
                                                                                                    <field name="COMMENT">erstens untere Leistungsgrenze</field>
                                                                                                    <next>
                                                                                                      <block type="comment" id="ok=8?%,Ro}y0s}~fZO[I">
                                                                                                        <field name="COMMENT">oder obere Leistungsgrenze</field>
                                                                                                        <next>
                                                                                                          <block type="comment" id="SLpj[e26^?=z;g:]GT?Q">
                                                                                                            <field name="COMMENT">oder die angefragte Leistung wird nicht erreicht</field>
                                                                                                            <next>
                                                                                                              <block type="controls_if" id="ZH?n)}/A8xDqvLu;mM3m">
                                                                                                                <mutation else="1"></mutation>
                                                                                                                <value name="IF0">
                                                                                                                  <block type="logic_operation" id="vVy#@8N({zRaYhlMew]c">
                                                                                                                    <field name="OP">OR</field>
                                                                                                                    <value name="A">
                                                                                                                      <block type="logic_compare" id="PIGb)h}(L;=:AD;5r=W$">
                                                                                                                        <field name="OP">LTE</field>
                                                                                                                        <value name="A">
                                                                                                                          <block type="get_value" id="Hn,:c1}lRncb$M*c37T[">
                                                                                                                            <field name="ATTR">val</field>
                                                                                                                            <field name="OID">0_userdata.0.PV-Anlage.Solarlimit_HM400.Solarlimit_HM400</field>
                                                                                                                          </block>
                                                                                                                        </value>
                                                                                                                        <value name="B">
                                                                                                                          <block type="math_number" id="O/l%Uh0A@?HPfD;/4eRW">
                                                                                                                            <field name="NUM">5</field>
                                                                                                                          </block>
                                                                                                                        </value>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                    <value name="B">
                                                                                                                      <block type="logic_operation" id="x8],WeAvz)P5RbWxBqKU">
                                                                                                                        <field name="OP">OR</field>
                                                                                                                        <value name="A">
                                                                                                                          <block type="logic_compare" id="D1Vr-[UHVwz,0UMcxf~t">
                                                                                                                            <field name="OP">GTE</field>
                                                                                                                            <value name="A">
                                                                                                                              <block type="get_value" id="*^o)uk]A48Tjk%pvj2pB">
                                                                                                                                <field name="ATTR">val</field>
                                                                                                                                <field name="OID">0_userdata.0.PV-Anlage.Solarlimit_HM400.Solarlimit_HM400</field>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                            <value name="B">
                                                                                                                              <block type="math_number" id="az|/|Fl[JpJ{rB83ed[p">
                                                                                                                                <field name="NUM">100</field>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                          </block>
                                                                                                                        </value>
                                                                                                                        <value name="B">
                                                                                                                          <block type="logic_compare" id="1f.~}_NZHFWHi$U;Bl[E">
                                                                                                                            <field name="OP">LT</field>
                                                                                                                            <value name="A">
                                                                                                                              <block type="get_value" id="o%XYKF2zkxK+dE|3E%-_">
                                                                                                                                <field name="ATTR">val</field>
                                                                                                                                <field name="OID">opendtu.0.112183217812.ac.phase_1.power</field>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                            <value name="B">
                                                                                                                              <block type="get_value" id="uM~uo~N[nRQ?i9!fzRA!">
                                                                                                                                <field name="ATTR">val</field>
                                                                                                                                <field name="OID">opendtu.0.112183217812.power_control.current_limit_absolute</field>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                          </block>
                                                                                                                        </value>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                                <statement name="DO0">
                                                                                                                  <block type="control" id="W+gr)Q`C;VMjG:,mB)8r">
                                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                    <field name="OID">opendtu.0.116180216966.power_control.limit_nonpersistent_relative</field>
                                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                                    <value name="VALUE">
                                                                                                                      <block type="variables_get" id="0O[l*@b$eWz(z6Nj5;8Z">
                                                                                                                        <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                    <next>
                                                                                                                      <block type="debug" id="4(mO4hae0d8|yCEDlMj~">
                                                                                                                        <field name="Severity">log</field>
                                                                                                                        <value name="TEXT">
                                                                                                                          <shadow type="text" id="GhK9E*i9z*IoFuBKSaq1">
                                                                                                                            <field name="TEXT">test</field>
                                                                                                                          </shadow>
                                                                                                                          <block type="text_join" id="K$7:Tw;%Pm?f$3/:xV?V">
                                                                                                                            <mutation items="2"></mutation>
                                                                                                                            <value name="ADD0">
                                                                                                                              <block type="text" id="tzX795?CuQ=.SGL`i!ns">
                                                                                                                                <field name="TEXT">gesetztes Limit: </field>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                            <value name="ADD1">
                                                                                                                              <block type="variables_get" id="`hpd|~6gnaa1#A:#I^ku">
                                                                                                                                <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                          </block>
                                                                                                                        </value>
                                                                                                                      </block>
                                                                                                                    </next>
                                                                                                                  </block>
                                                                                                                </statement>
                                                                                                                <statement name="ELSE">
                                                                                                                  <block type="debug" id="Pv3KiYZaGuo2FdU}gjig">
                                                                                                                    <field name="Severity">log</field>
                                                                                                                    <value name="TEXT">
                                                                                                                      <shadow type="text" id="t2%tFy.G9l;?j^VyEMCa">
                                                                                                                        <field name="TEXT">keine Änderung</field>
                                                                                                                      </shadow>
                                                                                                                    </value>
                                                                                                                  </block>
                                                                                                                </statement>
                                                                                                              </block>
                                                                                                            </next>
                                                                                                          </block>
                                                                                                        </next>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </statement>
                                                                                    <statement name="ELSE">
                                                                                      <block type="debug" id="k-_yI!1YR}Cw@^zA*2By">
                                                                                        <field name="Severity">log</field>
                                                                                        <value name="TEXT">
                                                                                          <shadow type="text" id="pOzzR,#7b~P,=jhm/QLz">
                                                                                            <field name="TEXT">keine Änderung</field>
                                                                                          </shadow>
                                                                                        </value>
                                                                                      </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>
                        </statement>
                        <statement name="ELSE">
                          <block type="debug" id="6hv2w66u%V}c3Ij`Q?pi">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                              <shadow type="text" id="LmPU])Tk80,#%40`K:m4">
                                <field name="TEXT">Zeit ist außerhalb der Reglungszeit.</field>
                              </shadow>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </xml>
        Duffy X 2 Replies Last reply Reply Quote 0
        • Duffy
          Duffy @Tigger66 last edited by

          @tigger66

          Danke schön

          Viele Grüße Duffy

          1 Reply Last reply Reply Quote 0
          • X
            xbow42 @Tigger66 last edited by

            @tigger66

            danke für das script, hab es noch ein bisschen an meine Bedürfnisse angepasst.

            • Nutzung mit openDTU-Adapter
            • alle Hoymiles-WR werden im gleichen %-Satz reduziert
            • angepasst an die tatsächliche max-Leistung(ac-Wp) die der jeweilige WR bringt -> Alias "power_peak"
            • es wird so viel ausgeregelt damit der Sun1000(mit Truckiplatine) sich langweilt.

            Script-1 erfasst die "power_peak"s in den den opendtu.0.-Adapter-Objektbaum-DPs
            Achtung Datenpunkte müssen manuell in Experten-mode angelegt werden: Script arbeitet noch nicht mit dem selector-Baustein -> also DPs in Script anpassen

            opendtu.0.1xxxxxxxxxxx.ac.phase_x.power_peak
            opendtu.0.1xxxxxxxxxxx.dc.input_x.power_peak
            opendtu.0.total.power_peak
            

            <xml xmlns="https://developers.google.com/blockly/xml">
             <block type="comment" id="dzI27~{-JA3SFj-YE/kW" x="-837" y="-562">
               <field name="COMMENT">HM-350 AC-POWER_PEAK</field>
               <next>
                 <block type="on" id="P8D[taZA+V.Y?mrXpSf?">
                   <field name="OID">opendtu.0.112163012345.ac.phase_1.power</field>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <statement name="STATEMENT">
                     <block type="controls_if" id="w.b~%xuOGoAuQRsL9tX?">
                       <value name="IF0">
                         <block type="logic_compare" id="pa.~CI;JXKnof~|fZX2Q">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="on_source" id="_N?`(11a;so/(lL;3lbr">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="get_value" id="=|]s%)#ty%MWVAyy^av8">
                               <field name="ATTR">val</field>
                               <field name="OID">opendtu.0.112163012345.ac.phase_1.power_peak</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="update" id="Wa{wc(l4Im+7f?K.UDjV">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">opendtu.0.112163012345.ac.phase_1.power_peak</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="on_source" id="LExVSFdoUieB6]O$PvO+">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </statement>
                   <next>
                     <block type="comment" id=":b=zqAw.mdf7=yB?th8Z">
                       <field name="COMMENT">HM-350 DC-POWER_PEAK</field>
                       <next>
                         <block type="on" id="dC?w?,l{gXH-RAKP:EN/">
                           <field name="OID">opendtu.0.112163012345.dc.input_1.power</field>
                           <field name="CONDITION">ne</field>
                           <field name="ACK_CONDITION"></field>
                           <statement name="STATEMENT">
                             <block type="controls_if" id="M).~8pV3Go{Ij`(yQR?P">
                               <value name="IF0">
                                 <block type="logic_compare" id="^:$|BqUR3gCCxE4#-v^r">
                                   <field name="OP">GT</field>
                                   <value name="A">
                                     <block type="on_source" id="N_mBK%@3,,_HjYY-he9w">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="get_value" id="-5lo9pKsVa?FteKCzP@i">
                                       <field name="ATTR">val</field>
                                       <field name="OID">opendtu.0.112163012345.dc.input_1.power_peak</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="update" id="^66AE2]-YGc+Jy0:,o%2">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">opendtu.0.112163012345.dc.input_1.power_peak</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="on_source" id="WD$?VU86n7ewPxdNTdyv">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
             <block type="comment" id=",?UxMyNgPRxEKM-F@9a8" x="-237" y="-562">
               <field name="COMMENT">HM-1500 AC-POWER_PEAK</field>
               <next>
                 <block type="on" id="ODD$W)UmfrIZ:P19r-19">
                   <field name="OID">opendtu.0.116183012345.ac.phase_1.power</field>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <statement name="STATEMENT">
                     <block type="controls_if" id="xhJp~4I7U)(L(=XdO+,j">
                       <value name="IF0">
                         <block type="logic_compare" id="!@5GRgO~,DLNy!JMn6/Y">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="on_source" id="mC/5pS*7A@8xz^+RQ.fW">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="get_value" id=";U34!AD2KJ;d/w8X`+RQ">
                               <field name="ATTR">val</field>
                               <field name="OID">opendtu.0.116183012345.ac.phase_1.power_peak</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="update" id="kyL6hG9wC._xi|k;vi6,">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">opendtu.0.116183012345.ac.phase_1.power_peak</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="on_source" id="(QI-Q;jB8+}/n8uw,G-L">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </statement>
                   <next>
                     <block type="comment" id="KO+fB/-D`6-E6WwYfZKY">
                       <field name="COMMENT">HM-1500 DC-POWER_PEAK</field>
                       <next>
                         <block type="on" id="CZ;S}c3/h/@@8+lOp8U4">
                           <field name="OID">opendtu.0.116183012345.dc.input_1.power</field>
                           <field name="CONDITION">ne</field>
                           <field name="ACK_CONDITION"></field>
                           <statement name="STATEMENT">
                             <block type="controls_if" id="vE,lR_rZyZ!uz_m~b2Ya">
                               <value name="IF0">
                                 <block type="logic_compare" id="4myxtq56zG?7V%e3O=6L">
                                   <field name="OP">GT</field>
                                   <value name="A">
                                     <block type="on_source" id="XI)l0Ol3K8UpwncXNh;l">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="get_value" id="n+G./w`IplaYo/HfUamn">
                                       <field name="ATTR">val</field>
                                       <field name="OID">opendtu.0.116183012345.dc.input_1.power_peak</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="update" id="0{2(BqUM?/-IR(fxor3C">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">opendtu.0.116183012345.dc.input_1.power_peak</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="on_source" id="$o,kpOxXN4Fhtq3!2-oi">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                           <next>
                             <block type="on" id="5jfW`76G)!*.?vgkL{#E">
                               <field name="OID">opendtu.0.116183012345.dc.input_2.power</field>
                               <field name="CONDITION">ne</field>
                               <field name="ACK_CONDITION"></field>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="7(nK/d30ciQJYhy}2?K$">
                                   <value name="IF0">
                                     <block type="logic_compare" id=":B.xLNgQ3X@oYqe:Rq$Z">
                                       <field name="OP">GT</field>
                                       <value name="A">
                                         <block type="on_source" id="lLHj%$|*cIX.+j-VAxx,">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="get_value" id="e.R`Py;[qEbTSa0CGUCi">
                                           <field name="ATTR">val</field>
                                           <field name="OID">opendtu.0.116183012345.dc.input_2.power_peak</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="update" id="TyLl38|%nDz=n}i5|U_!">
                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                       <field name="OID">opendtu.0.116183012345.dc.input_1.power_peak</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="on_source" id="a[5nN0blV~kTR63]5jH1">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                               <next>
                                 <block type="on" id="j:W[xbah);H^ja%Ysb$j">
                                   <field name="OID">opendtu.0.116183012345.dc.input_3.power</field>
                                   <field name="CONDITION">ne</field>
                                   <field name="ACK_CONDITION"></field>
                                   <statement name="STATEMENT">
                                     <block type="controls_if" id="=tn}t;6MfuB`FBX*HV{#">
                                       <value name="IF0">
                                         <block type="logic_compare" id="?mJ+cMpk)`PmR]e1qv5T">
                                           <field name="OP">GT</field>
                                           <value name="A">
                                             <block type="on_source" id="~221I=,b?7wNZ?j:0LX;">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <value name="B">
                                             <block type="get_value" id="t,DJsZQkzc-Kw^zpLD:%">
                                               <field name="ATTR">val</field>
                                               <field name="OID">opendtu.0.116183012345.dc.input_3.power_peak</field>
                                             </block>
                                           </value>
                                         </block>
                                       </value>
                                       <statement name="DO0">
                                         <block type="update" id="her@*O~WmK+2k6A]L`gL">
                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                           <field name="OID">opendtu.0.116183012345.dc.input_3.power_peak</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="on_source" id="TL4E_)#j){Ns41?q$uF:">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                         </block>
                                       </statement>
                                     </block>
                                   </statement>
                                   <next>
                                     <block type="on" id="pH5mc$T;]y`Uf]xiMlNH">
                                       <field name="OID">opendtu.0.116183012345.dc.input_4.power</field>
                                       <field name="CONDITION">ne</field>
                                       <field name="ACK_CONDITION"></field>
                                       <statement name="STATEMENT">
                                         <block type="controls_if" id=",iQAVp@@mc.~jK_?ESv2">
                                           <value name="IF0">
                                             <block type="logic_compare" id="u@Y9S8_4K{ZnyJ-U5%~H">
                                               <field name="OP">GT</field>
                                               <value name="A">
                                                 <block type="on_source" id="66QLs}CI8e9((~R2Xm]:">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                               <value name="B">
                                                 <block type="get_value" id="Xx}iA)b,tkdqwn$f.8y]">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">opendtu.0.116183012345.dc.input_4.power_peak</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="update" id="(1PV*|~$Z{Wr]bQ(_.vA">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">opendtu.0.116183012345.dc.input_4.power_peak</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="on_source" id="Qq:iQeU59|x)6/*UY4[f">
                                                   <field name="ATTR">state.val</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </statement>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
             <block type="comment" id="t`z#,b3k!p-?n^/I)J`b" x="-837" y="-37">
               <field name="COMMENT">DTU_TOTAL_POWER_PEAK</field>
               <next>
                 <block type="on" id="!G}M}gU|iMe?_{B/Cjx_">
                   <field name="OID">opendtu.0.total.power</field>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <statement name="STATEMENT">
                     <block type="controls_if" id=",YO2pRkEQF25;+aYbL`@">
                       <value name="IF0">
                         <block type="logic_compare" id="u-5AC=kwmNP*s~t@=kPQ">
                           <field name="OP">GT</field>
                           <value name="A">
                             <block type="on_source" id="3D0g,Mfd3VQfxIg%;]0{">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="get_value" id="Fc3B~7M}sw8.;M6yZWIF">
                               <field name="ATTR">val</field>
                               <field name="OID">opendtu.0.total.power_peak</field>
                             </block>
                           </value>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="update" id="A?rEo#Zi})?8pW,FG%g}">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">opendtu.0.total.power_peak</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="on_source" id="iB,nluZCNVGR=_u_}T0|">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </statement>
                 </block>
               </next>
             </block>
            </xml>
            

            X 1 Reply Last reply Reply Quote 0
            • X
              xbow42 @xbow42 last edited by

              Script-2 Regelung: (brauch eigentlich bis aufdie Meter-DP nicht mehr angepasst werden, wenn weitere Hoymiles-WR dazu kommen) Bei dem bescheidenen Wetter kann ich zZ nicht viel testen.

              <xml xmlns="https://developers.google.com/blockly/xml">
               <variables>
                 <variable id="?~:J:;gqC%-pt?=zNsH:">Sunrise</variable>
                 <variable id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</variable>
                 <variable id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</variable>
                 <variable id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</variable>
                 <variable id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</variable>
                 <variable id="le#}gR{6G.yhW=x|6pS8">neededPower</variable>
                 <variable id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</variable>
                 <variable id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</variable>
                 <variable id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</variable>
                 <variable id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</variable>
                 <variable id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</variable>
                 <variable id="SV}869+51J^[Z*d:t;/T">i</variable>
               </variables>
               <block type="procedures_callnoreturn" id="L^@zEasl@`Q(W]t{7wjg" x="-1962" y="-1287">
                 <mutation name="Initialisierung"></mutation>
                 <next>
                   <block type="schedule" id="N!6xtH;Q(rdW=CJCOn2B">
                     <field name="SCHEDULE">15 0 * * *</field>
                     <statement name="STATEMENT">
                       <block type="procedures_callnoreturn" id="zw?VEEOt[,qAnE8u.T2K">
                         <mutation name="Initialisierung"></mutation>
                       </block>
                     </statement>
                     <next>
                       <block type="schedule" id="aaJPZ2*y,@S]}N=N7TUh">
                         <field name="SCHEDULE">*/20 * * * * *</field>
                         <statement name="STATEMENT">
                           <block type="debug" id="h1+{E1c*UgPI@Yud,p@z" disabled="true">
                             <field name="Severity">log</field>
                             <value name="TEXT">
                               <shadow type="text">
                                 <field name="TEXT">test</field>
                               </shadow>
                               <block type="text_join" id="c8y7Ty][Dp[Am`v2~(%x">
                                 <mutation items="2"></mutation>
                                 <value name="ADD0">
                                   <block type="text" id="kx#Ow4]?G4ZXKaCcXLGb">
                                     <field name="TEXT">Sonnenaufgang; </field>
                                   </block>
                                 </value>
                                 <value name="ADD1">
                                   <block type="variables_get" id="]zlN6Z:SRK=v5ZFhwV;4">
                                     <field name="VAR" id="?~:J:;gqC%-pt?=zNsH:">Sunrise</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="debug" id="t){#D2Vi]f63BQf|zm^D" disabled="true">
                                 <field name="Severity">log</field>
                                 <value name="TEXT">
                                   <shadow type="text">
                                     <field name="TEXT">test</field>
                                   </shadow>
                                   <block type="text_join" id=";Kom}.BlZ*umo_`jOs^?">
                                     <mutation items="2"></mutation>
                                     <value name="ADD0">
                                       <block type="text" id="pUDx/B.QZKv4/AUq.0qb">
                                         <field name="TEXT">Sonnenuntergang; </field>
                                       </block>
                                     </value>
                                     <value name="ADD1">
                                       <block type="variables_get" id="4{T(VFmR!v`_v*wZe[T%">
                                         <field name="VAR" id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="controls_if" id="^e+rG?;2fx#/Q!f6MTHf">
                                     <mutation else="1"></mutation>
                                     <value name="IF0">
                                       <block type="logic_operation" id="5$k8g;s2mpF`KB(CgDYR">
                                         <field name="OP">AND</field>
                                         <value name="A">
                                           <block type="time_compare_ex" id="bxYkmIoQPHKvK7QRU(cs">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                             <field name="USE_ACTUAL_TIME">TRUE</field>
                                             <field name="OPTION">&gt;=</field>
                                             <value name="START_TIME">
                                               <shadow type="text">
                                                 <field name="TEXT">12:00</field>
                                               </shadow>
                                               <block type="variables_get" id="sfa%Cx0QB6`t||Lyv]k/">
                                                 <field name="VAR" id="?~:J:;gqC%-pt?=zNsH:">Sunrise</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="time_compare_ex" id="QG#x8m[4]`g*+rGP87L8">
                                             <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                             <field name="USE_ACTUAL_TIME">TRUE</field>
                                             <field name="OPTION">&lt;=</field>
                                             <value name="START_TIME">
                                               <shadow type="text">
                                                 <field name="TEXT">12:00</field>
                                               </shadow>
                                               <block type="variables_get" id="9:Z?AaDFdZxGpLFTHO:[">
                                                 <field name="VAR" id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="variables_set" id="8uW8S.!T,{3*,Yy$m,te" disabled="true">
                                         <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                                         <value name="VALUE">
                                           <block type="math_number" id="OO.39Mt$IstPzrCqQdFZ">
                                             <field name="NUM">1500</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="variables_set" id="7,-HsgiI*!.MLZKIXF?m">
                                             <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                                             <value name="VALUE">
                                               <block type="get_value" id="DKUDV`]K|vXG;6~]zp5o">
                                                 <field name="ATTR">val</field>
                                                 <field name="OID">opendtu.0.total.power_peak</field>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="variables_set" id="dtoz5XBUL?*TI,xe/_,y" disabled="true">
                                                 <field name="VAR" id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</field>
                                                 <value name="VALUE">
                                                   <block type="get_value" id="tNS@AwQach8F0W0Z}I=o">
                                                     <field name="ATTR">val</field>
                                                     <field name="OID">shelly.0.SHEM-3#8CAAB561F372#1.Total.InstantPower</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="variables_set" id="RpT{Wz)A[ffWAfnjU)ic">
                                                     <field name="VAR" id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</field>
                                                     <value name="VALUE">
                                                       <block type="math_arithmetic" id="oOweM/QS+kgdcVD.dD,H">
                                                         <field name="OP">ADD</field>
                                                         <value name="A">
                                                           <shadow type="math_number" id="o8S-vD#C?!T5o$BF.H~:">
                                                             <field name="NUM">1</field>
                                                           </shadow>
                                                           <block type="get_value" id="vxBbgeNPu+;C];y7jr?x">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">alias.0.Energiezentrale.Netzanschluss-Gesamt_watt</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <shadow type="math_number" id="`|e$U7MVDw:xjb+c]WK9">
                                                             <field name="NUM">1</field>
                                                           </shadow>
                                                           <block type="get_value" id="B?IuTO_60Kc]b*h`9p+G">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">alias.0.Energiezentrale.PV-Anlage.PV-Leistung-sun1000</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="variables_set" id="wUQ!;J:PRtV0lm4NDR,7" disabled="true">
                                                         <field name="VAR" id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</field>
                                                         <value name="VALUE">
                                                           <block type="get_value" id="ir9Re[dSxqm?)Qz|8[zF">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">mqtt.0.OpenDTU-B96998.ac.power</field>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="variables_set" id="GGcMj7X(/7`Ej[o[+z6N">
                                                             <field name="VAR" id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</field>
                                                             <value name="VALUE">
                                                               <block type="get_value" id=")*DG(lgj%(%;ImiJ=G#]">
                                                                 <field name="ATTR">val</field>
                                                                 <field name="OID">opendtu.0.total.power</field>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="variables_set" id="*GQDj5lWe.-$:;k7)EuK">
                                                                 <field name="VAR" id="le#}gR{6G.yhW=x|6pS8">neededPower</field>
                                                                 <value name="VALUE">
                                                                   <block type="math_arithmetic" id="cjrmBAgW[%[O%MxVLHUg">
                                                                     <field name="OP">ADD</field>
                                                                     <value name="A">
                                                                       <shadow type="math_number">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="variables_get" id="PM9VvHUxvZ5qIJIw9Iaj">
                                                                         <field name="VAR" id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <shadow type="math_number">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="variables_get" id="`@*_Uh,bf?T9Cg@d{;];">
                                                                         <field name="VAR" id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <next>
                                                                   <block type="variables_set" id="SwV.FeIx.|6_j(z{fO_A">
                                                                     <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                     <value name="VALUE">
                                                                       <block type="math_round" id="(vgAba}zk`A^k^AgUc*7">
                                                                         <field name="OP">ROUND</field>
                                                                         <value name="NUM">
                                                                           <shadow type="math_number">
                                                                             <field name="NUM">3.1</field>
                                                                           </shadow>
                                                                           <block type="math_arithmetic" id="YcrZ8M)!o/Mz7Ltcq@v=">
                                                                             <field name="OP">MULTIPLY</field>
                                                                             <value name="A">
                                                                               <shadow type="math_number" id="2H~|JEih;5Hnnw~sw4u9">
                                                                                 <field name="NUM">100</field>
                                                                               </shadow>
                                                                             </value>
                                                                             <value name="B">
                                                                               <shadow type="math_number">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                               <block type="math_arithmetic" id="ys`}D;we*/$^T[OSFnyj">
                                                                                 <field name="OP">DIVIDE</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="r.hGt@CFfrc}1I+VB?TE">
                                                                                     <field name="VAR" id="le#}gR{6G.yhW=x|6pS8">neededPower</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">600</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="COO4vZ|?|~b?7|E#Uknd">
                                                                                     <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <next>
                                                                       <block type="debug" id="p-[S;xwAg`zep3eq{-;A">
                                                                         <field name="Severity">log</field>
                                                                         <value name="TEXT">
                                                                           <shadow type="text">
                                                                             <field name="TEXT">test</field>
                                                                           </shadow>
                                                                           <block type="text_join" id="tct%|-Rab:W-GF,l#5bO">
                                                                             <mutation items="2"></mutation>
                                                                             <value name="ADD0">
                                                                               <block type="text" id="j?F]:/GYwJuCGJr:$zwK">
                                                                                 <field name="TEXT">benötigte Power in Prozent:</field>
                                                                               </block>
                                                                             </value>
                                                                             <value name="ADD1">
                                                                               <block type="variables_get" id="j@e?70$@XpdYjt?9=`,[">
                                                                                 <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <next>
                                                                           <block type="variables_set" id=";qV54EE|l;pvQTm.I9h!">
                                                                             <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                             <value name="VALUE">
                                                                               <block type="get_value" id="y#=RtcMU|Xby}M+jrG1y">
                                                                                 <field name="ATTR">val</field>
                                                                                 <field name="OID">0_userdata.0.Statistik.PV-Anlage.storedNeededPower</field>
                                                                               </block>
                                                                             </value>
                                                                             <next>
                                                                               <block type="debug" id="wp@Md5++th?PhEBb}48j">
                                                                                 <field name="Severity">log</field>
                                                                                 <value name="TEXT">
                                                                                   <shadow type="text">
                                                                                     <field name="TEXT">test</field>
                                                                                   </shadow>
                                                                                   <block type="text_join" id="5$z71GN)Lve+_PMNdC=1">
                                                                                     <mutation items="2"></mutation>
                                                                                     <value name="ADD0">
                                                                                       <block type="text" id="urzrLlKxHRO3S:,hA0Fp">
                                                                                         <field name="TEXT">Istwert: </field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="ADD1">
                                                                                       <block type="variables_get" id="VzPu_/h8EiJTMqiw/rv#">
                                                                                         <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                                 <next>
                                                                                   <block type="variables_set" id="^oAtrCG8{;kllL0dSoN]" disabled="true">
                                                                                     <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="math_round" id="sAU0d9K=AK!7/pdXgH3J">
                                                                                         <field name="OP">ROUND</field>
                                                                                         <value name="NUM">
                                                                                           <shadow type="math_number">
                                                                                             <field name="NUM">3.1</field>
                                                                                           </shadow>
                                                                                           <block type="math_arithmetic" id="U0kSjw(7A.Ng7uAW`8(l">
                                                                                             <field name="OP">ADD</field>
                                                                                             <value name="A">
                                                                                               <shadow type="math_number">
                                                                                                 <field name="NUM">1</field>
                                                                                               </shadow>
                                                                                               <block type="variables_get" id="JJ8E2q8FP.UQo7QIcqxe">
                                                                                                 <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                               </block>
                                                                                             </value>
                                                                                             <value name="B">
                                                                                               <shadow type="math_number">
                                                                                                 <field name="NUM">1</field>
                                                                                               </shadow>
                                                                                               <block type="math_arithmetic" id="X2zu8u!8St(!tcumrNU9">
                                                                                                 <field name="OP">MULTIPLY</field>
                                                                                                 <value name="A">
                                                                                                   <shadow type="math_number">
                                                                                                     <field name="NUM">1</field>
                                                                                                   </shadow>
                                                                                                   <block type="variables_get" id="V@~LkqYk.n5Q/KY/^61H">
                                                                                                     <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                                   </block>
                                                                                                 </value>
                                                                                                 <value name="B">
                                                                                                   <shadow type="math_number" id="O1qUp~+un*9scm*;2rdW">
                                                                                                     <field name="NUM">0.05</field>
                                                                                                   </shadow>
                                                                                                 </value>
                                                                                               </block>
                                                                                             </value>
                                                                                           </block>
                                                                                         </value>
                                                                                       </block>
                                                                                     </value>
                                                                                     <next>
                                                                                       <block type="debug" id="tpcC~E#,/-n)7!=/dDf4" disabled="true">
                                                                                         <field name="Severity">log</field>
                                                                                         <value name="TEXT">
                                                                                           <shadow type="text">
                                                                                             <field name="TEXT">test</field>
                                                                                           </shadow>
                                                                                           <block type="text_join" id="^Bd9w?)f?H=.u}B[mvp!">
                                                                                             <mutation items="2"></mutation>
                                                                                             <value name="ADD0">
                                                                                               <block type="text" id="k@w~k-Qw/g,64jQp#u:(">
                                                                                                 <field name="TEXT">obere Grenze: </field>
                                                                                               </block>
                                                                                             </value>
                                                                                             <value name="ADD1">
                                                                                               <block type="variables_get" id="lcD^JUA9nu)t~fPAojm(">
                                                                                                 <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                                               </block>
                                                                                             </value>
                                                                                           </block>
                                                                                         </value>
                                                                                         <next>
                                                                                           <block type="variables_set" id="MDwQ9VzfW,ts/ie{p|q`">
                                                                                             <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                                             <value name="VALUE">
                                                                                               <block type="math_round" id="M16k7WhD4Yj3UX6Dp[[.">
                                                                                                 <field name="OP">ROUND</field>
                                                                                                 <value name="NUM">
                                                                                                   <shadow type="math_number" id="tAQLK7B1q^[LDE!)y@4K">
                                                                                                     <field name="NUM">3.1</field>
                                                                                                   </shadow>
                                                                                                   <block type="math_arithmetic" id="/+BV7=(zFAY(=87=GUs%">
                                                                                                     <field name="OP">MULTIPLY</field>
                                                                                                     <value name="A">
                                                                                                       <shadow type="math_number">
                                                                                                         <field name="NUM">1</field>
                                                                                                       </shadow>
                                                                                                       <block type="variables_get" id="]DSF6Sq~MLe*Cm.XcH2#">
                                                                                                         <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                                       </block>
                                                                                                     </value>
                                                                                                     <value name="B">
                                                                                                       <shadow type="math_number" id="|KPT)C_8bzH+au{o3T@Y">
                                                                                                         <field name="NUM">1.05</field>
                                                                                                       </shadow>
                                                                                                     </value>
                                                                                                   </block>
                                                                                                 </value>
                                                                                               </block>
                                                                                             </value>
                                                                                             <next>
                                                                                               <block type="debug" id="W]Rxgz[xEzI9Y4[e9=ck">
                                                                                                 <field name="Severity">log</field>
                                                                                                 <value name="TEXT">
                                                                                                   <shadow type="text">
                                                                                                     <field name="TEXT">test</field>
                                                                                                   </shadow>
                                                                                                   <block type="text_join" id="Me=lTO:_`Tia;lrY:1Z9">
                                                                                                     <mutation items="2"></mutation>
                                                                                                     <value name="ADD0">
                                                                                                       <block type="text" id="B8Bww7#LWwvU$g#(Y^tx">
                                                                                                         <field name="TEXT">obere Grenze: </field>
                                                                                                       </block>
                                                                                                     </value>
                                                                                                     <value name="ADD1">
                                                                                                       <block type="variables_get" id="V+[(a6JwzI[m5U[XR6=Y">
                                                                                                         <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                                                       </block>
                                                                                                     </value>
                                                                                                   </block>
                                                                                                 </value>
                                                                                                 <next>
                                                                                                   <block type="variables_set" id="zE]8-eba(CpZQ$bFGE:Z" disabled="true">
                                                                                                     <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                                                     <value name="VALUE">
                                                                                                       <block type="math_round" id="Qd[@K^eBfbThpmx_PIE[">
                                                                                                         <field name="OP">ROUND</field>
                                                                                                         <value name="NUM">
                                                                                                           <shadow type="math_number">
                                                                                                             <field name="NUM">3.1</field>
                                                                                                           </shadow>
                                                                                                           <block type="math_arithmetic" id="r3`1ks9PoSt!FL[8k)Y3">
                                                                                                             <field name="OP">MINUS</field>
                                                                                                             <value name="A">
                                                                                                               <shadow type="math_number">
                                                                                                                 <field name="NUM">1</field>
                                                                                                               </shadow>
                                                                                                               <block type="variables_get" id="i}WPgwQ=w.ABehm6PK`C">
                                                                                                                 <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                                               </block>
                                                                                                             </value>
                                                                                                             <value name="B">
                                                                                                               <shadow type="math_number">
                                                                                                                 <field name="NUM">1</field>
                                                                                                               </shadow>
                                                                                                               <block type="math_arithmetic" id="m470byi(,Acvg_EMLOi]">
                                                                                                                 <field name="OP">MULTIPLY</field>
                                                                                                                 <value name="A">
                                                                                                                   <shadow type="math_number">
                                                                                                                     <field name="NUM">1</field>
                                                                                                                   </shadow>
                                                                                                                   <block type="variables_get" 
              

              X 1 Reply Last reply Reply Quote 0
              • X
                xbow42 @xbow42 last edited by

                leider zu viele Zeichen, ... Fortsetzung von script-2

                id="P?:U8P,b!c@_Or6TX1AK">
                                                                                                                       <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <value name="B">
                                                                                                                     <shadow type="math_number" id="Ul=wef5gJ6u/1m$=kK[X">
                                                                                                                       <field name="NUM">0.1</field>
                                                                                                                     </shadow>
                                                                                                                   </value>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                         </block>
                                                                                                       </value>
                                                                                                       <next>
                                                                                                         <block type="debug" id=";`2[Gh[weopRCit:=02#" disabled="true">
                                                                                                           <field name="Severity">log</field>
                                                                                                           <value name="TEXT">
                                                                                                             <shadow type="text">
                                                                                                               <field name="TEXT">test</field>
                                                                                                             </shadow>
                                                                                                             <block type="text_join" id="mAxg]m9Sj{W$:,xQ8%CY">
                                                                                                               <mutation items="2"></mutation>
                                                                                                               <value name="ADD0">
                                                                                                                 <block type="text" id="Zp5*}s:(hrU5B$v(w::I">
                                                                                                                   <field name="TEXT">untere Grenze: </field>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                               <value name="ADD1">
                                                                                                                 <block type="variables_get" id="GKYV44[,SA?yeSV,PSLK">
                                                                                                                   <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                             </block>
                                                                                                           </value>
                                                                                                           <next>
                                                                                                             <block type="variables_set" id="h(_$mcjaiZ$bM^3X:+{3">
                                                                                                               <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                                                               <value name="VALUE">
                                                                                                                 <block type="math_round" id="Z@X?t|0432_q8mNe9_b9">
                                                                                                                   <field name="OP">ROUND</field>
                                                                                                                   <value name="NUM">
                                                                                                                     <shadow type="math_number" id="PHj*E0XpM7E]6n-Ue^Nd">
                                                                                                                       <field name="NUM">3.1</field>
                                                                                                                     </shadow>
                                                                                                                     <block type="math_arithmetic" id="A=JX.PE!`g7idZp=D9jk">
                                                                                                                       <field name="OP">MULTIPLY</field>
                                                                                                                       <value name="A">
                                                                                                                         <shadow type="math_number">
                                                                                                                           <field name="NUM">1</field>
                                                                                                                         </shadow>
                                                                                                                         <block type="variables_get" id="b;R_eaD@LyScWL[g7YM/">
                                                                                                                           <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="B">
                                                                                                                         <shadow type="math_number" id="8!X6Z_~!kv(;Cu*S2^Hf">
                                                                                                                           <field name="NUM">0.9</field>
                                                                                                                         </shadow>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                 </block>
                                                                                                               </value>
                                                                                                               <next>
                                                                                                                 <block type="debug" id="FYXP:[}2u?ClTi(Gx`vk">
                                                                                                                   <field name="Severity">log</field>
                                                                                                                   <value name="TEXT">
                                                                                                                     <shadow type="text">
                                                                                                                       <field name="TEXT">test</field>
                                                                                                                     </shadow>
                                                                                                                     <block type="text_join" id="AhU36*H;VktpFMjEh:1N">
                                                                                                                       <mutation items="2"></mutation>
                                                                                                                       <value name="ADD0">
                                                                                                                         <block type="text" id="/IcA+H5-nUhp!zD/53H)">
                                                                                                                           <field name="TEXT">untere Grenze: </field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <value name="ADD1">
                                                                                                                         <block type="variables_get" id="XeI.pK-JWH6NGn4K0ktL">
                                                                                                                           <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                     </block>
                                                                                                                   </value>
                                                                                                                   <next>
                                                                                                                     <block type="controls_if" id="m/w5Gd(Yi?+VZrgv-T%A">
                                                                                                                       <mutation elseif="1" else="1"></mutation>
                                                                                                                       <value name="IF0">
                                                                                                                         <block type="logic_operation" id="/ep+vs_y2D~2Ppn6;fv8">
                                                                                                                           <field name="OP">AND</field>
                                                                                                                           <value name="A">
                                                                                                                             <block type="logic_compare" id="Vw)CA:18MF{ig*23wR:f">
                                                                                                                               <field name="OP">GTE</field>
                                                                                                                               <value name="A">
                                                                                                                                 <block type="variables_get" id="na2UT4iil3M%FF+L%/(t">
                                                                                                                                   <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                               <value name="B">
                                                                                                                                 <block type="math_number" id="cO45A=d9G+JuiY7DA6ra">
                                                                                                                                   <field name="NUM">100</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <value name="B">
                                                                                                                             <block type="logic_compare" id="mGU.::tt9/6ka^~_yZ8B">
                                                                                                                               <field name="OP">EQ</field>
                                                                                                                               <value name="A">
                                                                                                                                 <block type="variables_get" id="po;b}.XV;9~`3v(+=Dyd">
                                                                                                                                   <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                               <value name="B">
                                                                                                                                 <block type="math_number" id="5cxPz=UW{taj#azd*9oj">
                                                                                                                                   <field name="NUM">100</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <statement name="DO0">
                                                                                                                         <block type="debug" id="GpG^0fF@-.[T7MPto[Xl">
                                                                                                                           <field name="Severity">log</field>
                                                                                                                           <value name="TEXT">
                                                                                                                             <shadow type="text" id="VW$vDofE8wb@I+8K7)gB">
                                                                                                                               <field name="TEXT">keine Änderung, Wert ist gleich gespeichertem Wert</field>
                                                                                                                             </shadow>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </statement>
                                                                                                                       <value name="IF1">
                                                                                                                         <block type="logic_operation" id="bs)BP):=x;4@V-wNW?Hr">
                                                                                                                           <field name="OP">OR</field>
                                                                                                                           <value name="A">
                                                                                                                             <block type="logic_compare" id="+QrlIJ%YsOGPj7ICm*1W">
                                                                                                                               <field name="OP">GT</field>
                                                                                                                               <value name="A">
                                                                                                                                 <block type="variables_get" id="UEx3aFGVLBikc`pbC]eW">
                                                                                                                                   <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                               <value name="B">
                                                                                                                                 <block type="variables_get" id="mUr}YreP0UrFdiKtwFdC">
                                                                                                                                   <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <value name="B">
                                                                                                                             <block type="logic_compare" id="J+=O9wORZ.3at!MU1x{`">
                                                                                                                               <field name="OP">LT</field>
                                                                                                                               <value name="A">
                                                                                                                                 <block type="variables_get" id=":?x=C]M%{^7/yM`qS`lA">
                                                                                                                                   <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                               <value name="B">
                                                                                                                                 <block type="variables_get" id="bdE@%wY`{9`FaPPBtFH5">
                                                                                                                                   <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                         </block>
                                                                                                                       </value>
                                                                                                                       <statement name="DO1">
                                                                                                                         <block type="controls_if" id="cn4p5hLiPdMG9FYk}%U0">
                                                                                                                           <mutation else="1"></mutation>
                                                                                                                           <value name="IF0">
                                                                                                                             <block type="logic_compare" id="x/elgflhL?=#P.J^vuO`">
                                                                                                                               <field name="OP">LTE</field>
                                                                                                                               <value name="A">
                                                                                                                                 <block type="variables_get" id="R$kXLrBj]Orf7kn!18f/">
                                                                                                                                   <field name="VAR" id="le#}gR{6G.yhW=x|6pS8">neededPower</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                               <value name="B">
                                                                                                                                 <block type="variables_get" id="+ma9$KbQb6J0c~L9%t:!">
                                                                                                                                   <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                             </block>
                                                                                                                           </value>
                                                                                                                           <statement name="DO0">
                                                                                                                             <block type="variables_set" id="8btcJx!n`-G^o|cX4QE7">
                                                                                                                               <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                               <value name="VALUE">
                                                                                                                                 <block type="variables_get" id=";.zr?n({Cx6=U9xIBsO=">
                                                                                                                                   <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                               <next>
                                                                                                                                 <block type="update" id="cxBC@Hx9RzeWK*WeO@fS">
                                                                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                   <field name="OID">0_userdata.0.Statistik.PV-Anlage.storedNeededPower</field>
                                                                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                                                                   <value name="VALUE">
                                                                                                                                     <block type="variables_get" id="jz.$S+j.?+w29:Em!Tte">
                                                                                                                                       <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                                     </block>
                                                                                                                                   </value>
                                                                                                                                 </block>
                                                                                                                               </next>
                                                                                                                             </block>
                                                                                                                           </statement>
                                                                                                                           <statement name="ELSE">
                                                                                                                             <block type="variables_set" id="Wv)?TZg[F(:|3F4%1lr%">
                                                                                                                               <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                               <value name="VALUE">
                                                                                                                                 <block type="math_number" id="SSBrCH-egg.+1-,3{SQ4">
                                                                                                                                   <field name="NUM">100</field>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                               <next>
                                                                                                                                 <block type="update" id="{Zdci`c;ge/-MA{dE5.5">
                                                                                                                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                   <field name="OID">0_userdata.0.Statistik.PV-Anlage.storedNeededPower</field>
                                                                                                                                   <field name="WITH_DELAY">FALSE</field>
                                                                                                                                   <value name="VALUE">
                                                                                                                                     <block type="math_number" id="?}Tv5QVIL}W8B$UI1F3=">
                                                                                                                                       <field name="NUM">100</field>
                                                                                                                                     </block>
                                                                                                                                   </value>
                                                                                                                                 </block>
                                                                                                                               </next>
                                                                                                                             </block>
                                                                                                                           </statement>
                                                                                                                           <next>
                                                                                                                             <block type="controls_if" id="y{sh)q#*tSX/QM?HVG_m">
                                                                                                                               <value name="IF0">
                                                                                                                                 <block type="logic_compare" id="HR%-w2J6=]n~LQ,@hC~{">
                                                                                                                                   <field name="OP">LTE</field>
                                                                                                                                   <value name="A">
                                                                                                                                     <block type="variables_get" id="ZZh%:Yn6[2l{0NT_;dqc">
                                                                                                                                       <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                     </block>
                                                                                                                                   </value>
                                                                                                                                   <value name="B">
                                                                                                                                     <block type="math_number" id="!To{#7t%#VdBl|(;U:L+">
                                                                                                                                       <field name="NUM">4</field>
                                                                                                                                     </block>
                                                                                                                                   </value>
                                                                                                                                 </block>
                                                                                                                               </value>
                                                                                                                               <statement name="DO0">
                                                                                                                                 <block type="variables_set" id="%W7]#;0Wr}m.a+3u{gKO">
                                                                                                                                   <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                   <value name="VALUE">
                                                                                                                                     <block type="math_number" id="YVANVn.#Pyb$1N=%:1|k">
                                                                                                                                       <field name="NUM">5</field>
                                                                                                                                     </block>
                                                                                                                                   </value>
                                                                                                                                 </block>
                                                                                                                               </statement>
                                                                                                                               <next>
                                                                                                                                 <block type="controls_if" id="lrJY,aU~$_0,fgyXI~%Q">
                                                                                                                                   <mutation else="1"></mutation>
                                                                                                                                   <value name="IF0">
                                                                                                                                     <block type="logic_operation" id=":AF1Y1@ha$$1CVw58ijM">
                                                                                                                                       <field name="OP">OR</field>
                                                                                                                                       <value name="A">
                                                                                                                                         <block type="logic_compare" id="IDrX[?4=Py+?K4BW!rI9">
                                                                                                                                           <field name="OP">LTE</field>
                                                                                                                                           <value name="A">
                                                                                                                                             <block type="get_value" id="/A)l3~Jkrw!h#5DeKjp8">
                                                                                                                                               <field name="ATTR">val</field>
                                                                                                                                               <field name="OID">0_userdata.0.Statistik.PV-Anlage.HM1500-1.Solarlimit</field>
                                                                                                                                             </block>
                                                                                                                                           </value>
                                                                                                                                           <value name="B">
                                                                                                                                             <block type="math_number" id="P~i^SjOh7h`!~Y?bk/z(">
                                                                                                                                               <field name="NUM">5</field>
                                                                                                                                             </block>
                                                                                                                                           </value>
                                                                                                                                         </block>
                                                                                                                                       </value>
                                                                                                                                       <value name="B">
                                                                                                                                         <block type="logic_operation" id="5T[}sjr*8L|l.WriMD]E">
                                                                                                                                           <field name="OP">OR</field>
                                                                                                                                           <value name="A">
                                                                                                                                             <block type="logic_compare" id="uEb-{e1R=w!LVZjiAphy">
                                                                                                                                               <field name="OP">GTE</field>
                                                                                                                                               <value name="A">
                                                                                                                                                 <block type="get_value" id="xo3ve^qo4m:^!ik*4)k{">
                                                                                                                                                   <field name="ATTR">val</field>
                                                                                                                                                   <field name="OID">0_userdata.0.Statistik.PV-Anlage.HM1500-1.Solarlimit</field>
                                                                                                                                                 </block>
                                                                                                                                               </value>
                                                                                                                                               <value name="B">
                                                                                                                                                 <block type="math_number" id="8:QFf_fU-O]h-9PZ@.4k">
                                                                                                                                                   <field name="NUM">100</field>
                                                                                                                                                 </block>
                                                                                                                                               </value>
                                                                                                                                             </block>
                                                                                                                                           </value>
                                                                                                                                           <value name="B">
                                                                                                                                             <block type="logic_compare" id="O|xQrM^4SxxqsV3aWHow">
                                                                                                                                               <field name="OP">LT</field>
                                                                                                                                               <value name="A">
                                                                                                                                                 <block type="get_value" id="b_:zyKJQQI~NfQ+Scgzg">
                                                                                                                                                   <field name="ATTR">val</field>
                                                                                                                                                   <field name="OID">opendtu.0.116183071071.ac.phase_1.power</field>
                                                                                                                                                 </block>
                                                                                                                                               </value>
                                                                                                                                               <value name="B">
                                                                                                                                                 <block type="get_value" id="$2$;k1+nx6k@HEO]@6[D">
                                                                                                                                                   <field name="ATTR">val</field>
                                                                                                                                                   <field name="OID">opendtu.0.116183071071.power_control.current_limit_absolute</field>
                                                                                                                                                 </block>
                                                                                                                                               </value>
                                                                                                                                             </block>
                                                                                                                                           </value>
                                                                                                                                         </block>
                                                                                                                                       </value>
                                                                                                                                     </block>
                                                                                                                                   </value>
                                                                                                                                   <statement name="DO0">
                                                                                                                                     <block type="control" id="J*^?uag0bBuE]@hxB2TB" disabled="true">
                                                                                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                       <field name="OID">opendtu.0.116183071071.power_control.limit_nonpersistent_relative</field>
                                                                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                                                                       <value name="VALUE">
                                                                                                                                         <block type="variables_get" id="ka,Om02DK4_JHtN-6iqm">
                                                                                                                                           <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                         </block>
                                                                                                                                       </value>
                                                                                                                                       <next>
                                                                                                                                         <block type="controls_forEach" id="JQ,}5daaQ5%TQW.mO)n!">
                                                                                                                                           <field name="VAR" id="SV}869+51J^[Z*d:t;/T">i</field>
                                                                                                                                           <value name="LIST">
                                                                                                                                             <block type="selector" id="~[)SNq(tl+gIG6]4[/`#">
                                                                                                                                               <field name="TEXT">opendtu.0.*.power_control.limit_nonpersistent_relative</field>
                                                                                                                                             </block>
                                                                                                                                           </value>
                                                                                                                                           <statement name="DO">
                                                                                                                                             <block type="debug" id="xasZvvpjDwpoYFfx-.Sv" disabled="true">
                                                                                                                                               <field name="Severity">log</field>
                                                                                                                                               <value name="TEXT">
                                                                                                                                                 <shadow type="text">
                                                                                                                                                   <field name="TEXT">test</field>
                                                                                                                                                 </shadow>
                                                                                                                                                 <block type="text_join" id="i*Hgw!;(PfkT+Y_G3?7P">
                                                                                                                                                   <mutation items="2"></mutation>
                                                                                                                                                   <value name="ADD0">
                                                                                                                                                     <block type="text" id="yA=h1mVs0Ll/Q6dY=T0}">
                                                                                                                                                       <field name="TEXT">WR-Limit-DP: </field>
                                                                                                                                                     </block>
                                                                                                                                                   </value>
                                                                                                                                                   <value name="ADD1">
                                                                                                                                                     <block type="variables_get" id="3cFEHf%!-1=nVKKS%3*s">
                                                                                                                                                       <field name="VAR" id="SV}869+51J^[Z*d:t;/T">i</field>
                                                                                                                                                     </block>
                                                                                                                                                   </value>
                                                                                                                                                 </block>
                                                                                                                                               </value>
                                                                                                                                               <next>
                                                                                                                                                 <block type="control_ex" id="-S(v)fii6N9u-3q+6yTM">
                                                                                                                                                   <field name="TYPE">false</field>
                                                                                                                                                   <field name="CLEAR_RUNNING">FALSE</field>
                                                                                                                                                   <value name="OID">
                                                                                                                                                     <shadow type="field_oid" id="50H5G*)k/!@im~7*YMoz">
                                                                                                                                                       <field name="oid">Object ID</field>
                                                                                                                                                     </shadow>
                                                                                                                                                     <block type="variables_get" id="evNr=Xa+T.%Y=CFAK?c,">
                                                                                                                                                       <field name="VAR" id="SV}869+51J^[Z*d:t;/T">i</field>
                                                                                                                                                     </block>
                                                                                                                                                   </value>
                                                                                                                                                   <value name="VALUE">
                                                                                                                                                     <shadow type="logic_boolean">
                                                                                                                                                       <field name="BOOL">TRUE</field>
                                                                                                                                                     </shadow>
                                                                                                                                                     <block type="variables_get" id="`Mq3[]Ct3HjZ@gU/7Sq5">
                                                                                                                                                       <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                                     </block>
                                                                                                                                                   </value>
                                                                                                                                                   <value name="DELAY_MS">
                                                                                                                                                     <shadow type="math_number" id="c9^E5jneT_4sLZ[SGwoy">
                                                                                                                                                       <field name="NUM">0</field>
                                                                                                                                                     </shadow>
                                                                                                                                                   </value>
                                                                                                                                                 </block>
                                                                                                                                               </next>
                                                                                                                                             </block>
                                                                                                                                           </statement>
                                                                                                                                           <next>
                                                                                                                                             <block type="debug" id="UMR(~(W]pY8`7Olhy`en">
                                                                                                                                               <field name="Severity">log</field>
                                                                                                                                               <value name="TEXT">
                                                                                                                                                 <shadow type="text">
                                                                                                                                                   <field name="TEXT">test</field>
                                                                                                                                                 </shadow>
                                                                                                                                                 <block type="text_join" id="aB%Fe~4Z04`o$g?PB^]5">
                                                                                                                                                   <mutation items="2"></mutation>
                                                                                                                                                   <value name="ADD0">
                                                                                                                                                     <block type="text" id="mzY%{.M}fVzyrRzQ@~ol">
                                                                                                                                                       <field name="TEXT">gesetze alle WR auf Limit: </field>
                                                                                                                                                     </block>
                                                                                                                                                   </value>
                                                                                                                                                   <value name="ADD1">
                                                                                                                                                     <block type="variables_get" id="=;vhYkN;=zJK{iPVTqlI">
                                                                                                                                                       <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                                     </block>
                                                                                                                                                   </value>
                                                                                                                                                 </block>
                                                                                                                                               </value>
                                                                                                                                             </block>
                                                                                                                                           </next>
                                                                                                                                         </block>
                                                                                                                                       </next>
                                                                                                                                     </block>
                                                                                                                                   </statement>
                                                                                                                                   <statement name="ELSE">
                                                                                                                                     <block type="debug" id="3034h1EDt(QYJ2W3wDJY">
                                                                                                                                       <field name="Severity">log</field>
                                                                                                                                       <value name="TEXT">
                                                                                                                                         <shadow type="text" id="fxZ`jPA-gck|QO[}bGfg">
                                                                                                                                           <field name="TEXT">keine Änderung</field>
                                                                                                                                         </shadow>
                                                                                                                                       </value>
                                                                                                                                     </block>
                                                                                                                                   </statement>
                                                                                                                                 </block>
                                                                                                                               </next>
                                                                                                                             </block>
                                                                                                                           </next>
                                                                                                                         </block>
                                                                                                                       </statement>
                                                                                                                       <statement name="ELSE">
                                                                                                                         <block type="debug" id="#j+r6dl;paPcP~RtZu;/">
                                                                                                                           <field name="Severity">log</field>
                                                                                                                           <value name="TEXT">
                                                                                                                             <shadow type="text" id="Q!/d4tC9h[[VvAhBN)G|">
                                                                                                                               <field name="TEXT">keine Änderung</field>
                                                                                                                             </shadow>
                                                                                                                           </value>
                                                                                                                         </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>
                                           </next>
                                         </block>
                                       </statement>
                                       <statement name="ELSE">
                                         <block type="debug" id="}.5#J)eE5,1_rbIoDc@x">
                                           <field name="Severity">log</field>
                                           <value name="TEXT">
                                             <shadow type="text" id="}vcBUQz]77vVSsp22##a">
                                               <field name="TEXT">Zeit ist außerhalb der Reglungszeit.</field>
                                             </shadow>
                                           </value>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
                 <block type="procedures_defnoreturn" id="4k/odgyVv^E|Fz^M66ty" x="-1737" y="-1262">
                   <field name="NAME">Initialisierung</field>
                   <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                   <statement name="STACK">
                     <block type="variables_set" id="VZUO/.f/_AL}1`jSd!hr">
                       <field name="VAR" id="?~:J:;gqC%-pt?=zNsH:">Sunrise</field>
                       <value name="VALUE">
                         <block type="time_astro" id="xV-]BsP5xI-)nr/u1(}j">
                           <field name="TYPE">sunrise</field>
                           <field name="OFFSET">0</field>
                         </block>
                       </value>
                       <next>
                         <block type="variables_set" id="#5`]Ch#+AEUAz(oIMXKQ">
                           <field name="VAR" id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</field>
                           <value name="VALUE">
                             <block type="time_astro" id="=gW-8o*A((8fp8aM-;V]">
                               <field name="TYPE">sunset</field>
                               <field name="OFFSET">0</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
                </xml>
                

                1 Reply Last reply Reply Quote 0
                • Stefan G. 0
                  Stefan G. 0 last edited by

                  Ich bräuchte etwas Hilfe bei der Anpassung des Scripts. Ich würde gerne mit maximal ca 50% der Wechselrichterleistung einspeisen.
                  Ich ab das Scripts jetzt so geändert, dass vor dem Schreiben auf den Wechselrichter geprüft wird, ob der Wert größer oder kleiner 50% ist und entsprechend angepasst wird. Aber ich habe das Gefühl das stört die Berechnungslogik des Scripts. Jemand eine Idee?

                  X 1 Reply Last reply Reply Quote 0
                  • X
                    xbow42 @Stefan G. 0 last edited by

                    @stefan-g-0 Welches Script hast du benutzt? Dann zeig doch mal den Scriptteil, so können wir nur raten oder an der Glaskugel rubbeln.

                    1 Reply Last reply Reply Quote 0
                    • Stefan G. 0
                      Stefan G. 0 last edited by

                      Ich hab dieses hier benutzt und entsprechend angepasst. Ich prüfe vor dem Schreiben von "SolarLimit" auf den Wechselrichter, ob es größer oder kleiner als mein Drosselwert ist. Falls größer schreibe ich den Drosselwert.

                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <variables>
                          <variable id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</variable>
                          <variable id="?~:J:;gqC%-pt?=zNsH:">Sunrise</variable>
                          <variable id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</variable>
                          <variable id="z*CGze`HM;h,=g8Kiaf{">Drosselwert</variable>
                          <variable id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</variable>
                          <variable id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</variable>
                          <variable id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</variable>
                          <variable id="le#}gR{6G.yhW=x|6pS8">neededPower</variable>
                          <variable id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</variable>
                          <variable id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</variable>
                          <variable id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</variable>
                          <variable id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</variable>
                        </variables>
                        <block type="schedule" id="!P+uzJ#%y!_wHsKqo2~M" x="-443" y="-618">
                          <field name="SCHEDULE">*/20 * * * * *</field>
                          <statement name="STATEMENT">
                            <block type="variables_set" id="~v~t5u;a_q(#kb+E{(FH">
                              <field name="VAR" id="?~:J:;gqC%-pt?=zNsH:">Sunrise</field>
                              <value name="VALUE">
                                <block type="time_astro" id="Svgszky6QE2/10f8vck1">
                                  <field name="TYPE">sunrise</field>
                                  <field name="OFFSET">0</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="~/087{!i@]6[`rKxsw]j">
                                  <field name="VAR" id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</field>
                                  <value name="VALUE">
                                    <block type="time_astro" id="BO/%++Qd.ktL4PfK.r3?">
                                      <field name="TYPE">sunset</field>
                                      <field name="OFFSET">0</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="controls_if" id="xaOp|xXgB@BB44iq}cJ.">
                                      <mutation else="1"></mutation>
                                      <value name="IF0">
                                        <block type="logic_operation" id="|K,B[pWUT`!LyJsB6,pK">
                                          <field name="OP">AND</field>
                                          <value name="A">
                                            <block type="time_compare_ex" id="Y8n@Iqzd:%qZbp|#P_v^">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                              <field name="USE_ACTUAL_TIME">TRUE</field>
                                              <field name="OPTION">&gt;=</field>
                                              <value name="START_TIME">
                                                <shadow type="text" id="]-0N3DkP*7?ghtYzXwX!">
                                                  <field name="TEXT">12:00</field>
                                                </shadow>
                                                <block type="variables_get" id="!,6PYgrHnSxh#Evn[Yie">
                                                  <field name="VAR" id="?~:J:;gqC%-pt?=zNsH:">Sunrise</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="time_compare_ex" id="qRYvI=rC7,D?`B=PV@^6">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation>
                                              <field name="USE_ACTUAL_TIME">TRUE</field>
                                              <field name="OPTION">&lt;=</field>
                                              <value name="START_TIME">
                                                <shadow type="text" id="Prz0lJ[Ff$!.fHy0|JP%">
                                                  <field name="TEXT">12:00</field>
                                                </shadow>
                                                <block type="variables_get" id="LMy)6-$QN(f3d9klxV`O">
                                                  <field name="VAR" id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id=",LM-)aU+$I+@$aew%Vm-">
                                          <field name="VAR" id="z*CGze`HM;h,=g8Kiaf{">Drosselwert</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="!l$.aimbnDQVxF;^?}C7">
                                              <field name="NUM">50</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="~p6WKGjCNU[UXfc{|$8|">
                                              <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="Z(v(#cMkS]/o.,;iyE/|">
                                                  <field name="NUM">1500</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="Ih%sQzzK`!Ec=`tscEm-">
                                                  <field name="VAR" id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</field>
                                                  <value name="VALUE">
                                                    <block type="get_value" id="E60zTd:yszZT-@pD[YB#">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">shelly.0.SHEM-3#BCFF4DFD118F#1.Total.InstantPower</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="variables_set" id=":rlAB32E^@yPP9Jh?EMO">
                                                      <field name="VAR" id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</field>
                                                      <value name="VALUE">
                                                        <block type="get_value" id="Q8pLDlgI~N(N2-6)X@Qu">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.116190743424.ac.phase_1.power</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="variables_set" id="t8-xB+K`%rr)x]%:Q5cN">
                                                          <field name="VAR" id="le#}gR{6G.yhW=x|6pS8">neededPower</field>
                                                          <value name="VALUE">
                                                            <block type="math_arithmetic" id="a;U.-:0QItU1Q=;0a)kz">
                                                              <field name="OP">ADD</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="}d9rloSf)l~.^HiZ[;lQ">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="2FaDMR/kS5K9d!j=`dK3">
                                                                  <field name="OP">ADD</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="2FEk%?jHI2)Hvf4}p|*;">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="Z`YZ!4FileGG?5VwaP-/">
                                                                      <field name="VAR" id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="+10nRI6/x]hugF{/lmxM">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="variables_get" id="n0BqKn~p@qPw.Jvfrj,s">
                                                                      <field name="VAR" id="1}Q0686mMw0ZGk)e+r?(">measuredSolarPower</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="O,R:R1iQy0^xtDQ%pEzg">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_number" id="L/fGMljWSM2_zW5XIdX^">
                                                                  <field name="NUM">200</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="variables_set" id="$61h{3os=)%X-VEx9M:i">
                                                              <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                              <value name="VALUE">
                                                                <block type="math_round" id="3$tH.4.P)ukPPcI4xw.A">
                                                                  <field name="OP">ROUND</field>
                                                                  <value name="NUM">
                                                                    <shadow type="math_number" id="{D8W1ElJ#97Cg:]vDkM;">
                                                                      <field name="NUM">3.1</field>
                                                                    </shadow>
                                                                    <block type="math_arithmetic" id="ju~9S8j-`0c/OF%2$7-o">
                                                                      <field name="OP">MULTIPLY</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="6:p#t,*^;)z:Wb:@dc|3">
                                                                          <field name="NUM">100</field>
                                                                        </shadow>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id=".fYZ,3H9RSS}:wD=%Bvk">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="math_arithmetic" id="Z9S-r-/8^FbCeq,[{ULB">
                                                                          <field name="OP">DIVIDE</field>
                                                                          <value name="A">
                                                                            <shadow type="math_number" id="jul_lM$(9.yj`:ZH8}%@">
                                                                              <field name="NUM">1</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="_mPBX.l-0%hNvWtND[z1">
                                                                              <field name="VAR" id="le#}gR{6G.yhW=x|6pS8">neededPower</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <shadow type="math_number" id="{Q+JfjzDv.)Z1KRbU*uv">
                                                                              <field name="NUM">600</field>
                                                                            </shadow>
                                                                            <block type="variables_get" id="M!sN^/9!7$b}.ru.lqgC">
                                                                              <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="variables_set" id="g3gA+F5X4*$4x2),%sJV">
                                                                  <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                  <value name="VALUE">
                                                                    <block type="get_value" id="7wbrC,7l;@ahCGcw2/pL">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">0_userdata.0.PV-Anlage.storedNeededPower</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="variables_set" id="2KI]WdQd`0MzEf%mOPaL">
                                                                      <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_round" id="Ha.~N]M`[1eWboby_aYe">
                                                                          <field name="OP">ROUND</field>
                                                                          <value name="NUM">
                                                                            <shadow type="math_number" id=":C/cpWh)P`-jK9}]IN*4">
                                                                              <field name="NUM">3.1</field>
                                                                            </shadow>
                                                                            <block type="math_arithmetic" id="v}v!|Jkv3JHVqQR7poM0">
                                                                              <field name="OP">ADD</field>
                                                                              <value name="A">
                                                                                <shadow type="math_number" id="U{yunxfvol_:dK{m!k`b">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="variables_get" id="{dg*rTfc(I5I1PoYYN;l">
                                                                                  <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <shadow type="math_number" id="TEJ)K0YFfZ8(D02EG`M@">
                                                                                  <field name="NUM">1</field>
                                                                                </shadow>
                                                                                <block type="math_arithmetic" id="#Aa[sC!ija_TtL9Go*jl">
                                                                                  <field name="OP">MULTIPLY</field>
                                                                                  <value name="A">
                                                                                    <shadow type="math_number" id="6,o$]#*K=2#VFH`_9WTA">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="variables_get" id="?YS@_}6Hup[`ZsLR!Z45">
                                                                                      <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <shadow type="math_number" id="YxGb?xk[MY37)!7O-Cqe">
                                                                                      <field name="NUM">0.05</field>
                                                                                    </shadow>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="variables_set" id="+KJ71_Z(eLN.a(uoEuci">
                                                                          <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_round" id="=HYNg!vGE)^Z7m{+e$cs">
                                                                              <field name="OP">ROUND</field>
                                                                              <value name="NUM">
                                                                                <shadow type="math_number" id="|d.50MyF$Zxnn(B]!gq~">
                                                                                  <field name="NUM">3.1</field>
                                                                                </shadow>
                                                                                <block type="math_arithmetic" id="?8HAOa[X,LM#h`p]lLc4">
                                                                                  <field name="OP">MINUS</field>
                                                                                  <value name="A">
                                                                                    <shadow type="math_number" id="(8p!3BSrd)N0m`PVj}cd">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="variables_get" id="?$cU!rsg;wkU}CP.VsR.">
                                                                                      <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <shadow type="math_number" id="@kP8*eoC!D4/Wa?%grKM">
                                                                                      <field name="NUM">1</field>
                                                                                    </shadow>
                                                                                    <block type="math_arithmetic" id="D$_kryX`Gb5eu$gnYS_q">
                                                                                      <field name="OP">MULTIPLY</field>
                                                                                      <value name="A">
                                                                                        <shadow type="math_number" id="CHoIZ8~aNcbyIIQ`+^XK">
                                                                                          <field name="NUM">1</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="nrL6t1UCC{jy1*U[O|Xq">
                                                                                          <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="B">
                                                                                        <shadow type="math_number" id="||~-FC.nb3oU=fuLJzw}">
                                                                                          <field name="NUM">0.1</field>
                                                                                        </shadow>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="8cGY=ms*^/Fbn#Cde4/e">
                                                                              <field name="Severity">log</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="H62VUB,[liG^nrlRF:tt">
                                                                                  <field name="TEXT">test</field>
                                                                                </shadow>
                                                                                <block type="text_join" id="QUQf.~7J|ziuD3sLdl)|">
                                                                                  <mutation items="2"></mutation>
                                                                                  <value name="ADD0">
                                                                                    <block type="text" id="lGPf[Ci!QdAF4j#Bn34-">
                                                                                      <field name="TEXT">Sonnenaufgang; </field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD1">
                                                                                    <block type="variables_get" id="kwmbl:u%6-!)]lE{Bhdj">
                                                                                      <field name="VAR" id="?~:J:;gqC%-pt?=zNsH:">Sunrise</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="debug" id="yaFK]t~sZKg}j1WzH!TL">
                                                                                  <field name="Severity">log</field>
                                                                                  <value name="TEXT">
                                                                                    <shadow type="text" id="!=3G59}srtq{e9)D:kG*">
                                                                                      <field name="TEXT">test</field>
                                                                                    </shadow>
                                                                                    <block type="text_join" id="g_%Dq-ksE!p;Tib-dWoB">
                                                                                      <mutation items="2"></mutation>
                                                                                      <value name="ADD0">
                                                                                        <block type="text" id="(bZZUaTT0bt~IQ|a~%#R">
                                                                                          <field name="TEXT">Sonnenuntergang; </field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <value name="ADD1">
                                                                                        <block type="variables_get" id="weuYcyZ5+:mfnpSK9UiP">
                                                                                          <field name="VAR" id="UJ`JGN{Ezb$K7jJ[4P}j">Sunset</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="debug" id="1|f1K~GhCe(a;/q4o_X]">
                                                                                      <field name="Severity">log</field>
                                                                                      <value name="TEXT">
                                                                                        <shadow type="text" id="x-eWadG[^C!km-=H]:}6">
                                                                                          <field name="TEXT">test</field>
                                                                                        </shadow>
                                                                                        <block type="text_join" id="2Zo2{I0w6J%`$2:qEY1l">
                                                                                          <mutation items="2"></mutation>
                                                                                          <value name="ADD0">
                                                                                            <block type="text" id="+YI.VRyx;em.YT$D(|bs">
                                                                                              <field name="TEXT">Istwert: </field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="ADD1">
                                                                                            <block type="variables_get" id="z%3ACfZd0~)KLgj0p}%@">
                                                                                              <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="debug" id="r+xN[i`4xS-M`OYDBpb.">
                                                                                          <field name="Severity">log</field>
                                                                                          <value name="TEXT">
                                                                                            <shadow type="text" id="IzsRzbI6F~d5],Hap$(]">
                                                                                              <field name="TEXT">test</field>
                                                                                            </shadow>
                                                                                            <block type="text_join" id="(f(78JM#Hy0@?Z0hJe~l">
                                                                                              <mutation items="2"></mutation>
                                                                                              <value name="ADD0">
                                                                                                <block type="text" id="~}`O(MW.TU:J%_oS)#Xu">
                                                                                                  <field name="TEXT">obere Grenze: </field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="ADD1">
                                                                                                <block type="variables_get" id=",vBoJg7x{3!@v.c5w4q]">
                                                                                                  <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="debug" id="qBNh2:P3U}F#$|$6FZFn">
                                                                                              <field name="Severity">log</field>
                                                                                              <value name="TEXT">
                                                                                                <shadow type="text" id="2kPK8(t-SdR9TZvb.%-l">
                                                                                                  <field name="TEXT">test</field>
                                                                                                </shadow>
                                                                                                <block type="text_join" id="}cq5v9RJT$55w(=?6BX)">
                                                                                                  <mutation items="2"></mutation>
                                                                                                  <value name="ADD0">
                                                                                                    <block type="text" id="*q^TTVgJ+?:b!z,x/S;V">
                                                                                                      <field name="TEXT">untere Grenze: </field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="ADD1">
                                                                                                    <block type="variables_get" id="Vh$)4$K%:ZHW:~MiMXet">
                                                                                                      <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <next>
                                                                                                <block type="debug" id="k}*+@}8y%^u*6nB1JGm^">
                                                                                                  <field name="Severity">log</field>
                                                                                                  <value name="TEXT">
                                                                                                    <shadow type="text" id="_QR/WZ8nPoRE;O(*~nCd">
                                                                                                      <field name="TEXT">test</field>
                                                                                                    </shadow>
                                                                                                    <block type="text_join" id="9O/.cB+R0J#M=YHuIJn?">
                                                                                                      <mutation items="2"></mutation>
                                                                                                      <value name="ADD0">
                                                                                                        <block type="text" id="3Uv-x,Irz%wnP{oXU!s^">
                                                                                                          <field name="TEXT">benötigte Power in Prozent: </field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="ADD1">
                                                                                                        <block type="variables_get" id="T);Yxf;X[xS0z_7}_YkI">
                                                                                                          <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <next>
                                                                                                    <block type="debug" id="^YDhG@UuUW]S56Hj`Hy5">
                                                                                                      <field name="Severity">log</field>
                                                                                                      <value name="TEXT">
                                                                                                        <shadow type="text" id="=obzK~!.,8zkt6;/x6L=">
                                                                                                          <field name="TEXT">test</field>
                                                                                                        </shadow>
                                                                                                        <block type="text_join" id="V$lr1mYZa{TtI%S5xyu^">
                                                                                                          <mutation items="3"></mutation>
                                                                                                          <value name="ADD0">
                                                                                                            <block type="text" id="iU,u1kyso{}XAE[Jpp0H">
                                                                                                              <field name="TEXT">aktueller Bezug: </field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="ADD1">
                                                                                                            <block type="variables_get" id=",]tO,O1-TAt8/MU~#_`R">
                                                                                                              <field name="VAR" id="AcYpB0Ty+wVObL7=Y.a.">measuredPower</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <value name="ADD2">
                                                                                                            <block type="text" id="nC2YHo+c`taKRNk4:cD,">
                                                                                                              <field name="TEXT"> Watt</field>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <next>
                                                                                                        <block type="controls_if" id="//Rx),f%pyif!qW8O/?G">
                                                                                                          <mutation elseif="1" else="1"></mutation>
                                                                                                          <value name="IF0">
                                                                                                            <block type="logic_operation" id="6|n{EZ*g-L?wwMuw~`pt">
                                                                                                              <field name="OP">AND</field>
                                                                                                              <value name="A">
                                                                                                                <block type="logic_compare" id="@s)ep$AZC}nn4%[Y{zXv">
                                                                                                                  <field name="OP">GTE</field>
                                                                                                                  <value name="A">
                                                                                                                    <block type="variables_get" id="rLGQIwoD@(-[)i.@Gek1">
                                                                                                                      <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="B">
                                                                                                                    <block type="math_number" id="i.8)/]r6EY5E@{+61}ch">
                                                                                                                      <field name="NUM">100</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="B">
                                                                                                                <block type="logic_compare" id="M%7gn=%*6!Oo0Iy!N0HE">
                                                                                                                  <field name="OP">EQ</field>
                                                                                                                  <value name="A">
                                                                                                                    <block type="variables_get" id="FPBUa4}8MCdw~u2(u=Z4">
                                                                                                                      <field name="VAR" id=":U;.Z4:pYNy(TwM9X-dL">storedNeededPower</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="B">
                                                                                                                    <block type="math_number" id="])#t~DUCT78?qe_~1/X)">
                                                                                                                      <field name="NUM">100</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <statement name="DO0">
                                                                                                            <block type="debug" id="_|aD2Z`JU`?BoQCCcfTz">
                                                                                                              <field name="Severity">log</field>
                                                                                                              <value name="TEXT">
                                                                                                                <shadow type="text" id="wcNA/`cj2DUcJLr26^bd">
                                                                                                                  <field name="TEXT">keine Änderung, Wert ist gleich gespeichertem Wert</field>
                                                                                                                </shadow>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </statement>
                                                                                                          <value name="IF1">
                                                                                                            <block type="logic_operation" id="4WJuW,40dOlCCnG8!=A(">
                                                                                                              <field name="OP">OR</field>
                                                                                                              <value name="A">
                                                                                                                <block type="logic_compare" id="0U*fZT58L0uKFJsD)N{;">
                                                                                                                  <field name="OP">GT</field>
                                                                                                                  <value name="A">
                                                                                                                    <block type="variables_get" id="%=U`G7.6z`w:8|:XtgTI">
                                                                                                                      <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="B">
                                                                                                                    <block type="variables_get" id="IE{(_NPVQP{:.^rxbG?4">
                                                                                                                      <field name="VAR" id="}s`y%Qd}~t2t(jU$8(ud">upperLimit</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <value name="B">
                                                                                                                <block type="logic_compare" id="7GGwP6lHcmy!ILxZJvYk">
                                                                                                                  <field name="OP">LT</field>
                                                                                                                  <value name="A">
                                                                                                                    <block type="variables_get" id="EN^7brshgWEicI7V4)C!">
                                                                                                                      <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="B">
                                                                                                                    <block type="variables_get" id="7B.88d1a^Hr`R-b6!iMZ">
                                                                                                                      <field name="VAR" id="P^1|W+9iVy?PgNp}9!.S">lowerLimit</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                            </block>
                                                                                                          </value>
                                                                                                          <statement name="DO1">
                                                                                                            <block type="controls_if" id="P8/_4.KJ/zZ6qh9iBh+o">
                                                                                                              <mutation else="1"></mutation>
                                                                                                              <value name="IF0">
                                                                                                                <block type="logic_compare" id="mk*xKT^,LdqKZpmRr}r4">
                                                                                                                  <field name="OP">LTE</field>
                                                                                                                  <value name="A">
                                                                                                                    <block type="variables_get" id=".d_KP;p/?wytr_{S7(db">
                                                                                                                      <field name="VAR" id="le#}gR{6G.yhW=x|6pS8">neededPower</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <value name="B">
                                                                                                                    <block type="variables_get" id="R!EQmKR0*lP1iR`NTG%f">
                                                                                                                      <field name="VAR" id="BN!a@q$SEAU4^)xo:SRJ">maxSolarPower</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                </block>
                                                                                                              </value>
                                                                                                              <statement name="DO0">
                                                                                                                <block type="variables_set" id="v_^pc%4YAqueF4@xp/Ph">
                                                                                                                  <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                  <value name="VALUE">
                                                                                                                    <block type="variables_get" id="rba!2I;EQyijkPfjo!Ze">
                                                                                                                      <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <next>
                                                                                                                    <block type="update" id="E7HJvqAC,*BNAxN~e8sd">
                                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                      <field name="OID">0_userdata.0.PV-Anlage.storedNeededPower</field>
                                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                                      <value name="VALUE">
                                                                                                                        <block type="variables_get" id="hR1[WimPbd@1ICN+UAdn">
                                                                                                                          <field name="VAR" id="X-B3:`dA%wy5$?]at5W-">NeededPowerPercent</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </next>
                                                                                                                </block>
                                                                                                              </statement>
                                                                                                              <statement name="ELSE">
                                                                                                                <block type="variables_set" id="iqqD`P-h34,:2q7p$CH|">
                                                                                                                  <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                  <value name="VALUE">
                                                                                                                    <block type="math_number" id="dowAhu.+=iz#Wc-F]p:X">
                                                                                                                      <field name="NUM">100</field>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <next>
                                                                                                                    <block type="update" id="*?5=;cANP)NJ|KuX_[PF">
                                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                      <field name="OID">0_userdata.0.PV-Anlage.storedNeededPower</field>
                                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                                      <value name="VALUE">
                                                                                                                        <block type="math_number" id="7vXqNl1zb}n*oh6q3:]4">
                                                                                                                          <field name="NUM">100</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </next>
                                                                                                                </block>
                                                                                                              </statement>
                                                                                                              <next>
                                                                                                                <block type="controls_if" id="]^/I[vJo!sr5LpkbcFB!">
                                                                                                                  <value name="IF0">
                                                                                                                    <block type="logic_compare" id="%50d#)U*~RScC:F-kp{g">
                                                                                                                      <field name="OP">LTE</field>
                                                                                                                      <value name="A">
                                                                                                                        <block type="variables_get" id="KVYNgaA$~@zFf4U(-2G(">
                                                                                                                          <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <value name="B">
                                                                                                                        <block type="math_number" id="!0pj`kNb_!ZOVov*^)[3">
                                                                                                                          <field name="NUM">4</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </value>
                                                                                                                  <statement name="DO0">
                                                                                                                    <block type="variables_set" id="/4+e9gEK~pdujzM|}ksi">
                                                                                                                      <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                      <value name="VALUE">
                                                                                                                        <block type="math_number" id="c+YG2dsZvm-}l6dXt[1Z">
                                                                                                                          <field name="NUM">5</field>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                    </block>
                                                                                                                  </statement>
                                                                                                                  <next>
                                                                                                                    <block type="control" id="W+gr)Q`C;VMjG:,mB)8r">
                                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                      <field name="OID">opendtu.0.116190743424.power_control.limit_nonpersistent_relative</field>
                                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                                      <value name="VALUE">
                                                                                                                        <block type="logic_ternary" id=";sFFAfljVZ6Z,4Hj1E.,">
                                                                                                                          <value name="IF">
                                                                                                                            <block type="logic_compare" id="K$|~0#y=wVD5PE=bkE}q">
                                                                                                                              <field name="OP">GTE</field>
                                                                                                                              <value name="A">
                                                                                                                                <block type="variables_get" id="s~rkNt-]~GB@EGz5xO0x">
                                                                                                                                  <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                </block>
                                                                                                                              </value>
                                                                                                                              <value name="B">
                                                                                                                                <block type="variables_get" id="Spb2f@6),Fdr.F?-T%,5">
                                                                                                                                  <field name="VAR" id="z*CGze`HM;h,=g8Kiaf{">Drosselwert</field>
                                                                                                                                </block>
                                                                                                                              </value>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                          <value name="THEN">
                                                                                                                            <block type="variables_get" id="YM@qJ^Vd4^scx`yk]T0x">
                                                                                                                              <field name="VAR" id="z*CGze`HM;h,=g8Kiaf{">Drosselwert</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                          <value name="ELSE">
                                                                                                                            <block type="variables_get" id="sGW|-?0p?f%T3GmWYs,$">
                                                                                                                              <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                        </block>
                                                                                                                      </value>
                                                                                                                      <next>
                                                                                                                        <block type="update" id="s#3b#336vxWJ~)CrO5|2">
                                                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                          <field name="OID">0_userdata.0.PV-Anlage.storedNeededPower</field>
                                                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                                                          <value name="VALUE">
                                                                                                                            <block type="variables_get" id="G@Vi{iS}Y+YU)Hb+t-9X">
                                                                                                                              <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                            </block>
                                                                                                                          </value>
                                                                                                                          <next>
                                                                                                                            <block type="debug" id="4(mO4hae0d8|yCEDlMj~">
                                                                                                                              <field name="Severity">log</field>
                                                                                                                              <value name="TEXT">
                                                                                                                                <shadow type="text" id="GhK9E*i9z*IoFuBKSaq1">
                                                                                                                                  <field name="TEXT">test</field>
                                                                                                                                </shadow>
                                                                                                                                <block type="text_join" id="K$7:Tw;%Pm?f$3/:xV?V">
                                                                                                                                  <mutation items="2"></mutation>
                                                                                                                                  <value name="ADD0">
                                                                                                                                    <block type="text" id="tzX795?CuQ=.SGL`i!ns">
                                                                                                                                      <field name="TEXT">gesetztes Limit: </field>
                                                                                                                                    </block>
                                                                                                                                  </value>
                                                                                                                                  <value name="ADD1">
                                                                                                                                    <block type="variables_get" id="`hpd|~6gnaa1#A:#I^ku">
                                                                                                                                      <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                    </block>
                                                                                                                                  </value>
                                                                                                                                </block>
                                                                                                                              </value>
                                                                                                                              <next>
                                                                                                                                <block type="controls_if" id="ZH?n)}/A8xDqvLu;mM3m" disabled="true">
                                                                                                                                  <mutation else="1"></mutation>
                                                                                                                                  <value name="IF0">
                                                                                                                                    <block type="logic_operation" id="vVy#@8N({zRaYhlMew]c" disabled="true">
                                                                                                                                      <field name="OP">OR</field>
                                                                                                                                      <value name="A">
                                                                                                                                        <block type="logic_compare" id="PIGb)h}(L;=:AD;5r=W$">
                                                                                                                                          <field name="OP">LTE</field>
                                                                                                                                          <value name="A">
                                                                                                                                            <block type="get_value" id="Hn,:c1}lRncb$M*c37T[">
                                                                                                                                              <field name="ATTR">val</field>
                                                                                                                                              <field name="OID">0_userdata.0.PV-Anlage.Solarlimit_HM400.Solarlimit_HM400</field>
                                                                                                                                            </block>
                                                                                                                                          </value>
                                                                                                                                          <value name="B">
                                                                                                                                            <block type="math_number" id="O/l%Uh0A@?HPfD;/4eRW">
                                                                                                                                              <field name="NUM">5</field>
                                                                                                                                            </block>
                                                                                                                                          </value>
                                                                                                                                        </block>
                                                                                                                                      </value>
                                                                                                                                      <value name="B">
                                                                                                                                        <block type="logic_operation" id="x8],WeAvz)P5RbWxBqKU">
                                                                                                                                          <field name="OP">OR</field>
                                                                                                                                          <value name="A">
                                                                                                                                            <block type="logic_compare" id="D1Vr-[UHVwz,0UMcxf~t">
                                                                                                                                              <field name="OP">GTE</field>
                                                                                                                                              <value name="A">
                                                                                                                                                <block type="get_value" id="*^o)uk]A48Tjk%pvj2pB">
                                                                                                                                                  <field name="ATTR">val</field>
                                                                                                                                                  <field name="OID">0_userdata.0.PV-Anlage.Solarlimit_HM400.Solarlimit_HM400</field>
                                                                                                                                                </block>
                                                                                                                                              </value>
                                                                                                                                              <value name="B">
                                                                                                                                                <block type="math_number" id="az|/|Fl[JpJ{rB83ed[p">
                                                                                                                                                  <field name="NUM">100</field>
                                                                                                                                                </block>
                                                                                                                                              </value>
                                                                                                                                            </block>
                                                                                                                                          </value>
                                                                                                                                          <value name="B">
                                                                                                                                            <block type="logic_compare" id="1f.~}_NZHFWHi$U;Bl[E">
                                                                                                                                              <field name="OP">LT</field>
                                                                                                                                              <value name="A">
                                                                                                                                                <block type="get_value" id="o%XYKF2zkxK+dE|3E%-_">
                                                                                                                                                  <field name="ATTR">val</field>
                                                                                                                                                  <field name="OID">opendtu.0.112183217812.ac.phase_1.power</field>
                                                                                                                                                </block>
                                                                                                                                              </value>
                                                                                                                                              <value name="B">
                                                                                                                                                <block type="get_value" id="uM~uo~N[nRQ?i9!fzRA!">
                                                                                                                                                  <field name="ATTR">val</field>
                                                                                                                                                  <field name="OID">opendtu.0.112183217812.power_control.current_limit_absolute</field>
                                                                                                                                                </block>
                                                                                                                                              </value>
                                                                                                                                            </block>
                                                                                                                                          </value>
                                                                                                                                        </block>
                                                                                                                                      </value>
                                                                                                                                    </block>
                                                                                                                                  </value>
                                                                                                                                  <statement name="ELSE">
                                                                                                                                    <block type="debug" id="Pv3KiYZaGuo2FdU}gjig">
                                                                                                                                      <field name="Severity">log</field>
                                                                                                                                      <value name="TEXT">
                                                                                                                                        <shadow type="text" id="t2%tFy.G9l;?j^VyEMCa">
                                                                                                                                          <field name="TEXT">keine Änderung</field>
                                                                                                                                        </shadow>
                                                                                                                                      </value>
                                                                                                                                    </block>
                                                                                                                                  </statement>
                                                                                                                                </block>
                                                                                                                              </next>
                                                                                                                            </block>
                                                                                                                          </next>
                                                                                                                        </block>
                                                                                                                      </next>
                                                                                                                    </block>
                                                                                                                  </next>
                                                                                                                </block>
                                                                                                              </next>
                                                                                                            </block>
                                                                                                          </statement>
                                                                                                          <statement name="ELSE">
                                                                                                            <block type="debug" id="k-_yI!1YR}Cw@^zA*2By">
                                                                                                              <field name="Severity">log</field>
                                                                                                              <value name="TEXT">
                                                                                                                <shadow type="text" id="pOzzR,#7b~P,=jhm/QLz">
                                                                                                                  <field name="TEXT">keine Änderung</field>
                                                                                                                </shadow>
                                                                                                              </value>
                                                                                                            </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>
                                      </statement>
                                      <statement name="ELSE">
                                        <block type="debug" id="6hv2w66u%V}c3Ij`Q?pi">
                                          <field name="Severity">log</field>
                                          <value name="TEXT">
                                            <shadow type="text" id="LmPU])Tk80,#%40`K:m4">
                                              <field name="TEXT">Zeit ist außerhalb der Reglungszeit.</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <next>
                            <block type="on" id="ZL8vO[p1R/A;ya1za`xr">
                              <field name="OID">opendtu.0.116190743424.ac.phase_1.power</field>
                              <field name="CONDITION">ne</field>
                              <field name="ACK_CONDITION"></field>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="i-LU9|:0W/^N9OUHV|vz">
                                  <value name="IF0">
                                    <block type="logic_operation" id="48E=B|L[caW^`eKm5$Cc">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="ADUq~1G|e1m2kF9p-[da">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="on_source" id="]/H$#$HQ9nwK}$2/`2.Q">
                                              <field name="ATTR">state.val</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="r:ue*$Q:uC]aI/~i0U4s">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="~2fS%r3Dl82Iw#.eqH2@">
                                          <field name="OP">GT</field>
                                          <value name="A">
                                            <block type="on_source" id="*2RL.urvN{kWxHd3WB`u">
                                              <field name="ATTR">oldState.val</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="z}#YN6;iKhUl2_Ro+6Q#">
                                              <field name="NUM">600</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="telegram" id="Vtc?VuGf[$DFDIRTl,|s">
                                      <field name="INSTANCE"></field>
                                      <field name="LOG"></field>
                                      <field name="SILENT">FALSE</field>
                                      <field name="PARSEMODE">default</field>
                                      <field name="ESCAPING">FALSE</field>
                                      <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                      <value name="MESSAGE">
                                        <shadow type="text" id="G@pf3q(s;qCR*%@78O,h">
                                          <field name="TEXT">HM1500 Voltage reset</field>
                                        </shadow>
                                      </value>
                                      <value name="USERNAME">
                                        <block type="text" id="0bbcQ.OXxi{(C*B9MEoW">
                                          <field name="TEXT">Stefan</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                        <block type="variables_get" id="0O[l*@b$eWz(z6Nj5;8Z" x="613" y="962">
                          <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                        </block>
                      </xml>
                      
                      A 1 Reply Last reply Reply Quote 0
                      • A
                        andi_grafa @Stefan G. 0 last edited by andi_grafa

                        Ich habe mir für meine Bedürfnisse das Programm angepasst. Mit der Nulleinspeiseregelung bin ich aber nicht zufrieden, da diese schwingt.
                        Hintergrund:

                        • Smartmeter Shelly EM, Messwert Leistungsbezug leider nur alle 5 s, wahrscheinlich ein gemittelter Wert aus der Messzeit?
                        • Berechnet wird die neue Einspeiseleistung, übertragen mit OpenDTU
                          In dem Moment, wo die "needed Power" Variable berechnet wird, stimmt der Betrag natürlich wegen dem wahrscheinlich gemittelten (vorherigen) Netzbezug nicht, der neue Leistungsbedarf ist zu hoch/zu niedrig--> System schwingt

                        Daher meine Frage:
                        was für eine Aktualisierungszeit hat euer Smartmeter, habt ihr ähnliche Erscheinungen?

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          Tigger66 @andi_grafa last edited by

                          @andi_grafa
                          Ich denke, das größere Problem dabei ist die Reaktionszeit der WR. Ich habe 3 HM und einen HMS. Dass ist ein Unterschied wie Tag und Nacht. Die HM benötigen teils 30 sek ehe sie die neuen Werte an nehmen. Da sind alle Eulen verflogen und es kommt zu dem extremen "schwingen". Der HMS funkt im Sub 1G Bereich und läuft deutlich besser. Die Reaktionszeit ist im Bereich von max. 5sek. Da kann man deutlich besser steuern und der WR macht, was er aktuell soll und nicht eine halbe Minute später. Ich werde mindestens noch einen der HM durch einen HMS ersetzen. Auch die Reichweite ist im Sub 1G Bereich deutlich größer.

                          L 1 Reply Last reply Reply Quote 0
                          • T
                            TomDerBasler @Duffy last edited by

                            @duffy said in Regelung eines Hoymiles Solarinverters (Nulleinspeisung):

                            Das "verstellen" funktioniert bei beiden. Hast du im open DTU Adapter auch die Zugangsadaten der openDTU eingetragen?
                            Bei mir war das die Lösung des Problems, Zugangsdaten rein und schon konnte ich die openDTU in der Leistung über die Objekte verstellen, bzw. begrenzen.

                            Hallo duffy, schönen guten Morgen. Ich bin ganz neu im Forum und versuche gerade über den IObroker openDTU-adapter per blockly den Limit-Werte zu schreiben ( opendtu.0.xxxxxx.power_control.limit_nonpersistent_relative ). ImAdapter habe ich dazu den Wert "solar/114182123339/status/limit_relative". Ich hoffe das ist der "nonpersistent" Datenpunkt. Leider wird der von mir gesetzte Limit-Wert vom openDTU immer wieder mit den vorherigen Wert überschrieben. Hast Du einen Tipp für mich? Viele Grüße

                            Duffy 1 Reply Last reply Reply Quote 0
                            • L
                              Laser @Tigger66 last edited by

                              @tigger66 Bevor jetzt Alle auf HMS umrüsten- kann man nicht die wertvolle Elektroenergie sinnvoll nutzen, anstatt den WR runterzubegrenzen? ZB. Akku laden, Warmwasser erhitzen (WW ist immer noch besser als nichts).

                              1 Reply Last reply Reply Quote 0
                              • Duffy
                                Duffy @TomDerBasler last edited by

                                @tomderbasler

                                Ich steuere:

                                91cdf40e-405c-4e88-bb3c-c0ec1a88e0d5-grafik.png

                                um die Leistung des WR zu ändern.
                                Wenn ich den Wert dort setze bleibt er auch so bis ich ihn wieder ändere.

                                Hast du deine Zugangsdaten der DTU in den OPENDTU Adapter eingetragen?

                                Gruss Duffy

                                K T 2 Replies Last reply Reply Quote 0
                                • K
                                  Kymchy @Duffy last edited by

                                  @duffy so wie ich das sehe, hat er das Topic noch gar nicht angelegt. Wie das geht, steht in dieser Diskussion im Posting vom 17. März 2023.

                                  Duffy 1 Reply Last reply Reply Quote 0
                                  • Duffy
                                    Duffy @Kymchy last edited by

                                    @kymchy

                                    Also ich habe kein Topic angelegt. Mir hat das alles der OpenDTU Adapter geliefert was ich benötigt habe. Muss ehrlicherweise sagen habe auch nie was mit MQTT gemacht immer nur alles mit Adaptern.

                                    K 1 Reply Last reply Reply Quote 0
                                    • K
                                      Kymchy @Duffy last edited by Kymchy

                                      @duffy ok, den Adapter nutze ich nicht. Wäre für mich nur Ballast, vermutlich sollte er den Wert aber trotzdem unter cmd->limit_nonpersistant_relative eintragen. Kann nat. im Adapter anders sein...

                                      L 1 Reply Last reply Reply Quote 0
                                      • L
                                        Laser @Kymchy last edited by

                                        @kymchy Der Adapter ist aber sehr zu empfehlen. Hatte vorher auch MQTT. Der Adapter ist praktischer. Der legt auch die Datenpunkte an.

                                        K 1 Reply Last reply Reply Quote 0
                                        • K
                                          Kymchy @Laser last edited by

                                          @laser da ich für viele andere Sachen MQTT nutze, bringt mir der Adapter nicht viel. Ein Topic ist schnell erstellt.

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            TomDerBasler @Duffy last edited by

                                            @duffy said in Regelung eines Hoymiles Solarinverters (Nulleinspeisung):

                                            Hast du deine Zugangsdaten der DTU in den OPENDTU Adapter eingetragen?

                                            f0706f9a-0a07-4adf-bd8f-23cce0a93415-grafik.png Tatsächlich würde ich gerne über den openDTU-Adapter arbeiten um das LIMIT schreibend zu verändern; weil ich das als Anfänger komfortabler einschätze.

                                            Nach dem Anlegen des openDTU-Adapters hatte ich 2 neue Objekte : mqtt und opendtu .

                                            Den Datenpunkt "limit_nonpersistent_relative" ( Dein Screenshot ) wird mit unter den mqtt-Objekten gar nicht angeboten ( mein ScreenShot-1 ).IOB 240117-01.png
                                            f12ccd8f-9800-4677-afad-47a9687778da-grafik.png Was meinst Du genau mit "Hast du deine Zugangsdaten der DTU in den OPENDTU Adapter eingetragen?"

                                            Vielleicht mache ich ja grundsätlzich etwas falsch ?

                                            viele Grüße
                                            IOB 240117-02.png
                                            IOB 240117-03.png

                                            Duffy 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            900
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            35
                                            202
                                            43619
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo