Mark Sanctuary Posted October 9, 2010 Posted October 9, 2010 Here is what I came up with for our bathroom lights with adding a motion sensor. I had to come up with an idea on how to avoid it shutting off the lights when someone is in the shower where it won't pick up the motion, so I have included a "bathtime" schedule where the delay is longer. Master Bath Motion If Control 'Master Bath / Master Bath Motion' is switched On And Control 'Master Bath / Master Bath Motion' is not switched Off Then Run Program 'Master Bath Lights Check Bathtime' (If) Master Bath Lights Switched On If Control 'Master Bath / Master Bath Main' is switched On Or Control 'Master Bath / Master Bath Main' is switched Fast On Or Control 'Master Bath / Master Bath Tub' is switched On Or Control 'Master Bath / Master Bath Tub' is switched Fast On Then Run Program 'Master Bath Lights Check Bathtime' (If) Master Bath Lights Switched Off If Control 'Master Bath / Master Bath Main' is switched Off Or Control 'Master Bath / Master Bath Main' is switched Fast Off Or Control 'Master Bath / Master Bath Tub' is switched Off Or Control 'Master Bath / Master Bath Tub' is switched Fast Off Then Stop program 'Master Bath Lights Delay 5 Min' Stop program 'Master Bath Lights Delay 30 Min' Set Scene 'Master Bath / Master Bath' Off Master Bath Lights Check Bathtime (disabled) If From 6:00:00AM To Sunrise + 1 hour (same day) Or From Sunset - 1 hour To 11:00:00PM (same day) Then Stop program 'Master Bath Lights Delay 5 Min' Run Program 'Master Bath Lights Delay 30 Min' (If) Else Run Program 'Master Bath Lights Delay 5 Min' (If) Stop program 'Master Bath Lights Delay 30 Min' Master Bath Lights Delay 5 Min (disabled) If Program 'Any "Master Bath" Lights On' is True Then Wait 5 minutes Run Program 'Master Bath Lights Switched Off' (Then Path) Master Bath Lights Delay 30 Min (disabled) If Program 'Any "Master Bath" Lights On' is True Then Wait 30 minutes Run Program 'Master Bath Lights Switched Off' (Then Path) Any "Master Bath" Lights On If Status 'Master Bath / Master Bath Main' is not Off Or Status 'Master Bath / Master Bath Tub' is not Off Thanks,
Mark Sanctuary Posted October 10, 2010 Author Posted October 10, 2010 Round two. I reworked this program, the first version had places where it could go awry. This version also will have the basic function even when the motion sensor does not work or batteries go. Thanks,
Mark Sanctuary Posted October 10, 2010 Author Posted October 10, 2010 I use this in conjunction with the Bathroom fan timer program. Thanks,
sfhutchi Posted October 11, 2010 Posted October 11, 2010 I like your thought about using the time of day to determine whether someone might be using the shower. Very creative.
Mark Sanctuary Posted October 11, 2010 Author Posted October 11, 2010 I like your thought about using the time of day to determine whether someone might be using the shower. Very creative. Thanks! This has worked well so far, no one has yelled out, "I'm in the dark, can you PLEASE turn the lights back on". Thanks,
jbs2009univ Posted February 15, 2011 Posted February 15, 2011 I see how you can program the delay, but how many delays can you set? Also, if the delay int he morning is longer than in the afternoon, what is the typical delay you use? I think this could be a tricky function, but I do see the value in making it different.
Recommended Posts