NEWS
*gelöst* Variabler Cronjob über VIS / Wecker
-
bin selbst drauf gekommen ->cron
Hi Zs,
ich habe mehrere Problem mit meinem Blockly skript:
wichtigster Punkt:
mein Cronjob wird nicht ausgeführt:
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="[C+$zM!y]zckFD./o_Tp">hh_Zehner</variable> <variable type="" id="#fQo=B#rnnkEv/,E?G`j">hh_Einer</variable> <variable type="" id="en{_Hv~LrB`B!w?$z#ES">mm_zehner</variable> <variable type="" id="ZBIMK87=[v+pnOfI.*t6">mm_Einer</variable> <variable type="undefined" id="schedule">schedule</variable> <variable type="" id="}F_KBp#WiSv2UL`b(8kE">Weckzeit</variable> <variable type="" id="9f9E%K.9;P*gU!i0YS^{">Cronzeit</variable> <variable type="undefined" id="Intervall2">Intervall2</variable> <variable type="" id="oZrEYJ058;|j^W#?UJa$">dimmer_berechnen</variable> <variable type="" id="**IMb*_TZ%sKCG/?zhr-">hh_zehner_einer</variable> <variable type="" id="wKr~0D^R}#-X@2dqYOy9">mm_zehner_einer</variable> </variables> <block type="on_ext" id="=Nw[U]oIQ`(xFU8fkS[6" x="-1537" y="-1412"> <mutation items="3"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Cp@@k@P|Oc)B_hY05)uX"> <field name="oid">javascript.0.Wecker.Wecker_hh_einer</field> </shadow> <block type="field_oid" id="/kF0i*l(pb+lk4^ll*:R"> <field name="oid">javascript.0.scriptEnabled.common.Abfragen.Wecker.Bett_LED_Wecker</field> </block> </value> <value name="OID1"> <shadow type="field_oid" id="ZtN(@Ys3JK-wl|:U[_E."> <field name="oid">javascript.0.Wecker.Wecker_hh_zehner</field> </shadow> <block type="field_oid" id="o1GzmU*xyCFB(5mNAFHN"> <field name="oid">alexa2.0.Echo-Devices.G090XG09950713K0.MusicAlarm.32237f36-9adc-36c2-b8ba-6d10c425a93e.enabled</field> </block> </value> <value name="OID2"> <shadow type="field_oid" id="Zs)mDGH$PiqwtUq:(`)W"> <field name="oid">default</field> </shadow> <block type="field_oid" id="`Y.Kc{DP?`mW(seGNbQc"> <field name="oid">ical.0.events.0.today.Vacation</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="T0x)serS}{0P8!l_[DK-"> <mutation elseif="3"></mutation> <value name="IF0"> <block type="logic_compare" id="$puJ1aN5ounjNBmxylH7"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="A5;!(u[BgtaNR]na}X3h"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Bett_LED_Wecker</field> </block> </value> <value name="B"> <block type="logic_boolean" id="slWbI6l=:}+bCmETElCK"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="]/sUf}%u8XiChrUp1^6t"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Schaltungen.Bett_LED_Wecker</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="65r[e|sYYM7h;B/#/.:b"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="ydKY.sX`;Cq`=3h]qbpn"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="LS.8p_@oMV~)RE+|#{3J"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Bett_LED_Wecker</field> </block> </value> <value name="B"> <block type="logic_boolean" id="*8dz:yjZU!VRnRZ4=(xh"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="TFgSiXPhGrYT]Vewdwc+"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Schaltungen.Bett_LED_Wecker</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Tnm(-FdSz?)-Dr{ZpD$l"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="oZMfgQO$D(}NG%qW0M/?"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=".6G%,nm(Y9we|t7bl^hD"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Echo-Devices.G090XG09950713K0.MusicAlarm.32237f36-9adc-36c2-b8ba-6d10c425a93e.enabled</field> </block> </value> <value name="B"> <block type="logic_boolean" id="6ObO.D~.en;*sihaG#f}"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO2"> <block type="control" id="u_N!m,8UEdvhgsp[Y8X?"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Schaltungen.Bett_LED_Wecker</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="@tY8Cb$-JUZ_g6Kr3HG_"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="9:T)mxJxMfW8;5+Xc@3_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="i--0p{ag$O:X@~+/[7[m"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Echo-Devices.G090XG09950713K0.MusicAlarm.df9792b1-88e9-3718-9759-64ea1ce6793b.enabled</field> </block> </value> <value name="B"> <block type="logic_boolean" id="eZ36)`3ILLRQ.+$(~a?;"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO3"> <block type="control" id="lMhLFMH8[nq8$NtCG*p6"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Schaltungen.Bett_LED_Wecker</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=")%206emP=Rn.%f[S.VpF"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on_ext" id="n`Pb5#f2!L@BGAfcDQ,Q"> <mutation items="4"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Cp@@k@P|Oc)B_hY05)uX"> <field name="oid">javascript.0.Wecker.Wecker_hh_einer</field> </shadow> <block type="field_oid" id="}-/,%8^X$n8soDE3_)ps"> <field name="oid">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_einer</field> </block> </value> <value name="OID1"> <shadow type="field_oid" id="ZtN(@Ys3JK-wl|:U[_E."> <field name="oid">javascript.0.Wecker.Wecker_hh_zehner</field> </shadow> <block type="field_oid" id="8(q8xmX]0zL:|%Yb,W7M"> <field name="oid">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_zehner</field> </block> </value> <value name="OID2"> <shadow type="field_oid" id="),}n*xx+j`TR68).1/2-"> <field name="oid">javascript.0.Wecker.Wecker_mm_einer</field> </shadow> <block type="field_oid" id="VLC]aSv?5#NTcrR^JUQN"> <field name="oid">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_einer</field> </block> </value> <value name="OID3"> <shadow type="field_oid" id="4Ox.4K,NIj.X*FwwPrHZ"> <field name="oid">javascript.0.Wecker.Wecker_mm_zehner</field> </shadow> <block type="field_oid" id="==Bv5!:T!@eBOu|8_}q0"> <field name="oid">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_zehner</field> </block> </value> <statement name="STATEMENT"> <block type="variables_set" id="cUfLnmJi(c#xVgcAs:vP"> <field name="VAR" id="[C+$zM!y]zckFD./o_Tp" variabletype="">hh_Zehner</field> <value name="VALUE"> <block type="get_value" id="2(UwLIy;#`K9o?LMz_@h"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_zehner</field> </block> </value> <next> <block type="variables_set" id="5:kFL.$(HsN17M@C]yr7"> <field name="VAR" id="#fQo=B#rnnkEv/,E?G`j" variabletype="">hh_Einer</field> <value name="VALUE"> <block type="get_value" id="0Xl%Xk69VoO8*M=Uj]Tr"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_einer</field> </block> </value> <next> <block type="variables_set" id="2Y-_czX2?00e)?@CLAPS"> <field name="VAR" id="en{_Hv~LrB`B!w?$z#ES" variabletype="">mm_zehner</field> <value name="VALUE"> <block type="get_value" id="MD71%8l5wVtu.*%g;u5u"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_zehner</field> </block> </value> <next> <block type="variables_set" id="l$p=]%)RdCuKn~d%xL1M"> <field name="VAR" id="ZBIMK87=[v+pnOfI.*t6" variabletype="">mm_Einer</field> <value name="VALUE"> <block type="get_value" id="~A,Pu7bPr!Azk9Z`l:Tv"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_einer</field> </block> </value> <next> <block type="variables_set" id="Z[PrX8D%T|,8T-TRNE:c"> <field name="VAR" id="}F_KBp#WiSv2UL`b(8kE" variabletype="">Weckzeit</field> <value name="VALUE"> <block type="convert_from_date" id=":%^:wvi:Ui/ziB7lN3n3"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm</field> <value name="VALUE"> <block type="text_join" id="_WG+pTV3!7.G@*+0.,om"> <mutation items="5"></mutation> <value name="ADD0"> <block type="variables_get" id="2q{GZtZxvygg8Q7m}.?+"> <field name="VAR" id="[C+$zM!y]zckFD./o_Tp" variabletype="">hh_Zehner</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="6VO|cTx]2+xl`)j2_i/="> <field name="VAR" id="#fQo=B#rnnkEv/,E?G`j" variabletype="">hh_Einer</field> </block> </value> <value name="ADD2"> <block type="text" id="%]|Kaw[MKmp5XS(137rG"> <field name="TEXT">:</field> </block> </value> <value name="ADD3"> <block type="variables_get" id="c|eE/cnow/iG/ssgR`Zk"> <field name="VAR" id="en{_Hv~LrB`B!w?$z#ES" variabletype="">mm_zehner</field> </block> </value> <value name="ADD4"> <block type="variables_get" id="=$=8wU{TN2hD4l`(O7ug"> <field name="VAR" id="ZBIMK87=[v+pnOfI.*t6" variabletype="">mm_Einer</field> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="wGTC[,@I%.,]t{{/H~6O"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.weckzeit_io</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="3!3;HmgLnp%b3NxUYoK:"> <field name="VAR" id="}F_KBp#WiSv2UL`b(8kE" variabletype="">Weckzeit</field> </block> </value> <next> <block type="control" id="2hjm@OMJsV$|(8smz:%}"> <mutation delay_input="true"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XG09950713K0.MusicAlarm.32237f36-9adc-36c2-b8ba-6d10c425a93e.time</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">5</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="F;C^S$fQ{`5ZQyCfo`Z~"> <field name="VAR" id="}F_KBp#WiSv2UL`b(8kE" variabletype="">Weckzeit</field> </block> </value> <next> <block type="control" id="4e$KMPmHTTb^XrR=`@6}"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Cron_Zeit</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id="d{a)+N*(MD=Gp;b`tFgh"> <mutation items="8"></mutation> <value name="ADD0"> <block type="get_value" id="LI($BHR;rHQ2@](OpS4r"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_zehner</field> </block> </value> <value name="ADD1"> <block type="math_arithmetic" id="Bbr7|9{/,!;7W0IPFR@;"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="8pQm{Gtxh!Yt]zAEq@s7"> <field name="NUM">1</field> </shadow> <block type="get_value" id="]B1x%nr)Xctl2v~/OZ=Q"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_einer</field> </block> </value> <value name="B"> <shadow type="math_number" id="?.:x1G=6pDR?WMv]~5tz"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="ADD2"> <block type="text" id="^v_1K23~gx759CF?w{7T"> <field name="TEXT"> </field> </block> </value> <value name="ADD3"> <block type="get_value" id="1.ne/%?{V]v|`{F,lwc}"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_zehner</field> </block> </value> <value name="ADD4"> <block type="get_value" id="bm[hS}^8:M!vJQQf]:65"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_einer</field> </block> </value> <value name="ADD5"> <block type="text" id="P5[l]{keK]`vx-I~d_?x"> <field name="TEXT"> 1-5 </field> </block> </value> <value name="ADD6"> <block type="text" id="wI{+$dIg.K)Jv;JUT8tz"> <field name="TEXT">* </field> </block> </value> <value name="ADD7"> <block type="text" id="_KH8O-%eyToHVMUI2*E+"> <field name="TEXT">*</field> </block> </value> </block> </value> <next> <block type="variables_set" id="r53r9(}Y}I18%!u1{}(`"> <field name="VAR" id="9f9E%K.9;P*gU!i0YS^{" variabletype="">Cronzeit</field> <value name="VALUE"> <block type="text_join" id="b%@=]up#1FLF(+P/KNHM"> <mutation items="8"></mutation> <value name="ADD0"> <block type="get_value" id="ortsU^;-$}GnINx@Q4S5"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_zehner</field> </block> </value> <value name="ADD1"> <block type="math_arithmetic" id="*8l/HNSF]R|atXQ]YOvn"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="8pQm{Gtxh!Yt]zAEq@s7"> <field name="NUM">1</field> </shadow> <block type="get_value" id=")wof7nN{.OqO[YH#Uz@Q"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_einer</field> </block> </value> <value name="B"> <shadow type="math_number" id="Ns?/*#hdvI`YUAP.(c@d"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="ADD2"> <block type="text" id="7OH04gQE|d)s7L(T7D-("> <field name="TEXT"> </field> </block> </value> <value name="ADD3"> <block type="get_value" id="n7klg]~!Pt1|*RZO1WUX"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_zehner</field> </block> </value> <value name="ADD4"> <block type="get_value" id="`?qV/UN+*o+f.nqyJ-=M"> <field name="ATTR">val</field> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_einer</field> </block> </value> <value name="ADD5"> <block type="text" id="KqcwJ%YuMHx[JHO7=r4K"> <field name="TEXT"> 1-5 </field> </block> </value> <value name="ADD6"> <block type="text" id=":fzo9]YH[Jx[*ja*:C!x"> <field name="TEXT">* </field> </block> </value> <value name="ADD7"> <block type="text" id="(U0,yQ-]`zHJ.UMTxp@E"> <field name="TEXT">*</field> </block> </value> </block> </value> <next> <block type="variables_set" id="eg!kM+hSMuee|e0q^pGn"> <field name="VAR" id="**IMb*_TZ%sKCG/?zhr-" variabletype="">hh_zehner_einer</field> <value name="VALUE"> <block type="text_join" id="PN,k%@VuxKKhp1psyhYR"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="=qq8j-~3Bc9*OnsW(o$$"> <field name="VAR" id="[C+$zM!y]zckFD./o_Tp" variabletype="">hh_Zehner</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="_bRPI@XkhqXec=W[PCO-"> <field name="VAR" id="#fQo=B#rnnkEv/,E?G`j" variabletype="">hh_Einer</field> </block> </value> </block> </value> <next> <block type="variables_set" id="2IaVkh5_~#o{@f]PwZZ7"> <field name="VAR" id="wKr~0D^R}#-X@2dqYOy9" variabletype="">mm_zehner_einer</field> <value name="VALUE"> <block type="text_join" id="|,.cQ+hoMP@L2M%dBIsv"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="8o=6vHm^-FPDPv%4ehsg"> <field name="VAR" id="en{_Hv~LrB`B!w?$z#ES" variabletype="">mm_zehner</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="2Bg901EeS,yi%44rBkzt"> <field name="VAR" id="ZBIMK87=[v+pnOfI.*t6" variabletype="">mm_Einer</field> </block> </value> </block> </value> <next> <block type="control" id=",P5:tm!+SR5#wj:Z@BK$"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.wecker_timestamp</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="m)qj8ujb,_iXnwbORIR;"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="Q[f4kwfn`e|0s0-Vq:-T"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="FmR0EFG(%!wa3YBZ{Ad9" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="BRLuF^|sO#gmkz#y@__s"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="yBP*VN-lVJCBaB|77pBw"> <field name="VAR" id="**IMb*_TZ%sKCG/?zhr-" variabletype="">hh_zehner_einer</field> </block> </value> <value name="B"> <shadow type="math_number" id="N}Lb+`yGI7a2*hz]Tb6e"> <field name="NUM">3600</field> </shadow> </value> </block> </value> <value name="B"> <shadow type="math_number" id="i;%u7(ZVUyc/%tT6n/9J"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="5nus86hpiR6OZERL^[+#" inline="false"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id="BRLuF^|sO#gmkz#y@__s"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="fin}%%K1@wtNUG7t[,1f"> <field name="VAR" id="wKr~0D^R}#-X@2dqYOy9" variabletype="">mm_zehner_einer</field> </block> </value> <value name="B"> <shadow type="math_number" id="IQjbj5Zr$Ab1F3Zkh8uN"> <field name="NUM">60</field> </shadow> </value> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="schedule" id="*/^K,=}*snu2`g-H6-m|"> <field name="SCHEDULE">* * * * *</field> <statement name="STATEMENT"> <block type="update" id="2A,^9,E)xPX^N*QD#UNc"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Systemzeit</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="time_get" id="UjnH)T[M+V02N5o;5O:!"> <mutation format="false" language="false"></mutation> <field name="OPTION">hh:mm:ss</field> </block> </value> </block> </statement> <next> <block type="on_ext" id="YnED3wueg`_YDIom2Bi!"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="#O5H=Vj;8Co*rVD.,WFu"> <field name="oid">javascript.0.scriptEnabled.common.Abfragen.Wecker.Cron_Zeit</field> </shadow> </value> <statement name="STATEMENT"> <block type="schedule_clear" id="43}7*N=}9*$4Z_E;Zw3C"> <field name="NAME">schedule</field> <next> <block type="schedule_create" id="#|ZbUQ?#KabKZ[-ccGtG"> <field name="NAME">schedule</field> <value name="SCHEDULE"> <shadow type="field_cron" id="ORg7%cM_U7AYZ:aw89.`"> <field name="CRON">* * * * *</field> </shadow> <block type="variables_get" id="k4$RQltvG]UEb5~j.#Pl"> <field name="VAR" id="9f9E%K.9;P*gU!i0YS^{" variabletype="">Cronzeit</field> </block> </value> <statement name="STATEMENT"> <block type="control" id="`aENjWR*h($b:wC*B.0g"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#6612DD#1.color.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#)e#nExjjQY$;P7tZh;]"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="+qWK{gw,w6,+MdG*^*@k"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#6612DD#1.color.gain</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="18_GJ~OLfGGt:s-Pr!I2"> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_setinterval" id="S[Mt::{C/-4YR).94/ic"> <field name="NAME">Intervall2</field> <field name="INTERVAL">15</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="P67+U/[Aoc/@c`oJj/2p"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="(,^?Rai;+BEiv=B~hqAw"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="M9#mD.GL%nNmCvUnR9fL"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#6612DD#1.color.gain</field> </block> </value> <value name="B"> <block type="math_number" id="m?7X*(moy(coREN^HwZ8"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="t7v5VU`]nqP1lR6H,CzK"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#6612DD#1.color.gain</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="vb98+Enqpe|gK!6F95Yc"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="tSa(@Me46JE#QlwQL3v;"> <field name="NUM">1</field> </shadow> <block type="get_value" id="vPj;Rl`+d@^X75gXW/U@"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#6612DD#1.color.gain</field> </block> </value> <value name="B"> <shadow type="math_number" id="s=LY_Q-UrPGG/kh*$a{J"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="P*r,XDkv|5T5d13Y{`-`"> <field name="NAME">Intervall2</field> </block> </statement> </block> </statement> <next> <block type="debug" id="pZ}@Nncy@ajGpdA~G:$A"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="C5p5)}lx}3gw{h~+^(x~"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="V.4i?*7z$b`U}Ekb2Eaw"> <field name="VAR" id="oZrEYJ058;|j^W#?UJa$" variabletype="">dimmer_berechnen</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </xml>
Ich habe mir Teile von einem Wecker Script hier im Forum als Grundlage genommen und dies angepasst. Das ursprüngliche Script mit dem VIS-Widget läuft und die Datenpunkte werden geändert...
Erste kuriosität ist, das Cron eine andere Zeit (-1 Stunde) verwendet als VIS und der Rest des Systems. Daher das -1 im Cron Abschnitt - siehe Datenpunkt "Systemzeit".
Zweitens:Der Cronjob wird meines erachtens auch richtig erstellt und der Teil im eigentlichen job zum Dimmen mit Gain und switch funktioniert in einem reinen cron auch für sich.
Was nicht klappt ist die üebrgabe des neuen Cron-Wertes an den Crnjob wenn man die Zeit ändert.
Ich habe es mit deiner Variblen Cron_zeit, mit wert von ObjektID Cronzeit und mit dem Textbaustein direkt versucht.Ich hoffe jemand von Euch hat eine Idee zur Lösung beider Punkte...
als Drittes hätte ich noch gern die Rückwärtsaktulisierung vom Datenpunkt 17:47:00 Time ( Alexa Musikwecker Datenpunkt ) damit siech die Vis umstellt wenn ich über die Alexa-App die Zeit verstelle.
Mein Versuch war dieser:
<block xmlns="http://www.w3.org/1999/xhtml" type="on" id="pj_VmfQ2f3w@Kg.]3pbX" x="-1537.0740966796875" y="435.81481170654297"> <field name="OID">alexa2.0.Echo-Devices.G090XG09950713K0.MusicAlarm.df9792b1-88e9-3718-9759-64ea1ce6793b.time</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="a,_onPsJB[AN(gl,qn@A"> <field name="VAR" id="8,EQThXr=AT%?C}JRR+u" variabletype="">Text</field> <value name="VALUE"> <block type="text_join" id="Q1e~wJX#WI_@dx_FQ`Fi"> <mutation items="1"></mutation> <value name="ADD0"> <block type="get_value" id="uFXNAI_p?E/h|c;#_v=4"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Echo-Devices.G090XG09950713K0.MusicAlarm.df9792b1-88e9-3718-9759-64ea1ce6793b.time</field> </block> </value> </block> </value> <next> <block type="variables_set" id="aO3[M4;aOCWQ;e0;i]vY"> <field name="VAR" id="6:ZkdY2|z?U;|y2:(a1%" variabletype="">Alexa_Weckzeit</field> <value name="VALUE"> <block type="lists_split" id="_{#TPE3r[WqN3~zH@k1["> <mutation mode="SPLIT"></mutation> <field name="MODE">SPLIT</field> <value name="INPUT"> <block type="variables_get" id="W7BVe+S/BG62L4~vMZWb"> <field name="VAR" id="8,EQThXr=AT%?C}JRR+u" variabletype="">Text</field> </block> </value> <value name="DELIM"> <shadow type="text" id="JXG1TRRKGk.m=gFX@/Ty"> <field name="TEXT"></field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="PF7:^rR(I(a9jNT3KyTw"> <field name="VAR" id=",v~aEf*nT~|lVvbGvk8l" variabletype="">hh_10</field> <value name="VALUE"> <block type="lists_getIndex" id="WN=f|gyu.y/97HUY[ehb"> <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="x0b9j-hgJ``^d/g`i;(y"> <field name="VAR" id="6:ZkdY2|z?U;|y2:(a1%" variabletype="">Alexa_Weckzeit</field> </block> </value> <value name="AT"> <block type="math_number" id="Y;eUN0G)*K+CQd|EqqiD"> <field name="NUM">1</field> </block> </value> </block> </value> <next> <block type="update" id=":17aGsQrh)_6x@uBHw2+"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_zehner</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="G[)d}o]gG/s.kJDM:TK6"> <field name="VAR" id=",v~aEf*nT~|lVvbGvk8l" variabletype="">hh_10</field> </block> </value> <next> <block type="variables_set" id="h$GmL$+t#)9EpVS(~@:*"> <field name="VAR" id="uM#)v|j@IbdvurJIA8K5" variabletype="">hh_1</field> <value name="VALUE"> <block type="lists_getIndex" id="NXrN%q;IdGkO=CXf3pp_"> <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="=MW^gtDlNhL=8`]3@zO+"> <field name="VAR" id="6:ZkdY2|z?U;|y2:(a1%" variabletype="">Alexa_Weckzeit</field> </block> </value> <value name="AT"> <block type="math_number" id="QxctK2E2/L]fUizKCYiD"> <field name="NUM">2</field> </block> </value> </block> </value> <next> <block type="update" id="cPbXS8/!%#Tl}F1B)qKJ"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_hh_einer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="hw:66ImW+~J1@%1Kg_?y"> <field name="VAR" id="uM#)v|j@IbdvurJIA8K5" variabletype="">hh_1</field> </block> </value> <next> <block type="variables_set" id="jrMAY{dWp9vmv1+:{k5U"> <field name="VAR" id="/+af3+9Ci`:{^IYzGn)4" variabletype="">mm_10</field> <value name="VALUE"> <block type="lists_getIndex" id="4T7*Qp-pl=1xMB)8+T-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="uS`Vz:$HYA$Vo][D%_cm"> <field name="VAR" id="6:ZkdY2|z?U;|y2:(a1%" variabletype="">Alexa_Weckzeit</field> </block> </value> <value name="AT"> <block type="math_number" id="fF+qDn|K=s+AX)rB#fi~"> <field name="NUM">4</field> </block> </value> </block> </value> <next> <block type="update" id="hLlP1-B[$N^-AtHV,2:o"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_zehner</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="E!Py3Gb{7/d|t(g/wq]u"> <field name="VAR" id="/+af3+9Ci`:{^IYzGn)4" variabletype="">mm_10</field> </block> </value> <next> <block type="variables_set" id="/qLM-HJ*+rE@zx]Kfn,4"> <field name="VAR" id="G?S@`KDLc-cvLjh^6v(I" variabletype="">mm_1</field> <value name="VALUE"> <block type="lists_getIndex" id="8rlN:Qskk)nkJl#*^RHf"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="%I-?/%Z9rl{-yp-fY}|!"> <field name="VAR" id="6:ZkdY2|z?U;|y2:(a1%" variabletype="">Alexa_Weckzeit</field> </block> </value> <value name="AT"> <block type="math_number" id="UX%$#0iyd,G^oXd~vw5."> <field name="NUM">5</field> </block> </value> </block> </value> <next> <block type="update" id="9k7mA!R=_#Tp/I{*,zj."> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.scriptEnabled.common.Abfragen.Wecker.Wecker_mm_einer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="J.~C*Psn}SAqzf~B[7h9"> <field name="VAR" id="G?S@`KDLc-cvLjh^6v(I" variabletype="">mm_1</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block>
Hier lande ich allerdings immer in einer Schleife.