FrayAdjacent Posted March 18, 2015 Posted March 18, 2015 I did a little looking around and couldn't find the answer to this simple question. If I have a program that has a couple conditions, and a THEN statement that starts with a wait period before executing some other command... If the conditions become true, and the wait starts, then the conditions change to false, does the THEN statement stop running? IF condition 1 AND condition 2 THEN wait 5 minutes turn on device ELSE
LeeG Posted March 18, 2015 Posted March 18, 2015 Yes, if the Wait has not completed. The If Condition can be True or False, if the Wait (or Repeat) has not completed the Wait (or Repeat) is terminated and the clause (Then or Else based on If evaluation) restarted.
MWareman Posted March 18, 2015 Posted March 18, 2015 And if you don't want that behavior, just split it into two programs: Program1 IF condition 1 AND condition 2 THEN Program2 RunThen Program2 (disabled!) IF THEN wait 5 minutes turn on device
FrayAdjacent Posted March 18, 2015 Author Posted March 18, 2015 I'm doing some things with motion sensors and want to be sure they don't turn off lights after certain conditions are no longer met. Just wanted to verify the THEN (or ELSE) statement will stop running if the conditions are no longer met for a program (or are met for an ELSE statement). Thanks for the responses, guys!
LeeG Posted March 18, 2015 Posted March 18, 2015 The Motion Sensor does not have separate On/Off nodes. The Motion Sensor would be set to Sensing mode: checked and On Only mode. That way the Sensor node can turn a Scene On for quick responder reaction and use a Program(s) to turn the responder Off.
Recommended Posts