djones1415 Posted January 19, 2013 Posted January 19, 2013 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
oberkc Posted January 19, 2013 Posted January 19, 2013 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.
Recommended Posts