Jump to content

Need Code to Turn Device Off after Predetermined Period


gwarthur

Recommended Posts

Posted

I'm sure the following question has been asked & answered many times before, but I was unable to find an example on the Forum. Perhaps someone can provide a link?

 

There are several Insteon devices - such as the one that controls light in my daughter's closet or the one that controls the exhaust fan in the bathroom - that I would like to program to turn off after a predefined period. The task is more complex than just a simple "If on, wait ten minutes and turn off" command series because what if the device is cycled on and off multiple times in a short period? Wouldn't this potentially create loops within loops? I'm sure there is a simple way to accomplish this function but I am not a sufficiently experienced ISY-99 code writer to figure it out. Suggestions please? -GWarthur

Posted

gwarthur

 

Code up your example and try it. The Wait will be canceled and the Program triggered again when the Status changes. Turning the device Off then On again within the Wait period has the effect of starting the Wait over again.

 

Lee

Posted

I'll try it. Thanks.

 

gwarthur

 

Code up your example and try it. The Wait will be canceled and the Program triggered again when the Status changes. Turning the device Off then On again within the Wait period has the effect of starting the Wait over again.

 

Lee

Guest
This topic is now closed to further replies.

×
×
  • Create New...