Jump to content

Using 2 controllers with wait times.


TomL

Recommended Posts

Posted

I have been trying to figure out how a particular scenario would play out.   If There is a door sensor and a motion sensor controlling a light and you have 2 programs, one in which the MS turns on the light waits 10 mins turns off light.  Second one the door switch turns on the same light waits 5 mins and turns light off.  If say the door is opened and light turns on and then the MS is tripped within that 5 min window, what happens?  Does the light stay on for the initial 5 mins and then an additional 10?  Does the MS wait time cancel the DS wait time and start the 10 min wait?  Or is there something else that happens?

 

Thanks

Tom

Posted (edited)

A suggestion is to have 3 programs: 2 programs manage capturing the "If sensor is switched on" for each sensor... and 1 disabled "sub routine" program that handles the wait and turn off the light:

  1. Catch "is switched on" from MS, then run disabled program 3 to count down and turn off light
  2. Catch "is switched on" from Door sensor, then run disabled program 3 to count down and turn off light
  3. Disabled program that waits, then turns off the light

The last one that runs the disabled program 3 wins.

Edit: having said that, configure the motion sensor to "send on commands only", let the ISY program 3 turn the light off

Paul

Edited by paulbates
  • Like 1
Posted

@paulbates, thanks for the suggestion, implemented and seems to be doing what it is supposed to.  Thanks again for your help.

Guest
This topic is now closed to further replies.

×
×
  • Create New...