Jump to content

Simple program question


grossmd

Recommended Posts

I have three garage doors, each with an I/o device attached. I wrote a simple program if: sensor 1 or sensor 2 or sensor 3 is on Then: turn on appliance module, wait one minute, turn appliance module off. The program turns the module on but not off. The module never fails in any other program/scene so I don't think its a communication issue. Further, if I change the program to read then: turn on appliance module and run program 2 "then" where program 2 then states " wait one minute then turn off appliance module" it works every time. Any ideas? thanks.

Link to comment

One of the Status conditions being checked is changing state before the Wait expires. The Wait and Repeat statements can be interrupted by a change in Status the If is checking. The solution is what you implemented, put the Wait in the second Program where it will not be interrupted. The UDI Wiki covers the operation of the Wait and Repeat and that they can be interrupted.

 

It is always good to post the actual Program. Right click the Program name, select Copy to Clipboard. You have already confirmed the problem and solution by using two Programs.

Link to comment

Archived

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


×
×
  • Create New...