Page 1 of 1

Mastering the "at" command

Posted: Saturday 18 July 2020 19:37
by Number8
Hello
I'm currently running dzvents 3.0.9. I'm wondering whether the command item.switchOn().at("18:35") and item.switchOff().at("18:36") will stay active until item.cancelQueuedCommands() is sent. If not, how should it be handled?
Thank you

Re: Mastering the "at" command  [Solved]

Posted: Saturday 18 July 2020 20:54
by waaren
Number8 wrote: Saturday 18 July 2020 19:37 Hello
I'm currently running dzvents 3.0.9. I'm wondering whether the command item.switchOn().at("18:35") and item.switchOff().at("18:36") will stay active until item.cancelQueuedCommands() is sent. If not, how should it be handled?
Thank you
Underlying the at method is translated to an afterSec method with the calculated number of seconds. So behavior is the same and it stays active until cancelled explicitly (using the cancelQueuedCommand() or -implicitly (by a domoticz restart)

Re: Mastering the "at" command

Posted: Saturday 18 July 2020 20:57
by Number8
Thanks waaren