Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Round ohne Dezimalstellen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Round ohne Dezimalstellen

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

      Ich bastele gerade an ein Blockly um mittels TeslaHttpProxy Überschussladen zu realisieren. Leider habe ich festsmüssen, dass der Proxy keine Dezimalstellen im Ladestrom unterstützt. Mein Ansatz war :

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</variable>
        </variables>
        <block type="variables_set" id="I,{#:x7FJ[mn[/sha=jY" x="-312" y="163">
          <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
          <value name="VALUE">
            <block type="math_rndfixed" id="vsRaloat,H}8w61;T(]|">
              <field name="n">1</field>
              <value name="x">
                <shadow type="math_number" id="LSF)$/*zp}Nk7beIDSz7">
                  <field name="NUM">3.1234</field>
                </shadow>
                <block type="math_arithmetic" id="N=i[zI=iE9R#aOnk0LAq">
                  <field name="OP">DIVIDE</field>
                  <value name="A">
                    <shadow type="math_number" id="v4x:1o8ACN.Y-@`pmr4;">
                      <field name="NUM">1</field>
                    </shadow>
                    <block type="math_arithmetic" id="kU0dMe?/{y$nB`xP]+Iq">
                      <field name="OP">DIVIDE</field>
                      <value name="A">
                        <shadow type="math_number" id="e*O1NI94OOdh9%(u9{v2">
                          <field name="NUM">1</field>
                        </shadow>
                        <block type="math_arithmetic" id="1UYuWt:^LqyDwe+QEN7]">
                          <field name="OP">MINUS</field>
                          <value name="A">
                            <shadow type="math_number" id="SkUTu!uDD@5`mD1x5k*u">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="get_value" id="5|PtCPU.0+jM)tD`6kAA">
                              <field name="ATTR">val</field>
                              <field name="OID">plenticore.0.devices.local.Pv_P</field>
                            </block>
                          </value>
                          <value name="B">
                            <shadow type="math_number" id="-Ufv]g9[mPM{KMONGwIr">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="get_value" id=")W#}tkH0TG4(]V}hA3Yl">
                              <field name="ATTR">val</field>
                              <field name="OID">plenticore.0.devices.local.Home_P</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <shadow type="math_number" id="j3W$9VR`Bo7Z:TzUf2=8">
                          <field name="NUM">220</field>
                        </shadow>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <shadow type="math_number" id="8H^l{(]_VdKF)TlHt?=5">
                      <field name="NUM">3</field>
                    </shadow>
                  </value>
                </block>
              </value>
            </block>
          </value>
        </block>
      </xml>
      

      Mittels Runde ( PV in - Hausverbrauch ÷220 (Volt) ÷ 3 ( 3 Phasen) auf den Ladestrom zu kommen. Das klappt soweit, aber der Wert hat immer mindestens eine Dezimalstelle. Damit akzeptiert der Proxy den Wert nicht. Gibt es eine elegante Lösung den Round ohne Dezimalstellen auszugeben ?

      Homoran Dr. Bakterius 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @HAL last edited by Homoran

        @hal bitte das Blockly auch zeigen
        https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

        HAL 1 Reply Last reply Reply Quote 0
        • Dr. Bakterius
          Dr. Bakterius Most Active @HAL last edited by

          @hal

          Damit: Screenshot 2025-04-08 180303.png

          Homoran 1 Reply Last reply Reply Quote 1
          • Homoran
            Homoran Global Moderator Administrators @Dr. Bakterius last edited by

            @dr-bakterius und das ist nicht

            @hal sagte in Round ohne Dezimalstellen:

            block type="math_rndfixed"

            Dr. Bakterius 1 Reply Last reply Reply Quote 0
            • Dr. Bakterius
              Dr. Bakterius Most Active @Homoran last edited by

              @homoran Und was willst du mir damit sagen?

              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @Dr. Bakterius last edited by Homoran

                @dr-bakterius sagte in Round ohne Dezimalstellen:

                @homoran Und was willst du mir damit sagen?

                dass ich leider nur sein xml zur Verfügung habe und danach vermutet habe, dass er genau diesen von dir gezeigten Baustein verwendet hat.

                1 Reply Last reply Reply Quote 0
                • HAL
                  HAL @Homoran last edited by HAL

                  @homoran meinst du das ganze blockly script ? Ich habe extra nur den Block rauskopiert, mit dem ich den Landestrom berechne
                  Der round Block akzeptiert nur min. 1 Dezimalstelle. Ohne Dezimalstellen klappt der round nicht.

                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @HAL last edited by Homoran

                    @hal sagte in Round ohne Dezimalstellen:

                    meinst du das ganze blokly script ?

                    ist eigentlich üblich, damit man als Helfender vielleicht etwas finden kann, was du nicht beachtest.

                    @hal sagte in Round ohne Dezimalstellen:

                    habe extra nur den Block rauskopiert,

                    als xml nutzt das nur nichts, wenn man mobil unterwegs ist.

                    Auch nicht beim Landeskriminalamt 😂

                    EDIT!
                    Nichts nachträglich ergänzen!
                    Hast du den Block genommen, den @dr-bakterius gezeigt hst?

                    HAL 1 Reply Last reply Reply Quote 0
                    • HAL
                      HAL @Homoran last edited by

                      @homoran
                      hier das ganze Blockly, oder wolltest Du es als Bild ( geht über mehrere Screens)

                      <xml xmlns="https://developers.google.com/blockly/xml">
                        <variables>
                          <variable id="$$6(bP^4z]HKL,3Ac5+1">BatEntladeWert</variable>
                          <variable id="+sM_a/nR_P+Clz-,ha{w">MinBatSOC</variable>
                          <variable id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</variable>
                          <variable id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</variable>
                        </variables>
                        <block type="variables_set" id="*x8=cMe3Hgv+4%6x-C/W" x="-320" y="241">
                          <field name="VAR" id="$$6(bP^4z]HKL,3Ac5+1">BatEntladeWert</field>
                          <value name="VALUE">
                            <block type="math_number" id="Y2Pk4Oh,tW4,a|6BP?%i">
                              <field name="NUM">1000</field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="]u)XXntuEPeV._j^/?4f">
                              <field name="VAR" id="+sM_a/nR_P+Clz-,ha{w">MinBatSOC</field>
                              <value name="VALUE">
                                <block type="math_number" id="y]1CbuL*4k[_%o4|xxlP">
                                  <field name="NUM">80</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="=4Ux004Fs7nAPtLS(=vX">
                                  <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                  <value name="VALUE">
                                    <block type="text" id="*bGe:ao2dVM~0UR7A|L+">
                                      <field name="TEXT">{"charging_amps": "2"}</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="t^[tXAIqo+REY|y1$?P|">
                                      <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                      <value name="VALUE">
                                        <block type="text" id="EnrH/@]q,z4ma16LO9u^">
                                          <field name="TEXT">2</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="controls_if" id="|Hd1z(x:lO36ziv,|Ajy">
                                          <value name="IF0">
                                            <block type="logic_compare" id="{uJ:Y;~_[4,2#,{vjW6c">
                                              <field name="OP">NEQ</field>
                                              <value name="A">
                                                <block type="get_value" id="ast1cqC7sC5Tce;|n0G:">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">plenticore.0.devices.local.ToGrid_P</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="i;uhyULmiM~!u-F=MUQr">
                                                  <field name="NUM">2000</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="comment" id=".Y//2y6lWU8ajzy_|onR">
                                              <field name="COMMENT">Einspeisung &gt;2KW</field>
                                              <next>
                                                <block type="http_get" id="ng2i];!uUeWbQmk|r1s%">
                                                  <field name="TIMEOUT">10</field>
                                                  <field name="UNIT">sec</field>
                                                  <field name="TYPE">text</field>
                                                  <value name="URL">
                                                    <shadow type="text" id="O7R]H@.pbgX(MSJB}qlz">
                                                      <field name="TEXT">http://(ip-adresse):8080/api/1/vehicles/(VIN)/body_controller_state</field>
                                                    </shadow>
                                                  </value>
                                                  <statement name="STATEMENT">
                                                    <block type="controls_if" id=",|E]u5B1bLmz)U3XSbhE">
                                                      <mutation else="1"></mutation>
                                                      <value name="IF0">
                                                        <block type="text_contains" id="}vQ{w[ml5AFA3Zj-:*ft">
                                                          <value name="VALUE">
                                                            <block type="http_response" id=":GqAY]G@4hkj@}2)ebK:">
                                                              <field name="ATTR">response.data</field>
                                                            </block>
                                                          </value>
                                                          <value name="FIND">
                                                            <shadow type="text" id="n*Udz-*DI|a[sGV5Yenh">
                                                              <field name="TEXT">VEHICLE_SLEEP_STATUS_AWAKE</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="debug" id="~.7Bt[DWCojEAX#G-{PA">
                                                          <field name="Severity">info</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="#V_ZfQc.Ast=:kT$voDn">
                                                              <field name="TEXT">Tesla ist wach</field>
                                                            </shadow>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                      <statement name="ELSE">
                                                        <block type="http_get" id="}w`trLzcaO/m^:*u)`hD">
                                                          <field name="TIMEOUT">10</field>
                                                          <field name="UNIT">sec</field>
                                                          <field name="TYPE">text</field>
                                                          <value name="URL">
                                                            <shadow type="text" id="Y=,MKX!0Mo^.{.koz?xT">
                                                              <field name="TEXT">http://(ip-adresse):8080/api/1/vehicles/(VIN)/wake_up</field>
                                                            </shadow>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="debug" id="pBkSDlx2]d:y51F0daTR">
                                                              <field name="Severity">info</field>
                                                              <value name="TEXT">
                                                                <shadow type="text" id="-aHfEQK,(p@5Hu})/npf">
                                                                  <field name="TEXT">Tesla Wakeup</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="comment" id="^TlW2Hwsk`F;OMS6;Ip_">
                                                      <field name="COMMENT">Initialen Ladestrom</field>
                                                      <next>
                                                        <block type="http_post" id="tO:Mw1`gZQjs1u2tdJ3s">
                                                          <field name="TIMEOUT">10</field>
                                                          <field name="UNIT">sec</field>
                                                          <field name="TYPE">text</field>
                                                          <value name="URL">
                                                            <shadow type="text" id="HJ]=4B|s:-bz^dw-d_+[">
                                                              <field name="TEXT">http://(ip-adresse):8080/api/1/vehicles/(VIN)/command/set_charging_amps</field>
                                                            </shadow>
                                                          </value>
                                                          <value name="DATA">
                                                            <shadow type="logic_null" id="-/%xvs=LKT)wL8}EmXij"></shadow>
                                                            <block type="variables_get" id="9oMz)pfKZ:;;~7wjVs?N">
                                                              <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                                            </block>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="debug" id="^k3(ABzRq:d#=pSP_2O(">
                                                              <field name="Severity">info</field>
                                                              <value name="TEXT">
                                                                <shadow type="text" id="wMeLR?6m]L$VTjpZQ8}2">
                                                                  <field name="TEXT">test</field>
                                                                </shadow>
                                                                <block type="text_join" id=",:(82[y}}9luDtxdpk?i">
                                                                  <mutation items="2"></mutation>
                                                                  <value name="ADD0">
                                                                    <block type="text" id="lj80QX6Oux^]$OyAt{,q">
                                                                      <field name="TEXT">Aktueller Ladestrom: </field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD1">
                                                                    <block type="variables_get" id="=a144QUn./Nyb~M8:H,{">
                                                                      <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="comment" id="!oLQcQlfD0Ez8EsssNje">
                                                              <field name="COMMENT">Starte Ladung</field>
                                                              <next>
                                                                <block type="http_post" id="TNQxqL5ZEA1q9Co)r?UR">
                                                                  <field name="TIMEOUT">10</field>
                                                                  <field name="UNIT">sec</field>
                                                                  <field name="TYPE">text</field>
                                                                  <value name="URL">
                                                                    <shadow type="text" id="{MOGF8JSf7|=N*7kph_^">
                                                                      <field name="TEXT">http://(ip-adresse):8080/api/1/vehicles/(VIN)/command/charge_start?wait=true</field>
                                                                    </shadow>
                                                                  </value>
                                                                  <value name="DATA">
                                                                    <shadow type="logic_null" id="^__wOPMB,7qj7^J*Z[vl"></shadow>
                                                                  </value>
                                                                  <statement name="STATEMENT">
                                                                    <block type="debug" id="~:4sl%HRLkkpWt:#{{)V">
                                                                      <field name="Severity">info</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id="wMeLR?6m]L$VTjpZQ8}2">
                                                                          <field name="TEXT">test</field>
                                                                        </shadow>
                                                                        <block type="text_join" id="m),JYm_maw5_a7/R6{;g">
                                                                          <mutation items="3"></mutation>
                                                                          <value name="ADD0">
                                                                            <block type="text" id="1D~vxdAq0~zu_{{a@V8d">
                                                                              <field name="TEXT">Start Charging mit : </field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD1">
                                                                            <block type="variables_get" id="m]Yn@q[55zx1]FFd@y?Z">
                                                                              <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD2">
                                                                            <block type="text" id="nDNs(2tQ=Glhae/R)+aE">
                                                                              <field name="TEXT"> A</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </statement>
                                                                  <next>
                                                                    <block type="comment" id="yZ$^Y#2:p])EC!djrkU~">
                                                                      <field name="COMMENT">maximale Hausbatterie - Entladung und minimaler SOC</field>
                                                                      <next>
                                                                        <block type="controls_whileUntil" id="#|{+E2M#BK1qjjmLzrH|" collapsed="true" disabled="true">
                                                                          <field name="MODE">WHILE</field>
                                                                          <value name="BOOL">
                                                                            <block type="logic_multi_and" id="4(SAnBYDh:VP0t1Dv%!L">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                                              <value name="AND0">
                                                                                <block type="logic_compare" id="(Gn+$Qgs:fh1d)bl.tVJ">
                                                                                  <field name="OP">LTE</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="V3)CG%V?5arGH~$zB)|C">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">plenticore.0.devices.local.battery.Discharge_P</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="variables_get" id="So1=EsI1tlbo)hzk^%j%">
                                                                                      <field name="VAR" id="$$6(bP^4z]HKL,3Ac5+1">BatEntladeWert</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <value name="AND1">
                                                                                <block type="logic_compare" id="xJ@a+T)?kR9$,{ZEDouY">
                                                                                  <field name="OP">GTE</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="i0rAE(`11$/LVpJlQE8T">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">plenticore.0.devices.local.battery.SoC</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="variables_get" id="v6uyh~xmXIr$6f;gpa@|">
                                                                                      <field name="VAR" id="+sM_a/nR_P+Clz-,ha{w">MinBatSOC</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <statement name="DO">
                                                                            <block type="comment" id="{q,eY[bnhwtn@Y[nK!5.">
                                                                              <field name="COMMENT">Umrechnung Einspeisung&amp;#10; - Hausverbrauchauf 3 Phasen</field>
                                                                              <next>
                                                                                <block type="variables_set" id="h145[wrb86bPD/]{u~EC">
                                                                                  <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="math_rndfixed" id="feXe~jY.7D`j(mv4#yK9">
                                                                                      <field name="n">1</field>
                                                                                      <value name="x">
                                                                                        <shadow type="math_number" id="LSF)$/*zp}Nk7beIDSz7">
                                                                                          <field name="NUM">3.1234</field>
                                                                                        </shadow>
                                                                                        <block type="math_arithmetic" id="?iRKJt1STkm7g.g5sy1*">
                                                                                          <field name="OP">DIVIDE</field>
                                                                                          <value name="A">
                                                                                            <shadow type="math_number" id="v4x:1o8ACN.Y-@`pmr4;">
                                                                                              <field name="NUM">1</field>
                                                                                            </shadow>
                                                                                            <block type="math_arithmetic" id="V7UEGaj[1XmyTXy^GHoF">
                                                                                              <field name="OP">DIVIDE</field>
                                                                                              <value name="A">
                                                                                                <shadow type="math_number" id="e*O1NI94OOdh9%(u9{v2">
                                                                                                  <field name="NUM">1</field>
                                                                                                </shadow>
                                                                                                <block type="math_arithmetic" id="qu+xEfqa516yWfV2V}$E">
                                                                                                  <field name="OP">MINUS</field>
                                                                                                  <value name="A">
                                                                                                    <shadow type="math_number" id="SkUTu!uDD@5`mD1x5k*u">
                                                                                                      <field name="NUM">1</field>
                                                                                                    </shadow>
                                                                                                    <block type="get_value" id="L#F#|4.-}/)khh@*PpZV">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">plenticore.0.devices.local.Pv_P</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="B">
                                                                                                    <shadow type="math_number" id="-Ufv]g9[mPM{KMONGwIr">
                                                                                                      <field name="NUM">1</field>
                                                                                                    </shadow>
                                                                                                    <block type="get_value" id="oHGOuI?LlA:I7GL)wjNt">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">plenticore.0.devices.local.Home_P</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="B">
                                                                                                <shadow type="math_number" id="/oApOH(Xk%`Yk[+n!zkL">
                                                                                                  <field name="NUM">220</field>
                                                                                                </shadow>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <shadow type="math_number" id="*;hY9QQY1Qxbyj?6MjNM">
                                                                                              <field name="NUM">3</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="on_ext" id="PV#9A8XbUD2o+j8.tBDG" collapsed="true" disabled="true">
                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                                                      <field name="CONDITION">ne</field>
                                                                                      <field name="ACK_CONDITION"></field>
                                                                                      <value name="OID0">
                                                                                        <shadow type="field_oid" id="qZ#0;neCb{-dx~kOSN]J">
                                                                                          <field name="oid">ID auswählen</field>
                                                                                        </shadow>
                                                                                        <block type="variables_get" id="m;.!V#l0a#9JUOv]7Db[">
                                                                                          <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <statement name="STATEMENT">
                                                                                        <block type="comment" id="dpw|s%2?.:oz8@V$YoB5">
                                                                                          <field name="COMMENT">Strom &lt; 2A dann mit Hausbatterie min. 2A laden</field>
                                                                                          <next>
                                                                                            <block type="controls_if" id="0ZHViEjmRy/av!Fc7`w^">
                                                                                              <value name="IF0">
                                                                                                <block type="logic_compare" id="{ny8(vZ%A20(w;`d:yiG">
                                                                                                  <field name="OP">LT</field>
                                                                                                  <value name="A">
                                                                                                    <block type="variables_get" id="aj2Z/,T2k?k:2SIPo)(U">
                                                                                                      <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="B">
                                                                                                    <block type="math_number" id="aDpELmAFrSSq.~E#mmg4">
                                                                                                      <field name="NUM">2</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                              <statement name="DO0">
                                                                                                <block type="variables_set" id="1`wCkp,;-h1qNt7a7j+$">
                                                                                                  <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                                                  <value name="VALUE">
                                                                                                    <block type="math_number" id=",$P/pR9VQFh4wjVZugmn">
                                                                                                      <field name="NUM">2</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </statement>
                                                                                              <next>
                                                                                                <block type="debug" id="`,a}.J]L,nnLyJPp13%Y">
                                                                                                  <field name="Severity">info</field>
                                                                                                  <value name="TEXT">
                                                                                                    <shadow type="text" id="nG%2yPpqxYip!=_xB/[z">
                                                                                                      <field name="TEXT">test</field>
                                                                                                    </shadow>
                                                                                                    <block type="text_join" id="}=HG1WbuHhv.(m/y9kkG">
                                                                                                      <mutation items="4"></mutation>
                                                                                                      <value name="ADD0">
                                                                                                        <block type="text" id="wBW+o35xL99QEn,IlP,-">
                                                                                                          <field name="TEXT">Ladevorgabe ist :</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="ADD1">
                                                                                                        <block type="variables_get" id="(3Rx3l%gC)i$d18;m}%$">
                                                                                                          <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="ADD2">
                                                                                                        <block type="text" id="O(gL]:*_qsVXd;d8xF_V">
                                                                                                          <field name="TEXT">Home PV :</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="ADD3">
                                                                                                        <block type="field_oid" id="(39o8ZrZeUaz?AvIjPR;">
                                                                                                          <field name="oid">plenticore.0.devices.local.HomePv_P</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </statement>
                                                                                      <next>
                                                                                        <block type="variables_set" id="^Xw%P;:~=39R7FVVGN,U">
                                                                                          <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="text_join" id="%2[^{R#3Vf9yB%5#BZa}">
                                                                                              <mutation items="3"></mutation>
                                                                                              <value name="ADD0">
                                                                                                <block type="text" id="u)(;iSV5_8#;GW{XtM6C">
                                                                                                  <field name="TEXT">{"charging_amps": "</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="ADD1">
                                                                                                <block type="variables_get" id="0V[,)dglPX.4HAzU2/LX">
                                                                                                  <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <value name="ADD2">
                                                                                                <block type="text" id="xXrwR?+lMLG]NoYr6rdN">
                                                                                                  <field name="TEXT">"}</field>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="http_post" id="3bp(o09l9rV2:D*ADelx">
                                                                                              <field name="TIMEOUT">10</field>
                                                                                              <field name="UNIT">sec</field>
                                                                                              <field name="TYPE">text</field>
                                                                                              <value name="URL">
                                                                                                <shadow type="text" id="ofVR`62=pt-OzbqceTH_">
                                                                                                  <field name="TEXT">http://(ip-adresse):8080/api/1/vehicles/(VIN)/command/set_charging_amps</field>
                                                                                                </shadow>
                                                                                              </value>
                                                                                              <value name="DATA">
                                                                                                <shadow type="logic_null" id="-/%xvs=LKT)wL8}EmXij"></shadow>
                                                                                                <block type="variables_get" id="NJ-$,2[,;)u.?+cquFD9">
                                                                                                  <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                                                                                </block>
                                                                                              </value>
                                                                                              <statement name="STATEMENT">
                                                                                                <block type="debug" id="=A8SPi3JUym,7BS{*nhQ">
                                                                                                  <field name="Severity">info</field>
                                                                                                  <value name="TEXT">
                                                                                                    <shadow type="text" id="wMeLR?6m]L$VTjpZQ8}2">
                                                                                                      <field name="TEXT">test</field>
                                                                                                    </shadow>
                                                                                                    <block type="text_join" id="U]8Sua36D#1d|6#yH6HV">
                                                                                                      <mutation items="2"></mutation>
                                                                                                      <value name="ADD0">
                                                                                                        <block type="text" id="]_rvOG`(7MZpp!A_h9SZ">
                                                                                                          <field name="TEXT">Aktueller Ladestrom: </field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                      <value name="ADD1">
                                                                                                        <block type="variables_get" id="c(UNre#1A;crXo;4h3B!">
                                                                                                          <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                                                                                        </block>
                                                                                                      </value>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </statement>
                                                                                              <next>
                                                                                                <block type="timeouts_wait" id="[)+wgr?Yy6YwU?|C_P}Q">
                                                                                                  <field name="DELAY">30</field>
                                                                                                  <field name="UNIT">sec</field>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </statement>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="controls_whileUntil" id="ujsL+f$`oYZ1FpU]sDY:">
                                              <field name="MODE">WHILE</field>
                                              <value name="BOOL">
                                                <block type="logic_multi_and" id="k,.3pb0O1zsFg`.npU@}">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                  <value name="AND0">
                                                    <block type="logic_compare" id="%F=^,S`zKoSXErfd7Duc">
                                                      <field name="OP">LTE</field>
                                                      <value name="A">
                                                        <block type="get_value" id="TY81~!St;Y%N7H|C@=RS">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">plenticore.0.devices.local.battery.Discharge_P</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="variables_get" id="!vZ0[fr?~:pUT~`BM9f/">
                                                          <field name="VAR" id="$$6(bP^4z]HKL,3Ac5+1">BatEntladeWert</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="AND1">
                                                    <block type="logic_compare" id="(A+=0WYj^S2BTCeew(#w">
                                                      <field name="OP">GTE</field>
                                                      <value name="A">
                                                        <block type="get_value" id="v2eC[j~kU^=%~?P+}E}V">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">plenticore.0.devices.local.battery.SoC</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="variables_get" id="0sk}nf-Diwy3^ZO-|u.(">
                                                          <field name="VAR" id="+sM_a/nR_P+Clz-,ha{w">MinBatSOC</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO">
                                                <block type="comment" id="riR{J|J+bjgzYR@yk(xR">
                                                  <field name="COMMENT">Umrechnung Einspeisung&amp;#10; - Hausverbrauchauf 3 Phasen</field>
                                                  <next>
                                                    <block type="variables_set" id="a*Z*K+v2^!bf@^:7#(q!">
                                                      <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                      <value name="VALUE">
                                                        <block type="math_rndfixed" id="gC4PSE]L!C}FKE_CV4dA">
                                                          <field name="n">1</field>
                                                          <value name="x">
                                                            <shadow type="math_number" id="LSF)$/*zp}Nk7beIDSz7">
                                                              <field name="NUM">3.1234</field>
                                                            </shadow>
                                                            <block type="math_arithmetic" id=")q?%VscssE2ol$t9];_-">
                                                              <field name="OP">DIVIDE</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="v4x:1o8ACN.Y-@`pmr4;">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="math_arithmetic" id="]_1K#@FogUvUbyMvhtii">
                                                                  <field name="OP">DIVIDE</field>
                                                                  <value name="A">
                                                                    <shadow type="math_number" id="e*O1NI94OOdh9%(u9{v2">
                                                                      <field name="NUM">1</field>
                                                                    </shadow>
                                                                    <block type="math_arithmetic" id="avGcdC[c1RDta@w{sSsb">
                                                                      <field name="OP">MINUS</field>
                                                                      <value name="A">
                                                                        <shadow type="math_number" id="SkUTu!uDD@5`mD1x5k*u">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="get_value" id="wvr;}}0V6?:+ndXM_x0T">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">plenticore.0.devices.local.Pv_P</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <shadow type="math_number" id="-Ufv]g9[mPM{KMONGwIr">
                                                                          <field name="NUM">1</field>
                                                                        </shadow>
                                                                        <block type="get_value" id="zlk_];A%v{p+tN_L=]|5">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">plenticore.0.devices.local.Home_P</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <shadow type="math_number" id="Vio?6M+e~s!N?qY{Y791">
                                                                      <field name="NUM">220</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="ZZNip/gZ-[]2hv`uE?I!">
                                                                  <field name="NUM">3</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="on_ext" id="JCFkXJn+rdo@Qm`zO`:5" collapsed="true" disabled="true">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                          <field name="CONDITION">ne</field>
                                                          <field name="ACK_CONDITION"></field>
                                                          <value name="OID0">
                                                            <shadow type="field_oid" id="qZ#0;neCb{-dx~kOSN]J">
                                                              <field name="oid">ID auswählen</field>
                                                            </shadow>
                                                            <block type="variables_get" id="KyZ1S.i!3WDWb?rdkvv=">
                                                              <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                            </block>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="comment" id="|6QFLgYydhSrJ2K^:y;3">
                                                              <field name="COMMENT">Strom &lt; 2A dann mit Hausbatterie min. 2A laden</field>
                                                              <next>
                                                                <block type="controls_if" id="-vt;Y9j40nXp{tzgj[TO">
                                                                  <value name="IF0">
                                                                    <block type="logic_compare" id=",l~=M)~M}5y+CCPwz:R(">
                                                                      <field name="OP">LT</field>
                                                                      <value name="A">
                                                                        <block type="variables_get" id="+,s0B)t--B76fp|l{!|p">
                                                                          <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="math_number" id="2=JtDz{wmCa(KKw,VuN7">
                                                                          <field name="NUM">2</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="variables_set" id="zlu;amo]SeCGcbyU(gyT">
                                                                      <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_number" id="wUi`Qt]G=YxIW=L@W.m7">
                                                                          <field name="NUM">2</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </statement>
                                                                  <next>
                                                                    <block type="debug" id="]||YB]E3~HlbElTNtX[#">
                                                                      <field name="Severity">info</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id="nG%2yPpqxYip!=_xB/[z">
                                                                          <field name="TEXT">test</field>
                                                                        </shadow>
                                                                        <block type="text_join" id="%?4GUnYUOnfs2ZCoWsJ`">
                                                                          <mutation items="4"></mutation>
                                                                          <value name="ADD0">
                                                                            <block type="text" id="dW4BO~lK-BayXSO=L.FW">
                                                                              <field name="TEXT">Ladevorgabe ist :</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD1">
                                                                            <block type="variables_get" id="mE=9`Q6@Geg3!a(y~i41">
                                                                              <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD2">
                                                                            <block type="text" id="3-}MOx*bs6Er(BU|=@di">
                                                                              <field name="TEXT">Home PV :</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="ADD3">
                                                                            <block type="field_oid" id="Na|pR@D3/47XfV4l/JS:">
                                                                              <field name="oid">plenticore.0.devices.local.HomePv_P</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="variables_set" id="h){~RrY+4o@S5+;d$so9">
                                                              <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                                              <value name="VALUE">
                                                                <block type="text_join" id="R-CU]0aWK]Ct]/7kctA4">
                                                                  <mutation items="3"></mutation>
                                                                  <value name="ADD0">
                                                                    <block type="text" id="tf@yc1jk~;,m{(,DDr+u">
                                                                      <field name="TEXT">{"charging_amps":  "</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD1">
                                                                    <block type="variables_get" id="|I?~_B)@]x!a@=LM!oo1">
                                                                      <field name="VAR" id="QFpQppZnG`D}10%B1(q!">Ladevorgabe</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="ADD2">
                                                                    <block type="text" id="/padE%?M%s.hMZHG:x}o">
                                                                      <field name="TEXT">"}</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="debug" id="[w|uqD5=RqpiQMH7fYRD">
                                                                  <field name="Severity">info</field>
                                                                  <value name="TEXT">
                                                                    <shadow type="text" id="wMeLR?6m]L$VTjpZQ8}2">
                                                                      <field name="TEXT">test</field>
                                                                    </shadow>
                                                                    <block type="text_join" id="CQl$CXFp1A^7q|q~w7g4">
                                                                      <mutation items="2"></mutation>
                                                                      <value name="ADD0">
                                                                        <block type="text" id="=Q9Wcs{8W0~$E!#Fh4=_">
                                                                          <field name="TEXT">Aktueller Ladestrom: </field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD1">
                                                                        <block type="variables_get" id="_*OLZ;8W(caZM]k,8EI7">
                                                                          <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="http_post" id="_##I,[*CT.B|{S`#~OZ)">
                                                                      <field name="TIMEOUT">10</field>
                                                                      <field name="UNIT">sec</field>
                                                                      <field name="TYPE">text</field>
                                                                      <value name="URL">
                                                                        <shadow type="text" id="/pZsONn-xg)}NllT-uhr">
                                                                          <field name="TEXT">http://(ip-adresse):8080/api/1/vehicles/(VIN)/command/set_charging_amps</field>
                                                                        </shadow>
                                                                      </value>
                                                                      <value name="DATA">
                                                                        <shadow type="logic_null" id="-/%xvs=LKT)wL8}EmXij"></shadow>
                                                                        <block type="variables_get" id="8TL0kiZA^T4,8($g;,6$">
                                                                          <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="STATEMENT">
                                                                        <block type="debug" id="?rfD$)5e.xAy4s0?XjSs">
                                                                          <field name="Severity">info</field>
                                                                          <value name="TEXT">
                                                                            <shadow type="text" id="wMeLR?6m]L$VTjpZQ8}2">
                                                                              <field name="TEXT">test</field>
                                                                            </shadow>
                                                                            <block type="text_join" id="-j[P.zF1Yy?YPs!aYXz:">
                                                                              <mutation items="2"></mutation>
                                                                              <value name="ADD0">
                                                                                <block type="text" id="MU83v#qGH0,5TB(w[04V">
                                                                                  <field name="TEXT">Aktueller Ladestrom: </field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="ADD1">
                                                                                <block type="variables_get" id="Ty63v/^rG5BLuA4p-E3T">
                                                                                  <field name="VAR" id="[JGpMV%YaEp|!yWH|o|T">Ladestrom</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </statement>
                                                                      <next>
                                                                        <block type="timeouts_wait" id="]:P]q5%lz%5MB6~0f+vB">
                                                                          <field name="DELAY">60</field>
                                                                          <field name="UNIT">sec</field>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="controls_if" id="c+JY/yu)$Fd#}X|+,@I-">
                                                  <value name="IF0">
                                                    <block type="text_contains" id="-1@~nK/~%oe|s#wXN#4f">
                                                      <value name="VALUE">
                                                        <block type="http_response" id="_fd5~JHf{qF/W=C-LjS=">
                                                          <field name="ATTR">response.data</field>
                                                        </block>
                                                      </value>
                                                      <value name="FIND">
                                                        <shadow type="text" id="]Nu]?USNEXS_Sxf*P)!q">
                                                          <field name="TEXT">VEHICLE_SLEEP_STATUS_AWAKE</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="comment" id="W2y(0lk.Wg/C8;jT)ox*">
                                                      <field name="COMMENT">Ladung beenden</field>
                                                      <next>
                                                        <block type="debug" id="~jfQyc+`aYUvY1N2m0b}">
                                                          <field name="Severity">info</field>
                                                          <value name="TEXT">
                                                            <shadow type="text" id="|L5PZNLRbnb1/W[wlzh`">
                                                              <field name="TEXT">Ladung beenden</field>
                                                            </shadow>
                                                          </value>
                                                          <next>
                                                            <block type="http_post" id="m@r0~5=@~Li`sWJC~=dO">
                                                              <field name="TIMEOUT">10</field>
                                                              <field name="UNIT">sec</field>
                                                              <field name="TYPE">text</field>
                                                              <value name="URL">
                                                                <shadow type="text" id="K1AK}bXMgVQV7x}x(UV)">
                                                                  <field name="TEXT">http://(ip-adresse):8080/api/1/vehicles/(VIN)/command/charge_stop</field>
                                                                </shadow>
                                                              </value>
                                                              <value name="DATA">
                                                                <shadow type="logic_null" id="~$scNcvaV^hh[%oSr]CN"></shadow>
                                                              </value>
                                                              <statement name="STATEMENT">
                                                                <block type="debug" id="0rYLN(WKu=2$YZem5.t:">
                                                                  <field name="Severity">info</field>
                                                                  <value name="TEXT">
                                                                    <shadow type="text" id="wMeLR?6m]L$VTjpZQ8}2">
                                                                      <field name="TEXT">test</field>
                                                                    </shadow>
                                                                    <block type="text_join" id="zQB%%:%Iev1;;45)=4]v">
                                                                      <mutation items="3"></mutation>
                                                                      <value name="ADD0">
                                                                        <block type="text" id="kW8zpH@]^H;V4ckGgtIl">
                                                                          <field name="TEXT">Stop Charing bei SOC: </field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD1">
                                                                        <block type="get_value" id="^^u%v*l?#DeD@4)^J:{;">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">tesla-motors.0.(VIN).charge_state.battery_level</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="ADD2">
                                                                        <block type="text" id="~$5aOv-}k/saNBacG1ou">
                                                                          <field name="TEXT"> %</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </xml>
                      
                      HAL 1 Reply Last reply Reply Quote 0
                      • HAL
                        HAL @HAL last edited by

                        @hal
                        diesen Block habe ich verwendet:
                        008a42bc-cc1a-40ee-be92-e676db9589f4-image.png

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @HAL last edited by

                          @hal sagte in Round ohne Dezimalstellen:

                          diesen Block habe ich verwendet:

                          dann nimm jetzt den, den @Dr-Bakterius dir gezeigt hat

                          HAL 1 Reply Last reply Reply Quote 1
                          • HAL
                            HAL @Homoran last edited by HAL

                            @homoran ich habe jetzt runde verwendet und ja , der geht dann ohne Dezimalstelle ( ich wusste noch nicht das Rounde anders arbeitet als ruunde )

                            Das script scheint soweit zu laufen, bis auf eine Warnmeldung vom Proxy. Das muß ich morgen mal ansehen, wenn mehr PV da ist.

                            Homoran HAL 2 Replies Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @HAL last edited by Homoran

                              @hal sagte in Round ohne Dezimalstellen:

                              bis auf eine Warnmeldung vom Proxy

                              und die sieht wie aus?

                              @hal sagte in Round ohne Dezimalstellen:

                              ich wusste noch nicht das Rounde anders arbeitet als ruunde

                              ???

                              runde ist doch genau für deine Anwendung gemacht, wenn es keine Nachkommastellengeben soll!
                              runde...auf x Nachkommastellen lässt halt noch die Anzahl Nachkommastellen einstellen.

                              HAL 1 Reply Last reply Reply Quote 0
                              • HAL
                                HAL @HAL last edited by Homoran

                                Noch eine Frage an die Wissenden. Da ich mich mit Java nicht auskenne und auch Blockly nur mit try and error nutze ; könnte man mit überschaubarem Aufwand dieses java script TeslaChargejst (https://github.com/thps1990/TeslaChargejs/) mit den Proxy Befehlen um bauen ? Bis Tesla die API abgeschaltet hat, konnte ich das perfekt nutzen.
                                Auf Github habe ich eine Anfrage an den Autor gestellt, aber keine Info erhalten.

                                Auch den Autor von dem TeslaHttpProxy habe ich angeschrieben, ob er das Laden mit einer Dezimalstelle im Ladestrom einbauen könnte....

                                Homoran 1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @HAL last edited by

                                  @hal sagte in Round ohne Dezimalstellen:

                                  ob er das Laden mit einer Dezimalstelle im Ladestrom einbauen könnte....

                                  kann das der Tesla denn?
                                  ich kenne nur ganze A bei Ladern.

                                  HAL 1 Reply Last reply Reply Quote 0
                                  • HAL
                                    HAL @Homoran last edited by

                                    @homoran sagte in Round ohne Dezimalstellen:

                                    @hal sagte in Round ohne Dezimalstellen:

                                    bis auf eine Warnmeldung vom Proxy

                                    und die sieht wie aus?

                                    Ich vermute der Proxy hat für die Antwort länger gebraucht als der Timeout

                                    025-04-08 18:50:13.716	error	script.js.common.TESLA-BLE: httpPost(url=http://(ip-adresse):8080/api/1/vehicles/(VIN)/command/charge_start?wait=true, error=timeout of 10000ms exceeded)
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • HAL
                                      HAL @Homoran last edited by

                                      @homoran Der Tesla steuert den Ladestrom von stufenlos bis 16A pro Phase. Ich lade i.d.R. ab 2A pro Phase ( die Wallbox ist passiv ) sind so 1,2KW Vorher lohnt sich das nicht. Das ist perfekt für optimale Ausnutzung des Überschuss von der PV Anlage.

                                      HAL 1 Reply Last reply Reply Quote 0
                                      • HAL
                                        HAL @HAL last edited by

                                        Der Ladestop funktioniert noch nicht richtig. Es wird auch noch bei 400W geladen. Da muß ich nochmal reinschauen.

                                        b40b7f14-6b50-4aaa-83e4-c66e3136c19d-image.png

                                        Homoran 1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @HAL last edited by

                                          @hal sagte in Round ohne Dezimalstellen:

                                          Da muß ich nochmal reinschauen.

                                          Ohne das Blockly zu sehen kann ich dir da nicht helfen

                                          HAL 1 Reply Last reply Reply Quote 0
                                          • HAL
                                            HAL @Homoran last edited by

                                            @homoran das ganze blockly habe ich als Import vor 10 posts reinkopiert

                                            Homoran Codierknecht 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            926
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

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