Very Short Delay (1/2 second or less) within an Action Group

Posted on
Sun Jan 19, 2020 2:26 pm
eric offline
Posts: 59
Joined: Dec 22, 2014

Very Short Delay (1/2 second or less) within an Action Group

I want to turn on a relay at the beginning of an action group and then 1/4 or 1/2 second later turn it off.

The minimum time increment throughout Indigo seems to be 1 whole second and this is too long.

If there were a way to call up a simple delay in milliseconds between the steps of an action group this would probably do what I need to, between the on and the off commands, but I can't see to find a way.

Any tips for this?

And i know of the availability of momentary relay hardware (and this is plan B) but I am trying to keep this hardware for other reasons and accomplish this is software.

Thanks.

Posted on
Sun Jan 19, 2020 3:26 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Very Short Delay (1/2 second or less) within an Action G

You'll need to use a Python script:

Code: Select all
import time
time.sleep(.5)
#perform actions here, like executing an action group or something

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Jan 19, 2020 6:19 pm
eric offline
Posts: 59
Joined: Dec 22, 2014

Re: Very Short Delay (1/2 second or less) within an Action G

Thanks.

If I wanted to include this as one step of an action group, how would I do that, such that the execution of the action waits until the delay is over before continuing?

Posted on
Sun Jan 19, 2020 7:37 pm
FlyingDiver offline
User avatar
Posts: 7211
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Very Short Delay (1/2 second or less) within an Action G

eric wrote:
If I wanted to include this as one step of an action group, how would I do that, such that the execution of the action waits until the delay is over before continuing?


You can't. All actions in an action group will be performed simultaneously, unless delayed using the time specification in the action group. More or less.

The easiest thing to do is just use a script for all of it, turning the device on and off in the script, with the delay between. See https://wiki.indigodomo.com/doku.php?id ... g_tutorial

Code: Select all
import time
indigo.device.turnOn(theRelayID)
time.sleep(.25)
indigo.device.turnOff(theRelayID)


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest