- Home
- Deutsch
- Skripten / Logik
- Awattar - die billigsten Strom-Stunden nutzen
Awattar - die billigsten Strom-Stunden nutzen
-
@paul53 perfekt. Vielen, vielen Dank. Hab die zweite Variante mit "idate neu gebildet" verwendet. Jetzt funktioniert alles wunderbar. Ich danke für all die Hilfe - immer sehr anfängerfreundlich und schneller, als ich tippen kann! DANKE!
-
@judisi Könntest Du einmal den Blockly Export des funktionierenden Scripts posten? Dann muss man sich das hier nicht zusammensuchen. Vielen Dank!!
-
@badsnoopy667 sagte: Blockly Export des funktionierenden Scripts posten?
Vielleicht kann ich aushelfen?
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="f%{MYK|pqx/msm?jLTCv">sort</variable> <variable id="m[W;a/*+Ku4g|deZEV$r">i</variable> <variable id="@!RPgtnzVwyGIa5#?5i^">id</variable> <variable id=":s^oe|FI,MTykE.d|vjJ">idDate</variable> <variable id="JU=3dvDJ]OgXqBlqGYM[">ww</variable> <variable id="Pw_FHmi}c0-([@-$Ax/M">fbh</variable> <variable id="_Nuc-_3~VS;%yQn+g$9o">stunde</variable> <variable id="eTgx)$hD2knDGoSo3`$M">idPreis</variable> </variables> <block type="schedule" id="t0ptX_hB3?gNErGP2-44" x="113" y="-68"> <field name="SCHEDULE">0 * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="m$Bu`}K+wC*Ia!$Q/87$"> <field name="VAR" id="f%{MYK|pqx/msm?jLTCv">sort</field> <value name="VALUE"> <block type="math_number" id="#Y.8dvJg[RZkNDtw^?ge"> <field name="NUM">0</field> </block> </value> <next> <block type="controls_for" id="^I#Vwi@:8cPB@~p6g4[I"> <field name="VAR" id="m[W;a/*+Ku4g|deZEV$r">i</field> <value name="FROM"> <shadow type="math_number" id="uK{nB-7z.a?d2|?NGC;Y"> <field name="NUM">1</field> </shadow> </value> <value name="TO"> <shadow type="math_number" id="y!?o50tye=EtN2yfubW2"> <field name="NUM">10</field> </shadow> <block type="lists_length" id="*oxxY{FFu2$ya+KAs-wC"> <value name="VALUE"> <block type="selector" id="UvXOT+v,~RTtJ(+zw]PQ"> <field name="TEXT">awattar.0.pricesOrdered.*.start</field> </block> </value> </block> </value> <value name="BY"> <shadow type="math_number" id="XWtiOpI~HC)?jkUGVR#Z"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="variables_set" id="@6Q{Y~(8Y@DvAP5)^:aE"> <field name="VAR" id="@!RPgtnzVwyGIa5#?5i^">id</field> <value name="VALUE"> <block type="text_join" id=":S}lgn4j$S!St8ojec/%" inline="true"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="9YR/b:Op#Q=COcF=yT$$"> <field name="TEXT">awattar.0.pricesOrdered.</field> </block> </value> <value name="ADD1"> <block type="math_arithmetic" id="#{n:)]S0R`q*x*Zz}xDY"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="B(,hr0]jxUo9H6p],:.U"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="fmi9JMsXie[7AqYh!5?f"> <field name="VAR" id="m[W;a/*+Ku4g|deZEV$r">i</field> </block> </value> <value name="B"> <shadow type="math_number" id="?{U^ty/@sgP38@F_w{Ga"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="ADD2"> <block type="text" id="`O,1MghUJ^/p@hp}d.l0"> <field name="TEXT">.start</field> </block> </value> </block> </value> <next> <block type="variables_set" id="]nDOX,W{}z:NK:^cE_+z"> <field name="VAR" id=":s^oe|FI,MTykE.d|vjJ">idDate</field> <value name="VALUE"> <block type="text_join" id="JO^u9Ozg7[rg?[hC`|bI" inline="true"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="$HCexy7I`Z}sE30y`}Si"> <field name="VAR" id="@!RPgtnzVwyGIa5#?5i^">id</field> </block> </value> <value name="ADD1"> <block type="text" id="^%_^Mo2RG**$)[JZch2-"> <field name="TEXT">Date</field> </block> </value> </block> </value> <next> <block type="controls_if" id="Ey5j%EGWhO%gDOn^`uVS"> <value name="IF0"> <block type="logic_compare" id="8xG3/SRk,Q6)#^#9)]rM"> <field name="OP">EQ</field> <value name="A"> <block type="get_value_var" id="oM%Z$lb7%04#3?HdX9l3"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="T[22+A?Ql{.;LwfBQFZ^"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="Y!n8IH|K)x%M{S1U6YKG"> <field name="VAR" id=":s^oe|FI,MTykE.d|vjJ">idDate</field> </block> </value> </block> </value> <value name="B"> <block type="time_get" id=")E[gSkt[:I!t}QmJ$@@z"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation> <field name="OPTION">custom</field> <field name="FORMAT">T.M.JJJJ</field> </block> </value> </block> </value> <statement name="DO0"> <block type="math_change" id="t4_:*m`)g)Lm(1d9NTtt"> <field name="VAR" id="f%{MYK|pqx/msm?jLTCv">sort</field> <value name="DELTA"> <shadow type="math_number" id="/gPA7?+l(J60?@MMvM[b"> <field name="NUM">1</field> </shadow> </value> <next> <block type="controls_if" id="c37l0tBG(dWgrG[_jJ*H"> <value name="IF0"> <block type="logic_compare" id="ggTAH!IN|c^#NP3#fe$i"> <field name="OP">EQ</field> <value name="A"> <block type="get_value_var" id="DzQ]#W-I`,-WpvdB~r^="> <field name="ATTR">val</field> <value name="OID"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="PzTgSjUnKn}L~+Lu7;iE"> <field name="VAR" id="@!RPgtnzVwyGIa5#?5i^">id</field> </block> </value> </block> </value> <value name="B"> <block type="time_get" id="wfRYY0aB3ajC#/tjN2]d"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="gcRTE/pXe9yqfB@(m(ie"> <mutation elseif="1" else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="+Gs?^;C}J@CnzUI3]It/"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="ntc!u-;4R:RVfbXoD,g3"> <field name="VAR" id="f%{MYK|pqx/msm?jLTCv">sort</field> </block> </value> <value name="B"> <block type="math_number" id="Zh5JIS[O;{KFd7+dglib"> <field name="NUM">6</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="oK,Vo]}VE~hn!wMb%EaQ"> <field name="VAR" id="JU=3dvDJ]OgXqBlqGYM[">ww</field> <value name="VALUE"> <block type="logic_boolean" id="MI7#Ba{K$P~ECPrcQ8~u"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="GRjr1|q-qv~bZ_]x-b-V"> <field name="VAR" id="Pw_FHmi}c0-([@-$Ax/M">fbh</field> <value name="VALUE"> <block type="logic_boolean" id="+BKshPHTFX$)Axk,s:D3"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="_r:fA@(Q@C=RBwAM0*Aj"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="LUO{za(7%1bLUGPXF0-I"> <field name="VAR" id="f%{MYK|pqx/msm?jLTCv">sort</field> </block> </value> <value name="B"> <block type="math_number" id="7J4^!@k2T`nB=tV8earE"> <field name="NUM">12</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="n.Ik|u:~_:hM36]!*QlD"> <field name="VAR" id="JU=3dvDJ]OgXqBlqGYM[">ww</field> <value name="VALUE"> <block type="logic_boolean" id="owYb%`7T54.}wrm+]u-g"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="E`4`IKL)y:A}rSN:Kg(p"> <field name="VAR" id="Pw_FHmi}c0-([@-$Ax/M">fbh</field> <value name="VALUE"> <block type="logic_boolean" id="S+l[m~BVrGqKTJb!u8V-"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="HS:r/kU.]y/[Z]iPi_Xr"> <field name="VAR" id="JU=3dvDJ]OgXqBlqGYM[">ww</field> <value name="VALUE"> <block type="logic_boolean" id="0o]?]!J4GKIPzNqOziK%"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="RyL3o?ihAvyDZWomwrme"> <field name="VAR" id="Pw_FHmi}c0-([@-$Ax/M">fbh</field> <value name="VALUE"> <block type="logic_boolean" id="!QO~MyG$F#Fb;EbX.RB]"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> <next> <block type="controls_flow_statements" id="eWKTtP5}AB!o0E=d@X15"> <field name="FLOW">BREAK</field> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="control" id="2`n*#WlwbkPU!2|uD_e`" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="3;29{]Xqb0Tg.hordU+L"> <field name="VAR" id="JU=3dvDJ]OgXqBlqGYM[">ww</field> </block> </value> <next> <block type="control" id="y!s1?^8XonrSSD^d:]-|" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id=")uE};lZj2G04W=qRg|E`"> <field name="VAR" id="Pw_FHmi}c0-([@-$Ax/M">fbh</field> </block> </value> <next> <block type="variables_set" id="~hBW|XS(8x%+xwAf%Kkv"> <field name="VAR" id="_Nuc-_3~VS;%yQn+g$9o">stunde</field> <value name="VALUE"> <block type="time_get" id=":GeZIU-{w4?TE0BC@D|Y"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">h</field> </block> </value> <next> <block type="variables_set" id="MQ@9vpbm0twY]C|ujABd"> <field name="VAR" id=":s^oe|FI,MTykE.d|vjJ">idDate</field> <value name="VALUE"> <block type="text_join" id=",ml%b@CiFZA2:9!l,1Hd"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="K!zbGiH(RdzY+?0kVwG?"> <field name="TEXT">awattar.0.prices.</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="]`Ue]rEZm7kbr*_a,O$`"> <field name="VAR" id="_Nuc-_3~VS;%yQn+g$9o">stunde</field> </block> </value> <value name="ADD2"> <block type="text" id=",|)+9AGe$r8n[(NaedI4"> <field name="TEXT">.startDate</field> </block> </value> </block> </value> <next> <block type="controls_if" id="69d^VUAHY?4b|j+@cXXw"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="0)RD}*w5Z$6h6O6Y{l1+"> <field name="OP">EQ</field> <value name="A"> <block type="get_value_var" id="m`SbczVWHA#5}g,*s}x^"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="3LUz^-^E[f,3{G:^Tv_x"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="qEhWJ_x(1|EN.#(R#t=`"> <field name="VAR" id=":s^oe|FI,MTykE.d|vjJ">idDate</field> </block> </value> </block> </value> <value name="B"> <block type="time_get" id="5{1=BKF0rCri;MxB9KMW"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation> <field name="OPTION">custom</field> <field name="FORMAT">T.M.JJJJ</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="r66/JkWBU^B+v3bwZ4N/"> <field name="VAR" id="eTgx)$hD2knDGoSo3`$M">idPreis</field> <value name="VALUE"> <block type="text_join" id="TxKK9Mb%:ZwT;xy6`Z?#"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="!i2i}@Dt?zME37}xdZ4%"> <field name="TEXT">awattar.0.prices.</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="3Rl5pi,Iqn76rA_Yw,c+"> <field name="VAR" id="_Nuc-_3~VS;%yQn+g$9o">stunde</field> </block> </value> <value name="ADD2"> <block type="text" id="bYfIMeLQIW-zILKzxG$v"> <field name="TEXT">.totalPriceKwh</field> </block> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="!=SM:O1]Fn%djj4I@[$@"> <field name="VAR" id="eTgx)$hD2knDGoSo3`$M">idPreis</field> <value name="VALUE"> <block type="text_join" id="=!:etc4,Sj2`LkAuWUi*"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id="GlFO;(aqT@I[#6XC?F@b"> <field name="TEXT">awattar.0.prices.</field> </block> </value> <value name="ADD1"> <block type="math_arithmetic" id="J1iK){0l.}VR?9A|H6N3"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="S8Ud;PQu.R(l}h{a$ExG"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="/vSTWPMaL^9Zc(4Od2gk"> <field name="VAR" id="_Nuc-_3~VS;%yQn+g$9o">stunde</field> </block> </value> <value name="B"> <shadow type="math_number" id="Whk;c?I`L0q;G{~VUpr+"> <field name="NUM">24</field> </shadow> </value> </block> </value> <value name="ADD2"> <block type="text" id="[[)x,2!m+xiek{D+}Ktx"> <field name="TEXT">.totalPriceKwh</field> </block> </value> </block> </value> </block> </statement> <next> <block type="debug" id="JdM:egWf%4hJYB{}8gx}"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="7kGslysPGVf%Cp7dUL8I"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="v{_niA}T~y_?=wCx#Q?M"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="{-H2@_KSQrc4Y.U=oSfa"> <field name="TEXT">aktueller Preis: </field> </block> </value> <value name="ADD1"> <block type="math_rndfixed" id="IONixpM;:VMse8:5*@eU"> <field name="n">2</field> <value name="x"> <shadow type="math_number" id="RQE~cVZF?);/~.)Q9fB*"> <field name="NUM">3.1234</field> </shadow> <block type="get_value_var" id="SL=6p7RH_[k]M9r45=ls"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="7zK$!`js6l9s[Ane:X5k"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="X5LHou*mGG0^M;o3!Qi("> <field name="VAR" id="eTgx)$hD2knDGoSo3`$M">idPreis</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>
-
@paul53 erstmal vielen Dank für das Ganze.
Ich habe aber durchaus noch ein Verständnis Problem. Dazu muss ich auch sagen, ist das ganze wirklich Neuland für mich.
Ich wollte mir das ganze von Awattar auf Tibber umschreiben.
Kannst du das ganze bitte etwas Beschriften? ich habe schon gesehen, dass dies weiter oben der Fall ist, aber irgendwie passt das nicht mit dem letzten zusammen. Oder aber ich stell mich gerade zu doof dazu an.
Brauche ich zwei Skripte? eins was mir den Günstigstens Preis sucht und das andere zur Steuerung der Heizung?
Mir würde es auch reichen, wenn ich die WW und FBH über eine Zeit habe. Beispiel beide für die 3 günstigsten Stunden.
-
@doom-86 sagte: dies weiter oben der Fall ist
Das ist für 3 aufeinanderfolgende Stunden (Waschmaschine).
@doom-86 sagte in Awattar - die billigsten Strom-Stunden nutzen:
irgendwie passt das nicht mit dem letzten zusammen.
Das ist für die billigsten Stunden, die nicht aufeinander folgen müssen.
@doom-86 sagte in Awattar - die billigsten Strom-Stunden nutzen:
Ich wollte mir das ganze von Awattar auf Tibber umschreiben.
Liefert der Adapter auch eine Sortierung nach Preisen?
-
@paul53 sieht ziemlich gleich zu Awattar aus.
Mir fehlt nur noch ein wenig das Verständnis dafür . Muss ich mir selbst datenpunkte anlegen?
Jede Stunde hat ein extra Verzeichnis und für den morgigen Tag das selbe nochmal.
Mir würde es für die Heizung und Warmwasser reichen. Warmwasser ist leicht in einer Stunde aufgeheizt und die fußbodenheizung ist etwas träge, da wäre es gut, wenn sie 2 bis 3 Stunden am Stück laufen kann.
Die datenpunkte um diese zwei Werte zu erhöhen sind in dem stiebel eltron adapter schön hinterlegt.
-
@doom-86 sagte: Muss ich mir selbst datenpunkte anlegen?
Nein. Ab wann sind die die Werte unter "PricesToday" für den aktuellen Tag gültig? Unter "PricesTomorrow" stehen die Preise von morgen?
Adapter: Tibber oder Tibberconnect? -
Ich möchte die Arbeit von paul53 nicht schlecht machen....
Für Tibber funktioniert das ganz gut (man muss ja nen Token anlegen)
https://forum.iobroker.net/topic/60938/geräte-zu-stundenpreisen-epex-oder-pv-überschuss-betreiben
-
@paul53 die preise für den morgigen Tag sollen ab 13 in der App zur Verfügung stehen. Manchmal kann es auch erstmal 13:30 bis 14:00 Uhr sein, habe ich gemerkt.
Ab Mitternacht steht dann bei morgigen Preis drin, dass diese ab 13:00 Uhr verfügbar sind. Somit gehe ich davon aus, dass diese um Mitternacht umgestellt werden.
Tibberconnect nutze ich.
-
@doom-86 sagte: Manchmal kann es auch erstmal 13:30 bis 14:00 Uhr sein, habe ich gemerkt.
Wenn man um 13:59 Uhr triggert, hat man unter "PricesToday" die Preise von 14:00 Uhr bis Mitternacht und unter "PricesTomorrow" die Preise von morgen von 0:00 Uhr bis 13:00 Uhr ?
-
@paul53 said in Awattar - die billigsten Strom-Stunden nutzen:
@doom-86 sagte: Manchmal kann es auch erstmal 13:30 bis 14:00 Uhr sein, habe ich gemerkt.
Wenn man um 13:59 Uhr triggert, hat man unter "PricesToday" die Preise von 14:00 Uhr bis Mitternacht und unter "PricesTomorrow" die Preise von morgen von 0:00 Uhr bis 13:00 Uhr ?
Unter Prices Today bekommst du die Preise des heutigen Tages von 0:00 - 23:00
Unter Prices Tomorrow die Preise von morgen von 0:00 - 23:00 Uhr.
Es würde somit auch reichen, wenn erst um 18 Uhr getriggert wird. Falls von tibber Seite irgendwas schief laufen sollte und die morgigen Preise länger auf sich warten lassen.
-
@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.
Im zweiten Teil werden die Startzeiten für 1 Stunde und 3 Stunden Dauer ermittelt.
Im letzten Teil werden die Endzeiten ermittelt, die laufenden Zeitpläne gestoppt und die neuen Zeitpläne erstellt.
-
@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.
-
@doom-86 sagte: wo trage ich die id von Warmwasser bzw FBH ein?
Dort, wo die Blöcke "steuere" sitzen: FBH bei
end3h
,schedule3
undschedule4
. -
@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.
-
@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: -
@paul53 So schaut es jetzt bei mir aus.
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 versionsnaja, 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.
-
@doom-86 sagte: ich hoffe das passt so?
Das muss oben (Ausschalten um 17:59 Uhr) genauso gehandhabt werden wie unten
Es genügt, den WW-Sollwert um 4 K zu verringern?
-
@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
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.
-
@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.