Easy Scripting Timer

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
jens_s
Posts: 23
Joined: 06 Apr 2019 11:14

Easy Scripting Timer

Post by jens_s »

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")
User avatar
aLiEnHeAd
Posts: 136
Joined: 02 Feb 2017 15:09

Re: Easy Scripting Timer

Post by aLiEnHeAd »

stopTimer("myTimer") stops your timer and the function will not be called
Post Reply