Code: Select all
-- switch on for 2 minutes after a randomized delay of 1-10 minutes
device.switchOff().withinMin(10).forMin(2)Moderator: leecollings
Code: Select all
-- switch on for 2 minutes after a randomized delay of 1-10 minutes
device.switchOff().withinMin(10).forMin(2)Probably a language thingy.mash47 wrote: Saturday 07 December 2019 12:18 Here's an example from the wiki ..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.Code: Select all
-- switch on for 2 minutes after a randomized delay of 1-10 minutes device.switchOff().withinMin(10).forMin(2)
as that it will be switched off somewhere between 1 and 10 minutes and that is indeed what this method does.after a randomized delay of 1-10 minutes
Users browsing this forum: Bing [Bot] and 1 guest