@paul53 sagte in komplettes Script zB. von November bis Januar aktivieren:
@hicki sagte: von November bis Januar aktivieren.
Im Datenpunkt-Trigger:
In den Zeitplänen mit CRON:
Hallo,
ich habe es geändert, so wie es Paul53 geschrieben hat. Es funktioniert aber nicht.
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="aL_X)*sBl03%NEW0`$16">licht</variable>
<variable id="h9D`_bjnh7+zfds1apYJ">monat</variable>
</variables>
<block type="variables_set" id="nAb*8A.{e9B7yRo7Vp4$" x="-312" y="-13">
<field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
<value name="VALUE">
<block type="get_value" id="5osR!02k6g`HA4bCFFc3">
<field name="ATTR">val</field>
<field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
</block>
</value>
<next>
<block type="on_ext" id="{C!-q#5L0R;9f?kYAsry">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="E`(8h#e|S}7v|r5d0.Mc">
<field name="oid">hm-rpc.0.PEQ1447187.1.LUX</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="variables_set" id="+C=!uRkGaZV+@fwXn(^-">
<field name="VAR" id="h9D`_bjnh7+zfds1apYJ">monat</field>
<value name="VALUE">
<block type="time_get" id="SP54U[1N:+(T*JZQ35wy">
<mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
<field name="OPTION">M</field>
</block>
</value>
<next>
<block type="controls_if" id=";}+3f,3x_YBFZFD~i@.Y">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_operation" id="2+e?:^M.*R-ZIHgD];C,">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="i.rk`1TXp!JYA42Sew%U">
<field name="OP">GTE</field>
<value name="A">
<block type="variables_get" id="vMq!pTewS+y1_IO8Bk6B">
<field name="VAR" id="h9D`_bjnh7+zfds1apYJ">monat</field>
</block>
</value>
<value name="B">
<block type="math_number" id="$#|ns76)0ik=DuJX^0zN">
<field name="NUM">11</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="th?,9uz!uBdsFyN|jn:5">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="@K=3Ujd]%!-{yW{Btq9S">
<field name="VAR" id="h9D`_bjnh7+zfds1apYJ">monat</field>
</block>
</value>
<value name="B">
<block type="math_number" id="6u%uJ.L,f[{xNNP88$9n">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="ah9bdqk^?`(F?iRu9K0E">
<value name="IF0">
<block type="time_compare" id="b^e@Rw{#Wsk;K#:VY3;#">
<mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
<field name="OPTION">between</field>
<field name="START_TIME">6:00</field>
<field name="END_TIME">23:00</field>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="VbB+lbG|FS58Fk3H5vcH">
<field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
<value name="VALUE">
<block type="logic_compare" id="_#buL5doh#t/okTN*!a6">
<field name="OP">LT</field>
<value name="A">
<block type="on_source" id="VEtoDSob:sF14%jmnXr[">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="V!?+lG#2|7VQ-dgnn?4|">
<field name="NUM">350</field>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</statement>
<value name="IF1">
<block type="logic_operation" id="IC)`}jgNen5F1N#Qjb:~" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="time_compare" id="qhQ*DY~ZoD9U*WJiSE.8">
<mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation>
<field name="OPTION">></field>
<field name="START_TIME">23:30</field>
</block>
</value>
<value name="B">
<block type="logic_compare" id="FeHt$8yMCXvUq$5ye-RE">
<field name="OP">LT</field>
<value name="A">
<block type="on_source" id="wr/psQ*vKTIf+8y}gg4R">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="lIx1BP/VE)`}t!k!U4r|">
<field name="NUM">350</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="variables_set" id="L+4Ku-/v|69KE0nD7Pb7">
<field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
<value name="VALUE">
<block type="logic_boolean" id="W,a2FN}d^%PaI]hyCYkK">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="_qgWF*jdZ/QKfr9POs0L">
<value name="IF0">
<block type="logic_compare" id="X7KYR)Q6|-QL@=*ZWTBD">
<field name="OP">NEQ</field>
<value name="A">
<block type="variables_get" id="[-Bv!#,hV:Yz8I53N2Y~">
<field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
</block>
</value>
<value name="B">
<block type="get_value" id="kD~ukn|f|d@uo5#GX.y}">
<field name="ATTR">val</field>
<field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="w.%$^mNIRkE/BvQ_kibz">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="variables_get" id="_b]p1k!)%d}f%ykWXd=4">
<field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
</block>
</value>
</block>
</statement>
<next>
<block type="debug" id=":;07tr72fVw{?`HNic(q">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="3P6x:CGgrB2V^fsr0hn0">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="!E[?o{_K5c3tfHgAa+6O">
<mutation items="4"></mutation>
<value name="ADD0">
<block type="text" id=":,psL={k/UsAtc1$,U=1">
<field name="TEXT">Außenbeleuchtung:</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="(ybtL.qIEg()hW:uHkyH">
<field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="gmO[[Owfys^]w}t]IQTL">
<field name="TEXT"> und Helligkeit:</field>
</block>
</value>
<value name="ADD3">
<block type="get_value" id="~7fMP8j.GBv_e,jA{XD[">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="schedule" id="EF?3)TIqPV%Jq)SG/g|P">
<field name="SCHEDULE">0 2 * 1,11,12 *</field>
<statement name="STATEMENT">
<block type="control" id="e$Hyu9Sa.Sz9/5=Ma4TE">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="Y9SG.fNG@^=%Y+$@ow|)">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="debug" id="=e7HUvXBE%fz)WI8HLUD">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="3P6x:CGgrB2V^fsr0hn0">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="3q=r},YXe!pv`V[ma!,4">
<mutation items="4"></mutation>
<value name="ADD0">
<block type="text" id="q`mw%gyq)T$lgE)rqzm5">
<field name="TEXT">Außenbeleuchtung:</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="p2svWA!S`R4*pV0%9e0?">
<field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="8GP6#MJ5^K`b?`g~f2*9">
<field name="TEXT"> und Helligkeit:</field>
</block>
</value>
<value name="ADD3">
<block type="get_value" id="NAU_RnF6{6U?#-{_rOqv">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="schedule" id="=1HK,tlY!FMQ?IZ%RF0,">
<field name="SCHEDULE">0 6 * 1,11,12 *</field>
<statement name="STATEMENT">
<block type="controls_if" id="U`8u9o:Am{Eun=MmoPK_">
<value name="IF0">
<block type="logic_compare" id="i)kldwDoimFLu5k8ox0_">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="_-:}|R08h~[Uj:eeFG#K">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
</block>
</value>
<value name="B">
<block type="math_number" id="0k|EA=5[YYT5]j0{|g^.">
<field name="NUM">350</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="KXd3@lXse#4s[gt=zm@Z">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">meross.0.2103167712159190845648e1e962ef89.2</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="BN-5gr7sNQ?R^8E|3*m+">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<next>
<block type="debug" id="Vx}Nv%]Bt_k9]N^RakQS">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="3P6x:CGgrB2V^fsr0hn0">
<field name="TEXT">test</field>
</shadow>
<block type="text_join" id="p8.wQe+)UP~?43;ljchF">
<mutation items="4"></mutation>
<value name="ADD0">
<block type="text" id="F7*Cv|^vdR#Ii(6B#S|o">
<field name="TEXT">Außenbeleuchtung:</field>
</block>
</value>
<value name="ADD1">
<block type="variables_get" id="H~:(r8Vn#tJIH5kFM|u=">
<field name="VAR" id="aL_X)*sBl03%NEW0`$16">licht</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="*+C:ANSOjYY~O8=l?U0=">
<field name="TEXT"> und Helligkeit:</field>
</block>
</value>
<value name="ADD3">
<block type="get_value" id="C,R}00?Q0*-VlVaY([+[">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.PEQ1447187.1.LUX</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
Was habe ich falsch gemacht?
besser dargestellt