TomL Posted July 11, 2019 Posted July 11, 2019 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
paulbates Posted July 11, 2019 Posted July 11, 2019 (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: Catch "is switched on" from MS, then run disabled program 3 to count down and turn off light Catch "is switched on" from Door sensor, then run disabled program 3 to count down and turn off light 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 July 11, 2019 by paulbates 1
TomL Posted July 15, 2019 Author Posted July 15, 2019 @paulbates, thanks for the suggestion, implemented and seems to be doing what it is supposed to. Thanks again for your help.
Recommended Posts