Jump to content

Why WAIT?


djones1415

Recommended Posts

I notice that program examples provided by UD in the Wiki include a WAIT for 2 seconds before doing certain things (or after?). For example,

If
       Program 'Any "Family Evening Scene" Devices On' is True

Then
       Wait  2 seconds
       Set Scene 'KeypadLinc LEDs / Family Evening Scene LED' On

Else
       Wait  2 seconds
       Set Scene 'KeypadLinc LEDs / Family Evening Scene LED' Off

 

I have about 50 similar programs without the WAIT, and before I go through and add the WAIT, I'm curious as to its purpose / need. Is there something magic about the 2 seconds? 1? 3? Giving time for traffic to clear? I guess I'll go through and add all of the lines, but just curious...

 

Thanks

Link to comment

Typically, it is as you suspected. Sometimes folks add waits to give things time to react. My experience is that this is only helpful with X-10 commands. I do not use waits between insteon commands. I would definitely NOT use a wait statement to start. if yours works without wait statements, then I would not worry about it.

Link to comment

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.3k
×
×
  • Create New...