Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Marco Willi

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    • Profile
    • Following 1
    • Followers 0
    • Topics 7
    • Posts 71
    • Best 1
    • Groups 1

    Marco Willi

    @Marco Willi

    Starter

    1
    Reputation
    12
    Profile views
    71
    Posts
    0
    Followers
    1
    Following
    Joined Last Online

    Marco Willi Follow
    Starter

    Best posts made by Marco Willi

    • RE: Umstellung von free auf pro Lizenz

      @apollon77

      korrekt. Irgendwann hat es ja mal geheissen, mal solle umstellen vom free account zum pro account und da habe ich den free account gelöscht. Habe den IOT Adapter dann mit pro account verbunden. Gestern habe ich allerdings zum aller erstenmal die Lizenz für den Smarten assistenten gekauft.

      posted in Cloud Dienste
      Marco Willi
      Marco Willi

    Latest posts made by Marco Willi

    • RE: PV Strom Aufteilung

      @paul53 ich habe mich tatsächlich geirrt und möchte mich höflichst entschuldigen. Das klappt wunderbar. Bin erst mal happy und lege das ganze vergnügt zur Seite.

      Mit dem Shelly wirst du recht haben. Das schaue ich mir dann auch noch an zu gegebener Zeit. Herzlichen Dank

      posted in Blockly
      Marco Willi
      Marco Willi
    • RE: PV Strom Aufteilung

      @paul53 habe dann was übersehen? Müsste ich demnach nochmal testen.

      Eigenbedarf wird bei mir PV Erzeugung - Rücklieferung berechnet.

      Bei überschuss habe ich so im Eigenbedarf nur drin, was gerade intern verbraucht wird.
      Findet keine Rücklieferung statt wäre das Resultat demnach alles was PV raus haut.
      In der Nacht ist PV 0, rücklieferung 0 und alle Datenpunkte bei 0 weil kein PV Anteil vorhanden. Das passt und hat funktioniert.

      Übrigens, ich habe deine geordnete Struktur übernommen.

      Ich teste heute Abend nochmals und poste ein printscreen, vielleicht habe ich da was falsch gesehen oder ich habe den Trigger nicht ausgelöst.

      posted in Blockly
      Marco Willi
      Marco Willi
    • RE: PV Strom Aufteilung

      @paul53 Sensationell, genau was ich mir gewünscht habe und so klein und schick in einem "einfachen" Skript. Langsam verstehe ich auch wie es funktioniert.

      Leider ist mir nun aufgefallen, also seit das andere Skript so rum spinnt, dass ich doch ein Fehler drin habe. Ich weiss nicht ob du nochmals lust hast, da drüber zu schauen.

      Folgendes:

      Im Moment werden die kleine Verbräuche sauber aufgeteilt. Die grossen Verbrauche werden wie von mir durch die Restanzahl der übrigen Zähler dividiert. Du hast glaub ich schon von Anfang an geschrieben, dass da ev. noch ein Fehler in meiner Formel ist und das wäre er.

      Beispiel:

      Sind zwei Zähler grösser mit Referenziert 2kW unterwegs
      Z1= 2100W
      Z2= 5000W
      Und die Restanzahl an Leistung von 5000W

      Jetzt bekommt der Zähler
      Z1=2500W
      Z2=2500W

      Richtig wäre natürlich hier nun aber
      Z1=2100W
      Z2=2900W
      weil halt Z1 gar kein Bedarf für mehr Leistung hat.

      Das könnte man fixen, wenn man den Eigenbedarf - die Summe der kleinen Zähler (Ergebnis) rechnet. Das gibt eine fixe Grösse (in unserem Beispiel 5kW).
      danach müsste man wahrscheinlich dein bisheriges Skript darunter hin kopieren um die Aufteilung nochmals durch zu führen aber nicht mit dem Eigenbedarf sondern mit dem Ergebnis.
      Kann das so gelöst werden? Weil die Zähler wechseln dauernd ihre Wert und mal hat Z1 den grössesten Wert und dann wieder Z2 und auch der Eigenbedarf etc. ändert sich natürlich andauernd.

      Ideen?

      Edit: es müsste eigentliche eine Schleife erzeugt werden, die bis auf den letzten Zähler oder wenn Bedarf > als alle Werte immer wieder in Summe gesetzt, der Bedarf höher sein sollte.

      posted in Blockly
      Marco Willi
      Marco Willi
    • RE: PV Strom Aufteilung

      @paul53 wenn ich einen Datenpunkt erzeuge, wie bekomme ich es dann hin, den Verweis darauf zu legen? Weil ichfindedieMöglichkeit nicht inerhalb der Ordnerstruktur ein Aliasanzulegen. Derwürde immer unter Alias.0 in der obersten Hirarchie landen und nicht in der Struktur. Deshalb, wo mache ich den Datenpunkt zum Alias oder verstehe ich das falsch?

      posted in Blockly
      Marco Willi
      Marco Willi
    • RE: PV Strom Aufteilung

      @paul53 habe im Forum gesehen, dass du dich damit auch rum geärgert hast. Mal schauen ob ich das morgen so hinbekomme.
      Im Ordner Alias habe ich mal ein Verzeichnis angelegt und weiter gehts mit Objekt so wie ich das verstanden habe. Danach einen Datenpunkt und den Datenpunkt mach ich dann zum alias mit dem Verweis zum shelly. Bin gespannt

      posted in Blockly
      Marco Willi
      Marco Willi
    • RE: PV Strom Aufteilung

      @marco-willi said in PV Strom Aufteilung:

      @paul53

      verflu... mist, ich kriege das mit den Alias schon nicht hin. Die werden nicht in das verzeichnis SolarWEG geschrieben

      Darf ich fragen, woher denn die Werte für die kommen der Shellys. Weil der Alias bezieht sich doch auf 0.userdata.0 etc. Die Namen und verzeichnisse etc. kann ich alle nicht entsprechend anpassen. richtig mühsam

      posted in Blockly
      Marco Willi
      Marco Willi
    • RE: PV Strom Aufteilung

      @paul53

      verflu... mist, ich kriege das mit den Alias schon nicht hin. Die werden nicht in das verzeichnis SolarWEG geschrieben

      posted in Blockly
      Marco Willi
      Marco Willi
    • RE: PV Strom Aufteilung

      @paul53

      Kann ich das Blockly anpassen oder nicht?

      posted in Blockly
      Marco Willi
      Marco Willi
    • RE: PV Strom Aufteilung

      @paul53 IMG_8701.png IMG_8702.png

      Ich habe es rausgenoman aus dem Unterordner

      posted in Blockly
      Marco Willi
      Marco Willi
    • RE: PV Strom Aufteilung

      @paul53

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="4!.QWl^o3C^:xOUsncDM">leistungen</variable>
          <variable id="VhkAFchoAH~jm8|sY/#g">arr</variable>
          <variable id="`y:ZU0#7H|QneBeDn#WR">attr</variable>
          <variable id="j(Ay`U4*K?f`uxBMT=~B">Restleistung</variable>
          <variable id="MEu~m0ap=YGi@;I{l)R*">i</variable>
          <variable id="8IG{1^[y#F?[OcT$kfU^">obj</variable>
          <variable id="q6h7`B[$+ZsH#a^bNB*f">Restanzahl</variable>
          <variable id="%KbqcvOJ4#JoV?4(u1!T">Restmittel</variable>
          <variable id="|~:77.d*!:FG7?xwvy=+">leistung</variable>
          <variable id="ZS.uZvVkXP{+B`D%[jGd">id</variable>
        </variables>
        <block type="variables_set" id="XHOw[jb!GnH%uw/EkkSR" x="-1637" y="-1137">
          <field name="VAR" id="4!.QWl^o3C^:xOUsncDM">leistungen</field>
          <value name="VALUE">
            <block type="lists_create_with" id="w0g@e!P0GRHlcL_JocR3">
              <mutation items="5"></mutation>
              <value name="ADD0">
                <block type="object_new" id="Pz+z.0=fN{G#s2[vn_k$" inline="true">
                  <mutation xmlns="http://www.w3.org/1999/xhtml">
                    <attribute id="ATTR_0" name="id"></attribute>
                    <attribute id="ATTR_1" name="power"></attribute>
                  </mutation>
                  <value name="ATTR_0">
                    <shadow type="text" id="/n#q.h{2u%%6]:5x%sdL">
                      <field name="TEXT">idZähler1</field>
                    </shadow>
                    <block type="field_oid" id="8f)e;qM~D5ZszgF6nvGK">
                      <field name="oid">alias.0.Allgemein.Zähler_1</field>
                    </block>
                  </value>
                  <value name="ATTR_1">
                    <shadow type="text" id="5!nWL7pP`UDJEF2Iytm+">
                      <field name="TEXT"></field>
                    </shadow>
                    <block type="math_number" id="ZIhR[uYM@@_$9Dd*Kji#">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </value>
              <value name="ADD1">
                <block type="object_new" id="mI,~-6{f0omisH]1$!aH" inline="true">
                  <mutation xmlns="http://www.w3.org/1999/xhtml">
                    <attribute id="ATTR_0" name="id"></attribute>
                    <attribute id="ATTR_1" name="power"></attribute>
                  </mutation>
                  <value name="ATTR_0">
                    <shadow type="text" id="iYqVUWwruFtgC1SX4E,]">
                      <field name="TEXT">idZähler2</field>
                    </shadow>
                    <block type="field_oid" id="SpP3^U3pb}QIyl,0*,+e">
                      <field name="oid">alias.0.Willi.TotalActivePower</field>
                    </block>
                  </value>
                  <value name="ATTR_1">
                    <shadow type="text" id="5!nWL7pP`UDJEF2Iytm+">
                      <field name="TEXT"></field>
                    </shadow>
                    <block type="math_number" id="?EX-s%XS3b=]taH?;~qS">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </value>
              <value name="ADD2">
                <block type="object_new" id="4sx|V!a=GAi:aHYor=#c" inline="true">
                  <mutation xmlns="http://www.w3.org/1999/xhtml">
                    <attribute id="ATTR_0" name="id"></attribute>
                    <attribute id="ATTR_1" name="power"></attribute>
                  </mutation>
                  <value name="ATTR_0">
                    <shadow type="text" id=",C(EXVwXVsw~kn*:;Ew@">
                      <field name="TEXT">idZähler3</field>
                    </shadow>
                    <block type="field_oid" id="P`F3K2c6RP:P2w/Lt8gR">
                      <field name="oid">alias.0.Gubser.Zähler_3</field>
                    </block>
                  </value>
                  <value name="ATTR_1">
                    <shadow type="text" id="5!nWL7pP`UDJEF2Iytm+">
                      <field name="TEXT"></field>
                    </shadow>
                    <block type="math_number" id="5.Z8gqu6t|d6Nn*B2+W3">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </value>
              <value name="ADD3">
                <block type="object_new" id="fr=y-vg*3~;hHyMzL@Xd" inline="true">
                  <mutation xmlns="http://www.w3.org/1999/xhtml">
                    <attribute id="ATTR_0" name="id"></attribute>
                    <attribute id="ATTR_1" name="power"></attribute>
                  </mutation>
                  <value name="ATTR_0">
                    <shadow type="text" id="Tez`^.U4nL3Qr#PFhlNX">
                      <field name="TEXT">idZähler4</field>
                    </shadow>
                    <block type="field_oid" id="+#X!oSy[%]r}IJ|Q}.gb">
                      <field name="oid">alias.0.Lang.Zähler_4</field>
                    </block>
                  </value>
                  <value name="ATTR_1">
                    <shadow type="text" id="5!nWL7pP`UDJEF2Iytm+">
                      <field name="TEXT"></field>
                    </shadow>
                    <block type="math_number" id="lh7sliQ,!$R:T+=kd^I=">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </value>
              <value name="ADD4">
                <block type="object_new" id="6v=SH@?A8sCwSrzlg1Ur" inline="true">
                  <mutation xmlns="http://www.w3.org/1999/xhtml">
                    <attribute id="ATTR_0" name="id"></attribute>
                    <attribute id="ATTR_1" name="power"></attribute>
                  </mutation>
                  <value name="ATTR_0">
                    <shadow type="text" id="u=0=rm1ozyMf}[9iM2;,">
                      <field name="TEXT">idZähler5</field>
                    </shadow>
                    <block type="field_oid" id="Hs2kCxcsz;#x*Iy`yyaa">
                      <field name="oid">alias.0.Giger.Zähler_5</field>
                    </block>
                  </value>
                  <value name="ATTR_1">
                    <shadow type="text" id="5!nWL7pP`UDJEF2Iytm+">
                      <field name="TEXT"></field>
                    </shadow>
                    <block type="math_number" id="YFDPREY!DyIOXg{CS37?">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </value>
            </block>
          </value>
          <next>
            <block type="on" id="~GBxWGx#,niJ$@tGOk.C">
              <field name="OID">0_userdata.0.SolarWEG.Eigenbedarf</field>
              <field name="CONDITION">any</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="variables_set" id="nG;I777OKpG+qk3:*X_]">
                  <field name="VAR" id="j(Ay`U4*K?f`uxBMT=~B">Restleistung</field>
                  <value name="VALUE">
                    <block type="on_source" id="!J[Br_=d_0yA?arw+vL*">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <next>
                    <block type="controls_for" id="jz%?P9H/lHwD^J6bh-Lq">
                      <field name="VAR" id="MEu~m0ap=YGi@;I{l)R*">i</field>
                      <value name="FROM">
                        <shadow type="math_number" id="p/r%~#^;:kGAh2@vkL+c">
                          <field name="NUM">1</field>
                        </shadow>
                      </value>
                      <value name="TO">
                        <shadow type="math_number" id="e)%X6NXh[(3!v_6NP}S*">
                          <field name="NUM">5</field>
                        </shadow>
                      </value>
                      <value name="BY">
                        <shadow type="math_number" id="q;,9T5So)m`!BLV9L*8?">
                          <field name="NUM">1</field>
                        </shadow>
                      </value>
                      <statement name="DO">
                        <block type="variables_set" id="k?{`ELn=nM{JEdI!fiXb">
                          <field name="VAR" id="8IG{1^[y#F?[OcT$kfU^">obj</field>
                          <value name="VALUE">
                            <block type="lists_getIndex" id="L5QxUxlJihTlVVIHW;_4">
                              <mutation statement="false" at="true"></mutation>
                              <field name="MODE">GET</field>
                              <field name="WHERE">FROM_START</field>
                              <value name="VALUE">
                                <block type="variables_get" id="LoL.9{E)}57X]?Nq/~RW">
                                  <field name="VAR" id="4!.QWl^o3C^:xOUsncDM">leistungen</field>
                                </block>
                              </value>
                              <value name="AT">
                                <block type="variables_get" id="cfPi2Y^N7wKK~K}1J2od">
                                  <field name="VAR" id="MEu~m0ap=YGi@;I{l)R*">i</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="object_set_attr" id="i=ahLy029.U05]UGy]l]">
                              <field name="ATTR">power</field>
                              <value name="OBJECT">
                                <block type="variables_get" id="1-1cXoe+]f2s}ui#E]3k">
                                  <field name="VAR" id="8IG{1^[y#F?[OcT$kfU^">obj</field>
                                </block>
                              </value>
                              <value name="VALUE">
                                <shadow type="text" id="$(l%#9%IrZe(j9J:nS$9">
                                  <field name="TEXT">value</field>
                                </shadow>
                                <block type="get_value_var" id="i^*U/KS(R]IXQWs0WeFm">
                                  <field name="ATTR">val</field>
                                  <value name="OID">
                                    <shadow type="field_oid" id="pA}7xDu_zarp3IH1O8^G">
                                      <field name="oid">Object ID</field>
                                    </shadow>
                                    <block type="get_attr" id="MakZviRK#!y5O$FSUQDj">
                                      <value name="PATH">
                                        <shadow type="text" id="GYLIns737hBM(rTgwbq+">
                                          <field name="TEXT">id</field>
                                        </shadow>
                                      </value>
                                      <value name="OBJECT">
                                        <shadow type="get_object" id="vqVwCRtdz;4;|09)cUoG">
                                          <field name="OID">Object ID</field>
                                        </shadow>
                                        <block type="variables_get" id="J8[FT1(B2qCK|jVC)jr/">
                                          <field name="VAR" id="8IG{1^[y#F?[OcT$kfU^">obj</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <next>
                                <block type="lists_setIndex" id="2FK;uc+f#R0I,%71V}Rm">
                                  <mutation at="true"></mutation>
                                  <field name="MODE">SET</field>
                                  <field name="WHERE">FROM_START</field>
                                  <value name="LIST">
                                    <block type="variables_get" id="|d#dX!1f9W:a_jS+=9LT">
                                      <field name="VAR" id="4!.QWl^o3C^:xOUsncDM">leistungen</field>
                                    </block>
                                  </value>
                                  <value name="AT">
                                    <block type="variables_get" id="%,{F(;olX~.mC-4buL_#">
                                      <field name="VAR" id="MEu~m0ap=YGi@;I{l)R*">i</field>
                                    </block>
                                  </value>
                                  <value name="TO">
                                    <block type="variables_get" id="pgAS[{dD}[ukC}c{L_gb">
                                      <field name="VAR" id="8IG{1^[y#F?[OcT$kfU^">obj</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <next>
                        <block type="procedures_callcustomnoreturn" id="=;B`Gy;(6,m{q-?G$=8Q" inline="true">
                          <mutation name="sortObjectNum">
                            <arg name="arr"></arg>
                            <arg name="attr"></arg>
                          </mutation>
                          <value name="ARG0">
                            <block type="variables_get" id="3}QIG$EVa~0;!{+JyzGn">
                              <field name="VAR" id="4!.QWl^o3C^:xOUsncDM">leistungen</field>
                            </block>
                          </value>
                          <value name="ARG1">
                            <block type="text" id="tarlJ1Fw+E{_Suhu7=aL">
                              <field name="TEXT">power</field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="XX~d^%fLF^+zp9f8%YZX">
                              <field name="VAR" id="q6h7`B[$+ZsH#a^bNB*f">Restanzahl</field>
                              <value name="VALUE">
                                <block type="math_number" id="dfF)Kl1Hz4U;POr.tyWR">
                                  <field name="NUM">5</field>
                                </block>
                              </value>
                              <next>
                                <block type="controls_for" id="Z,T{!KsbeCX[m#]m%*j6">
                                  <field name="VAR" id="MEu~m0ap=YGi@;I{l)R*">i</field>
                                  <value name="FROM">
                                    <shadow type="math_number" id="3Cy.u$.p{1P.QoX5#;16">
                                      <field name="NUM">1</field>
                                    </shadow>
                                  </value>
                                  <value name="TO">
                                    <shadow type="math_number" id="Sf/oUpwKuB;=4PasT;@x">
                                      <field name="NUM">5</field>
                                    </shadow>
                                  </value>
                                  <value name="BY">
                                    <shadow type="math_number" id="ZcjkV2mkj+s-kn~QClH9">
                                      <field name="NUM">1</field>
                                    </shadow>
                                  </value>
                                  <statement name="DO">
                                    <block type="variables_set" id="z^9^*h9Ncs1`kX{}PS4#">
                                      <field name="VAR" id="%KbqcvOJ4#JoV?4(u1!T">Restmittel</field>
                                      <value name="VALUE">
                                        <block type="math_round" id="!MB7J]7%bNAf=X;h^QCK">
                                          <field name="OP">ROUND</field>
                                          <value name="NUM">
                                            <shadow type="math_number" id="E_zGQC$Y64TM3ClizW[Y">
                                              <field name="NUM">3.1</field>
                                            </shadow>
                                            <block type="math_arithmetic" id="M*HjmCiocLGHz=ilHr2o">
                                              <field name="OP">DIVIDE</field>
                                              <value name="A">
                                                <shadow type="math_number" id="r{CTeOH+-fp_sqwC0EKC">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="variables_get" id="/RyBmFXVq)A_70ySFg_}">
                                                  <field name="VAR" id="j(Ay`U4*K?f`uxBMT=~B">Restleistung</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <shadow type="math_number" id="w=e.DF{)iVv`WxUkBq9s">
                                                  <field name="NUM">1</field>
                                                </shadow>
                                                <block type="variables_get" id="1E`Xnfl7s3EgPCfTlwFE">
                                                  <field name="VAR" id="q6h7`B[$+ZsH#a^bNB*f">Restanzahl</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="variables_set" id="k,W.9746]lV?c~40,4Rl">
                                          <field name="VAR" id="8IG{1^[y#F?[OcT$kfU^">obj</field>
                                          <value name="VALUE">
                                            <block type="lists_getIndex" id="l.wv[;!F/J9WPq4THM?^">
                                              <mutation statement="false" at="true"></mutation>
                                              <field name="MODE">GET</field>
                                              <field name="WHERE">FROM_START</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="eiU/42-|vX4Q8#8_jdb5">
                                                  <field name="VAR" id="4!.QWl^o3C^:xOUsncDM">leistungen</field>
                                                </block>
                                              </value>
                                              <value name="AT">
                                                <block type="variables_get" id="b^_u@ZD/Psy}F5Z9GOpZ">
                                                  <field name="VAR" id="MEu~m0ap=YGi@;I{l)R*">i</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="{!y5o:n9_:=2K+RTk2!`">
                                              <field name="VAR" id="|~:77.d*!:FG7?xwvy=+">leistung</field>
                                              <value name="VALUE">
                                                <block type="get_attr" id="l_[5ihlEj=inX{5l*^o!">
                                                  <value name="PATH">
                                                    <shadow type="text" id="vg#iQ)P.`6$GP(m!ER$e">
                                                      <field name="TEXT">power</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="OBJECT">
                                                    <shadow type="get_object" id="vqVwCRtdz;4;|09)cUoG">
                                                      <field name="OID">Object ID</field>
                                                    </shadow>
                                                    <block type="variables_get" id="TPdV*Rueb@x70p_XBRTZ">
                                                      <field name="VAR" id="8IG{1^[y#F?[OcT$kfU^">obj</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="controls_if" id="(nDus,^!Ey661rY)dyN0">
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="~#GYM1T$E$jp+PhS)ZRL">
                                                      <field name="OP">GT</field>
                                                      <value name="A">
                                                        <block type="variables_get" id="ZmdhoHu)*.[iabl*-W.S">
                                                          <field name="VAR" id="|~:77.d*!:FG7?xwvy=+">leistung</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="variables_get" id="I=Q0StB]NA/HB{7TsQkO">
                                                          <field name="VAR" id="%KbqcvOJ4#JoV?4(u1!T">Restmittel</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="variables_set" id="I1UtP{U8HI#?YfN%VcVz">
                                                      <field name="VAR" id="|~:77.d*!:FG7?xwvy=+">leistung</field>
                                                      <value name="VALUE">
                                                        <block type="variables_get" id="L`trdMC{7RZxCvt@(nVy">
                                                          <field name="VAR" id="%KbqcvOJ4#JoV?4(u1!T">Restmittel</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="variables_set" id="bKDOcaltB*/iMvcHoEU$">
                                                      <field name="VAR" id="ZS.uZvVkXP{+B`D%[jGd">id</field>
                                                      <value name="VALUE">
                                                        <block type="text_replace" id="8_aTm%Ib#,GHT2,Fi[u{">
                                                          <value name="FROM">
                                                            <shadow type="text" id="`1FmYkQgRVTX0gSmw3L/">
                                                              <field name="TEXT">alias.0</field>
                                                            </shadow>
                                                          </value>
                                                          <value name="TO">
                                                            <shadow type="text" id="kWL:nij.yb90O.,~4d`4">
                                                              <field name="TEXT">0_userdata.0</field>
                                                            </shadow>
                                                          </value>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="CFe,-9!u[l|#/TvI~B@y">
                                                              <field name="TEXT">id</field>
                                                            </shadow>
                                                            <block type="get_attr" id="wOaK48e6v,Is-%XL#0EE">
                                                              <value name="PATH">
                                                                <shadow type="text" id="_TN-H-upTjupq8hyx1hX">
                                                                  <field name="TEXT">id</field>
                                                                </shadow>
                                                              </value>
                                                              <value name="OBJECT">
                                                                <shadow type="get_object" id="vqVwCRtdz;4;|09)cUoG">
                                                                  <field name="OID">Object ID</field>
                                                                </shadow>
                                                                <block type="variables_get" id="sjlB|$?V5P0!Z+`Aj0OT">
                                                                  <field name="VAR" id="8IG{1^[y#F?[OcT$kfU^">obj</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control_ex" id="Hws.qi!hVm#%OwNI!W1w" inline="true">
                                                          <field name="TYPE">true</field>
                                                          <field name="CLEAR_RUNNING">FALSE</field>
                                                          <value name="OID">
                                                            <shadow type="field_oid" id="B,Z~E~138Rbd68r/zZa8">
                                                              <field name="oid">Object ID</field>
                                                            </shadow>
                                                            <block type="variables_get" id="5MbG/Anwd!JphfxyM|`9">
                                                              <field name="VAR" id="ZS.uZvVkXP{+B`D%[jGd">id</field>
                                                            </block>
                                                          </value>
                                                          <value name="VALUE">
                                                            <shadow type="logic_boolean" id="9w%jp}sct=[1gZW}^)i:">
                                                              <field name="BOOL">TRUE</field>
                                                            </shadow>
                                                            <block type="variables_get" id=":E9@lFe_u{%PbMVch]]P">
                                                              <field name="VAR" id="|~:77.d*!:FG7?xwvy=+">leistung</field>
                                                            </block>
                                                          </value>
                                                          <value name="DELAY_MS">
                                                            <shadow type="math_number" id="B@Xu~_M:+UP}XRyn8e-K">
                                                              <field name="NUM">0</field>
                                                            </shadow>
                                                          </value>
                                                          <next>
                                                            <block type="math_change" id="Kl;wUCg]EscMZMPkL6q_">
                                                              <field name="VAR" id="q6h7`B[$+ZsH#a^bNB*f">Restanzahl</field>
                                                              <value name="DELTA">
                                                                <shadow type="math_number" id="HVu2@iYtQCXE?$l_R0;u">
                                                                  <field name="NUM">-1</field>
                                                                </shadow>
                                                              </value>
                                                              <next>
                                                                <block type="math_change" id="yjGl@0%,T^b|p8)$R^k#">
                                                                  <field name="VAR" id="j(Ay`U4*K?f`uxBMT=~B">Restleistung</field>
                                                                  <value name="DELTA">
                                                                    <shadow type="math_number" id="C)z-_5P;}E+2nSj?7lA%">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_single" id="N=Ygb:T9LY-]]oySV~-w">
                                                                      <field name="OP">NEG</field>
                                                                      <value name="NUM">
                                                                        <shadow type="math_number" id="vRpBXlSDwGMb3h#Ho^?b">
                                                                          <field name="NUM">9</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="LVM=mCV=RkXAd#tELl,~">
                                                                          <field name="VAR" id="|~:77.d*!:FG7?xwvy=+">leistung</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="debug" id="/FsC=bv8q6#^]wlol./}">
                                                                      <field name="Severity">info</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id="XZ}]x`H__:zD5ZE5ZCy8">
                                                                          <field name="TEXT">test</field>
                                                                        </shadow>
                                                                        <block type="variables_get" id="J^}K8Z(-rGT^P4l9%M0|">
                                                                          <field name="VAR" id="|~:77.d*!:FG7?xwvy=+">leistung</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </next>
        </block>
        <block type="procedures_defcustomnoreturn" id="CxdOO.WCDAjV:Z{(+ME[" x="-1237" y="-912">
          <mutation statements="false">
            <arg name="arr" varid="VhkAFchoAH~jm8|sY/#g"></arg>
            <arg name="attr" varid="`y:ZU0#7H|QneBeDn#WR"></arg>
          </mutation>
          <field name="NAME">sortObjectNum</field>
          <field name="SCRIPT">ZnVuY3Rpb24gc29ydEF0dHIoYSwgYikgew0KICAgIHJldHVybiBwYXJzZUZsb2F0KGFbYXR0cl0pIC0gcGFyc2VGbG9hdChiW2F0dHJdKTsNCn0NCmFyci5zb3J0KHNvcnRBdHRyKTs=</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
        </block>
      </xml>
      
      posted in Blockly
      Marco Willi
      Marco Willi
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo