Jump to content

Bathroom lights motion program


Mark Sanctuary

Recommended Posts

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,

Link to comment
  • 4 months later...

Archived

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


×
×
  • Create New...