NEWS
Blockly- Hm Einbau Taster- Hue Szenen umschalten
-
Hallo zusammen,
bräuchte einmal hilfe bei meinem blockly, funktioniert nicht so wie ich mir das vorstelle.
Ich möchte folgendes:
-wenn Hue aus sind beim ersten mal drücken des An Schalters die Lampen in einer fixen Szene einschalten (funzt)
-wenn Hue schon an sind und nochmal gedrückt wird einen Zähler hochzählen und abhängig davon Szenen durchschalten (funzt nicht)
Nach meiner fehleranalyse weil in dem markierten prüfe Teil, immer eine 1 rauskommt.
Verstehe nur nicht warum, jemand nen Tipp was ich falsch mache?
Hier noch der Export
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="(KG]Lc]zBvPWX6s3I_i9" x="-162" y="13"><field name="COMMENT">aus</field> <next><block type="on_ext" id="UJa13qex,V`uI|`(H0o1"><mutation items="2"></mutation> <field name="CONDITION">any</field> <value name="OID0"><shadow type="field_oid" id="I8E0-9H)([La_@hn*Wj*"><field name="oid">hm-rpc.1.OEQ1051399.1.PRESS_SHORT</field></shadow></value> <value name="OID1"><shadow type="field_oid" id="p:r;yn{,Q#Y.tKpFe081"><field name="oid">hm-rpc.1.OEQ1051399.1.PRESS_LONG</field></shadow></value> <statement name="STATEMENT"><block type="controls_if" id="REnc6m[~V*[FbS[P=L|%"><value name="IF0"><block type="logic_compare" id="+01.qvaUO9^oI%4s|n]2"><field name="OP">NEQ</field> <value name="A"><block type="get_value" id="_#A)xY7;q?ewh|K)b(;`"><field name="ATTR">val</field> <field name="OID">hue.0.Philips_hue.Wohnzimmer.on</field></block></value> <value name="B"><block type="logic_boolean" id="D)0|RKj98!%MeZ`z?wr!"><field name="BOOL">FALSE</field></block></value></block></value> <statement name="DO0"><block type="control" id="#KH!GX5`L8c]KtMk5[E7"><mutation delay_input="false"></mutation> <field name="OID">hue.0.Philips_hue.Wohnzimmer.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="RI)w|7kc#[*[gS!tRq~7"><field name="BOOL">FALSE</field></block></value> <next><block type="control" id="oLewyKca6^Rln/6z9+)c"><mutation delay_input="true"></mutation> <field name="OID">javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"><block type="math_number" id="tI*~lH(fY3GD~~e3pVa9"><field name="NUM">0</field></block></value> <next><block type="debug" id="BfDBxco;9:s,Ew^pm/:,"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="o3h!E{I3/(%S)t2!q+n~"><field name="TEXT">ausgeschaltet</field></shadow></value></block></next></block></next></block></statement></block></statement> <next><block type="comment" id="*6gthyp7O:bol4`B1bz}"><field name="COMMENT">an</field> <next><block type="on_ext" id="9@9h8pC.4{-.Oy6fMBXS"><mutation items="2"></mutation> <field name="CONDITION">any</field> <value name="OID0"><shadow type="field_oid" id="DpNL@aiQj#dwe9v!rWDM"><field name="oid">hm-rpc.1.OEQ1051399.2.PRESS_SHORT</field></shadow></value> <value name="OID1"><shadow type="field_oid" id="!mL0w%2oP5LqxZ.jzKl}"><field name="oid">hm-rpc.1.OEQ1051399.2.PRESS_LONG</field></shadow></value> <statement name="STATEMENT"><block type="controls_if" id=",sEajGb_;;b*hRd@o|^p"><mutation else="1"></mutation> <value name="IF0"><block type="logic_compare" id="t8JUFF,To?#-^eFl3HZy"><field name="OP">EQ</field> <value name="A"><block type="get_value" id=".kUxvA`)xCpP,Vp/+2o/"><field name="ATTR">val</field> <field name="OID">hue.0.Philips_hue.Wohnzimmer.on</field></block></value> <value name="B"><block type="logic_boolean" id="FuuD_z#gC.,Gxw).0aHI"><field name="BOOL">TRUE</field></block></value></block></value> <statement name="DO0"><block type="control" id="{(U[)dAHbS`Z!uCBC23b"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.System.ioBroker.HueWohnzimmer.Hue_Scenen_Zaehler</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_ternary" id="{ZB!/8^SR[lB.lRu/1fJ"><value name="IF"><block type="logic_compare" id="/-Q}VT(lf|05!QKP(T)m"><field name="OP">LT</field> <value name="A"><block type="math_arithmetic" id="%B4z:dHunh^_2zKUg?)4"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="+y;@dvAz);ok)6s9YzIQ"><field name="NUM">1</field></shadow> <block type="get_value" id="b^}ZNhoUTAarO!EN?8b8"><field name="ATTR">val</field> <field name="OID">javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler</field></block></value> <value name="B"><shadow type="math_number" id="(qN-:spUi~Q.=6S!_25-"><field name="NUM">1</field></shadow> <block type="math_number" id="[QRD/fr3{io#}h2l_;gF"><field name="NUM">1</field></block></value></block></value> <value name="B"><block type="math_number" id="WZgEN{ODQEp@iXHovP8g"><field name="NUM">5</field></block></value></block></value> <value name="THEN"><block type="math_arithmetic" id="V7YE`sM~BdlHBl8Ew]Rc"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="+y;@dvAz);ok)6s9YzIQ"><field name="NUM">1</field></shadow> <block type="get_value" id="u^A4*!zfKsVVX~YmtQPu"><field name="ATTR">val</field> <field name="OID">javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler</field></block></value> <value name="B"><shadow type="math_number" id="Tr#E3-9EaICQ~#i#+W=."><field name="NUM">1</field></shadow> <block type="math_number" id="w|XUQ4[dE}5YAP0]u9dS"><field name="NUM">1</field></block></value></block></value> <value name="ELSE"><block type="math_number" id="ehlGVX{)yc!-}=WF9%Xf"><field name="NUM">0</field></block></value></block></value> <next><block type="debug" id=";p/@gKIGW.Eh,3fGw-M7"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="Ws5Ka2?SbnALDK(:~vx;"><field name="TEXT">wohnzimmer on wahr timerläuft los</field></shadow></value> <next><block type="timeouts_cleartimeout" id="?a@D6t@cZ+|V}pwByP+Q"><field name="NAME">timeouthuescenes</field> <next><block type="timeouts_settimeout" id=".N}x~bl0UC-)LG=Z/+ee"><field name="NAME">timeouthuescenes</field> <field name="DELAY">2</field> <field name="UNIT">sec</field> <statement name="STATEMENT"><block type="controls_if" id="|J3pLhj}?MD_XKAV4NHM"><value name="IF0"><block type="logic_compare" id="{-;2FUHIdsgIZH%~tAj."><field name="OP">EQ</field> <value name="A"><block type="get_value" id="M%ddj:;eEGXdPX6Vc-H["><field name="ATTR">val</field> <field name="OID">javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler</field></block></value> <value name="B"><block type="math_number" id="so5A1`H/P]g~nq6O_?KK"><field name="NUM">0</field></block></value></block></value> <statement name="DO0"><block type="control" id="%P.~d4P4G;23B)i2du@l"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Hue_Scenes.Konzentrieren.rtxwYnLBieIPFIZ</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="zB(}MMa1/{YA.(Q:[1mZ"><field name="BOOL">TRUE</field></block></value></block></statement> <next><block type="controls_if" id="},brDG+zu=CGv`?(+T~Z"><value name="IF0"><block type="logic_compare" id="v:c+TwiVzaHJaPeZ%Mto"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="k`2`Jv{hv]_:`!dt`G0|"><field name="ATTR">val</field> <field name="OID">javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler</field></block></value> <value name="B"><block type="math_number" id="oVr_`}m?BkR62Q5f{oGA"><field name="NUM">1</field></block></value></block></value> <statement name="DO0"><block type="control" id="rTv!)d8Y{StAx+/}N.e~"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Hue_Scenes.Hell.dtC8pvCpkNt4Uaj</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="L34df~*h3jp2U54AlbhX"><field name="BOOL">TRUE</field></block></value></block></statement> <next><block type="controls_if" id="+^8C#7qJlWp*PlF;;i_b"><value name="IF0"><block type="logic_compare" id="deqdfc/8yeKJOLyl2hCr"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="bi,4-.4Be2uDss{EJIK:"><field name="ATTR">val</field> <field name="OID">javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler</field></block></value> <value name="B"><block type="math_number" id="UFN;XlW;VHZ1^nrB.bq;"><field name="NUM">2</field></block></value></block></value> <statement name="DO0"><block type="control" id="HE@C3?6U9yY(|PA~c2-U"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Hue_Scenes.Fernsehen1.eMMSrfClsvVa2Rg</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="RwYC;,85m4t*]`gBxjND"><field name="BOOL">TRUE</field></block></value></block></statement> <next><block type="controls_if" id="(*.BthYk_8KuRc]Nbr]U"><value name="IF0"><block type="logic_compare" id="eZ]X3W6=K(DWi9i!g;a;"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="xN@hr6zC@6Mo|Mw2iT`T"><field name="ATTR">val</field> <field name="OID">javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler</field></block></value> <value name="B"><block type="math_number" id="VHSz+QjrMavTGpGnUd#."><field name="NUM">3</field></block></value></block></value> <statement name="DO0"><block type="control" id="cjK6aaS*]E`W/,FfQs(:"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Hue_Scenes.Gedimmt.e6mh-QjpcFlDBcG</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id=";mH5=hg!9{f7BB4pWOn;"><field name="BOOL">TRUE</field></block></value></block></statement> <next><block type="controls_if" id="#dA}F^TUh6s|ou{a?{G9"><value name="IF0"><block type="logic_compare" id="tK#8_7b_f:e`hb*F1]%V"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="RIk8Z?zAEI0fzDA([@S4"><field name="ATTR">val</field> <field name="OID">javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler</field></block></value> <value name="B"><block type="math_number" id="+3twP(,Cj8@o07UFFkr:"><field name="NUM">4</field></block></value></block></value> <statement name="DO0"><block type="control" id="7aLqBT8X}6i55QxrQRx7"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Hue_Scenes.Nachtlicht.iMuVfBlotyoVyBt</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="Nst[4B}`rb?MIZA]f[%v"><field name="BOOL">TRUE</field></block></value></block></statement> <next><block type="debug" id="?0DcuP0m@f}n!Q`V6;uU"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="M^HGq7(VkY:mLic+?~m3"><field name="TEXT">wohnzimmer on wahr timer triggert</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement> <statement name="ELSE"><block type="controls_if" id="6HEaXm/9WBY-j_*B3q!w"><value name="IF0"><block type="logic_operation" id="_qp%C^3HR!7y7f=sv8q|"><field name="OP">OR</field> <value name="A"><block type="logic_compare" id="QJG[-?gu5TG;G-+OpW{H"><field name="OP">LTE</field> <value name="A"><block type="get_value" id="j5Ylpk9`gRpWS`A3c8HD"><field name="ATTR">val</field> <field name="OID">hm-rpc.1.MEQ0393437.1.BRIGHTNESS</field></block></value> <value name="B"><block type="math_number" id="r#UX+JbZm1-5@rh`3ok:"><field name="NUM">155</field></block></value></block></value> <value name="B"><block type="logic_compare" id=")1F.QD]q7}RyB%pD_4u,"><field name="OP">LTE</field> <value name="A"><block type="get_value" id="]?#Rv#:jlbM_q`V@OVbt"><field name="ATTR">val</field> <field name="OID">hm-rpc.1.OEQ0270684.1.BRIGHTNESS</field></block></value> <value name="B"><block type="math_number" id="HYrhwq)Mb`VD.j:6s8uX"><field name="NUM">100</field></block></value></block></value></block></value> <statement name="DO0"><block type="controls_if" id="q#qD9M%5w,6=@#3BiFMV"><value name="IF0"><block type="time_compare_ex" id="mmzz}A)R;/R*YK,w8BzZ"><mutation end_time="false" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION"><</field> <value name="START_TIME"><shadow type="text" id="yG5K9aV|,pvwV}ggBvtJ"><field name="TEXT">19:30</field></shadow></value></block></value> <statement name="DO0"><block type="control" id="dTEXT#m5ncZnfzGyKmX)"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Hue_Scenes.Hell.dtC8pvCpkNt4Uaj</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="J3s8bq!D(,HwYdqL-FZU"><field name="BOOL">TRUE</field></block></value> <next><block type="control" id="54L!I06^3KUXTR9VCndC"><mutation delay_input="false"></mutation> <field name="OID">hue.0.Philips_hue.Wohnzimmer.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="%8pA%FZ:)Rj)t{RN*wj7"><field name="BOOL">TRUE</field></block></value> <next><block type="debug" id="e+o92[*p%MOexk!#0}ZV"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="0e{MnS04xT9ef(/JtEK*"><field name="TEXT">initial einschalten 2</field></shadow></value></block></next></block></next></block></statement> <next><block type="controls_if" id="-cfh;+OMN;?/Y{1)Ps,q"><value name="IF0"><block type="time_compare_ex" id="T:n2(%)/)oM.z#WA0HCO"><mutation end_time="false" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">></field> <value name="START_TIME"><shadow type="text" id="d%#1Ag/XmAsUaekPw(I4"><field name="TEXT">19:30</field></shadow></value></block></value> <statement name="DO0"><block type="control" id="g*fB`!uuJ)z)(a.W-Q{D"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Hue_Scenes.Fernsehen1.eMMSrfClsvVa2Rg</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="%k0:!mJx]#gb:FzJs7.`"><field name="BOOL">TRUE</field></block></value> <next><block type="control" id="Ma_=MIc7fxKxB04HK|`L"><mutation delay_input="false"></mutation> <field name="OID">hue.0.Philips_hue.Wohnzimmer.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="/qDSVRP{f/8w(ZvD{i%D"><field name="BOOL">TRUE</field></block></value> <next><block type="debug" id="YPD@e40Jyp{1Wu,X{:KV"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="]5%]1i8^XReJ?4FroZDg"><field name="TEXT">initial einschalten 2</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement> <next><block type="controls_if" id="L+{yag6G/SO;meQizln%"><value name="IF0"><block type="logic_operation" id="^LmFj3;Iod%1AUD+vh^M"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="Kz[`+SHH(4.l4.y,5D5V"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="[#~[pEmKeh`Fd=*R1u#+"><field name="ATTR">val</field> <field name="OID">javascript.0.Heizung.Heizplan.GlobaleParameter.Urlaub_Abwesend</field></block></value> <value name="B"><block type="logic_boolean" id="*c[V+4f_oN^W*f640h/6"><field name="BOOL">FALSE</field></block></value></block></value> <value name="B"><block type="logic_operation" id="?9l5(,m@hPxh2AR1p8|W"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="`d`Hk8@_`V3j8KK)6=+j"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="LUj#sOyqYwvb|kZ:A)lJ"><field name="ATTR">val</field> <field name="OID">hm-rpc.1.NEQ0153180.1.STATE</field></block></value> <value name="B"><block type="logic_boolean" id="WqB6Uwg#`c#Xz0ta6h,x"><field name="BOOL">FALSE</field></block></value></block></value> <value name="B"><block type="time_compare_ex" id="{E_/{|s[5YeW/i,Wa+E."><mutation end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"><shadow type="text" id="4pz)K_iud*e#P`][V_v:"><field name="TEXT">08:00</field></shadow></value> <value name="END_TIME"><shadow type="text" id="P=I3v!q%vLI_7Xu8doCQ"><field name="TEXT">21:30</field></shadow></value></block></value></block></value></block></value> <statement name="DO0"><block type="control" id="v2*)f*9[k*xHF+b8vLX3"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.NEQ0153180.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="H6K2}MnD2Or_V_*-pOx/"><field name="BOOL">TRUE</field></block></value></block></statement></block></next></block></statement></block></statement> <next><block type="comment" id="|fJX9c]cDljUFpdO!*s+"><field name="COMMENT">dimmen</field></block></next></block></next></block></next></block></next></block></xml>
var timeouthuescenes; // aus on({id: new RegExp('hm-rpc\\.1\\.OEQ1051399\\.1\\.PRESS_SHORT' + "|" + 'hm-rpc\\.1\\.OEQ1051399\\.1\\.PRESS_LONG'), change: "any"}, function (obj) { if (getState("hue.0.Philips_hue.Wohnzimmer.on").val != false) { setState("hue.0.Philips_hue.Wohnzimmer.on"/*Philips_hue.Wohnzimmer.on*/, false); setStateDelayed("javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler"/*Hue_Scenen_Zaehler_*/, 0, 1000, false); console.log('ausgeschaltet'); } }); // an on({id: new RegExp('hm-rpc\\.1\\.OEQ1051399\\.2\\.PRESS_SHORT' + "|" + 'hm-rpc\\.1\\.OEQ1051399\\.2\\.PRESS_LONG'), change: "any"}, function (obj) { if (getState("hue.0.Philips_hue.Wohnzimmer.on").val == true) { setState("javascript.0.System.ioBroker.HueWohnzimmer.Hue_Scenen_Zaehler"/*Hue_Scenen_Zaehler_*/, (getState("javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler").val + 1 < 5 ? getState("javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler").val + 1 : 0)); console.log('wohnzimmer on wahr timerläuft los'); (function () {if (timeouthuescenes) {clearTimeout(timeouthuescenes); timeouthuescenes = null;}})(); timeouthuescenes = setTimeout(function () { if (getState("javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler").val == 0) { setState("javascript.0.Hue_Scenes.Konzentrieren.rtxwYnLBieIPFIZ"/*Scene: Konzentrieren (Group: Wohnzimmer)*/, true); } if (getState("javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler").val == 1) { setState("javascript.0.Hue_Scenes.Hell.dtC8pvCpkNt4Uaj"/*Scene: Hell (Group: Wohnzimmer)*/, true); } if (getState("javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler").val == 2) { setState("javascript.0.Hue_Scenes.Fernsehen1.eMMSrfClsvVa2Rg"/*Scene: Fernsehen1 (Group: Wohnzimmer)*/, true); } if (getState("javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler").val == 3) { setState("javascript.0.Hue_Scenes.Gedimmt.e6mh-QjpcFlDBcG"/*Scene: Gedimmt (Group: Wohnzimmer)*/, true); } if (getState("javascript.0.System.ioBroker.Beleuchtung.HueWohnzimmer.Hue_Scenen_Zaehler").val == 4) { setState("javascript.0.Hue_Scenes.Nachtlicht.iMuVfBlotyoVyBt"/*Scene: Nachtlicht (Group: Wohnzimmer)*/, true); } console.log('wohnzimmer on wahr timer triggert'); }, 2000); } else { if (getState("hm-rpc.1.MEQ0393437.1.BRIGHTNESS").val <= 155 || getState("hm-rpc.1.OEQ0270684.1.BRIGHTNESS").val <= 100) { if (compareTime('19:30', null, "<", null)) { setState("javascript.0.Hue_Scenes.Hell.dtC8pvCpkNt4Uaj"/*Scene: Hell (Group: Wohnzimmer)*/, true); setState("hue.0.Philips_hue.Wohnzimmer.on"/*Philips_hue.Wohnzimmer.on*/, true); console.log('initial einschalten 2'); } if (compareTime('19:30', null, ">", null)) { setState("javascript.0.Hue_Scenes.Fernsehen1.eMMSrfClsvVa2Rg"/*Scene: Fernsehen1 (Group: Wohnzimmer)*/, true); setState("hue.0.Philips_hue.Wohnzimmer.on"/*Philips_hue.Wohnzimmer.on*/, true); console.log('initial einschalten 2'); } } if (getState("javascript.0.Heizung.Heizplan.GlobaleParameter.Urlaub_Abwesend").val == false && getState("hm-rpc.1.NEQ0153180.1.STATE").val == false && compareTime('08:00', '21:30', "between", null)) { setState("hm-rpc.1.NEQ0153180.1.STATE"/*MultimediaWohnzimmer Schaltaktor.STATE*/, true); } } });