Hello,
i would like to switch some lights after a few seconds in a script, but i always have any error in the Timer function.
These two possibilities did i find in EasyScripting
1.: Error: Unexpected Token )
setTimer("myTimer", () => {vdev("Scenes_37").on()}, 50)
stopTimer("myTimer")
2. without Error, but doesn't work
setTimer("myTimer", function() {vdev("Scenes_31").on()}, 20)
stopTimer("myTimer")
Easy Scripting Timer
Re: Easy Scripting Timer
stopTimer("myTimer") stops your timer and the function will not be called