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

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Awattar - die billigsten Strom-Stunden nutzen

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    808

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

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

Awattar - die billigsten Strom-Stunden nutzen

Scheduled Pinned Locked Moved Skripten / Logik
82 Posts 10 Posters 15.2k Views 9 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Schimi

    @paul53

    Hi, habe es mal mit zugewiesenen Datenpunkt nochmal probiert... Hatte bisher den "steuer"-Blockly deaktiviert und wollte mit Pushover mitteilungen schicken um das alles zu testen).

    Jedenfalls, jetzt mit "echtem" Datenpunkt und ausführung einmal am Tag... immer noch der gleiche Fehler... (Ich lasse es sofort loslaufen zum testen, ohne die wartezeit auf 23:59Uhr)

    
    javascript.0
    2022-12-29 19:58:39.438	error	at Script.runInContext (node:vm:141:12)
    
    javascript.0
    2022-12-29 19:58:39.437	error	at script.js.common.Sonstiges.Tibber_test:36:3
    
    javascript.0
    2022-12-29 19:58:39.437	error	at script.js.common.Sonstiges.Tibber_test:23:62
    
    javascript.0
    2022-12-29 19:58:39.436	error	script.js.common.Sonstiges.Tibber_test: TypeError: Cannot read properties of undefined (reading 'toString')
    
    javascript.0
    2022-12-29 19:58:39.434	info	script.js.common.Sonstiges.Tibber_test: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
    
    javascript.0
    2022-12-29 19:58:39.426	info	Start javascript script.js.common.Sonstiges.Tibber_test
    
    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable id="%{8F(7sB61_K]=(]=HUc">preise</variable>
        <variable id="rlR`S0q{is}DhiGVddaP">i</variable>
        <variable id="CzYDP|Yq/)s$HVs]C,93">id</variable>
        <variable id="*.=ljhdPztMh1WA90]sW">minSumme</variable>
        <variable id=".e57X)pK7UP$$qvwNJ_S">summe3</variable>
        <variable id=";U~,MEV1]:ofSH@pu[N#">end</variable>
        <variable id="w^d~TO3AMO(L(P]Yph+4">start</variable>
        <variable type="cron" id="scheduleStart">scheduleStart</variable>
        <variable type="cron" id="scheduleEnd">scheduleEnd</variable>
      </variables>
      <block type="schedule" id="C_I%*H=O%|is`$_/t|lC" x="113" y="88">
        <field name="SCHEDULE">59 23 * * *</field>
        <statement name="STATEMENT">
          <block type="variables_set" id=";hK/pc]qO-Uz_q;D#,rZ">
            <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
            <value name="VALUE">
              <block type="lists_create_with" id="%vX!Cs$LYl73ZDqXwvFj">
                <mutation items="0"></mutation>
              </block>
            </value>
            <next>
              <block type="controls_for" id="N`)3NT@?!vred;oGWc5D">
                <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                <value name="FROM">
                  <shadow type="math_number" id="7Cu}S9{og6!x8lO0nB,,">
                    <field name="NUM">0</field>
                  </shadow>
                </value>
                <value name="TO">
                  <shadow type="math_number" id="ahEnHWNYjesQxUBi#Ef$">
                    <field name="NUM">23</field>
                  </shadow>
                </value>
                <value name="BY">
                  <shadow type="math_number" id="MO}{O*G6$8UERzMUWcfj">
                    <field name="NUM">1</field>
                  </shadow>
                </value>
                <statement name="DO">
                  <block type="variables_set" id="z|@x,@W|7zQZ#ZTs,t4}">
                    <field name="VAR" id="CzYDP|Yq/)s$HVs]C,93">id</field>
                    <value name="VALUE">
                      <block type="text_join" id="Aj}iP57B$WXCk?eb!sD$" inline="true">
                        <mutation items="3"></mutation>
                        <value name="ADD0">
                          <block type="text" id="YMX,!x@T6C@Zm`g(gc*H">
                            <field name="TEXT">awattar.0.prices.</field>
                          </block>
                        </value>
                        <value name="ADD1">
                          <block type="variables_get" id="V3Sl3*:1;h9ni?Uu6ESE">
                            <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                          </block>
                        </value>
                        <value name="ADD2">
                          <block type="text" id="4:wi$V)WcA}=Vu3|vLae">
                            <field name="TEXT">.totalPriceKwh</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <next>
                      <block type="lists_setIndex" id="=Ms[3R531nFy4Hh|f%Jr">
                        <mutation at="false"></mutation>
                        <field name="MODE">INSERT</field>
                        <field name="WHERE">LAST</field>
                        <value name="LIST">
                          <block type="variables_get" id="4vlq|cB#S;Eb?swa*_u5">
                            <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
                          </block>
                        </value>
                        <value name="TO">
                          <block type="get_value_var" id="M+DlC0RvZ?zmwV7vBYc;">
                            <field name="ATTR">val</field>
                            <value name="OID">
                              <shadow type="text" id="t_E|h)a?}V^SX`IQ}@79">
                                <field name="TEXT"></field>
                              </shadow>
                              <block type="variables_get" id="k#y/!YFW%zgfT*@;OJGQ">
                                <field name="VAR" id="CzYDP|Yq/)s$HVs]C,93">id</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="variables_set" id="/vaqD$KpY#8:rnM%)w{C">
                    <field name="VAR" id="*.=ljhdPztMh1WA90]sW">minSumme</field>
                    <value name="VALUE">
                      <block type="math_number" id="onjmyp,$nceE0u9y8#)t">
                        <field name="NUM">30</field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_for" id="9`Es?C9}G=XwuUU5a/|5">
                        <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                        <value name="FROM">
                          <shadow type="math_number" id="x/I;VhH1;`#ZjhYq.RD#">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                        <value name="TO">
                          <shadow type="math_number" id="FnCNxvOD62s7Fkv.7?*a">
                            <field name="NUM">22</field>
                          </shadow>
                        </value>
                        <value name="BY">
                          <shadow type="math_number" id="16|)K-L;%nUKjRyq*P$4">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                        <statement name="DO">
                          <block type="variables_set" id="Jr0b_10U[n})RhkM=fz0">
                            <field name="VAR" id=".e57X)pK7UP$$qvwNJ_S">summe3</field>
                            <value name="VALUE">
                              <block type="math_arithmetic" id="$Z0-X;1B{HHC7C_5,mc^" inline="false">
                                <field name="OP">ADD</field>
                                <value name="A">
                                  <shadow type="math_number" id="EEJ*wsJWpAVi(R]ic,|0">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="math_arithmetic" id=".pqa+jCVbZMUxV~-JR7b" inline="false">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow type="math_number" id="r6YO2,@XR_uL{akr=~LQ">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="lists_getIndex" id="~~.]:Q]4!CkmN/jm$x_z">
                                        <mutation statement="false" at="true"></mutation>
                                        <field name="MODE">GET</field>
                                        <field name="WHERE">FROM_START</field>
                                        <value name="VALUE">
                                          <block type="variables_get" id="g%RY8@:Mn_Cg;]gGbzT0">
                                            <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
                                          </block>
                                        </value>
                                        <value name="AT">
                                          <block type="variables_get" id="F?#7D(_e}Do?IR3N]`,`">
                                            <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="@}6wc^{^Uu}vI([sH!n=">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="lists_getIndex" id="7c_[^UuKU-BQ}lU(w$}]">
                                        <mutation statement="false" at="true"></mutation>
                                        <field name="MODE">GET</field>
                                        <field name="WHERE">FROM_START</field>
                                        <value name="VALUE">
                                          <block type="variables_get" id="]I`WTj,8h=8|gx}zmSOY">
                                            <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
                                          </block>
                                        </value>
                                        <value name="AT">
                                          <block type="math_arithmetic" id="mVa2wQS4TTOX!CJ`#K(w">
                                            <field name="OP">ADD</field>
                                            <value name="A">
                                              <shadow type="math_number" id="5=BK^ZhgjK`r$neEbA(}">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id=")~nBhcp{V*=y5rcJTfc,">
                                                <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="knPaInZyJAjzec@7oE+8">
                                                <field name="NUM">1</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="G*k34$T%?v-f6f+8}|R$">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="lists_getIndex" id=";*8#8??ySI!x+)~B95$%">
                                    <mutation statement="false" at="true"></mutation>
                                    <field name="MODE">GET</field>
                                    <field name="WHERE">FROM_START</field>
                                    <value name="VALUE">
                                      <block type="variables_get" id="`.HPPXKbLfdun_~FD`T!">
                                        <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
                                      </block>
                                    </value>
                                    <value name="AT">
                                      <block type="math_arithmetic" id="q[LUt{{r6_(]K017Ec)`">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <shadow type="math_number">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="variables_get" id="h4a71d[~*{Q~`rc)Mo#o">
                                            <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="X@[YosMR*qX)!CDv9^z-">
                                            <field name="NUM">2</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="Zg+rib${a)X51!wZ6p2)">
                                <value name="IF0">
                                  <block type="logic_compare" id="kWxAv]7r`mnV7Ni#uaT[">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="variables_get" id="y3!!w.`ir_Z]HkihMfek">
                                        <field name="VAR" id=".e57X)pK7UP$$qvwNJ_S">summe3</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="variables_get" id="Lt/ftuItnB28lQKcJ}jh">
                                        <field name="VAR" id="*.=ljhdPztMh1WA90]sW">minSumme</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="x)G/XOGmqh:KPNT;:Dwu">
                                    <field name="VAR" id="*.=ljhdPztMh1WA90]sW">minSumme</field>
                                    <value name="VALUE">
                                      <block type="variables_get" id="UE;AX`2z,_W52/OjyUdH">
                                        <field name="VAR" id=".e57X)pK7UP$$qvwNJ_S">summe3</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="+]:uUPB8C$TJX])0=eG9">
                                        <field name="VAR" id="w^d~TO3AMO(L(P]Yph+4">start</field>
                                        <value name="VALUE">
                                          <block type="math_arithmetic" id="Z`uk%;tSS)XiXqfF*~I;">
                                            <field name="OP">MINUS</field>
                                            <value name="A">
                                              <shadow type="math_number" id="Rfrs@16dBP4o:`=v4ZFP">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="mCOc-1us%F7%=cUqTc,d">
                                                <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="j+t+3,1x,oTVi)Y8f|{0">
                                                <field name="NUM">1</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="r;Rl}[QG^hdgn@E;sT|j">
                            <value name="IF0">
                              <block type="logic_compare" id="U?ma*@(V=cU6dM3*|*Ec">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="variables_get" id=";@^X$-Y]^ey0y{D18qis">
                                    <field name="VAR" id=";U~,MEV1]:ofSH@pu[N#">end</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="J/C?X%]/@4G}Nr~XJAgz">
                                    <field name="NUM">24</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="oINmsjcSdAP7OTPMoM?U">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.example_state</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="FOZVjaxdP0#/kaJ#;_oL">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="variables_set" id="B$]uU3-XQ)1x3orP9Oh1">
                                <field name="VAR" id=";U~,MEV1]:ofSH@pu[N#">end</field>
                                <value name="VALUE">
                                  <block type="math_arithmetic" id="ugu?@;8t;}.m-T!VtR.%">
                                    <field name="OP">ADD</field>
                                    <value name="A">
                                      <shadow type="math_number" id="*i]5d[y@-33/[+X~Hw+p">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="|gx4bdL{Q)S6jz41npy,">
                                        <field name="VAR" id="w^d~TO3AMO(L(P]Yph+4">start</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id="oc`La?%4qKo)S27P4ekO">
                                        <field name="NUM">3</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="schedule_clear" id="VpV#7nOi=sxr/ANwIE(u">
                                    <field name="NAME">scheduleStart</field>
                                    <next>
                                      <block type="schedule_clear" id="c{WfH_fUAx(H2Pd,sL=-">
                                        <field name="NAME">scheduleEnd</field>
                                        <next>
                                          <block type="schedule_create" id="~2)[D4+^nCxJb5fUG`8^">
                                            <field name="NAME">scheduleStart</field>
                                            <value name="SCHEDULE">
                                              <shadow type="field_cron">
                                                <field name="CRON">* * * * *</field>
                                              </shadow>
                                              <block type="cron_builder" id="v=E2;/_dgRPdb!Q#Wgwg" inline="true">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                <field name="LINE">FALSE</field>
                                                <field name="WITH_SECONDS">FALSE</field>
                                                <value name="DOW">
                                                  <shadow type="text" id="th=}ESiwWw6?95exLO$E">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                </value>
                                                <value name="MONTHS">
                                                  <shadow type="text" id="yz^]`[ZW$4:D:%6MjmJo">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                </value>
                                                <value name="DAYS">
                                                  <shadow type="text" id="SPfRBpgL-nS44r;Nt*co">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                </value>
                                                <value name="HOURS">
                                                  <shadow type="text">
                                                    <field name="TEXT">*</field>
                                                  </shadow>
                                                  <block type="variables_get" id="h75i1luVUBkt(Ju=+2+O">
                                                    <field name="VAR" id="w^d~TO3AMO(L(P]Yph+4">start</field>
                                                  </block>
                                                </value>
                                                <value name="MINUTES">
                                                  <shadow type="text" id="yRt?vmf%x+A/gh@1Oy=4">
                                                    <field name="TEXT">0</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="control" id="c8j/f4Kb0kXgb]Lssn9O">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">0_userdata.0.example_state</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="pvR)i|;^d-!JtJ.tZ%z+">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="controls_if" id="NrXhX??|fd.KNk]Ht4gf">
                                                <value name="IF0">
                                                  <block type="logic_compare" id="*z@{j2~8GL2a4xah*$P9">
                                                    <field name="OP">LT</field>
                                                    <value name="A">
                                                      <block type="variables_get" id=".nR2M=0A9Vp+jktM*yYN">
                                                        <field name="VAR" id=";U~,MEV1]:ofSH@pu[N#">end</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number" id="ye`LyPc{Udxd+NTYSxof">
                                                        <field name="NUM">24</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="schedule_create" id="@i$WSd_S`X{lzj7cM2@f">
                                                    <field name="NAME">scheduleEnd</field>
                                                    <value name="SCHEDULE">
                                                      <shadow type="field_cron" id="[=pvs=Ss^ph)?G_:-4Mm">
                                                        <field name="CRON">* * * * *</field>
                                                      </shadow>
                                                      <block type="cron_builder" id="GgGa.Ie}G~Kz`SG[KvK/" inline="true">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                        <field name="LINE">FALSE</field>
                                                        <field name="WITH_SECONDS">FALSE</field>
                                                        <value name="DOW">
                                                          <shadow type="text" id="%:%]5ri4`rg7BpQ|iD]1">
                                                            <field name="TEXT">*</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="MONTHS">
                                                          <shadow type="text" id="Qmk|a^CndrZE:^qt#9K8">
                                                            <field name="TEXT">*</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="DAYS">
                                                          <shadow type="text" id="YDr;;;U.a}Sk:,%kR7Un">
                                                            <field name="TEXT">*</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="HOURS">
                                                          <shadow type="text" id="]t%7:eX#x-.W3r/J!RFY">
                                                            <field name="TEXT">*</field>
                                                          </shadow>
                                                          <block type="variables_get" id=".c1^J;6rj)vY.AbI|8*3">
                                                            <field name="VAR" id=";U~,MEV1]:ofSH@pu[N#">end</field>
                                                          </block>
                                                        </value>
                                                        <value name="MINUTES">
                                                          <shadow type="text" id="_js@zAppMtcx](q.SM_4">
                                                            <field name="TEXT">0</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="STATEMENT">
                                                      <block type="control" id="ycEj|^3Z!}a;JH(_@uE[">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">Object ID</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id=",zq0N12JZSC|s.O)LVA0">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    

    b95ab11e-53fe-4323-bc54-68b227db421f-image.png

    @judisi könntest du mir vielleicht dein Blockly exportieren? Vielleicht habe ich auch irgendwo nen Tippfehler und finde ihn einfach nicht....

    paul53P Offline
    paul53P Offline
    paul53
    wrote on last edited by paul53
    #17

    @schimi sagte: Vielleicht habe ich auch irgendwo nen Tippfehler

    Ich kann keinen finden. Bau mal Log-Ausgaben der Variablen preise und start ein.

    Bild_2022-12-29_201757540.png

    EDIT: Hier fehlt noch der Datenpunkt:

    Bild_2022-12-29_202724579.png

    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

    S 1 Reply Last reply
    0
    • paul53P paul53

      @schimi sagte: Vielleicht habe ich auch irgendwo nen Tippfehler

      Ich kann keinen finden. Bau mal Log-Ausgaben der Variablen preise und start ein.

      Bild_2022-12-29_201757540.png

      EDIT: Hier fehlt noch der Datenpunkt:

      Bild_2022-12-29_202724579.png

      S Offline
      S Offline
      Schimi
      wrote on last edited by
      #18

      @paul53
      Datenpounkt aktualiesiert, kein unterschied....

      Debug auf preis:

      javascript.0
      2022-12-30 01:49:08.818	info	script.js.common.Sonstiges.Tibber_test: [19.87981,19.87505,19.8691,19.74058,19.75605,19.88338,19.99405,20.01071,21.06862,20.71043,20.62832,20.47719,20.23681,20.4046,22.37405,22.92026,23.2368,24.11026,26.11779,25.70486,23.16778,22.97619,23.13089,22.50733]
      

      Debug auf start:

      javascript.0
      2022-12-30 01:49:18.421	info	script.js.common.Sonstiges.Tibber_test: undefined
      
      paul53P 1 Reply Last reply
      0
      • S Schimi

        @paul53
        Datenpounkt aktualiesiert, kein unterschied....

        Debug auf preis:

        javascript.0
        2022-12-30 01:49:08.818	info	script.js.common.Sonstiges.Tibber_test: [19.87981,19.87505,19.8691,19.74058,19.75605,19.88338,19.99405,20.01071,21.06862,20.71043,20.62832,20.47719,20.23681,20.4046,22.37405,22.92026,23.2368,24.11026,26.11779,25.70486,23.16778,22.97619,23.13089,22.50733]
        

        Debug auf start:

        javascript.0
        2022-12-30 01:49:18.421	info	script.js.common.Sonstiges.Tibber_test: undefined
        
        paul53P Offline
        paul53P Offline
        paul53
        wrote on last edited by
        #19

        @schimi sagte: Debug auf preis:

        Sieht gut aus.

        @schimi sagte in Awattar - die billigsten Strom-Stunden nutzen:

        Debug auf start:

        Habe ich vermutet. Grund: "setze minSumme auf 30" ist viel zu klein. Ändere es auf 99 oder größer und es wird wohl funktionieren.

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

        S 1 Reply Last reply
        0
        • paul53P paul53

          @schimi sagte: Debug auf preis:

          Sieht gut aus.

          @schimi sagte in Awattar - die billigsten Strom-Stunden nutzen:

          Debug auf start:

          Habe ich vermutet. Grund: "setze minSumme auf 30" ist viel zu klein. Ändere es auf 99 oder größer und es wird wohl funktionieren.

          S Offline
          S Offline
          Schimi
          wrote on last edited by
          #20

          @paul53

          tatsächlich.... auf 99 kommt der Fehler nicht mehr....

          bin davon ausgegangen das er die 99 als 0,99€ interpretiert....
          ich teste das Skript erstmal und versuche es zu verstehen :-)

          Eigentlich hatte ich es vor auf Tibber anzuwenden, aber erstmal so verstehen bevor ich daran "rumfummel" :-)

          DANKE!!!

          1 Reply Last reply
          0
          • S Schimi

            @paul53

            Hi, habe es mal mit zugewiesenen Datenpunkt nochmal probiert... Hatte bisher den "steuer"-Blockly deaktiviert und wollte mit Pushover mitteilungen schicken um das alles zu testen).

            Jedenfalls, jetzt mit "echtem" Datenpunkt und ausführung einmal am Tag... immer noch der gleiche Fehler... (Ich lasse es sofort loslaufen zum testen, ohne die wartezeit auf 23:59Uhr)

            
            javascript.0
            2022-12-29 19:58:39.438	error	at Script.runInContext (node:vm:141:12)
            
            javascript.0
            2022-12-29 19:58:39.437	error	at script.js.common.Sonstiges.Tibber_test:36:3
            
            javascript.0
            2022-12-29 19:58:39.437	error	at script.js.common.Sonstiges.Tibber_test:23:62
            
            javascript.0
            2022-12-29 19:58:39.436	error	script.js.common.Sonstiges.Tibber_test: TypeError: Cannot read properties of undefined (reading 'toString')
            
            javascript.0
            2022-12-29 19:58:39.434	info	script.js.common.Sonstiges.Tibber_test: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
            
            javascript.0
            2022-12-29 19:58:39.426	info	Start javascript script.js.common.Sonstiges.Tibber_test
            
            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable id="%{8F(7sB61_K]=(]=HUc">preise</variable>
                <variable id="rlR`S0q{is}DhiGVddaP">i</variable>
                <variable id="CzYDP|Yq/)s$HVs]C,93">id</variable>
                <variable id="*.=ljhdPztMh1WA90]sW">minSumme</variable>
                <variable id=".e57X)pK7UP$$qvwNJ_S">summe3</variable>
                <variable id=";U~,MEV1]:ofSH@pu[N#">end</variable>
                <variable id="w^d~TO3AMO(L(P]Yph+4">start</variable>
                <variable type="cron" id="scheduleStart">scheduleStart</variable>
                <variable type="cron" id="scheduleEnd">scheduleEnd</variable>
              </variables>
              <block type="schedule" id="C_I%*H=O%|is`$_/t|lC" x="113" y="88">
                <field name="SCHEDULE">59 23 * * *</field>
                <statement name="STATEMENT">
                  <block type="variables_set" id=";hK/pc]qO-Uz_q;D#,rZ">
                    <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
                    <value name="VALUE">
                      <block type="lists_create_with" id="%vX!Cs$LYl73ZDqXwvFj">
                        <mutation items="0"></mutation>
                      </block>
                    </value>
                    <next>
                      <block type="controls_for" id="N`)3NT@?!vred;oGWc5D">
                        <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                        <value name="FROM">
                          <shadow type="math_number" id="7Cu}S9{og6!x8lO0nB,,">
                            <field name="NUM">0</field>
                          </shadow>
                        </value>
                        <value name="TO">
                          <shadow type="math_number" id="ahEnHWNYjesQxUBi#Ef$">
                            <field name="NUM">23</field>
                          </shadow>
                        </value>
                        <value name="BY">
                          <shadow type="math_number" id="MO}{O*G6$8UERzMUWcfj">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                        <statement name="DO">
                          <block type="variables_set" id="z|@x,@W|7zQZ#ZTs,t4}">
                            <field name="VAR" id="CzYDP|Yq/)s$HVs]C,93">id</field>
                            <value name="VALUE">
                              <block type="text_join" id="Aj}iP57B$WXCk?eb!sD$" inline="true">
                                <mutation items="3"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="YMX,!x@T6C@Zm`g(gc*H">
                                    <field name="TEXT">awattar.0.prices.</field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="variables_get" id="V3Sl3*:1;h9ni?Uu6ESE">
                                    <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                  </block>
                                </value>
                                <value name="ADD2">
                                  <block type="text" id="4:wi$V)WcA}=Vu3|vLae">
                                    <field name="TEXT">.totalPriceKwh</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="lists_setIndex" id="=Ms[3R531nFy4Hh|f%Jr">
                                <mutation at="false"></mutation>
                                <field name="MODE">INSERT</field>
                                <field name="WHERE">LAST</field>
                                <value name="LIST">
                                  <block type="variables_get" id="4vlq|cB#S;Eb?swa*_u5">
                                    <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
                                  </block>
                                </value>
                                <value name="TO">
                                  <block type="get_value_var" id="M+DlC0RvZ?zmwV7vBYc;">
                                    <field name="ATTR">val</field>
                                    <value name="OID">
                                      <shadow type="text" id="t_E|h)a?}V^SX`IQ}@79">
                                        <field name="TEXT"></field>
                                      </shadow>
                                      <block type="variables_get" id="k#y/!YFW%zgfT*@;OJGQ">
                                        <field name="VAR" id="CzYDP|Yq/)s$HVs]C,93">id</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <next>
                          <block type="variables_set" id="/vaqD$KpY#8:rnM%)w{C">
                            <field name="VAR" id="*.=ljhdPztMh1WA90]sW">minSumme</field>
                            <value name="VALUE">
                              <block type="math_number" id="onjmyp,$nceE0u9y8#)t">
                                <field name="NUM">30</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_for" id="9`Es?C9}G=XwuUU5a/|5">
                                <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                <value name="FROM">
                                  <shadow type="math_number" id="x/I;VhH1;`#ZjhYq.RD#">
                                    <field name="NUM">1</field>
                                  </shadow>
                                </value>
                                <value name="TO">
                                  <shadow type="math_number" id="FnCNxvOD62s7Fkv.7?*a">
                                    <field name="NUM">22</field>
                                  </shadow>
                                </value>
                                <value name="BY">
                                  <shadow type="math_number" id="16|)K-L;%nUKjRyq*P$4">
                                    <field name="NUM">1</field>
                                  </shadow>
                                </value>
                                <statement name="DO">
                                  <block type="variables_set" id="Jr0b_10U[n})RhkM=fz0">
                                    <field name="VAR" id=".e57X)pK7UP$$qvwNJ_S">summe3</field>
                                    <value name="VALUE">
                                      <block type="math_arithmetic" id="$Z0-X;1B{HHC7C_5,mc^" inline="false">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <shadow type="math_number" id="EEJ*wsJWpAVi(R]ic,|0">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="math_arithmetic" id=".pqa+jCVbZMUxV~-JR7b" inline="false">
                                            <field name="OP">ADD</field>
                                            <value name="A">
                                              <shadow type="math_number" id="r6YO2,@XR_uL{akr=~LQ">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="lists_getIndex" id="~~.]:Q]4!CkmN/jm$x_z">
                                                <mutation statement="false" at="true"></mutation>
                                                <field name="MODE">GET</field>
                                                <field name="WHERE">FROM_START</field>
                                                <value name="VALUE">
                                                  <block type="variables_get" id="g%RY8@:Mn_Cg;]gGbzT0">
                                                    <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
                                                  </block>
                                                </value>
                                                <value name="AT">
                                                  <block type="variables_get" id="F?#7D(_e}Do?IR3N]`,`">
                                                    <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="@}6wc^{^Uu}vI([sH!n=">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="lists_getIndex" id="7c_[^UuKU-BQ}lU(w$}]">
                                                <mutation statement="false" at="true"></mutation>
                                                <field name="MODE">GET</field>
                                                <field name="WHERE">FROM_START</field>
                                                <value name="VALUE">
                                                  <block type="variables_get" id="]I`WTj,8h=8|gx}zmSOY">
                                                    <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
                                                  </block>
                                                </value>
                                                <value name="AT">
                                                  <block type="math_arithmetic" id="mVa2wQS4TTOX!CJ`#K(w">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="5=BK^ZhgjK`r$neEbA(}">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="variables_get" id=")~nBhcp{V*=y5rcJTfc,">
                                                        <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="knPaInZyJAjzec@7oE+8">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="G*k34$T%?v-f6f+8}|R$">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="lists_getIndex" id=";*8#8??ySI!x+)~B95$%">
                                            <mutation statement="false" at="true"></mutation>
                                            <field name="MODE">GET</field>
                                            <field name="WHERE">FROM_START</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="`.HPPXKbLfdun_~FD`T!">
                                                <field name="VAR" id="%{8F(7sB61_K]=(]=HUc">preise</field>
                                              </block>
                                            </value>
                                            <value name="AT">
                                              <block type="math_arithmetic" id="q[LUt{{r6_(]K017Ec)`">
                                                <field name="OP">ADD</field>
                                                <value name="A">
                                                  <shadow type="math_number">
                                                    <field name="NUM">1</field>
                                                  </shadow>
                                                  <block type="variables_get" id="h4a71d[~*{Q~`rc)Mo#o">
                                                    <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <shadow type="math_number" id="X@[YosMR*qX)!CDv9^z-">
                                                    <field name="NUM">2</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_if" id="Zg+rib${a)X51!wZ6p2)">
                                        <value name="IF0">
                                          <block type="logic_compare" id="kWxAv]7r`mnV7Ni#uaT[">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="y3!!w.`ir_Z]HkihMfek">
                                                <field name="VAR" id=".e57X)pK7UP$$qvwNJ_S">summe3</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="variables_get" id="Lt/ftuItnB28lQKcJ}jh">
                                                <field name="VAR" id="*.=ljhdPztMh1WA90]sW">minSumme</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="variables_set" id="x)G/XOGmqh:KPNT;:Dwu">
                                            <field name="VAR" id="*.=ljhdPztMh1WA90]sW">minSumme</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="UE;AX`2z,_W52/OjyUdH">
                                                <field name="VAR" id=".e57X)pK7UP$$qvwNJ_S">summe3</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id="+]:uUPB8C$TJX])0=eG9">
                                                <field name="VAR" id="w^d~TO3AMO(L(P]Yph+4">start</field>
                                                <value name="VALUE">
                                                  <block type="math_arithmetic" id="Z`uk%;tSS)XiXqfF*~I;">
                                                    <field name="OP">MINUS</field>
                                                    <value name="A">
                                                      <shadow type="math_number" id="Rfrs@16dBP4o:`=v4ZFP">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                      <block type="variables_get" id="mCOc-1us%F7%=cUqTc,d">
                                                        <field name="VAR" id="rlR`S0q{is}DhiGVddaP">i</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <shadow type="math_number" id="j+t+3,1x,oTVi)Y8f|{0">
                                                        <field name="NUM">1</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="r;Rl}[QG^hdgn@E;sT|j">
                                    <value name="IF0">
                                      <block type="logic_compare" id="U?ma*@(V=cU6dM3*|*Ec">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="variables_get" id=";@^X$-Y]^ey0y{D18qis">
                                            <field name="VAR" id=";U~,MEV1]:ofSH@pu[N#">end</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="J/C?X%]/@4G}Nr~XJAgz">
                                            <field name="NUM">24</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="oINmsjcSdAP7OTPMoM?U">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">0_userdata.0.example_state</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="FOZVjaxdP0#/kaJ#;_oL">
                                            <field name="BOOL">FALSE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="variables_set" id="B$]uU3-XQ)1x3orP9Oh1">
                                        <field name="VAR" id=";U~,MEV1]:ofSH@pu[N#">end</field>
                                        <value name="VALUE">
                                          <block type="math_arithmetic" id="ugu?@;8t;}.m-T!VtR.%">
                                            <field name="OP">ADD</field>
                                            <value name="A">
                                              <shadow type="math_number" id="*i]5d[y@-33/[+X~Hw+p">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="variables_get" id="|gx4bdL{Q)S6jz41npy,">
                                                <field name="VAR" id="w^d~TO3AMO(L(P]Yph+4">start</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="oc`La?%4qKo)S27P4ekO">
                                                <field name="NUM">3</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="schedule_clear" id="VpV#7nOi=sxr/ANwIE(u">
                                            <field name="NAME">scheduleStart</field>
                                            <next>
                                              <block type="schedule_clear" id="c{WfH_fUAx(H2Pd,sL=-">
                                                <field name="NAME">scheduleEnd</field>
                                                <next>
                                                  <block type="schedule_create" id="~2)[D4+^nCxJb5fUG`8^">
                                                    <field name="NAME">scheduleStart</field>
                                                    <value name="SCHEDULE">
                                                      <shadow type="field_cron">
                                                        <field name="CRON">* * * * *</field>
                                                      </shadow>
                                                      <block type="cron_builder" id="v=E2;/_dgRPdb!Q#Wgwg" inline="true">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                        <field name="LINE">FALSE</field>
                                                        <field name="WITH_SECONDS">FALSE</field>
                                                        <value name="DOW">
                                                          <shadow type="text" id="th=}ESiwWw6?95exLO$E">
                                                            <field name="TEXT">*</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="MONTHS">
                                                          <shadow type="text" id="yz^]`[ZW$4:D:%6MjmJo">
                                                            <field name="TEXT">*</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="DAYS">
                                                          <shadow type="text" id="SPfRBpgL-nS44r;Nt*co">
                                                            <field name="TEXT">*</field>
                                                          </shadow>
                                                        </value>
                                                        <value name="HOURS">
                                                          <shadow type="text">
                                                            <field name="TEXT">*</field>
                                                          </shadow>
                                                          <block type="variables_get" id="h75i1luVUBkt(Ju=+2+O">
                                                            <field name="VAR" id="w^d~TO3AMO(L(P]Yph+4">start</field>
                                                          </block>
                                                        </value>
                                                        <value name="MINUTES">
                                                          <shadow type="text" id="yRt?vmf%x+A/gh@1Oy=4">
                                                            <field name="TEXT">0</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="STATEMENT">
                                                      <block type="control" id="c8j/f4Kb0kXgb]Lssn9O">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">0_userdata.0.example_state</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="pvR)i|;^d-!JtJ.tZ%z+">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="controls_if" id="NrXhX??|fd.KNk]Ht4gf">
                                                        <value name="IF0">
                                                          <block type="logic_compare" id="*z@{j2~8GL2a4xah*$P9">
                                                            <field name="OP">LT</field>
                                                            <value name="A">
                                                              <block type="variables_get" id=".nR2M=0A9Vp+jktM*yYN">
                                                                <field name="VAR" id=";U~,MEV1]:ofSH@pu[N#">end</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="ye`LyPc{Udxd+NTYSxof">
                                                                <field name="NUM">24</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="schedule_create" id="@i$WSd_S`X{lzj7cM2@f">
                                                            <field name="NAME">scheduleEnd</field>
                                                            <value name="SCHEDULE">
                                                              <shadow type="field_cron" id="[=pvs=Ss^ph)?G_:-4Mm">
                                                                <field name="CRON">* * * * *</field>
                                                              </shadow>
                                                              <block type="cron_builder" id="GgGa.Ie}G~Kz`SG[KvK/" inline="true">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                                <field name="LINE">FALSE</field>
                                                                <field name="WITH_SECONDS">FALSE</field>
                                                                <value name="DOW">
                                                                  <shadow type="text" id="%:%]5ri4`rg7BpQ|iD]1">
                                                                    <field name="TEXT">*</field>
                                                                  </shadow>
                                                                </value>
                                                                <value name="MONTHS">
                                                                  <shadow type="text" id="Qmk|a^CndrZE:^qt#9K8">
                                                                    <field name="TEXT">*</field>
                                                                  </shadow>
                                                                </value>
                                                                <value name="DAYS">
                                                                  <shadow type="text" id="YDr;;;U.a}Sk:,%kR7Un">
                                                                    <field name="TEXT">*</field>
                                                                  </shadow>
                                                                </value>
                                                                <value name="HOURS">
                                                                  <shadow type="text" id="]t%7:eX#x-.W3r/J!RFY">
                                                                    <field name="TEXT">*</field>
                                                                  </shadow>
                                                                  <block type="variables_get" id=".c1^J;6rj)vY.AbI|8*3">
                                                                    <field name="VAR" id=";U~,MEV1]:ofSH@pu[N#">end</field>
                                                                  </block>
                                                                </value>
                                                                <value name="MINUTES">
                                                                  <shadow type="text" id="_js@zAppMtcx](q.SM_4">
                                                                    <field name="TEXT">0</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="STATEMENT">
                                                              <block type="control" id="ycEj|^3Z!}a;JH(_@uE[">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">Object ID</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id=",zq0N12JZSC|s.O)LVA0">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </xml>
            

            b95ab11e-53fe-4323-bc54-68b227db421f-image.png

            @judisi könntest du mir vielleicht dein Blockly exportieren? Vielleicht habe ich auch irgendwo nen Tippfehler und finde ihn einfach nicht....

            J Offline
            J Offline
            judisi
            wrote on last edited by judisi
            #21

            @schimi
            Hab das erst jetzt gesehen. Anbei (hoffe das geht so mit dem raufladen).awattar.txt

            Momentan quäle ich mich ein wenig, weil der Awattar-Adapter nach 14:00 die Daten vom heutigen und den morgigen Tag holt. Das führt dazu, dass es dann zwei IDs mit identischen Startzeiten gibt - und dann stimmt die Sortierung der Preise nicht mehr: es werden die Preise von zwei Tagen vermischt.
            1.jpg

            Vielleicht findest ja du eine Lösung dafür. Ich versuche es über die Abrufintervalle sowohl vom Adapter als auch von den Script-Ausführungen zu regeln.

            paul53P 2 Replies Last reply
            0
            • J judisi

              @schimi
              Hab das erst jetzt gesehen. Anbei (hoffe das geht so mit dem raufladen).awattar.txt

              Momentan quäle ich mich ein wenig, weil der Awattar-Adapter nach 14:00 die Daten vom heutigen und den morgigen Tag holt. Das führt dazu, dass es dann zwei IDs mit identischen Startzeiten gibt - und dann stimmt die Sortierung der Preise nicht mehr: es werden die Preise von zwei Tagen vermischt.
              1.jpg

              Vielleicht findest ja du eine Lösung dafür. Ich versuche es über die Abrufintervalle sowohl vom Adapter als auch von den Script-Ausführungen zu regeln.

              paul53P Offline
              paul53P Offline
              paul53
              wrote on last edited by
              #22

              @judisi sagte: Das führt dazu, dass es dann zwei IDs mit identischen Startzeiten gibt - und dann stimmt die Sortierung der Preise nicht mehr:

              Worin unterscheiden sich die IDs?
              Deshalb habe ich gefragt

              @paul53 sagte in Awattar - die billigsten Strom-Stunden nutzen:

              Auch für die Zeiten heute ab 14:00 Uhr?

              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

              J 1 Reply Last reply
              0
              • paul53P paul53

                @judisi sagte: Das führt dazu, dass es dann zwei IDs mit identischen Startzeiten gibt - und dann stimmt die Sortierung der Preise nicht mehr:

                Worin unterscheiden sich die IDs?
                Deshalb habe ich gefragt

                @paul53 sagte in Awattar - die billigsten Strom-Stunden nutzen:

                Auch für die Zeiten heute ab 14:00 Uhr?

                J Offline
                J Offline
                judisi
                wrote on last edited by
                #23

                @paul53 said in Awattar - die billigsten Strom-Stunden nutzen:

                @judisi sagte: Das führt dazu, dass es dann zwei IDs mit identischen Startzeiten gibt - und dann stimmt die Sortierung der Preise nicht mehr:

                Worin unterscheiden sich die IDs?

                Der Unterschied ist das startDate. Hab versucht als Bedingung einzubauen, dass die IDs "nicht von gestern sein dürfen", aber bin daran gescheitert.

                Deshalb habe ich gefragt

                ... Mittlerweile ist mir der Grund der Frage auch klar...
                Eigentlich holt der Adapter (nach 14:00) Zeiten ab heute 00:00 bis morgen 24:00

                @paul53 sagte in Awattar - die billigsten Strom-Stunden nutzen:

                Auch für die Zeiten heute ab 14:00 Uhr?

                paul53P 1 Reply Last reply
                0
                • J judisi

                  @paul53 said in Awattar - die billigsten Strom-Stunden nutzen:

                  @judisi sagte: Das führt dazu, dass es dann zwei IDs mit identischen Startzeiten gibt - und dann stimmt die Sortierung der Preise nicht mehr:

                  Worin unterscheiden sich die IDs?

                  Der Unterschied ist das startDate. Hab versucht als Bedingung einzubauen, dass die IDs "nicht von gestern sein dürfen", aber bin daran gescheitert.

                  Deshalb habe ich gefragt

                  ... Mittlerweile ist mir der Grund der Frage auch klar...
                  Eigentlich holt der Adapter (nach 14:00) Zeiten ab heute 00:00 bis morgen 24:00

                  @paul53 sagte in Awattar - die billigsten Strom-Stunden nutzen:

                  Auch für die Zeiten heute ab 14:00 Uhr?

                  paul53P Offline
                  paul53P Offline
                  paul53
                  wrote on last edited by paul53
                  #24

                  @judisi sagte: holt der Adapter (nach 14:00) Zeiten ab heute 00:00 bis morgen 24:00

                  Es sind zu jeder Zeit 48 Werte? Vor 14 Uhr gestern und heute, nach 14 Uhr heute und morgen?
                  Wie wirkt sich das auf die Sortierung (nach Preis) aus?

                  EDIT: Da der Selektor die IDs normalerweise sortiert liefert, sollte es so funktionieren:

                  Bild_2022-12-31_145539110.png

                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                  J paul53P 2 Replies Last reply
                  0
                  • J judisi

                    @schimi
                    Hab das erst jetzt gesehen. Anbei (hoffe das geht so mit dem raufladen).awattar.txt

                    Momentan quäle ich mich ein wenig, weil der Awattar-Adapter nach 14:00 die Daten vom heutigen und den morgigen Tag holt. Das führt dazu, dass es dann zwei IDs mit identischen Startzeiten gibt - und dann stimmt die Sortierung der Preise nicht mehr: es werden die Preise von zwei Tagen vermischt.
                    1.jpg

                    Vielleicht findest ja du eine Lösung dafür. Ich versuche es über die Abrufintervalle sowohl vom Adapter als auch von den Script-Ausführungen zu regeln.

                    paul53P Offline
                    paul53P Offline
                    paul53
                    wrote on last edited by paul53
                    #25

                    @judisi sagte: der Awattar-Adapter nach 14:00 die Daten vom heutigen und den morgigen Tag holt.

                    @schimi Für die 3 aufeinander folgenden Stunden müssen die Werte von morgen genommen werden:

                    Bild_2023-01-01_170413428.png

                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                    S 1 Reply Last reply
                    0
                    • paul53P paul53

                      @judisi sagte: holt der Adapter (nach 14:00) Zeiten ab heute 00:00 bis morgen 24:00

                      Es sind zu jeder Zeit 48 Werte? Vor 14 Uhr gestern und heute, nach 14 Uhr heute und morgen?
                      Wie wirkt sich das auf die Sortierung (nach Preis) aus?

                      EDIT: Da der Selektor die IDs normalerweise sortiert liefert, sollte es so funktionieren:

                      Bild_2022-12-31_145539110.png

                      J Offline
                      J Offline
                      judisi
                      wrote on last edited by
                      #26

                      @paul53
                      Ich glaub ich hab einen Fehler entdeckt, den man gestern, am 31.12. noch nicht sehen hat können:

                      Das Startdatum der ID schaut so aus:
                      2Bildschirmfoto_2023-01-01_22-38-33.jpg

                      Somit muss die "Aktuelle Zeit als anwenderformatiert" dargestellt werden.
                      Bildschirmfoto_2023-01-01_22-36-14.jpg

                      Jetzt lass ich das script mal laufen und bin gespannt ...

                      Danke!

                      1 Reply Last reply
                      0
                      • paul53P paul53

                        @judisi sagte: der Awattar-Adapter nach 14:00 die Daten vom heutigen und den morgigen Tag holt.

                        @schimi Für die 3 aufeinander folgenden Stunden müssen die Werte von morgen genommen werden:

                        Bild_2023-01-01_170413428.png

                        S Offline
                        S Offline
                        Schimi
                        wrote on last edited by
                        #27

                        @paul53

                        muss dann nur die eine Zeile geändert werden oder dass was danach kommt auch?
                        c096e625-e942-4735-ac96-bef37fbd09a9-image.png

                        paul53P 1 Reply Last reply
                        0
                        • S Schimi

                          @paul53

                          muss dann nur die eine Zeile geändert werden oder dass was danach kommt auch?
                          c096e625-e942-4735-ac96-bef37fbd09a9-image.png

                          paul53P Offline
                          paul53P Offline
                          paul53
                          wrote on last edited by
                          #28

                          @schimi sagte: muss dann nur die eine Zeile geändert werden oder dass was danach kommt auch?

                          Nur die erste Schleife von 24 bis 47.

                          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                          S 1 Reply Last reply
                          0
                          • paul53P paul53

                            @judisi sagte: holt der Adapter (nach 14:00) Zeiten ab heute 00:00 bis morgen 24:00

                            Es sind zu jeder Zeit 48 Werte? Vor 14 Uhr gestern und heute, nach 14 Uhr heute und morgen?
                            Wie wirkt sich das auf die Sortierung (nach Preis) aus?

                            EDIT: Da der Selektor die IDs normalerweise sortiert liefert, sollte es so funktionieren:

                            Bild_2022-12-31_145539110.png

                            paul53P Offline
                            paul53P Offline
                            paul53
                            wrote on last edited by paul53
                            #29

                            @paul53 sagte: Da der Selektor die IDs normalerweise sortiert liefert, sollte es so funktionieren:

                            @judisi
                            Korrektur: Der Selektor liefert nach String-Sortierung: 0, 1, 10, 11, 12 ... 19, 2, 20, 21, ...
                            Also funktioniert es nicht so einfach: Man muss eine Zählschleife verwenden und die ID zusammensetzen.

                            Bild_2023-01-02_193443172.png

                            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                            1 Reply Last reply
                            0
                            • paul53P paul53

                              @schimi sagte: muss dann nur die eine Zeile geändert werden oder dass was danach kommt auch?

                              Nur die erste Schleife von 24 bis 47.

                              S Offline
                              S Offline
                              Schimi
                              wrote on last edited by
                              #30

                              @paul53

                              wenn du mal Zeit (und vor allem auch lust) hast... könntest du vielleicht das blockly "STep-by-Step" kommentieren?

                              Ich behaupte mal das ich blockly (einfaches) Scripting (if-when) ganz gut hinbekomme... aber damit tu ich mich schwer (liegt vielleicht am alter inzwischen :-) )

                              paul53P 1 Reply Last reply
                              0
                              • S Schimi

                                @paul53

                                wenn du mal Zeit (und vor allem auch lust) hast... könntest du vielleicht das blockly "STep-by-Step" kommentieren?

                                Ich behaupte mal das ich blockly (einfaches) Scripting (if-when) ganz gut hinbekomme... aber damit tu ich mich schwer (liegt vielleicht am alter inzwischen :-) )

                                paul53P Offline
                                paul53P Offline
                                paul53
                                wrote on last edited by paul53
                                #31

                                @schimi sagte: könntest du vielleicht das blockly "STep-by-Step" kommentieren?

                                Frage besser gezielt nach, was für Dich nicht verständlich ist.

                                Bild_2023-01-02_203633804.png
                                Bild_2023-01-02_203807081.png

                                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                J 1 Reply Last reply
                                0
                                • paul53P paul53

                                  @schimi sagte: könntest du vielleicht das blockly "STep-by-Step" kommentieren?

                                  Frage besser gezielt nach, was für Dich nicht verständlich ist.

                                  Bild_2023-01-02_203633804.png
                                  Bild_2023-01-02_203807081.png

                                  J Offline
                                  J Offline
                                  judisi
                                  wrote on last edited by
                                  #32

                                  @paul53
                                  Ich hab das Script ein paar Tage laufen lassen und beobachtet. Funktioniert alles wunderbar! Anbei die Export-Datei (es ist Warmwasser auf 1 billigste Stunde und Fußboden auf 4 billigste Stunden des Tages eingestellt zum Testen).awattar.txt

                                  Was ich nicht schaffe ist, den aktuellen Stundenpreis auszugeben, also den totalPriceKwh der aktuellen Stunde. Da wird mir mal der richtige aktuelle Stundenpreis von heute angezeigt, dann wieder der von gestern oder morgen (je nachdem, was ich probiere).

                                  Aktuell probierte ich es damit. Es lieferte

                                  • gestern bis 14:00 den richtigen Preis
                                  • gestern ab 15:00 (nachdem die Preise vom kommenden Tag abgeholt wurden um 14:45)den Preis vom nächsten Tag
                                  • heute ab 00:00 wieder den richtigen Preis

                                  stundenpreis.jpg

                                  Kann mir wer helfen? Vermutlich ist das viel zu umständlich, was ich gemacht habe und voller Fehler ...

                                  paul53P 1 Reply Last reply
                                  0
                                  • J judisi

                                    @paul53
                                    Ich hab das Script ein paar Tage laufen lassen und beobachtet. Funktioniert alles wunderbar! Anbei die Export-Datei (es ist Warmwasser auf 1 billigste Stunde und Fußboden auf 4 billigste Stunden des Tages eingestellt zum Testen).awattar.txt

                                    Was ich nicht schaffe ist, den aktuellen Stundenpreis auszugeben, also den totalPriceKwh der aktuellen Stunde. Da wird mir mal der richtige aktuelle Stundenpreis von heute angezeigt, dann wieder der von gestern oder morgen (je nachdem, was ich probiere).

                                    Aktuell probierte ich es damit. Es lieferte

                                    • gestern bis 14:00 den richtigen Preis
                                    • gestern ab 15:00 (nachdem die Preise vom kommenden Tag abgeholt wurden um 14:45)den Preis vom nächsten Tag
                                    • heute ab 00:00 wieder den richtigen Preis

                                    stundenpreis.jpg

                                    Kann mir wer helfen? Vermutlich ist das viel zu umständlich, was ich gemacht habe und voller Fehler ...

                                    paul53P Offline
                                    paul53P Offline
                                    paul53
                                    wrote on last edited by paul53
                                    #33

                                    @judisi
                                    idDate darf nicht ausgewertet werden, denn es wird in der Schleife gesetzt. Die ID für den aktuellen Preis sollte doch zu jeder Zeit sein?

                                    "awattar.0.prices." + h + ".totalPriceKwh"
                                    

                                    Evtl. um 0:00 Uhr kann der Zeitplan zu früh auslösen bevor das Umlagern der Preise von morgen nach heute vom Awattar-Adapter beendet ist. Das kann man mit einer Verzögerung (2 s?) umgehen.

                                    Bild_2023-01-08_114738405.png

                                    EDIT: Es ist wohl der Tibber-Adapter der um Mitternacht umlagert?
                                    Falls nicht um Mitternacht umgelagert wird, muss idDate neu gebildet werden:

                                    Bild_2023-01-08_122344231.png

                                    Bei mir funktioniert es mit der unteren Version.

                                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                    J 1 Reply Last reply
                                    0
                                    • paul53P paul53

                                      @judisi
                                      idDate darf nicht ausgewertet werden, denn es wird in der Schleife gesetzt. Die ID für den aktuellen Preis sollte doch zu jeder Zeit sein?

                                      "awattar.0.prices." + h + ".totalPriceKwh"
                                      

                                      Evtl. um 0:00 Uhr kann der Zeitplan zu früh auslösen bevor das Umlagern der Preise von morgen nach heute vom Awattar-Adapter beendet ist. Das kann man mit einer Verzögerung (2 s?) umgehen.

                                      Bild_2023-01-08_114738405.png

                                      EDIT: Es ist wohl der Tibber-Adapter der um Mitternacht umlagert?
                                      Falls nicht um Mitternacht umgelagert wird, muss idDate neu gebildet werden:

                                      Bild_2023-01-08_122344231.png

                                      Bei mir funktioniert es mit der unteren Version.

                                      J Offline
                                      J Offline
                                      judisi
                                      wrote on last edited by
                                      #34

                                      @paul53 perfekt. Vielen, vielen Dank. Hab die zweite Variante mit "idate neu gebildet" verwendet. Jetzt funktioniert alles wunderbar. Ich danke für all die Hilfe - immer sehr anfängerfreundlich und schneller, als ich tippen kann! DANKE!

                                      B 1 Reply Last reply
                                      0
                                      • J judisi

                                        @paul53 perfekt. Vielen, vielen Dank. Hab die zweite Variante mit "idate neu gebildet" verwendet. Jetzt funktioniert alles wunderbar. Ich danke für all die Hilfe - immer sehr anfängerfreundlich und schneller, als ich tippen kann! DANKE!

                                        B Offline
                                        B Offline
                                        badsnoopy667
                                        wrote on last edited by badsnoopy667
                                        #35

                                        @judisi Könntest Du einmal den Blockly Export des funktionierenden Scripts posten? Dann muss man sich das hier nicht zusammensuchen. Vielen Dank!!

                                        paul53P 1 Reply Last reply
                                        0
                                        • B badsnoopy667

                                          @judisi Könntest Du einmal den Blockly Export des funktionierenden Scripts posten? Dann muss man sich das hier nicht zusammensuchen. Vielen Dank!!

                                          paul53P Offline
                                          paul53P Offline
                                          paul53
                                          wrote on last edited by
                                          #36

                                          @badsnoopy667 sagte: Blockly Export des funktionierenden Scripts posten?

                                          Vielleicht kann ich aushelfen?

                                          <xml xmlns="https://developers.google.com/blockly/xml">
                                           <variables>
                                             <variable id="f%{MYK|pqx/msm?jLTCv">sort</variable>
                                             <variable id="m[W;a/*+Ku4g|deZEV$r">i</variable>
                                             <variable id="@!RPgtnzVwyGIa5#?5i^">id</variable>
                                             <variable id=":s^oe|FI,MTykE.d|vjJ">idDate</variable>
                                             <variable id="JU=3dvDJ]OgXqBlqGYM[">ww</variable>
                                             <variable id="Pw_FHmi}c0-([@-$Ax/M">fbh</variable>
                                             <variable id="_Nuc-_3~VS;%yQn+g$9o">stunde</variable>
                                             <variable id="eTgx)$hD2knDGoSo3`$M">idPreis</variable>
                                           </variables>
                                           <block type="schedule" id="t0ptX_hB3?gNErGP2-44" x="113" y="-68">
                                             <field name="SCHEDULE">0 * * * *</field>
                                             <statement name="STATEMENT">
                                               <block type="variables_set" id="m$Bu`}K+wC*Ia!$Q/87$">
                                                 <field name="VAR" id="f%{MYK|pqx/msm?jLTCv">sort</field>
                                                 <value name="VALUE">
                                                   <block type="math_number" id="#Y.8dvJg[RZkNDtw^?ge">
                                                     <field name="NUM">0</field>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="controls_for" id="^I#Vwi@:8cPB@~p6g4[I">
                                                     <field name="VAR" id="m[W;a/*+Ku4g|deZEV$r">i</field>
                                                     <value name="FROM">
                                                       <shadow type="math_number" id="uK{nB-7z.a?d2|?NGC;Y">
                                                         <field name="NUM">1</field>
                                                       </shadow>
                                                     </value>
                                                     <value name="TO">
                                                       <shadow type="math_number" id="y!?o50tye=EtN2yfubW2">
                                                         <field name="NUM">10</field>
                                                       </shadow>
                                                       <block type="lists_length" id="*oxxY{FFu2$ya+KAs-wC">
                                                         <value name="VALUE">
                                                           <block type="selector" id="UvXOT+v,~RTtJ(+zw]PQ">
                                                             <field name="TEXT">awattar.0.pricesOrdered.*.start</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <value name="BY">
                                                       <shadow type="math_number" id="XWtiOpI~HC)?jkUGVR#Z">
                                                         <field name="NUM">1</field>
                                                       </shadow>
                                                     </value>
                                                     <statement name="DO">
                                                       <block type="variables_set" id="@6Q{Y~(8Y@DvAP5)^:aE">
                                                         <field name="VAR" id="@!RPgtnzVwyGIa5#?5i^">id</field>
                                                         <value name="VALUE">
                                                           <block type="text_join" id=":S}lgn4j$S!St8ojec/%" inline="true">
                                                             <mutation items="3"></mutation>
                                                             <value name="ADD0">
                                                               <block type="text" id="9YR/b:Op#Q=COcF=yT$$">
                                                                 <field name="TEXT">awattar.0.pricesOrdered.</field>
                                                               </block>
                                                             </value>
                                                             <value name="ADD1">
                                                               <block type="math_arithmetic" id="#{n:)]S0R`q*x*Zz}xDY">
                                                                 <field name="OP">MINUS</field>
                                                                 <value name="A">
                                                                   <shadow type="math_number" id="B(,hr0]jxUo9H6p],:.U">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="variables_get" id="fmi9JMsXie[7AqYh!5?f">
                                                                     <field name="VAR" id="m[W;a/*+Ku4g|deZEV$r">i</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <shadow type="math_number" id="?{U^ty/@sgP38@F_w{Ga">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <value name="ADD2">
                                                               <block type="text" id="`O,1MghUJ^/p@hp}d.l0">
                                                                 <field name="TEXT">.start</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="variables_set" id="]nDOX,W{}z:NK:^cE_+z">
                                                             <field name="VAR" id=":s^oe|FI,MTykE.d|vjJ">idDate</field>
                                                             <value name="VALUE">
                                                               <block type="text_join" id="JO^u9Ozg7[rg?[hC`|bI" inline="true">
                                                                 <mutation items="2"></mutation>
                                                                 <value name="ADD0">
                                                                   <block type="variables_get" id="$HCexy7I`Z}sE30y`}Si">
                                                                     <field name="VAR" id="@!RPgtnzVwyGIa5#?5i^">id</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="ADD1">
                                                                   <block type="text" id="^%_^Mo2RG**$)[JZch2-">
                                                                     <field name="TEXT">Date</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="controls_if" id="Ey5j%EGWhO%gDOn^`uVS">
                                                                 <value name="IF0">
                                                                   <block type="logic_compare" id="8xG3/SRk,Q6)#^#9)]rM">
                                                                     <field name="OP">EQ</field>
                                                                     <value name="A">
                                                                       <block type="get_value_var" id="oM%Z$lb7%04#3?HdX9l3">
                                                                         <field name="ATTR">val</field>
                                                                         <value name="OID">
                                                                           <shadow type="text" id="T[22+A?Ql{.;LwfBQFZ^">
                                                                             <field name="TEXT"></field>
                                                                           </shadow>
                                                                           <block type="variables_get" id="Y!n8IH|K)x%M{S1U6YKG">
                                                                             <field name="VAR" id=":s^oe|FI,MTykE.d|vjJ">idDate</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <block type="time_get" id=")E[gSkt[:I!t}QmJ$@@z">
                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                         <field name="OPTION">custom</field>
                                                                         <field name="FORMAT">T.M.JJJJ</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <statement name="DO0">
                                                                   <block type="math_change" id="t4_:*m`)g)Lm(1d9NTtt">
                                                                     <field name="VAR" id="f%{MYK|pqx/msm?jLTCv">sort</field>
                                                                     <value name="DELTA">
                                                                       <shadow type="math_number" id="/gPA7?+l(J60?@MMvM[b">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                     </value>
                                                                     <next>
                                                                       <block type="controls_if" id="c37l0tBG(dWgrG[_jJ*H">
                                                                         <value name="IF0">
                                                                           <block type="logic_compare" id="ggTAH!IN|c^#NP3#fe$i">
                                                                             <field name="OP">EQ</field>
                                                                             <value name="A">
                                                                               <block type="get_value_var" id="DzQ]#W-I`,-WpvdB~r^=">
                                                                                 <field name="ATTR">val</field>
                                                                                 <value name="OID">
                                                                                   <shadow type="text">
                                                                                     <field name="TEXT"></field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="PzTgSjUnKn}L~+Lu7;iE">
                                                                                     <field name="VAR" id="@!RPgtnzVwyGIa5#?5i^">id</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <value name="B">
                                                                               <block type="time_get" id="wfRYY0aB3ajC#/tjN2]d">
                                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                                 <field name="OPTION">hh:mm:ss</field>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <statement name="DO0">
                                                                           <block type="controls_if" id="gcRTE/pXe9yqfB@(m(ie">
                                                                             <mutation elseif="1" else="1"></mutation>
                                                                             <value name="IF0">
                                                                               <block type="logic_compare" id="+Gs?^;C}J@CnzUI3]It/">
                                                                                 <field name="OP">LTE</field>
                                                                                 <value name="A">
                                                                                   <block type="variables_get" id="ntc!u-;4R:RVfbXoD,g3">
                                                                                     <field name="VAR" id="f%{MYK|pqx/msm?jLTCv">sort</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <block type="math_number" id="Zh5JIS[O;{KFd7+dglib">
                                                                                     <field name="NUM">6</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <statement name="DO0">
                                                                               <block type="variables_set" id="oK,Vo]}VE~hn!wMb%EaQ">
                                                                                 <field name="VAR" id="JU=3dvDJ]OgXqBlqGYM[">ww</field>
                                                                                 <value name="VALUE">
                                                                                   <block type="logic_boolean" id="MI7#Ba{K$P~ECPrcQ8~u">
                                                                                     <field name="BOOL">TRUE</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <next>
                                                                                   <block type="variables_set" id="GRjr1|q-qv~bZ_]x-b-V">
                                                                                     <field name="VAR" id="Pw_FHmi}c0-([@-$Ax/M">fbh</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="logic_boolean" id="+BKshPHTFX$)Axk,s:D3">
                                                                                         <field name="BOOL">TRUE</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </next>
                                                                               </block>
                                                                             </statement>
                                                                             <value name="IF1">
                                                                               <block type="logic_compare" id="_r:fA@(Q@C=RBwAM0*Aj">
                                                                                 <field name="OP">LTE</field>
                                                                                 <value name="A">
                                                                                   <block type="variables_get" id="LUO{za(7%1bLUGPXF0-I">
                                                                                     <field name="VAR" id="f%{MYK|pqx/msm?jLTCv">sort</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <block type="math_number" id="7J4^!@k2T`nB=tV8earE">
                                                                                     <field name="NUM">12</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <statement name="DO1">
                                                                               <block type="variables_set" id="n.Ik|u:~_:hM36]!*QlD">
                                                                                 <field name="VAR" id="JU=3dvDJ]OgXqBlqGYM[">ww</field>
                                                                                 <value name="VALUE">
                                                                                   <block type="logic_boolean" id="owYb%`7T54.}wrm+]u-g">
                                                                                     <field name="BOOL">FALSE</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <next>
                                                                                   <block type="variables_set" id="E`4`IKL)y:A}rSN:Kg(p">
                                                                                     <field name="VAR" id="Pw_FHmi}c0-([@-$Ax/M">fbh</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="logic_boolean" id="S+l[m~BVrGqKTJb!u8V-">
                                                                                         <field name="BOOL">TRUE</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </next>
                                                                               </block>
                                                                             </statement>
                                                                             <statement name="ELSE">
                                                                               <block type="variables_set" id="HS:r/kU.]y/[Z]iPi_Xr">
                                                                                 <field name="VAR" id="JU=3dvDJ]OgXqBlqGYM[">ww</field>
                                                                                 <value name="VALUE">
                                                                                   <block type="logic_boolean" id="0o]?]!J4GKIPzNqOziK%">
                                                                                     <field name="BOOL">FALSE</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <next>
                                                                                   <block type="variables_set" id="RyL3o?ihAvyDZWomwrme">
                                                                                     <field name="VAR" id="Pw_FHmi}c0-([@-$Ax/M">fbh</field>
                                                                                     <value name="VALUE">
                                                                                       <block type="logic_boolean" id="!QO~MyG$F#Fb;EbX.RB]">
                                                                                         <field name="BOOL">FALSE</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </next>
                                                                               </block>
                                                                             </statement>
                                                                             <next>
                                                                               <block type="controls_flow_statements" id="eWKTtP5}AB!o0E=d@X15">
                                                                                 <field name="FLOW">BREAK</field>
                                                                               </block>
                                                                             </next>
                                                                           </block>
                                                                         </statement>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </statement>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </statement>
                                                     <next>
                                                       <block type="control" id="2`n*#WlwbkPU!2|uD_e`" disabled="true">
                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                         <field name="OID">Object ID</field>
                                                         <field name="WITH_DELAY">FALSE</field>
                                                         <value name="VALUE">
                                                           <block type="variables_get" id="3;29{]Xqb0Tg.hordU+L">
                                                             <field name="VAR" id="JU=3dvDJ]OgXqBlqGYM[">ww</field>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="control" id="y!s1?^8XonrSSD^d:]-|" disabled="true">
                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                             <field name="OID">Object ID</field>
                                                             <field name="WITH_DELAY">FALSE</field>
                                                             <value name="VALUE">
                                                               <block type="variables_get" id=")uE};lZj2G04W=qRg|E`">
                                                                 <field name="VAR" id="Pw_FHmi}c0-([@-$Ax/M">fbh</field>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="variables_set" id="~hBW|XS(8x%+xwAf%Kkv">
                                                                 <field name="VAR" id="_Nuc-_3~VS;%yQn+g$9o">stunde</field>
                                                                 <value name="VALUE">
                                                                   <block type="time_get" id=":GeZIU-{w4?TE0BC@D|Y">
                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                                     <field name="OPTION">h</field>
                                                                   </block>
                                                                 </value>
                                                                 <next>
                                                                   <block type="variables_set" id="MQ@9vpbm0twY]C|ujABd">
                                                                     <field name="VAR" id=":s^oe|FI,MTykE.d|vjJ">idDate</field>
                                                                     <value name="VALUE">
                                                                       <block type="text_join" id=",ml%b@CiFZA2:9!l,1Hd">
                                                                         <mutation items="3"></mutation>
                                                                         <value name="ADD0">
                                                                           <block type="text" id="K!zbGiH(RdzY+?0kVwG?">
                                                                             <field name="TEXT">awattar.0.prices.</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="ADD1">
                                                                           <block type="variables_get" id="]`Ue]rEZm7kbr*_a,O$`">
                                                                             <field name="VAR" id="_Nuc-_3~VS;%yQn+g$9o">stunde</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="ADD2">
                                                                           <block type="text" id=",|)+9AGe$r8n[(NaedI4">
                                                                             <field name="TEXT">.startDate</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <next>
                                                                       <block type="controls_if" id="69d^VUAHY?4b|j+@cXXw">
                                                                         <mutation else="1"></mutation>
                                                                         <value name="IF0">
                                                                           <block type="logic_compare" id="0)RD}*w5Z$6h6O6Y{l1+">
                                                                             <field name="OP">EQ</field>
                                                                             <value name="A">
                                                                               <block type="get_value_var" id="m`SbczVWHA#5}g,*s}x^">
                                                                                 <field name="ATTR">val</field>
                                                                                 <value name="OID">
                                                                                   <shadow type="text" id="3LUz^-^E[f,3{G:^Tv_x">
                                                                                     <field name="TEXT"></field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="qEhWJ_x(1|EN.#(R#t=`">
                                                                                     <field name="VAR" id=":s^oe|FI,MTykE.d|vjJ">idDate</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <value name="B">
                                                                               <block type="time_get" id="5{1=BKF0rCri;MxB9KMW">
                                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                                                 <field name="OPTION">custom</field>
                                                                                 <field name="FORMAT">T.M.JJJJ</field>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <statement name="DO0">
                                                                           <block type="variables_set" id="r66/JkWBU^B+v3bwZ4N/">
                                                                             <field name="VAR" id="eTgx)$hD2knDGoSo3`$M">idPreis</field>
                                                                             <value name="VALUE">
                                                                               <block type="text_join" id="TxKK9Mb%:ZwT;xy6`Z?#">
                                                                                 <mutation items="3"></mutation>
                                                                                 <value name="ADD0">
                                                                                   <block type="text" id="!i2i}@Dt?zME37}xdZ4%">
                                                                                     <field name="TEXT">awattar.0.prices.</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="ADD1">
                                                                                   <block type="variables_get" id="3Rl5pi,Iqn76rA_Yw,c+">
                                                                                     <field name="VAR" id="_Nuc-_3~VS;%yQn+g$9o">stunde</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="ADD2">
                                                                                   <block type="text" id="bYfIMeLQIW-zILKzxG$v">
                                                                                     <field name="TEXT">.totalPriceKwh</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </statement>
                                                                         <statement name="ELSE">
                                                                           <block type="variables_set" id="!=SM:O1]Fn%djj4I@[$@">
                                                                             <field name="VAR" id="eTgx)$hD2knDGoSo3`$M">idPreis</field>
                                                                             <value name="VALUE">
                                                                               <block type="text_join" id="=!:etc4,Sj2`LkAuWUi*">
                                                                                 <mutation items="3"></mutation>
                                                                                 <value name="ADD0">
                                                                                   <block type="text" id="GlFO;(aqT@I[#6XC?F@b">
                                                                                     <field name="TEXT">awattar.0.prices.</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="ADD1">
                                                                                   <block type="math_arithmetic" id="J1iK){0l.}VR?9A|H6N3">
                                                                                     <field name="OP">ADD</field>
                                                                                     <value name="A">
                                                                                       <shadow type="math_number" id="S8Ud;PQu.R(l}h{a$ExG">
                                                                                         <field name="NUM">1</field>
                                                                                       </shadow>
                                                                                       <block type="variables_get" id="/vSTWPMaL^9Zc(4Od2gk">
                                                                                         <field name="VAR" id="_Nuc-_3~VS;%yQn+g$9o">stunde</field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="B">
                                                                                       <shadow type="math_number" id="Whk;c?I`L0q;G{~VUpr+">
                                                                                         <field name="NUM">24</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="ADD2">
                                                                                   <block type="text" id="[[)x,2!m+xiek{D+}Ktx">
                                                                                     <field name="TEXT">.totalPriceKwh</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </statement>
                                                                         <next>
                                                                           <block type="debug" id="JdM:egWf%4hJYB{}8gx}">
                                                                             <field name="Severity">log</field>
                                                                             <value name="TEXT">
                                                                               <shadow type="text" id="7kGslysPGVf%Cp7dUL8I">
                                                                                 <field name="TEXT">test</field>
                                                                               </shadow>
                                                                               <block type="text_join" id="v{_niA}T~y_?=wCx#Q?M">
                                                                                 <mutation items="2"></mutation>
                                                                                 <value name="ADD0">
                                                                                   <block type="text" id="{-H2@_KSQrc4Y.U=oSfa">
                                                                                     <field name="TEXT">aktueller Preis: </field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="ADD1">
                                                                                   <block type="math_rndfixed" id="IONixpM;:VMse8:5*@eU">
                                                                                     <field name="n">2</field>
                                                                                     <value name="x">
                                                                                       <shadow type="math_number" id="RQE~cVZF?);/~.)Q9fB*">
                                                                                         <field name="NUM">3.1234</field>
                                                                                       </shadow>
                                                                                       <block type="get_value_var" id="SL=6p7RH_[k]M9r45=ls">
                                                                                         <field name="ATTR">val</field>
                                                                                         <value name="OID">
                                                                                           <shadow type="text" id="7zK$!`js6l9s[Ane:X5k">
                                                                                             <field name="TEXT"></field>
                                                                                           </shadow>
                                                                                           <block type="variables_get" id="X5LHou*mGG0^M;o3!Qi(">
                                                                                             <field name="VAR" id="eTgx)$hD2knDGoSo3`$M">idPreis</field>
                                                                                           </block>
                                                                                         </value>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </statement>
                                           </block>
                                          </xml>
                                          

                                          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                          D P 2 Replies Last reply
                                          1

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          712

                                          Online

                                          32.8k

                                          Users

                                          82.7k

                                          Topics

                                          1.3m

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

                                          • Don't have an account? Register

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