NEWS
*gelöst* Shelly / Tasmota LED-Dimmer per Blockly
-
Hi Zs,
ich versuche eine Aquariumbeleuchtung per Blockly zu dimmen.
Es sollen drei Farben an einem Shelly (als weis konfiguriert, jede Farbe ein Kanal) im Abstand von etwa 20 Minuten langsam Morgens hoch dimmen und Abends langsam runter dimmen (erst blau, dann rot und dann weis Morgens und Abends unmgekehrt. Der Cron steht nur zum Test auf 17 Uhr. Der Shelly funktioniert. Es muss nor vorher der Kanal an sich (also Blau) eingeschaltet werden bevor gedimmt werden kannHier ist mein Ansatz:
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="Intervall">Intervall</variable> </variables> <block type="schedule" id="+$=`dtrHHNx,2@1F{5Ko" x="-1088" y="-437"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"17:40"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="|pg{48[uMZ~d+[^$NcBL"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="2g#/}eo]`q.x30hJ0dVF"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="DPu9:ZErz7*@$JPn7-ID"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="eVDhM6womq]}AVp!]9oF"> <field name="NUM">1</field> </block> </value> <next> <block type="timeouts_setinterval" id="||nx?p9s`g:b^G:%^K-/"> <field name="NAME">Intervall</field> <field name="INTERVAL">500</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="controls_if" id="`r3J6B98q3n[-V+W_448"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="{|%r#gvfL@x[s$R^t7GV"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="gHu;/QEk*b*}Ezfp6Uxq"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> </block> </value> <value name="B"> <block type="math_number" id="**1x+)/[5JrT7jWWCSpB"> <field name="NUM">101</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="n#:Hx6?::L@%3Ka#)2n5"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="ltsp%YwgN/pQu7W#w|k["> <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="4z.^!486bxG;38W=a/T0"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> </block> </value> <value name="B"> <shadow type="math_number" id="/5@~j7QF*]EHD{[479Nm"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="hRo@cfm~{Ycti.EM+aBW"> <field name="NAME">Intervall</field> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </xml>
Das Skript schaltet zwar ein aber ruft hunderte Fehler Hervor. Hat jemand eine Idee was falsch ist oder wie man es lösen könnte?
javascript.0 2019-06-12 17:41:05.780 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:05.780 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:05.780 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:05.780 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:05.780 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:05.780 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:05.780 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:05.277 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:05.277 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:05.277 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:05.277 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:05.277 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:05.277 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:05.277 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:04.775 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:04.775 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:04.775 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:04.775 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:04.775 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:04.775 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:04.775 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:04.274 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:04.274 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:04.274 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:04.274 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:04.274 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:04.274 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:04.274 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:03.772 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:03.772 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:03.772 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:03.772 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:03.772 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:03.772 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:03.772 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:03.416 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:03.416 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:03.416 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:03.416 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:03.416 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:03.416 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:03.415 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:02.769 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:02.769 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:02.769 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:02.769 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:02.769 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:02.769 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:02.769 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:02.267 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:02.267 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:02.267 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:02.267 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:02.267 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:02.267 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:02.267 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:01.766 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:01.766 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:01.766 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:01.766 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:01.766 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:01.766 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:01.766 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:00.761 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:00.761 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:00.761 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:00.761 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:00.761 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:00.761 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:00.758 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:41:00.257 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:41:00.257 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:41:00.257 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:41:00.257 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:41:00.257 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:41:00.256 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:41:00.256 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:59.755 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:59.755 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:59.755 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:59.755 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:59.755 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:59.754 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:59.754 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:59.253 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:59.253 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:59.252 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:59.252 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:59.252 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:59.252 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:59.252 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:58.751 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:58.751 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:58.751 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:58.750 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:58.750 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:58.750 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:58.750 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:58.249 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:58.249 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:58.249 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:58.249 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:58.249 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:58.249 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:58.248 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:57.748 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:57.748 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:57.748 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:57.748 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:57.748 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:57.748 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:57.747 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:57.246 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:57.246 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:57.246 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:57.246 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:57.246 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:57.246 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:57.245 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:56.745 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:56.745 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:56.745 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:56.745 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:56.745 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:56.745 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:56.744 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:56.243 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:56.243 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:56.243 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:56.243 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:56.243 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:56.243 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:56.242 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:55.741 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:55.741 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:55.741 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:55.741 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:55.741 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:55.741 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:55.740 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:55.239 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:55.239 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:55.239 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:55.239 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:55.239 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:55.239 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:55.238 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:54.737 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:54.737 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:54.737 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:54.736 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:54.736 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:54.736 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:54.736 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:54.235 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:54.235 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:54.235 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:54.234 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:54.234 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:54.234 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:54.234 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:53.733 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:53.733 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:53.732 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:53.732 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:53.732 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:53.732 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:53.732 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:53.231 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:53.231 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:53.230 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:53.230 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:53.230 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:53.230 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:53.230 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:52.728 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:52.728 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:52.728 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:52.728 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:52.728 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:52.728 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:52.727 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:52.227 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:52.227 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:52.227 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:52.226 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:52.226 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:52.226 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:52.226 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:51.725 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:51.725 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:51.725 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:51.725 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:51.725 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:51.724 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:51.724 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:51.223 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:51.223 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:51.223 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:51.223 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:51.223 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:51.223 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:51.222 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:50.720 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:50.720 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:50.720 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:50.720 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:50.720 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:50.720 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:50.719 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:50.219 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:50.218 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:50.218 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:50.218 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:50.218 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:50.218 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:50.218 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:49.716 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:49.716 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:49.716 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:49.716 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34) javascript.0 2019-06-12 17:40:49.716 warn at Object.<anonymous> (script.js.Schalter.AquariumLEDs:9:7) javascript.0 2019-06-12 17:40:49.716 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1275:20) javascript.0 2019-06-12 17:40:49.715 warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean or change the state type to number. This warning might javascript.0 2019-06-12 17:40:49.214 warn at Timer.listOnTimeout (timers.js:290:5) javascript.0 2019-06-12 17:40:49.214 warn at tryOnTimeout (timers.js:323:5) javascript.0 2019-06-12 17:40:49.214 warn at ontimeout (timers.js:511:34) javascript.0 2019-06-12 17:40:49.214 warn at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1854:34)
-
@SoerenKaiser99
In der Warnung steht doch alles.warn You are assigning a number to the state "shelly.0.SHRGBW2#661CD1#1.white1.Switch" which expects a boolean. Please fix your code to use a boolean
-
@paul53
lieben dank, Hab den Wald vor lauter Bäumen nicht gesehen.
Kannst du mir noch kurz helfen mit dem richtigen Block?
muss ich alle Zahlen ersetzen durch Text?-Blöcke oder bleibt bei wert von ID die 101 in dem Methematik-Block? -
@SoerenKaiser99
Du hast die falschen Datenpunkt-IDs zugeordnet:
Im 2. steuere: Switch --> brightness
In der Intervall-Schleife steuere: Switch --> brightness -
@paul53 Ich danke dir! Sollte sowas nicht mitten in der Nacht versuchen... war mir sicher das es eigentlich richtig ist nur die ID`s waren falsch. jetzt läuft es bis 100 durch allerdings aktualisiert das skript dann ständig 100 als Wert.
Hast du noch einen Tipp wie ich es bei erreichen der 100 als Wert abfangen kann? -
@SoerenKaiser99 vergiss die Frage. 100 muss es als kleiner als Abfrage sein nicht 101.
-
Hier ist mein fertiges Skript zum Dimmen der 3 Kanäle:
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="Intervall2">Intervall2</variable> <variable type="undefined" id="Intervall1">Intervall1</variable> <variable type="undefined" id="Intervall3">Intervall3</variable> <variable type="undefined" id="Intervall4">Intervall4</variable> <variable type="undefined" id="Intervall5">Intervall5</variable> <variable type="undefined" id="Intervall6">Intervall6</variable> </variables> <block type="schedule" id="dFsy~.H~Vz|c#~[1Ar~K" x="-1287" y="-362"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"06:30"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="|pg{48[uMZ~d+[^$NcBL"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="2g#/}eo]`q.x30hJ0dVF"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="DPu9:ZErz7*@$JPn7-ID"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="eVDhM6womq]}AVp!]9oF"> <field name="NUM">1</field> </block> </value> <next> <block type="comment" id="8Jp9u+k~BeHuSCV4^]#F"> <field name="COMMENT">6 Sekunden Intervall bei 100 als Max Wert bedeutet dimmen in 10 Minuten</field> <next> <block type="comment" id="G@S2)ldsSk2/:c!fwX=q"> <field name="COMMENT">500ms sind ein guter Wert für zügiges hoch/runter Dimmen</field> <next> <block type="timeouts_setinterval" id="||nx?p9s`g:b^G:%^K-/"> <field name="NAME">Intervall1</field> <field name="INTERVAL">6</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="`r3J6B98q3n[-V+W_448"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="{|%r#gvfL@x[s$R^t7GV"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="gHu;/QEk*b*}Ezfp6Uxq"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> </block> </value> <value name="B"> <block type="math_number" id="**1x+)/[5JrT7jWWCSpB"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="n#:Hx6?::L@%3Ka#)2n5"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="ltsp%YwgN/pQu7W#w|k["> <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="4z.^!486bxG;38W=a/T0"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> </block> </value> <value name="B"> <shadow type="math_number" id="/5@~j7QF*]EHD{[479Nm"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="hRo@cfm~{Ycti.EM+aBW"> <field name="NAME">Intervall1</field> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="schedule" id="eZr:0^RW:Zn7!DPz+8:P"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"07:00"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="r@FXtSGbBnOTR`V1ZOe("> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="BfY1_d!OE,hWK^%nwU|8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="nmEW$Ntf[mbtb}5TMFuq"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="ee2N/{`R!xN-I0#3OudZ"> <field name="NUM">1</field> </block> </value> <next> <block type="timeouts_setinterval" id="S[Mt::{C/-4YR).94/ic"> <field name="NAME">Intervall2</field> <field name="INTERVAL">6</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#661CD1#1.white2.brightness</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#661CD1#1.white2.brightness</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#661CD1#1.white2.brightness</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> </block> </next> </block> </next> </block> </statement> <next> <block type="schedule" id="ME~y0:KCaq+;cwiC][JG"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"07:40"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="!C(cJS$!zs(CM7.xu~Ra"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="w.Q5x?`%34|ZOJ_^@:K%"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="f^1@e6$a-J#KN=1.ip.e"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="K{4}W^-4yTXzi2=R@ZE["> <field name="NUM">1</field> </block> </value> <next> <block type="timeouts_setinterval" id="xbE2m+~lpb$4E?s$SLtD"> <field name="NAME">Intervall3</field> <field name="INTERVAL">12</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="YZw~Y-=%:Qoe|EZ@U2tB"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="bGKIi)g|#9|.a|@Z1[S%"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="qwkxMys=Xp^3uzCe![[["> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.brightness</field> </block> </value> <value name="B"> <block type="math_number" id=";sr@urwI{T55?A5@%Oiv"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=":n9?3N26J9WB$_wl{nQf"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="O~v.cx{d(7E8!H=xE~L:"> <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="BoQ;6TM|`=:0E{p/Jq;C"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.brightness</field> </block> </value> <value name="B"> <shadow type="math_number" id="CKc%hoSh!$in_3x:B`9r"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="}#q?lx?}U_2N%/RCh[)D"> <field name="NAME">Intervall4</field> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <next> <block type="schedule" id="j9)c@b,+kx]mo2:7_!MF"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"19:15"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="ScZ*4DDK5Czp(@7v#]`E"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="_q2HADF%6hru9zfMc,E7"> <field name="NUM">100</field> </block> </value> <next> <block type="timeouts_setinterval" id="9$[07FN{U/J`k;RPF{$z"> <field name="NAME">Intervall4</field> <field name="INTERVAL">12</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="8_bL=eN3_FFKWwd}=EqK"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="y1lGg2a]xcS$7$@-_F{2"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="FA,pyxfxF;pr32IHx7E]"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.brightness</field> </block> </value> <value name="B"> <block type="math_number" id="Md4_{-0W`w2l~@6fBL;c"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="c1Wz[9h}.VTc7VwKq$(g"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="^A#kr%{vqm0*dvyvg01]"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="tSa(@Me46JE#QlwQL3v;"> <field name="NUM">1</field> </shadow> <block type="get_value" id="6%4Ok~HC]Z](L(R;btWo"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.brightness</field> </block> </value> <value name="B"> <shadow type="math_number" id="`#Zh~mY@9HV$#+/}]8ep"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="d(Xw,32AQY(Lo@PTb/O^"> <field name="NAME">Intervall4</field> </block> </statement> </block> </statement> </block> </next> </block> </statement> <next> <block type="schedule" id="=~:HF8C:eGk?4=OylE)c"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"20:15"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="qH_8P:xfQ6w]u~)}xGg_"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="o6O09:@BAFGZ8T41(nnT"> <field name="NUM">100</field> </block> </value> <next> <block type="timeouts_setinterval" id="w;eM:6b}Yok6SZS+hNIY"> <field name="NAME">Intervall5</field> <field name="INTERVAL">10</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="E9qK$hsKay?*8R_#Q$e2"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="ed%Zq1i;9Yi`Ob-LK0V;"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="0lN[GGOU,(KZkHtZC2wV"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white2.brightness</field> </block> </value> <value name="B"> <block type="math_number" id="kdSF=N%Oba8($[nn/,i2"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="XQJoZ;f04}X[C,?HAE#?"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="K2j-}@3hC=/5!$n,@Y67"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="tSa(@Me46JE#QlwQL3v;"> <field name="NUM">1</field> </shadow> <block type="get_value" id="9fImv#m(Lb=[5dX`oiKJ"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white2.brightness</field> </block> </value> <value name="B"> <shadow type="math_number" id="W@Cs-Bh[N!/qxnbm$S|i"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="Jg6,M^vP^t[kbP8Uo0:p"> <field name="NAME">Intervall5</field> </block> </statement> </block> </statement> </block> </next> </block> </statement> <next> <block type="schedule" id="]$xU$W5=AECTa_p:7s9W"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"21:00"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="njAlWi|m@0IYDkQbC%J."> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="#MwO-_2-PS6~X5x3@Ql-"> <field name="NUM">100</field> </block> </value> <next> <block type="timeouts_setinterval" id="1bZjJHW!+173vrO{$M6L"> <field name="NAME">Intervall6</field> <field name="INTERVAL">8</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="``L}W:~+KvN8dFqU_]0*"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="rpM8_F1AHMN2M#qkm@!^"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="dqNNInr%fy)D4#xbG,=w"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> </block> </value> <value name="B"> <block type="math_number" id="6!1[k^qexun$dstj[*r!"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="#i+OjuXW~}^dmR~-CVAJ"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="[6QYJ$T6#{MT!,phdnko"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="tSa(@Me46JE#QlwQL3v;"> <field name="NUM">1</field> </shadow> <block type="get_value" id="SOq6d`HLz)MP3jpt.Rt+"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.brightness</field> </block> </value> <value name="B"> <shadow type="math_number" id="c?w^OYdW8sV/vSQ{eFyN"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="};D6b=0c5P*_-]J8xv-F"> <field name="NAME">Intervall6</field> </block> </statement> </block> </statement> </block> </next> </block> </statement> <next> <block type="schedule" id="NP|}@;USn!yFW~cLwby@"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"21:15"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="fswGL0zAF]#9|:M1fUl}"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white1.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="=b[;rqb1eH4})d.pg0/#"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="eM)p@Q$THzP~R7nm)]iT"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white2.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="b6FP0ud*1@KtydAd0rlR"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="?v$cv?i`1)o[kS.ij7=I"> <mutation delay_input="false"></mutation> <field name="OID">shelly.0.SHRGBW2#661CD1#1.white0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="%.YEC#MSh[oK|FRaph78"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>