delay SceneOn

Posted on
Sat Dec 22, 2018 12:06 pm
jltnol offline
Posts: 994
Joined: Oct 15, 2013

delay SceneOn

So I found this deal example, and this makes perfect sense..
Code: Select all
indigo.device.toggle(123, delay=10, duration=300)

But following the same example, this doesn't.
Code: Select all
indigo.device.turnOn(1491586774), indigo.insteon.sendSceneOn(58, delay=4)


I'm guessing this has to do with the difference between delaying devices, and delaying scenes...

So is there a way to delay the SceneOn part of this script line without delaying the turnOn part?

Posted on
Mon Dec 24, 2018 12:28 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
Joined: Mar 19, 2008
Location: Austin, Texas

Re: delay SceneOn

Duration is how long the state is maintained before it's reversed. Delay is how long before the command is executed.

So, the first example says (assuming that the device is off):
  1. wait 10 seconds
  2. turn on the device
  3. wait 300 seconds
  4. turn off the device

The second example is syntactically incorrect since it's two separate commands. The first one is just a normal turn on. The second says wait 4 seconds then send the scene on command.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Dec 25, 2018 7:25 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: delay SceneOn

Unfortunately, the indigo.insteon.sendSceneOn() function (unlike toggle and turnOn) does not accept a delay or duration parameter. You would have to implement that in your script using a timer.

Image

Posted on
Wed Dec 26, 2018 8:43 am
jltnol offline
Posts: 994
Joined: Oct 15, 2013

Re: delay SceneOn

Thanks guys

I understood the difference between duration and delay, but suspected that the SceneOn wasn't capable of a delay.

I'm pretty sure I can find a way around this... there is almost ALWASY a work around.. :)

Thank you both for your help.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests