Jump to content

Sequential delays - best way?


picc02766

Recommended Posts

Posted

Hi, new to ISY99 and converting my lighting from Homeseer. So far I am finding ISY makes it easier to do the things I want with my lighting.

 

I have just been going thru my Homeseer "Events" and converting them to ISY programs.

 

I have a few Events (such as Sunset) that I want to turn on individual lights and scenes in sequence over a period of time.

 

I have simply created an ISY program using the "Wait" command between "Set" statements to create the desired delays (see the Code example) - is there a better way to accomplish this? Does this approach unnecessarily use processing resources? Rather than the one Program, should I break this up into several Programs for each of the time triggers?

 

Also, based on the little testing I've done so far, the Wait commands appear to run in sequence and are cumulative within the program. This differs from Homeseer where each item in the event can have an explicit ON and/or OFF delay associated with it.

 

Thanks!

Rob

 

If
       Time is Sunset  - 20 minutes

Then
       Set 'GreatRoom:Sconce' On
       Wait  5 minutes  (Random)
       Set 'GreatRoom:Peninsula KL-Pendan' 35%
       Set 'GreatRoom:Side Table Lamps' 25%
       Wait  5 minutes  (Random)
       Set Scene 'MasterBed:Table Lamps Scene' On
       Wait  5 minutes  (Random)
       Set Scene 'Global:All Ext. Coach Scene' On
       Send X10 'D6/On (3)'
       Wait  5 minutes  (Random)
       Set 'Porch:Xmas Icicle' On
       Wait  30 minutes 
       Set Scene 'Global:All Ext. Floods Scene' On
       Wait  1 hour 
       Set 'Flood:Driveway' Off

Else
  - No Actions - (To add one, press 'Action')

Posted

Hi Rob,

 

Welcome!

 

If you want the events to be in that sequence then the program you have is the best way to do it. And, you are not using more processing power than spitting it into more programs.

 

Waits are simply constructs that put the execution of a program (as a whole) in a queue to woken up after that period ends.

 

With kind regards,

Michel

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...