Page 1 of 1
dzVents randomised times
Posted: Saturday 07 December 2019 12:18
by mash47
Here's an example from the wiki ..
Code: Select all
-- switch on for 2 minutes after a randomized delay of 1-10 minutes
device.switchOff().withinMin(10).forMin(2)
Are randomised actions different in dzVents and device/scene timers? The wiki states that the random action time is
after the set time whereas the device/scene random action time is +/- around the set time.
Re: dzVents randomised times [Solved]
Posted: Monday 16 December 2019 22:44
by waaren
mash47 wrote: ↑Saturday 07 December 2019 12:18
Here's an example from the wiki ..
Code: Select all
-- switch on for 2 minutes after a randomized delay of 1-10 minutes
device.switchOff().withinMin(10).forMin(2)
Are randomised actions different in dzVents and device/scene timers? The wiki states that the random action time is
after the set time whereas the device/scene random action time is +/- around the set time.
Probably a language thingy.
I read
after a randomized delay of 1-10 minutes
as that it will be switched off somewhere between 1 and 10 minutes and that is indeed what this method does.
Re: dzVents randomised times
Posted: Tuesday 17 December 2019 7:21
by dannybloe
I'd say the comment should be something like: -- switch off for 2 minutes after a randomized period of 1-10s has passed.
And the delay is before the actual switching.