NEWS
Warung im Skript
-
Hallo Zusammen
Kann mir jemand sagen wieso ich ein WARN bekomme?
Eigentlich macht das Skript was ich will.
Sind 2 LED Spripe mit RGBW die immer wider die Farbe wechseln.
Schönen Abend Stefan
-
@bumm sagte in Warung im Skript:
Hallo Zusammen
Kann mir jemand sagen wieso ich ein WARN bekomme?
Eigentlich macht das Skript was ich will.
Sind 2 LED Spripe mit RGBW die immer wider die Farbe wechseln.
Schönen Abend Stefan
Zeig mal das "richtige Log"
Text statt Zahlen ? -
code_text `javascript.0 2021-04-28 23:56:45.379 warn (18557) at processTimers (internal/timers.js:497:7) javascript.0 2021-04-28 23:56:45.379 warn (18557) at listOnTimeout (internal/timers.js:554:17) javascript.0 2021-04-28 23:56:45.379 warn (18557) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2073:34) javascript.0 2021-04-28 23:56:45.378 warn (18557) at Object.<anonymous> (script.js.common.LED_Glaswand.Effekt_1:10:7) javascript.0 2021-04-28 23:56:45.378 warn (18557) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20) javascript.0 2021-04-28 23:56:45.375 warn (18557) You are assigning a string to the state "shelly.0.SHRGBW2#0111DC#1.lights.blue" which expects a number. Please fix your code to use a number or change the state type to string. This warning mi javascript.0 2021-04-28 23:56:45.375 warn (18557) at processTimers (internal/timers.js:497:7) javascript.0 2021-04-28 23:56:45.375 warn (18557) at listOnTimeout (internal/timers.js:554:17) javascript.0 2021-04-28 23:56:45.375 warn (18557) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2073:34) javascript.0 2021-04-28 23:56:45.374 warn (18557) at Object.<anonymous> (script.js.common.LED_Glaswand.Effekt_1:9:7) javascript.0 2021-04-28 23:56:45.374 warn (18557) at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20) javascript.0 2021-04-28 23:56:45.371 warn (18557) You are assigning a string to the state "shelly.0.SHRGBW2#0111DC#1.lights.white" which expects a number. Please fix your code to use a number or change the state type to string. This warning m javascript.0 2021-04-28 23:56:45.341 warn (18557) at processTimers (internal/timers.js:497:7) javascript.0 2021-04-28 23:56:45.341 warn (18557) at listOnTimeout (internal/timers.js:556:17) javascript.0 2021-04-28 23:56:45.340 warn (18557) at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1485:29) javascript.0 2021-04-28 23:56:45.340 warn (18557) at Object.setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1427:20) javascript.0 2021-04-28 23:56:45.337 warn (18557) You are assigning a string to the state "shelly.0.SHRGBW2#0113F7#1.lights.blue" which expects a number. Please fix your code to use a number or change the state type to string. This warning mi javascript.0 2021-04-28 23:56:45.336 warn (18557) at processTimers (internal/timers.js:497:7)``
-
@bumm
Zahlen anstelle von Text verwenden und die Intervalle im sonst-Zweig der Abfrage stoppen. -
-
@bumm sagte: Ist das so gemeint?
Ja.