Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Awattar - die billigsten Strom-Stunden nutzen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Awattar - die billigsten Strom-Stunden nutzen

    This topic has been deleted. Only users with topic management privileges can see it.
    • paul53
      paul53 @Doom.86 last edited by paul53

      @doom-86 sagte: Es würde somit auch reichen, wenn erst um 18 Uhr getriggert wird.

      Dann schau mal diese Lösung mit Trigger um 17:59 Uhr an:

      <xml xmlns="https://developers.google.com/blockly/xml">
       <variables>
         <variable id="slzz5)!d0O#p:CL?^k@l">tibber</variable>
         <variable id="I=q`=kgBC10=WtmP[C@G">end1h</variable>
         <variable id="y[G=0ms17p|S*%p]+B~p">preise</variable>
         <variable id="A*CzK[pG.x4^B]b*|c[1">end3h</variable>
         <variable id="L`VRA5|#^N/oI[|LjJqy">i</variable>
         <variable id="ES`I}6lM2ZNSuk*`6Bt`">id</variable>
         <variable id="6)]2##_Z9.w~~.^]:M*W">min1</variable>
         <variable id="bpynY%@fDWCdbC?Xv*s1">min3</variable>
         <variable id="5_aI@Kq-?t,56cb.j893">preis1</variable>
         <variable id="FAiYO^Ty$^^g*F@vG:~j">start1h</variable>
         <variable id="a4m{kvJ}{$=rv(H9#1J_">preis3</variable>
         <variable id="ud88TKb=*)[?(!NqiOoj">start3h</variable>
         <variable type="cron" id="schedule1">schedule1</variable>
         <variable type="cron" id="schedule2">schedule2</variable>
         <variable type="cron" id="schedule3">schedule3</variable>
         <variable type="cron" id="schedule4">schedule4</variable>
       </variables>
       <block type="variables_set" id="yCwl;0ySJ|1}Q!2s=yK]" x="87" y="-87">
         <field name="VAR" id="slzz5)!d0O#p:CL?^k@l">tibber</field>
         <value name="VALUE">
           <block type="text" id="Dg:|cO}z^{]x$/g4fe`1">
             <field name="TEXT">tibberconnect.0.Homes.ef9611f1-6e89-47ae-8966-ce359e21b819.</field>
           </block>
         </value>
         <next>
           <block type="schedule" id="tt0v29t$v3Fc|sH*~qV_">
             <field name="SCHEDULE">59 17 * * *</field>
             <statement name="STATEMENT">
               <block type="controls_if" id="+g*^w|33kRI[#2ilg+zf">
                 <value name="IF0">
                   <block type="logic_compare" id="%kEM[O!*NkR1bxYxj}La">
                     <field name="OP">EQ</field>
                     <value name="A">
                       <block type="variables_get" id="*RrNBWBfa}4YV^EFey:|">
                         <field name="VAR" id="I=q`=kgBC10=WtmP[C@G">end1h</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="M7U.jytRxX6d-BmPUg@*">
                         <field name="NUM">18</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control" id="*B_t6szZgS!H$Znz$|)#">
                     <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="j]D))tVtr,r_ZAC_dAY+">
                         <field name="BOOL">FALSE</field>
                       </block>
                     </value>
                   </block>
                 </statement>
                 <next>
                   <block type="controls_if" id="a0!D]L2`|I(._P{MjZn]">
                     <value name="IF0">
                       <block type="logic_compare" id="X.N)Nh`lCo83t,M=g0`*">
                         <field name="OP">EQ</field>
                         <value name="A">
                           <block type="variables_get" id="yf%,Pvwz(hBDganu|},t">
                             <field name="VAR" id="A*CzK[pG.x4^B]b*|c[1">end3h</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="O1R{)2/9M(-.8L{6@P~P">
                             <field name="NUM">18</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="control" id="c7{0Rrpn|)lA{HL$PE:`">
                         <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="u2(so==`PrHNt$t,/XT#">
                             <field name="BOOL">FALSE</field>
                           </block>
                         </value>
                       </block>
                     </statement>
                     <next>
                       <block type="variables_set" id=".T%gExb0x3kzS0QkPh4_">
                         <field name="VAR" id="y[G=0ms17p|S*%p]+B~p">preise</field>
                         <value name="VALUE">
                           <block type="lists_create_with" id="9_QV!ty3GA(vG,y+f$PM">
                             <mutation items="0"></mutation>
                           </block>
                         </value>
                         <next>
                           <block type="controls_for" id="0EMe,uPv?5mH[^}O)k`i">
                             <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                             <value name="FROM">
                               <shadow type="math_number" id="CD]PeRYFc[XnhEs5CJ#x">
                                 <field name="NUM">18</field>
                               </shadow>
                             </value>
                             <value name="TO">
                               <shadow type="math_number" id="qYc{.jy$roEsQ,Nt8vyr">
                                 <field name="NUM">23</field>
                               </shadow>
                             </value>
                             <value name="BY">
                               <shadow type="math_number" id="03:P%];Y-P#yi{L-}LKp">
                                 <field name="NUM">1</field>
                               </shadow>
                             </value>
                             <statement name="DO">
                               <block type="variables_set" id="@3TC[[E?2tnNxQ*fd~Q{">
                                 <field name="VAR" id="ES`I}6lM2ZNSuk*`6Bt`">id</field>
                                 <value name="VALUE">
                                   <block type="text_join" id="N:w]#x6G+8Bmx~)$;f8}" inline="true">
                                     <mutation items="4"></mutation>
                                     <value name="ADD0">
                                       <block type="variables_get" id="LzVIIv*{^;~R(2@Lv;{E">
                                         <field name="VAR" id="slzz5)!d0O#p:CL?^k@l">tibber</field>
                                       </block>
                                     </value>
                                     <value name="ADD1">
                                       <block type="text" id="N@bdq$^6yP}vR4yYmF.x">
                                         <field name="TEXT">PricesToday.</field>
                                       </block>
                                     </value>
                                     <value name="ADD2">
                                       <block type="variables_get" id="IcZwEk?;*^(U.C8Sj,7|">
                                         <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                       </block>
                                     </value>
                                     <value name="ADD3">
                                       <block type="text" id="e!Oo*|9/;z$t6##==xXm">
                                         <field name="TEXT">.total</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="lists_setIndex" id="mz72D6xxndyuAarOJ^Rh">
                                     <mutation at="false"></mutation>
                                     <field name="MODE">INSERT</field>
                                     <field name="WHERE">LAST</field>
                                     <value name="LIST">
                                       <block type="variables_get" id="IWq=s?THie/h/[7iiV}{">
                                         <field name="VAR" id="y[G=0ms17p|S*%p]+B~p">preise</field>
                                       </block>
                                     </value>
                                     <value name="TO">
                                       <block type="get_value_var" id="GGwox!C;I%E_l1R0DqiG">
                                         <field name="ATTR">val</field>
                                         <value name="OID">
                                           <shadow type="text" id="MyJGi(n/]qv_!IYhxy=H">
                                             <field name="TEXT"></field>
                                           </shadow>
                                           <block type="variables_get" id="ks=U5X[R.:5N=z(giPmt">
                                             <field name="VAR" id="ES`I}6lM2ZNSuk*`6Bt`">id</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <next>
                               <block type="controls_for" id="#IcemZu7(wpeg8hlUr;:">
                                 <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                 <value name="FROM">
                                   <shadow type="math_number" id="XqH@jx{57kMGD#DNVXEe">
                                     <field name="NUM">0</field>
                                   </shadow>
                                 </value>
                                 <value name="TO">
                                   <shadow type="math_number" id="Rof~CHCPfRE}Q?+NC.R_">
                                     <field name="NUM">17</field>
                                   </shadow>
                                 </value>
                                 <value name="BY">
                                   <shadow type="math_number" id="^[nSkD;0r.fX)=GB;P5=">
                                     <field name="NUM">1</field>
                                   </shadow>
                                 </value>
                                 <statement name="DO">
                                   <block type="variables_set" id=",140@$+*?5Q!6phadh*E">
                                     <field name="VAR" id="ES`I}6lM2ZNSuk*`6Bt`">id</field>
                                     <value name="VALUE">
                                       <block type="text_join" id="f;8DEi_aVP:k8Mo2{[xZ" inline="true">
                                         <mutation items="4"></mutation>
                                         <value name="ADD0">
                                           <block type="variables_get" id="FU7z:,?Q@2]@;WxPq8-H">
                                             <field name="VAR" id="slzz5)!d0O#p:CL?^k@l">tibber</field>
                                           </block>
                                         </value>
                                         <value name="ADD1">
                                           <block type="text" id="W5b%W`21-HBX(uY$3G|/">
                                             <field name="TEXT">PricesTomorrow.</field>
                                           </block>
                                         </value>
                                         <value name="ADD2">
                                           <block type="variables_get" id="y91uc$|ujM0al,!9q-Xv">
                                             <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                           </block>
                                         </value>
                                         <value name="ADD3">
                                           <block type="text" id="00Ae^StCs9ZJQ]7.FgN5">
                                             <field name="TEXT">.total</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="lists_setIndex" id="C_rGEL-3J#BKOo`X4[dK">
                                         <mutation at="false"></mutation>
                                         <field name="MODE">INSERT</field>
                                         <field name="WHERE">LAST</field>
                                         <value name="LIST">
                                           <block type="variables_get" id="~9N?Q5}62w)Sy!mAO)k}">
                                             <field name="VAR" id="y[G=0ms17p|S*%p]+B~p">preise</field>
                                           </block>
                                         </value>
                                         <value name="TO">
                                           <block type="get_value_var" id="{16RqU$HDR4jR|aQ0q3%">
                                             <field name="ATTR">val</field>
                                             <value name="OID">
                                               <shadow type="text">
                                                 <field name="TEXT"></field>
                                               </shadow>
                                               <block type="variables_get" id="l2^WVBo)dq?Syx.w5F%!">
                                                 <field name="VAR" id="ES`I}6lM2ZNSuk*`6Bt`">id</field>
                                               </block>
                                             </value>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="variables_set" id="I%E4f01C`g;3p|DcmUku">
                                     <field name="VAR" id="6)]2##_Z9.w~~.^]:M*W">min1</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="3KuHw0^#,p*_2M/QP?uO">
                                         <field name="NUM">3</field>
                                       </block>
                                     </value>
                                     <next>
                                       <block type="variables_set" id="Dt_:-3vN.ADYN1pT.7-z">
                                         <field name="VAR" id="bpynY%@fDWCdbC?Xv*s1">min3</field>
                                         <value name="VALUE">
                                           <block type="math_number" id="?gi`V*!@#+iuu8K3*`5L">
                                             <field name="NUM">9</field>
                                           </block>
                                         </value>
                                         <next>
                                           <block type="controls_for" id="W3SFx!cp:%wcO#wjjI({">
                                             <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                             <value name="FROM">
                                               <shadow type="math_number" id="?VS9n{p5)Sbybdj_MorR">
                                                 <field name="NUM">1</field>
                                               </shadow>
                                             </value>
                                             <value name="TO">
                                               <shadow type="math_number" id="68B!zjKn/MASC]R;y}k1">
                                                 <field name="NUM">10</field>
                                               </shadow>
                                               <block type="lists_length" id="t9HYB^`KjiNfq$x*IH,f">
                                                 <value name="VALUE">
                                                   <block type="variables_get" id="fUVVK_^CL_)k4*5C*l|7">
                                                     <field name="VAR" id="y[G=0ms17p|S*%p]+B~p">preise</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <value name="BY">
                                               <shadow type="math_number" id="tP+sIGUb[Wn]d+!$C*mL">
                                                 <field name="NUM">1</field>
                                               </shadow>
                                             </value>
                                             <statement name="DO">
                                               <block type="variables_set" id="L:[PGOztTsy}k$t*7|oA">
                                                 <field name="VAR" id="5_aI@Kq-?t,56cb.j893">preis1</field>
                                                 <value name="VALUE">
                                                   <block type="lists_getIndex" id=".LJVQeHz5,l}n%R[%6~}">
                                                     <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="ZFC/#M0fU1Fj@?y8i98Y">
                                                         <field name="VAR" id="y[G=0ms17p|S*%p]+B~p">preise</field>
                                                       </block>
                                                     </value>
                                                     <value name="AT">
                                                       <block type="variables_get" id="Wq(#HzHm(]G]PaXwu4B*">
                                                         <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="controls_if" id="Ozsx73!acF65Yh8[fRS[">
                                                     <value name="IF0">
                                                       <block type="logic_compare" id="]XZHpA3}P5iN%Ip1UoLZ">
                                                         <field name="OP">LT</field>
                                                         <value name="A">
                                                           <block type="variables_get" id="5}g:it%7kl(5?9x*p~Gy">
                                                             <field name="VAR" id="5_aI@Kq-?t,56cb.j893">preis1</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <block type="variables_get" id="AvX)nL76,z(TOD-f#;AR">
                                                             <field name="VAR" id="6)]2##_Z9.w~~.^]:M*W">min1</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <statement name="DO0">
                                                       <block type="variables_set" id="L4nG!:}Bi%*B9bD|U$[z">
                                                         <field name="VAR" id="6)]2##_Z9.w~~.^]:M*W">min1</field>
                                                         <value name="VALUE">
                                                           <block type="variables_get" id="FY@GQkmRYO[;W6rM[ayJ">
                                                             <field name="VAR" id="5_aI@Kq-?t,56cb.j893">preis1</field>
                                                           </block>
                                                         </value>
                                                         <next>
                                                           <block type="variables_set" id="b*cBRJ-9AMXYQ*U;ncQs">
                                                             <field name="VAR" id="FAiYO^Ty$^^g*F@vG:~j">start1h</field>
                                                             <value name="VALUE">
                                                               <block type="logic_ternary" id="AIR,$Z?!9$xfowz)flFt" inline="true">
                                                                 <value name="IF">
                                                                   <block type="logic_compare" id="Ij$Y[Y=A[:chL7VA%8SU">
                                                                     <field name="OP">LT</field>
                                                                     <value name="A">
                                                                       <block type="variables_get" id="D9Qw)FPc9e9^JDF*{dlj">
                                                                         <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <block type="math_number" id="UE*pCLL]21,C{0nywlC9">
                                                                         <field name="NUM">7</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <value name="THEN">
                                                                   <block type="math_arithmetic" id="S(4~b~~Os#gW;Ae+7b2~">
                                                                     <field name="OP">ADD</field>
                                                                     <value name="A">
                                                                       <shadow type="math_number" id="A0|ecpGucnJ;c=5R)QPu">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="variables_get" id="VP9|C5G+m?+[S%h+L$SK">
                                                                         <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <shadow type="math_number" id="fRyfZ2ugekFxSbGw+|2.">
                                                                         <field name="NUM">17</field>
                                                                       </shadow>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <value name="ELSE">
                                                                   <block type="math_arithmetic" id="}?gMK^#aT.Dg?Kq[_3gU">
                                                                     <field name="OP">MINUS</field>
                                                                     <value name="A">
                                                                       <shadow type="math_number">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="variables_get" id=",m0S.DIN-i.W4qB1DKY0">
                                                                         <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <shadow type="math_number" id="+2H~`?hnFXE?Tue#??m[">
                                                                         <field name="NUM">7</field>
                                                                       </shadow>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </statement>
                                                     <next>
                                                       <block type="controls_if" id="z4sy3v]0;aHg8?:Gj]1q">
                                                         <value name="IF0">
                                                           <block type="logic_compare" id="`T=HLgrMIevH#=#3ri^+">
                                                             <field name="OP">LTE</field>
                                                             <value name="A">
                                                               <block type="variables_get" id="A+Gquk7s3kdja^=WzWZi">
                                                                 <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="math_arithmetic" id="~!H6ix/juSb1QKizjMEg">
                                                                 <field name="OP">MINUS</field>
                                                                 <value name="A">
                                                                   <shadow type="math_number" id="edjc~ni75,)^-MW2eAD!">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="lists_length" id="Ff!`(-2!7M#^)_WymPfp">
                                                                     <value name="VALUE">
                                                                       <block type="variables_get" id="[13^ih^yUx~]zvixT(k1">
                                                                         <field name="VAR" id="y[G=0ms17p|S*%p]+B~p">preise</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <shadow type="math_number" id="pV;){(|(_g39fTA$QoY?">
                                                                     <field name="NUM">2</field>
                                                                   </shadow>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <statement name="DO0">
                                                           <block type="variables_set" id="93e2%SRJrBGkHVT|JK+t">
                                                             <field name="VAR" id="a4m{kvJ}{$=rv(H9#1J_">preis3</field>
                                                             <value name="VALUE">
                                                               <block type="math_arithmetic" id="Iqe~^Y]R4f5e1ZRlkTN?">
                                                                 <field name="OP">ADD</field>
                                                                 <value name="A">
                                                                   <shadow type="math_number" id="UnCxpTSlndDmHwzJ9z]s">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="variables_get" id="_#!qO(*2{1]q[,:OVuVg">
                                                                     <field name="VAR" id="5_aI@Kq-?t,56cb.j893">preis1</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <shadow type="math_number" id="==NQWZ*VKKYvKR1H*PsY">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="math_arithmetic" id="2x[l_Q)nTYh8XdvcpT6," inline="false">
                                                                     <field name="OP">ADD</field>
                                                                     <value name="A">
                                                                       <shadow type="math_number" id=")}0`5kIav:jNy+PjDAPX">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="lists_getIndex" id="2:cxr7AvKukN|oxJ|8$s">
                                                                         <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="|QJ7IXv.fGbKjXZ:t,T0">
                                                                             <field name="VAR" id="y[G=0ms17p|S*%p]+B~p">preise</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="AT">
                                                                           <block type="math_arithmetic" id=")9M=+:!*`t3:^kK@6v.U">
                                                                             <field name="OP">ADD</field>
                                                                             <value name="A">
                                                                               <shadow type="math_number" id="d6Vs9+DCL~OyRs+WT^)b">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                               <block type="variables_get" id=",mdfVY1y#7OJ/LpoXugr">
                                                                                 <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                                               </block>
                                                                             </value>
                                                                             <value name="B">
                                                                               <shadow type="math_number" id=":Azb.knUscU0Y6Y$$x~x">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <shadow type="math_number" id="AsHxB2um+5RUQtu^VH~c">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="lists_getIndex" id="{7#Y1kmCjSzA6zDM(~ec">
                                                                         <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="9Hwt/#|)CcMAry7lid|2">
                                                                             <field name="VAR" id="y[G=0ms17p|S*%p]+B~p">preise</field>
                                                                           </block>
                                                                         </value>
                                                                         <value name="AT">
                                                                           <block type="math_arithmetic" id="q4sI9mLMEDuS-_`@~mqj">
                                                                             <field name="OP">ADD</field>
                                                                             <value name="A">
                                                                               <shadow type="math_number">
                                                                                 <field name="NUM">1</field>
                                                                               </shadow>
                                                                               <block type="variables_get" id="7f^QF_uPBzFEWj#..]P#">
                                                                                 <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                                               </block>
                                                                             </value>
                                                                             <value name="B">
                                                                               <shadow type="math_number" id="mRg/SS2z*!,s(Aza6^@9">
                                                                                 <field name="NUM">2</field>
                                                                               </shadow>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="controls_if" id="n1n2P:qtW6Q-lfm{Abp%">
                                                                 <value name="IF0">
                                                                   <block type="logic_compare" id="f07U,rk3tE3W/q0ofM08">
                                                                     <field name="OP">LT</field>
                                                                     <value name="A">
                                                                       <block type="variables_get" id="YfYeRF{7,Wn2lwJtGrgG">
                                                                         <field name="VAR" id="a4m{kvJ}{$=rv(H9#1J_">preis3</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <block type="variables_get" id="mDAJ1@=qgN$rBT_Ke}mg">
                                                                         <field name="VAR" id="bpynY%@fDWCdbC?Xv*s1">min3</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <statement name="DO0">
                                                                   <block type="variables_set" id="V:[20QemZnhU63-|yYW;">
                                                                     <field name="VAR" id="bpynY%@fDWCdbC?Xv*s1">min3</field>
                                                                     <value name="VALUE">
                                                                       <block type="variables_get" id="!8=qf*1+^mU_ZbC/vWo3">
                                                                         <field name="VAR" id="a4m{kvJ}{$=rv(H9#1J_">preis3</field>
                                                                       </block>
                                                                     </value>
                                                                     <next>
                                                                       <block type="variables_set" id="S~xa|f9t2Zn~XZXlbJh?">
                                                                         <field name="VAR" id="ud88TKb=*)[?(!NqiOoj">start3h</field>
                                                                         <value name="VALUE">
                                                                           <block type="logic_ternary" id="jS-NU~7A8yY,1}|^_*,f" inline="true">
                                                                             <value name="IF">
                                                                               <block type="logic_compare" id="75?f-Y9K1`uISWR.Pr19">
                                                                                 <field name="OP">LT</field>
                                                                                 <value name="A">
                                                                                   <block type="variables_get" id="IRj[~IFnc?`x7/@YGbm)">
                                                                                     <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <block type="math_number" id="(V~PXIre~J(0|6y@Y;`{">
                                                                                     <field name="NUM">7</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <value name="THEN">
                                                                               <block type="math_arithmetic" id="gfg!EF#W,kt7-PIe.]jO">
                                                                                 <field name="OP">ADD</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="D*3tr1la5PYprIfcC:=O">
                                                                                     <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number" id="-ES^l3#}PjLG+jjuRA@g">
                                                                                     <field name="NUM">17</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <value name="ELSE">
                                                                               <block type="math_arithmetic" id="sii*:2njz!9TiOuc[aZe">
                                                                                 <field name="OP">MINUS</field>
                                                                                 <value name="A">
                                                                                   <shadow type="math_number">
                                                                                     <field name="NUM">1</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="KO$U?pP9#m.LJ8a]/ig;">
                                                                                     <field name="VAR" id="L`VRA5|#^N/oI[|LjJqy">i</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="B">
                                                                                   <shadow type="math_number" id="lK$A8CNUSB8wmH)GEuTW">
                                                                                     <field name="NUM">7</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </statement>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </statement>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </statement>
                                             <next>
                                               <block type="variables_set" id="?VZnr9+1^FL]flg:=39f">
                                                 <field name="VAR" id="I=q`=kgBC10=WtmP[C@G">end1h</field>
                                                 <value name="VALUE">
                                                   <block type="logic_ternary" id="5hVu~,$5hYC=+)77ZnvF" inline="true">
                                                     <value name="IF">
                                                       <block type="logic_compare" id="{#nKoiS0A2!ds]4A_9PD">
                                                         <field name="OP">LT</field>
                                                         <value name="A">
                                                           <block type="math_arithmetic" id="LjTp=sImVPb6`ULLeIb7">
                                                             <field name="OP">ADD</field>
                                                             <value name="A">
                                                               <shadow type="math_number" id="_J95g6~#:F9sj2VjM}Qh">
                                                                 <field name="NUM">1</field>
                                                               </shadow>
                                                               <block type="variables_get" id="pr_)NjZ{/P{9T#`IDLZh">
                                                                 <field name="VAR" id="FAiYO^Ty$^^g*F@vG:~j">start1h</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <shadow type="math_number" id="#?$Un~ak7axxfE;{o{Qv">
                                                                 <field name="NUM">1</field>
                                                               </shadow>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <block type="math_number" id="oiAIF1yfSH/#|RKsezHr">
                                                             <field name="NUM">24</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <value name="THEN">
                                                       <block type="math_arithmetic" id="ly`80HF+P.9J8snCEGac">
                                                         <field name="OP">ADD</field>
                                                         <value name="A">
                                                           <shadow type="math_number">
                                                             <field name="NUM">1</field>
                                                           </shadow>
                                                           <block type="variables_get" id="dR!V{Hse^.`K;6fXm*rL">
                                                             <field name="VAR" id="FAiYO^Ty$^^g*F@vG:~j">start1h</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <shadow type="math_number" id="i]Rfsocfn@5O57aFe3dP">
                                                             <field name="NUM">1</field>
                                                           </shadow>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <value name="ELSE">
                                                       <block type="math_number" id="MGCtCd`Yt=6@{n*~Kn]h">
                                                         <field name="NUM">0</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <next>
                                                   <block type="variables_set" id="`yJ*RF3RXBzDcYoUf]V$">
                                                     <field name="VAR" id="A*CzK[pG.x4^B]b*|c[1">end3h</field>
                                                     <value name="VALUE">
                                                       <block type="logic_ternary" id="@-:I|ewU=ypMKe5?#.GV" inline="true">
                                                         <value name="IF">
                                                           <block type="logic_compare" id="Ry;||rCNv.1Euw*UJP]M">
                                                             <field name="OP">LT</field>
                                                             <value name="A">
                                                               <block type="math_arithmetic" id="p^@+.p)y{v5o}0C}m0.y">
                                                                 <field name="OP">ADD</field>
                                                                 <value name="A">
                                                                   <shadow type="math_number">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="variables_get" id="xH;g#MI35+/3yJQ:qQG)">
                                                                     <field name="VAR" id="ud88TKb=*)[?(!NqiOoj">start3h</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <shadow type="math_number" id="Ok}tH`Br~A_24Nrf=sM/">
                                                                     <field name="NUM">3</field>
                                                                   </shadow>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="math_number" id="-3@U3~j%$|hdAj[)pfB/">
                                                                 <field name="NUM">24</field>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <value name="THEN">
                                                           <block type="math_arithmetic" id="EUg_wq,2_Af/q7Dwldp=">
                                                             <field name="OP">ADD</field>
                                                             <value name="A">
                                                               <shadow type="math_number">
                                                                 <field name="NUM">1</field>
                                                               </shadow>
                                                               <block type="variables_get" id="nXXAXel6/+px~(.P;Xd*">
                                                                 <field name="VAR" id="ud88TKb=*)[?(!NqiOoj">start3h</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <shadow type="math_number" id="N,vEBOefnhveJ:1*]DFC">
                                                                 <field name="NUM">3</field>
                                                               </shadow>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <value name="ELSE">
                                                           <block type="math_arithmetic" id="c29R^iU`sijcK83l%^E|">
                                                             <field name="OP">MINUS</field>
                                                             <value name="A">
                                                               <shadow type="math_number">
                                                                 <field name="NUM">1</field>
                                                               </shadow>
                                                               <block type="variables_get" id="d#z|7LYA@:|^q)WTo,L#">
                                                                 <field name="VAR" id="ud88TKb=*)[?(!NqiOoj">start3h</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <shadow type="math_number" id=".Q9)T9Rp|iH%:,Xvcv6O">
                                                                 <field name="NUM">21</field>
                                                               </shadow>
                                                             </value>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <next>
                                                       <block type="schedule_clear" id="iM7,/Ko=JX57Y0yu?-6q">
                                                         <field name="NAME">schedule1</field>
                                                         <next>
                                                           <block type="schedule_clear" id="7ci5R#wHLXk]I]Erriip">
                                                             <field name="NAME">schedule2</field>
                                                             <next>
                                                               <block type="schedule_clear" id="4]Ps(*w%jE%aa@U26}mw">
                                                                 <field name="NAME">schedule3</field>
                                                                 <next>
                                                                   <block type="schedule_clear" id="$ceBK{ys|)xS*f~_Z;Rp">
                                                                     <field name="NAME">schedule4</field>
                                                                     <next>
                                                                       <block type="schedule_create" id="C@%7o,Ekc,|!/a6{MkUS">
                                                                         <field name="NAME">schedule1</field>
                                                                         <value name="SCHEDULE">
                                                                           <shadow type="field_cron" id="-$VctMxjGv=4)zq9N4Y0">
                                                                             <field name="CRON">* * * * *</field>
                                                                           </shadow>
                                                                           <block type="cron_builder" id="8y]GZ`$%m4$NTYjf,#_4" inline="true">
                                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                                             <field name="LINE">TRUE</field>
                                                                             <field name="WITH_SECONDS">FALSE</field>
                                                                             <value name="DOW">
                                                                               <shadow type="text" id="5BeD0bHLs:^x0RqW5}$x">
                                                                                 <field name="TEXT">*</field>
                                                                               </shadow>
                                                                             </value>
                                                                             <value name="MONTHS">
                                                                               <shadow type="text" id="lg{qvknu8,?D++21hEpf">
                                                                                 <field name="TEXT">*</field>
                                                                               </shadow>
                                                                             </value>
                                                                             <value name="DAYS">
                                                                               <shadow type="text" id="*Fw,YPls30y1W{.)Z]Zp">
                                                                                 <field name="TEXT">*</field>
                                                                               </shadow>
                                                                             </value>
                                                                             <value name="HOURS">
                                                                               <shadow type="text" id="w+jm9ay~fdBT)SuxS|y9">
                                                                                 <field name="TEXT">*</field>
                                                                               </shadow>
                                                                               <block type="variables_get" id="o(.aJHIKtOGz3%n2lxYM">
                                                                                 <field name="VAR" id="FAiYO^Ty$^^g*F@vG:~j">start1h</field>
                                                                               </block>
                                                                             </value>
                                                                             <value name="MINUTES">
                                                                               <shadow type="text" id="HLI#3VJ/f!FRNZQ:n4O%">
                                                                                 <field name="TEXT">0</field>
                                                                               </shadow>
                                                                             </value>
                                                                           </block>
                                                                         </value>
                                                                         <statement name="STATEMENT">
                                                                           <block type="control" id="R|GS:n7ms%A-8wutDCq[">
                                                                             <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="UYDo5xpjr03Z[HC]JciX">
                                                                                 <field name="BOOL">TRUE</field>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </statement>
                                                                         <next>
                                                                           <block type="schedule_create" id="lmx|uwrCVvUbx-C09[94">
                                                                             <field name="NAME">schedule2</field>
                                                                             <value name="SCHEDULE">
                                                                               <shadow type="field_cron">
                                                                                 <field name="CRON">* * * * *</field>
                                                                               </shadow>
                                                                               <block type="cron_builder" id="aEX/56JjlSBU/[ipuQ8X" inline="true">
                                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                                                 <field name="LINE">TRUE</field>
                                                                                 <field name="WITH_SECONDS">FALSE</field>
                                                                                 <value name="DOW">
                                                                                   <shadow type="text" id="lMH4V)Vtf+IcFdjRXkaW">
                                                                                     <field name="TEXT">*</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                                 <value name="MONTHS">
                                                                                   <shadow type="text" id="AjkR{~Onh=VHFT!@jluL">
                                                                                     <field name="TEXT">*</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                                 <value name="DAYS">
                                                                                   <shadow type="text" id="gX*GvSQe~+EV$/I$O,j%">
                                                                                     <field name="TEXT">*</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                                 <value name="HOURS">
                                                                                   <shadow type="text">
                                                                                     <field name="TEXT">*</field>
                                                                                   </shadow>
                                                                                   <block type="variables_get" id="~}v=cY[KUbaMt@pI}8{e">
                                                                                     <field name="VAR" id="I=q`=kgBC10=WtmP[C@G">end1h</field>
                                                                                   </block>
                                                                                 </value>
                                                                                 <value name="MINUTES">
                                                                                   <shadow type="text" id="ijLCMJgY]v$y@,?zSo9+">
                                                                                     <field name="TEXT">0</field>
                                                                                   </shadow>
                                                                                 </value>
                                                                               </block>
                                                                             </value>
                                                                             <statement name="STATEMENT">
                                                                               <block type="control" id="F[A)xVutBB$1Yv9wQJMg">
                                                                                 <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="Q7bdR}]i^c*s6c46-O@o">
                                                                                     <field name="BOOL">FALSE</field>
                                                                                   </block>
                                                                                 </value>
                                                                               </block>
                                                                             </statement>
                                                                             <next>
                                                                               <block type="schedule_create" id="Uz3Pj9N9)62!ppFx*s`-">
                                                                                 <field name="NAME">schedule3</field>
                                                                                 <value name="SCHEDULE">
                                                                                   <shadow type="field_cron">
                                                                                     <field name="CRON">* * * * *</field>
                                                                                   </shadow>
                                                                                   <block type="cron_builder" id="}`t[hS]2+i@W$Kw@C;2L" inline="true">
                                                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                                                     <field name="LINE">TRUE</field>
                                                                                     <field name="WITH_SECONDS">FALSE</field>
                                                                                     <value name="DOW">
                                                                                       <shadow type="text" id="b:oN*ACawmZv{JQR0m7q">
                                                                                         <field name="TEXT">*</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                     <value name="MONTHS">
                                                                                       <shadow type="text" id="Ur]myA9.G$]jH22=!nx]">
                                                                                         <field name="TEXT">*</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                     <value name="DAYS">
                                                                                       <shadow type="text" id="%@r2eu#Cv7rs2*|n.0ol">
                                                                                         <field name="TEXT">*</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                     <value name="HOURS">
                                                                                       <shadow type="text">
                                                                                         <field name="TEXT">*</field>
                                                                                       </shadow>
                                                                                       <block type="variables_get" id="p81|d/F,bF2}O`(qGaGH">
                                                                                         <field name="VAR" id="ud88TKb=*)[?(!NqiOoj">start3h</field>
                                                                                       </block>
                                                                                     </value>
                                                                                     <value name="MINUTES">
                                                                                       <shadow type="text" id="lMv%?#YLF`haS{qw}3W!">
                                                                                         <field name="TEXT">0</field>
                                                                                       </shadow>
                                                                                     </value>
                                                                                   </block>
                                                                                 </value>
                                                                                 <statement name="STATEMENT">
                                                                                   <block type="control" id="JMt*g^rD+x|@pHw3p:5,">
                                                                                     <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=":`WAU[k;h[|V+Pt[9W%W">
                                                                                         <field name="BOOL">TRUE</field>
                                                                                       </block>
                                                                                     </value>
                                                                                   </block>
                                                                                 </statement>
                                                                                 <next>
                                                                                   <block type="schedule_create" id="Xu`urAC!r/9e%8Yc3?(r">
                                                                                     <field name="NAME">schedule4</field>
                                                                                     <value name="SCHEDULE">
                                                                                       <shadow type="field_cron">
                                                                                         <field name="CRON">* * * * *</field>
                                                                                       </shadow>
                                                                                       <block type="cron_builder" id="TKfvJ_4r93bJ7La7-=46" inline="true">
                                                                                         <mutation xmlns="http://www.w3.org/1999/xhtml" seconds="false" as_line="false"></mutation>
                                                                                         <field name="LINE">TRUE</field>
                                                                                         <field name="WITH_SECONDS">FALSE</field>
                                                                                         <value name="DOW">
                                                                                           <shadow type="text" id="A{ANH/W|%b,aS!(QRvhv">
                                                                                             <field name="TEXT">*</field>
                                                                                           </shadow>
                                                                                         </value>
                                                                                         <value name="MONTHS">
                                                                                           <shadow type="text" id="tTX%wAllx+SDy:.xMIt6">
                                                                                             <field name="TEXT">*</field>
                                                                                           </shadow>
                                                                                         </value>
                                                                                         <value name="DAYS">
                                                                                           <shadow type="text" id=".z=ARDX,g[O6@RX-8CRq">
                                                                                             <field name="TEXT">*</field>
                                                                                           </shadow>
                                                                                         </value>
                                                                                         <value name="HOURS">
                                                                                           <shadow type="text">
                                                                                             <field name="TEXT">*</field>
                                                                                           </shadow>
                                                                                           <block type="variables_get" id="^qx9D%(sDw*tT~.|n]fE">
                                                                                             <field name="VAR" id="A*CzK[pG.x4^B]b*|c[1">end3h</field>
                                                                                           </block>
                                                                                         </value>
                                                                                         <value name="MINUTES">
                                                                                           <shadow type="text" id="%I_F`(NE8{I)Pd8.+*ZY">
                                                                                             <field name="TEXT">0</field>
                                                                                           </shadow>
                                                                                         </value>
                                                                                       </block>
                                                                                     </value>
                                                                                     <statement name="STATEMENT">
                                                                                       <block type="control" id=":Y?k,t=+Ug:-h!aRb+e~">
                                                                                         <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="E%~He2eg5q}_wNkv%Fro">
                                                                                             <field name="BOOL">FALSE</field>
                                                                                           </block>
                                                                                         </value>
                                                                                       </block>
                                                                                     </statement>
                                                                                   </block>
                                                                                 </next>
                                                                               </block>
                                                                             </next>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                         </next>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
             </statement>
           </block>
         </next>
       </block>
      </xml>
      

      Für ein Bild ist es zu umfangreich.

      Der erste Teil schaltet aus, wenn vor einem Tag als Endzeit 18:00 Uhr ermittelt wurde und es werden die Preise ab 18:00 Uhr bis morgen 17:00 chronologisch sortiert in ein Array geschrieben.

      Blockly_temp1.JPG

      Im zweiten Teil werden die Startzeiten für 1 Stunde und 3 Stunden Dauer ermittelt.

      Blockly_temp2.JPG

      Im letzten Teil werden die Endzeiten ermittelt, die laufenden Zeitpläne gestoppt und die neuen Zeitpläne erstellt.

      Bild_2023-01-10_192757729.png

      D 1 Reply Last reply Reply Quote 0
      • D
        Doom.86 @paul53 last edited by Doom.86

        @paul53 ich sage erstmal vielen lieben Dank für deine Mühe. Ich schaue es mir an, sobald ich zuhause bin und werde dann Rückmeldung geben.

        Edit: hab ich es an den Bildern übersehen, wo trage ich die id von Warmwasser bzw FBH ein? Dort reicht es, wenn preis günstig erhöhe aktuellen Wert zb. Um 4 nach Ablauf der Zeit veringere diesen Wert wieder um 4.

        paul53 1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @Doom.86 last edited by

          @doom-86 sagte: wo trage ich die id von Warmwasser bzw FBH ein?

          Dort, wo die Blöcke "steuere" sitzen: FBH bei end3h, schedule3 und schedule4.

          D 1 Reply Last reply Reply Quote 0
          • D
            Doom.86 @paul53 last edited by Doom.86

            @paul53 ach, gleich in der dritten zeile von dem ersten screenshot?

            Und dahinter dann den wert mit erhöhe um 4?

            Ich probier es nachher zu hause aus. Übers handy ließ er mich nicht mal den Code kopieren.

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Doom.86 last edited by paul53

              @doom-86 sagte: gleich in der dritten zeile von dem ersten screenshot?
              Und dahinter dann den wert mit erhöhe um 4?

              Stattdessen: Verringere den Wert um 4.
              Und unten:

              Bild_2023-01-10_203429592.png

              D 1 Reply Last reply Reply Quote 0
              • D
                Doom.86 @paul53 last edited by Doom.86

                @paul53 So schaut es jetzt bei mir aus.
                Screenshot 2023-01-10 232510.jpg
                Screenshot 2023-01-10 232542.jpg

                ich hoffe das passt so?

                Einzige was mir unter Protokolle ausgewurfen wurde ist:
                2023-01-10 23:10:19.125 warn State "javascript.1.scriptEnabled.Heizung_Nacht_Tibber" has no existing object, this might lead to an error in future versions

                naja, ich hab jetzt die Zwei Werte der Heizung in die History aufgenommen. so sollte ich die Tage sehen, ob es funktioniert.

                Edit: Die Meldung aus dem Protokoll kam jetzt nur einmal, beim ersten Start des Skripts. Als ich es gestoppt habe und nochmals gestartet, kam diese Meldung nicht mehr.

                paul53 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Doom.86 last edited by paul53

                  @doom-86 sagte: ich hoffe das passt so?

                  Das muss oben (Ausschalten um 17:59 Uhr) genauso gehandhabt werden wie unten

                  Bild_2023-01-10_234831499.png

                  Es genügt, den WW-Sollwert um 4 K zu verringern?

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Doom.86 @paul53 last edited by Doom.86

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

                    @doom-86 sagte: ich hoffe das passt so?

                    Das muss oben (Ausschalten um 17:59 Uhr) genauso gehandhabt werden wie unten

                    Bild_2023-01-10_234831499.png

                    Es genügt, den WW-Sollwert um 4 K zu verringern?

                    Ich möchte ja ein überheizen. somit muss doch die WW Temp und die Raumtemperatur erhöht werden? oder habe ich jetzt einen Denkfehler?

                    Wenn ich aktuell zB. 44°C als WW-Temperatur eingestellt habe, möchte dann in der Nacht wenn der Strom günstig ist, die WW-Temperatur auf 48°C erhöhen, dann muss ich doch +4 und nach der 1 Stunde des Zeitplans wieder -4, damit ich wieder auf meine Anfangs 44°C komme?

                    EDIT: Ich habe eben gesehen, dass die Preise in dem Tibber Adapter von Morgen nicht gelöscht werden. Jetzt stehen bei heute und morgen die Identischen Preise drinnen.

                    paul53 1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Doom.86 last edited by

                      @doom-86 sagte: Jetzt stehen bei heute und morgen die Identischen Preise drinnen.

                      Hauptsache, die Preise stimmen um 17:59 Uhr.

                      @doom-86 sagte in Awattar - die billigsten Strom-Stunden nutzen:

                      die WW-Temperatur auf 48°C erhöhen, dann muss ich doch +4 und nach der 1 Stunde des Zeitplans wieder -4, damit ich wieder auf meine Anfangs 44°C komme?

                      Wenn im Laufe des Tages die WW-Temperatur von 48°C auf 44°C sinkt - was nicht viel ist, schaltet der interne Regler die Heizung unabhängig vom Strompreis ein.

                      D 2 Replies Last reply Reply Quote 0
                      • D
                        Doom.86 @paul53 last edited by

                        @paul53

                        @doom-86 sagte in Awattar - die billigsten Strom-Stunden nutzen:

                        die WW-Temperatur auf 48°C erhöhen, dann muss ich doch +4 und nach der 1 Stunde des Zeitplans wieder -4, damit ich wieder auf meine Anfangs 44°C komme?

                        Wenn im Laufe des Tages die WW-Temperatur von 48°C auf 44°C sinkt - was nicht viel ist, schaltet der interne Regler die Heizung unabhängig vom Strompreis ein.

                        Richtig aktuell hab ich die Anlage im tagbetrieb und über einen Zeitplan gesteuert. Tagsüber ww-soll 40°C in der Nacht WW-Soll 48°C. Durch die hysterese heizt die wärmepumpe auf ca. 50 - 51°C auf. Tagsüber fällt die Temperatur je nach Verbrauch langsam oder schneller ab. Wenn diese am Tag auf 38°C abfällt, läuft die wärmepumpe an und heizt mit hysterese auf ca 42°C auf.

                        Nächste bzw spätestens übernächste woche wird mein wärmepumpen Zähler ausgebaut, dann läuft diese auch über tibber.
                        Daher auch die Steuerung.

                        1 Reply Last reply Reply Quote 0
                        • D
                          Doom.86 @paul53 last edited by

                          @paul53 jetzt wurde das ganze eben ausgeführt. Nun die Frage, liegen die Fehlermeldungen daran. Dass tibber aktuell Probleme hat? Bekomme keine live Daten mehr in iobroker. Die heutigen und morgigen preise wurden allerdings noch richtig gesetzt.

                          Screenshot_20230111_180331_Chrome.jpg

                          paul53 1 Reply Last reply Reply Quote 0
                          • paul53
                            paul53 @Doom.86 last edited by paul53

                            @doom-86
                            Nicht lesbar: Bitte in Code tags posten!

                            Den String der Variablen tibber hast Du für Deinen Account angepasst?

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              Doom.86 @paul53 last edited by Doom.86

                              @paul53 geht es so?

                              2023-01-11 17:59:00.130 - warn: javascript.0 (11927) getState "tibberconnect.1.Homes.9aefe294-bfba-4283-a708-c12c926bXXXXPricesTomorrow.16.total" not found (3)
                              2023-01-11 17:59:00.131 - warn: javascript.0 (11927) at Object. (script.js.Heizung_Nacht_Tibber:19:17)
                              2023-01-11 17:59:00.131 - warn: javascript.0 (11927) at Job.job (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1595:34)
                              2023-01-11 17:59:00.131 - warn: javascript.0 (11927) at Job.invoke (/opt/iobroker/node_modules/node-schedule/lib/Job.js:171:15)
                              2023-01-11 17:59:00.131 - warn: javascript.0 (11927) at /opt/iobroker/node_modules/node-schedule/lib/Invocation.js:268:28
                              2023-01-11 17:59:00.131 - warn: javascript.0 (11927) at Timeout._onTimeout (/opt/iobroker/node_modules/node-schedule/lib/Invocation.js:228:7)
                              2023-01-11 17:59:00.131 - warn: javascript.0 (11927) at listOnTimeout (node:internal/timers:559:17)
                              2023-01-11 17:59:00.131 - warn: javascript.0 (11927) at processTimers (node:internal/timers:502:7)
                              2023-01-11 17:59:00.132 - warn: javascript.0 (11927) getState "tibberconnect.1.Homes.9aefe294-bfba-4283-a708-c12c926bXXXXPricesTomorrow.17.total" not found (3)
                              2023-01-11 17:59:00.136 - warn: javascript.0 (11927) at Object. (script.js.Heizung_Nacht_Tibber:19:17)
                              2023-01-11 17:59:00.136 - warn: javascript.0 (11927) at Job.job (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1595:34)
                              2023-01-11 17:59:00.136 - warn: javascript.0 (11927) at Job.invoke (/opt/iobroker/node_modules/node-schedule/lib/Job.js:171:15)
                              2023-01-11 17:59:00.136 - warn: javascript.0 (11927) at /opt/iobroker/node_modules/node-schedule/lib/Invocation.js:268:28
                              2023-01-11 17:59:00.136 - warn: javascript.0 (11927) at Timeout._onTimeout (/opt/iobroker/node_modules/node-schedule/lib/Invocation.js:228:7)
                              2023-01-11 17:59:00.137 - warn: javascript.0 (11927) at listOnTimeout (node:internal/timers:559:17)
                              2023-01-11 17:59:00.137 - warn: javascript.0 (11927) at processTimers (node:internal/timers:502:7)
                              2023-01-11 17:59:00.143 - error: javascript.0 (11927) script.js.Heizung_Nacht_Tibber: TypeError: Cannot read properties of undefined (reading 'toString')
                              2023-01-11 17:59:00.144 - error: javascript.0 (11927) at Object. (script.js.Heizung_Nacht_Tibber:54:62)
                              2023-01-11 17:59:00.144 - error: javascript.0 (11927) at Job.job (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1595:34)
                              2023-01-11 17:59:00.144 - error: javascript.0 (11927) at Job.invoke (/opt/iobroker/node_modules/node-schedule/lib/Job.js:171:15)
                              2023-01-11 17:59:00.145 - error: javascript.0 (11927) at /opt/iobroker/node_modules/node-schedule/lib/Invocation.js:268:28
                              2023-01-11 17:59:00.145 - error: javascript.0 (11927) at Timeout._onTimeout (/opt/iobroker/node_modules/node-schedule/lib/Invocation.js:228:7)
                              2023-01-11 17:59:00.145 - error: javascript.0 (11927) at listOnTimeout (node:internal/timers:559:17)
                              2023-01-11 17:59:00.145 - error: javascript.0 (11927) at processTimers (node:internal/timers:502:7)
                              

                              MOD-EDIT: Code in code-tags gesetzt!

                              Das zieht sich so weiter. Und tibber hat wie gesagt scheinbar Probleme heute.

                              paul53 1 Reply Last reply Reply Quote 0
                              • paul53
                                paul53 @Doom.86 last edited by paul53

                                @doom-86 sagte:

                                getState "tibberconnect.1.Homes.9aefe294-bfba-4283-a708-c12c926b4a69PricesTomorrow.16.total" not found
                                

                                Am Ende des Strings der Variablen tibber fehlt ein Punkt! Richtig:

                                tibberconnect.1.Homes.9aefe294-bfba-4283-a708-c12c926b4a69.PricesTomorrow.16.total
                                
                                D 2 Replies Last reply Reply Quote 0
                                • D
                                  Doom.86 @paul53 last edited by Doom.86

                                  @paul53 ah. Alles klar. Vielen Dank. Dann morgen auf einen neuen Versuch. Vorausgesetzt tibber bringt ihr Zeug auch wieder auf die Reihe. Bekomme aktuell keine Daten mehr. Auf ihrer Homepage steht etwas mit Problemen.

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    Doom.86 @paul53 last edited by

                                    @paul53 Hallo Paul. Es funktioniert. alles so weit. Vielen Dank für deine mühe.
                                    Eine kleine Frage habe ich noch, lassen sich die Zeiten evtl in einem Datenpunkt auswerten, um diese für andere Dinge zu nutzen oder zur kontrolle, welche Uhrzeiten er berechnet hat?

                                    paul53 1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 @Doom.86 last edited by paul53

                                      @doom-86 sagte: lassen sich die Zeiten evtl in einem Datenpunkt auswerten

                                      Welche Zeiten? start1h, start3h? Die lassen sich nach der Ermittlung in Datenpunkte schreiben ("aktualisiere").

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Doom.86 @paul53 last edited by

                                        @paul53 genau die meinte ich. Wie setze ich die dann am besten ein?

                                        paul53 1 Reply Last reply Reply Quote 0
                                        • paul53
                                          paul53 @Doom.86 last edited by

                                          @doom-86 sagte: Wie setze ich die dann am besten ein?

                                          Z.B. ganz unten im Trigger (vor oder nach den Zeitplänen).

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            Doom.86 @paul53 last edited by

                                            @paul53 perfekt. Vielen lieben Dank dafür nochmals.
                                            Jetzt verstehe ich wenigsten schon ein wenig mehr von dem ganzen.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            790
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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