Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Regelung eines Hoymiles Solarinverters (Nulleinspeisung)

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    17
    1
    512

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    5.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.4k

Regelung eines Hoymiles Solarinverters (Nulleinspeisung)

Scheduled Pinned Locked Moved Blockly
203 Posts 36 Posters 67.7k Views 34 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DuffyD Duffy

    @tigger66 sagte in Regelung eines Hoymiles Solarinverters (Nulleinspeisung):

    zum Ahoy kann ich nicht viel beitragen. Da ich ständig das Problem hatte, dass sich das Teil "aufhing" bin ich zu OpenDTU gewechselt und finde es läuft stabiler. Außerdem gibt es dafür einen Adapter, der in den Objekten die nötigen Datenpunkte anlegt die man dann gut ansteuern kann. Hat die Sache für mich viel einfacher gemacht.

    Hi tigger66,

    heißt das wenn du im openDTU Adapter die Leistung reduzierst (set the inverter limit ....) die Werte auch an die openDTU übertragen werden?

    Bei mir funktioniert das nicht nur wenn ich über openDTU die Leistung reduziere wird das auch direkt im openDTU Adapter angezeigt.

    Viele Grüße

    K Offline
    K Offline
    Kymchy
    wrote on last edited by
    #74

    @duffy Nachrichten ohne "retain"-Flag senden im MQTT-Adapter

    DuffyD 1 Reply Last reply
    0
    • T Offline
      T Offline
      Tigger66
      wrote on last edited by
      #75

      @Duffy ich hab die Datenpunkte im Blockly von @Kymchy angepasst auf die Datenpunkte im OpenDTU Adapter wie in meinem obigen Beitrag mit Bild angezeicnet und ja das funktioniert eigentlich einwandfrei. Gelegentlich dauert es einen Moment bis der WR den Befahl ausführt. Aber es läuft.

      K 1 Reply Last reply
      0
      • T Tigger66

        @Duffy ich hab die Datenpunkte im Blockly von @Kymchy angepasst auf die Datenpunkte im OpenDTU Adapter wie in meinem obigen Beitrag mit Bild angezeicnet und ja das funktioniert eigentlich einwandfrei. Gelegentlich dauert es einen Moment bis der WR den Befahl ausführt. Aber es läuft.

        K Offline
        K Offline
        Kymchy
        wrote on last edited by
        #76

        @tigger66 aber bitte immer nur non_persistent, sonst schießt ihr euch auf Dauer den Speicher im WR ab.

        DuffyD 2 Replies Last reply
        0
        • T Offline
          T Offline
          Tigger66
          wrote on last edited by
          #77

          @Kymchy nee ist schon klar. Habe ich bisher immer nur non_persistent gemacht. Hätte die beiden unteren Datenpunkte besser nicht mit einkreisen sollen. Was bringt dass mit den persistent überhaupt? Dass die Einstellung nach dem WR Neustart erhalten bleiben?

          K 1 Reply Last reply
          0
          • T Tigger66

            @Kymchy nee ist schon klar. Habe ich bisher immer nur non_persistent gemacht. Hätte die beiden unteren Datenpunkte besser nicht mit einkreisen sollen. Was bringt dass mit den persistent überhaupt? Dass die Einstellung nach dem WR Neustart erhalten bleiben?

            K Offline
            K Offline
            Kymchy
            wrote on last edited by
            #78

            @tigger66 ja, genau

            1 Reply Last reply
            0
            • K Kymchy

              @tigger66 aber bitte immer nur non_persistent, sonst schießt ihr euch auf Dauer den Speicher im WR ab.

              DuffyD Offline
              DuffyD Offline
              Duffy
              wrote on last edited by
              #79

              @kymchy

              Wird der Speicher nicht zurückgesetzt wenn der WR stromlos ist?
              Wird er durch persistent speichern dauerhaft beschädigt?

              Viele Grüße

              Nix besonderes; iob auf Respberry pi 4 (8GB) mit 32 GB SSD
              Node.js: v22.22.1
              NPM: 10.9.4
              js-controller 7.0.7
              Linux: Trixie

              1 Reply Last reply
              0
              • K Kymchy

                @duffy Nachrichten ohne "retain"-Flag senden im MQTT-Adapter

                DuffyD Offline
                DuffyD Offline
                Duffy
                wrote on last edited by Duffy
                #80

                @kymchy sagte in Regelung eines Hoymiles Solarinverters (Nulleinspeisung):

                @duffy Nachrichten ohne "retain"-Flag senden im MQTT-Adapter

                Sorry, was ist eine retain Flag?? :confused:

                und muß man das über MQTT machen oder geht das auch über den openDTU Adapter?

                Nix besonderes; iob auf Respberry pi 4 (8GB) mit 32 GB SSD
                Node.js: v22.22.1
                NPM: 10.9.4
                js-controller 7.0.7
                Linux: Trixie

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  Tigger66
                  wrote on last edited by
                  #81

                  Mal zur Info, ich habe jetzt einfach, zum testen, mal ein zweites Script erstellt und dafür einen weiteren "storedNeededpower" Datenpunkt für den zweiten WR angelegt. Die Regelung läuft also für jeden WR seperat. Aber ich bin bisher mit dem Ergebniss eigentlich zufrieden. Für Verbesserungen bin ich aber immer zu haben.

                  DuffyD 1 Reply Last reply
                  0
                  • T Tigger66

                    Mal zur Info, ich habe jetzt einfach, zum testen, mal ein zweites Script erstellt und dafür einen weiteren "storedNeededpower" Datenpunkt für den zweiten WR angelegt. Die Regelung läuft also für jeden WR seperat. Aber ich bin bisher mit dem Ergebniss eigentlich zufrieden. Für Verbesserungen bin ich aber immer zu haben.

                    DuffyD Offline
                    DuffyD Offline
                    Duffy
                    wrote on last edited by
                    #82

                    @tigger66

                    Kannst du das Skript bitte hier zur verfügung stellen?

                    Gruß Duffy

                    Nix besonderes; iob auf Respberry pi 4 (8GB) mit 32 GB SSD
                    Node.js: v22.22.1
                    NPM: 10.9.4
                    js-controller 7.0.7
                    Linux: Trixie

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      Tigger66
                      wrote on last edited by
                      #83

                      @Duffy das ist das Blockly von @Kymchy vom Anfang. Nur jeweils mit den Datenpunkten von den WR und je einem eignem Datenpunkt für "storedNeeddedpower". Beide Blocklys laufen parallel.

                      DuffyD 1 Reply Last reply
                      0
                      • T Tigger66

                        @Duffy das ist das Blockly von @Kymchy vom Anfang. Nur jeweils mit den Datenpunkten von den WR und je einem eignem Datenpunkt für "storedNeeddedpower". Beide Blocklys laufen parallel.

                        DuffyD Offline
                        DuffyD Offline
                        Duffy
                        wrote on last edited by
                        #84

                        @tigger66

                        Danke dir schau ich mir mal an.

                        Viele Grüße

                        Nix besonderes; iob auf Respberry pi 4 (8GB) mit 32 GB SSD
                        Node.js: v22.22.1
                        NPM: 10.9.4
                        js-controller 7.0.7
                        Linux: Trixie

                        1 Reply Last reply
                        0
                        • K Kymchy

                          @tigger66 aber bitte immer nur non_persistent, sonst schießt ihr euch auf Dauer den Speicher im WR ab.

                          DuffyD Offline
                          DuffyD Offline
                          Duffy
                          wrote on last edited by Duffy
                          #85

                          @kymchy

                          "aber bitte immer nur non_persistent, sonst schießt ihr euch auf Dauer den Speicher im WR ab."

                          Kannst du das bitte etwas genauer erklären? Was ist der Grund warum man nicht persistant verwenden sollte, ok, du hast geschrieben wegen dem Wechselrichter Speicher das man den auf Dauer abschießt aber wird der nicht wieder geleert wenn er stromlos wird??

                          Dann ist die Funktion ja eher kritisch um nicht zu sagen überflüssig, oder?

                          Viele Grüße

                          Nix besonderes; iob auf Respberry pi 4 (8GB) mit 32 GB SSD
                          Node.js: v22.22.1
                          NPM: 10.9.4
                          js-controller 7.0.7
                          Linux: Trixie

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            Tigger66
                            wrote on last edited by
                            #86

                            So, nach nun einigen Tagen Test, noch einmal eine kurze Rückmeldung. Das Script ist wirklich klasse. Danke noch einmal @Kymchy . Ich hatte allerdings das Problem, dass sich gerade der HM400 oft "aufgehängt" hat, wenn er auf Null runter geregelt war. Entweder hat es sehr lange gedauert eh er wieder mal reagiert hat, oder ich musste ihn resetten. Ich habe dann mal eine untere Begrenzung eingebaut die verhindert, dass der WR komplett auf Null geht. Bei mir 5%. Seither läuft die Sache rund und der WR reagiert wie gewünscht.

                            K T K 3 Replies Last reply
                            0
                            • T Tigger66

                              So, nach nun einigen Tagen Test, noch einmal eine kurze Rückmeldung. Das Script ist wirklich klasse. Danke noch einmal @Kymchy . Ich hatte allerdings das Problem, dass sich gerade der HM400 oft "aufgehängt" hat, wenn er auf Null runter geregelt war. Entweder hat es sehr lange gedauert eh er wieder mal reagiert hat, oder ich musste ihn resetten. Ich habe dann mal eine untere Begrenzung eingebaut die verhindert, dass der WR komplett auf Null geht. Bei mir 5%. Seither läuft die Sache rund und der WR reagiert wie gewünscht.

                              K Offline
                              K Offline
                              Kymchy
                              wrote on last edited by Kymchy
                              #87

                              @tigger66 ich frage mich, wie es passieren kann, dass der WR auf 0 geregelt wird. Irgendeinen Verbrauch hat man doch eigentlich immer.

                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                Tigger66
                                wrote on last edited by
                                #88

                                @Kymchy wie schon geschrieben, läuft da ja nicht nur ein WR. Da könnte es schon sein, dass das Angebot größer ist als die Nachfrage. :wink: In dem Fall...

                                1 Reply Last reply
                                0
                                • T Tigger66

                                  So, nach nun einigen Tagen Test, noch einmal eine kurze Rückmeldung. Das Script ist wirklich klasse. Danke noch einmal @Kymchy . Ich hatte allerdings das Problem, dass sich gerade der HM400 oft "aufgehängt" hat, wenn er auf Null runter geregelt war. Entweder hat es sehr lange gedauert eh er wieder mal reagiert hat, oder ich musste ihn resetten. Ich habe dann mal eine untere Begrenzung eingebaut die verhindert, dass der WR komplett auf Null geht. Bei mir 5%. Seither läuft die Sache rund und der WR reagiert wie gewünscht.

                                  T Offline
                                  T Offline
                                  Trudeludes
                                  wrote on last edited by
                                  #89

                                  @tigger66
                                  Und wie hast du eine untere Begrenzung eingebaut ?

                                  DuffyD 1 Reply Last reply
                                  0
                                  • T Trudeludes

                                    @tigger66
                                    Und wie hast du eine untere Begrenzung eingebaut ?

                                    DuffyD Offline
                                    DuffyD Offline
                                    Duffy
                                    wrote on last edited by
                                    #90

                                    @trudeludes

                                    Danke für den Alternativvorschlag.

                                    Gruß Duffy

                                    Nix besonderes; iob auf Respberry pi 4 (8GB) mit 32 GB SSD
                                    Node.js: v22.22.1
                                    NPM: 10.9.4
                                    js-controller 7.0.7
                                    Linux: Trixie

                                    1 Reply Last reply
                                    0
                                    • T Tigger66

                                      So, nach nun einigen Tagen Test, noch einmal eine kurze Rückmeldung. Das Script ist wirklich klasse. Danke noch einmal @Kymchy . Ich hatte allerdings das Problem, dass sich gerade der HM400 oft "aufgehängt" hat, wenn er auf Null runter geregelt war. Entweder hat es sehr lange gedauert eh er wieder mal reagiert hat, oder ich musste ihn resetten. Ich habe dann mal eine untere Begrenzung eingebaut die verhindert, dass der WR komplett auf Null geht. Bei mir 5%. Seither läuft die Sache rund und der WR reagiert wie gewünscht.

                                      K Offline
                                      K Offline
                                      Konny22
                                      wrote on last edited by
                                      #91

                                      @tigger66 Hallo! Das Script ist wirklich Super. Leider habe ich das gleiche Problem, dass die WR auf 0 regeln. Kannst du mir vielleicht mitteilen wie du die 5% eingebaut hast? Bin nicht so fit darin. Vielen Dank!!

                                      1 Reply Last reply
                                      0
                                      • T Offline
                                        T Offline
                                        Tigger66
                                        wrote on last edited by
                                        #92

                                        @Konny22 und @Trudeludes

                                        ich habe das Script von @Kymchy nur etwas ergänzt und frage zusätzlich den Wert von Solarlimit ab. Ist der Wert kleiner gleich 4, lasse ich den auf 5 setzen und verhindere damit dass der WR auf 0 geht und "hängt".

                                        <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="-769" y="-524">
                                            <field name="SCHEDULE">*/15 * * * * *</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">
                                                                    <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">500</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.112183217812.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.storedNeededPowerHM400.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">
                                                                                                <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">
                                                                                                <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">
                                                                                                    <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">
                                                                                                        <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">
                                                                                                <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">
                                                                                                    <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">
                                                                                                        <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">
                                                                                                            <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">
                                                                                                                    <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.storedNeededPowerHM400.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.storedNeededPowerHM400.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="ngN)`(Ee_|WVjpbeEi,Z">
                                                                                                                            <value name="IF0">
                                                                                                                              <block type="logic_compare" id="E;jvy,d?,h~{8J-;$c#Z">
                                                                                                                                <field name="OP">LTE</field>
                                                                                                                                <value name="A">
                                                                                                                                  <block type="variables_get" id="j.wG0w+y^vE]tm7AZ2SR">
                                                                                                                                    <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                  </block>
                                                                                                                                </value>
                                                                                                                                <value name="B">
                                                                                                                                  <block type="math_number" id="qmst0kfQa63`(1C?20+t">
                                                                                                                                    <field name="NUM">4</field>
                                                                                                                                  </block>
                                                                                                                                </value>
                                                                                                                              </block>
                                                                                                                            </value>
                                                                                                                            <statement name="DO0">
                                                                                                                              <block type="variables_set" id="eG:yr(gAO*#W@6$4I,9T">
                                                                                                                                <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                <value name="VALUE">
                                                                                                                                  <block type="math_number" id="0qq=Pa2L.`pfN{/fr=|V">
                                                                                                                                    <field name="NUM">5</field>
                                                                                                                                  </block>
                                                                                                                                </value>
                                                                                                                              </block>
                                                                                                                            </statement>
                                                                                                                            <next>
                                                                                                                              <block type="control" id="KN@t^0cE0k@-082b*`$}">
                                                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                <field name="OID">opendtu.0.112183217812.power_control.limit_nonpersistent_relative</field>
                                                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                                                <value name="VALUE">
                                                                                                                                  <block type="variables_get" id="T,9Ms}!g05fFGlV[=97t">
                                                                                                                                    <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                  </block>
                                                                                                                                </value>
                                                                                                                                <next>
                                                                                                                                  <block type="update" id="K~#2,NL{?T,t?vi8K@_K">
                                                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                    <field name="OID">0_userdata.0.PV-Anlage.Solarlimit_HM400.Solarlimit_HM400</field>
                                                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                                                    <value name="VALUE">
                                                                                                                                      <block type="variables_get" id="obffp}fvI-w|9kbk(:D7">
                                                                                                                                        <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>
                                                                                                                                </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>
                                        

                                        Blockly Ausschnitt.png

                                        War leider länger nicht online. Sorry für die verspätete Antwort. Ich hoffe es hilft weiter.

                                        K 1 Reply Last reply
                                        0
                                        • T Tigger66

                                          @Konny22 und @Trudeludes

                                          ich habe das Script von @Kymchy nur etwas ergänzt und frage zusätzlich den Wert von Solarlimit ab. Ist der Wert kleiner gleich 4, lasse ich den auf 5 setzen und verhindere damit dass der WR auf 0 geht und "hängt".

                                          <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="-769" y="-524">
                                              <field name="SCHEDULE">*/15 * * * * *</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">
                                                                      <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">500</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.112183217812.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.storedNeededPowerHM400.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">
                                                                                                  <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">
                                                                                                  <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">
                                                                                                      <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">
                                                                                                          <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">
                                                                                                  <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">
                                                                                                      <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">
                                                                                                          <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">
                                                                                                              <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">
                                                                                                                      <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.storedNeededPowerHM400.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.storedNeededPowerHM400.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="ngN)`(Ee_|WVjpbeEi,Z">
                                                                                                                              <value name="IF0">
                                                                                                                                <block type="logic_compare" id="E;jvy,d?,h~{8J-;$c#Z">
                                                                                                                                  <field name="OP">LTE</field>
                                                                                                                                  <value name="A">
                                                                                                                                    <block type="variables_get" id="j.wG0w+y^vE]tm7AZ2SR">
                                                                                                                                      <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                    </block>
                                                                                                                                  </value>
                                                                                                                                  <value name="B">
                                                                                                                                    <block type="math_number" id="qmst0kfQa63`(1C?20+t">
                                                                                                                                      <field name="NUM">4</field>
                                                                                                                                    </block>
                                                                                                                                  </value>
                                                                                                                                </block>
                                                                                                                              </value>
                                                                                                                              <statement name="DO0">
                                                                                                                                <block type="variables_set" id="eG:yr(gAO*#W@6$4I,9T">
                                                                                                                                  <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                  <value name="VALUE">
                                                                                                                                    <block type="math_number" id="0qq=Pa2L.`pfN{/fr=|V">
                                                                                                                                      <field name="NUM">5</field>
                                                                                                                                    </block>
                                                                                                                                  </value>
                                                                                                                                </block>
                                                                                                                              </statement>
                                                                                                                              <next>
                                                                                                                                <block type="control" id="KN@t^0cE0k@-082b*`$}">
                                                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                  <field name="OID">opendtu.0.112183217812.power_control.limit_nonpersistent_relative</field>
                                                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                                                  <value name="VALUE">
                                                                                                                                    <block type="variables_get" id="T,9Ms}!g05fFGlV[=97t">
                                                                                                                                      <field name="VAR" id=")2]D^Y|D:QS6S[A}9J=/">SolarLimit</field>
                                                                                                                                    </block>
                                                                                                                                  </value>
                                                                                                                                  <next>
                                                                                                                                    <block type="update" id="K~#2,NL{?T,t?vi8K@_K">
                                                                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                                      <field name="OID">0_userdata.0.PV-Anlage.Solarlimit_HM400.Solarlimit_HM400</field>
                                                                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                                                                      <value name="VALUE">
                                                                                                                                        <block type="variables_get" id="obffp}fvI-w|9kbk(:D7">
                                                                                                                                          <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>
                                                                                                                                  </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>
                                          

                                          Blockly Ausschnitt.png

                                          War leider länger nicht online. Sorry für die verspätete Antwort. Ich hoffe es hilft weiter.

                                          K Offline
                                          K Offline
                                          Konny22
                                          wrote on last edited by
                                          #93

                                          @tigger66 Vielen Dank für das Script. Werde es mal testen. Habe es aber schon richtig in deinen Kommentaren gelesen, dass du es auf beiden WR betreibst?
                                          Gruß

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          677

                                          Online

                                          32.7k

                                          Users

                                          82.5k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe