Hello,
I have some questions about a rule I have for automating my bathroom lighting... Instead of using Mode Manager, I have them built into the rules I use, because only having 3 Modes doesn't really work for what I prefer (i.e., morning when waking up/getting ready, daytime, evening, sleep time). I have the first part of the rule built to set the lights per "Mode." The second part of the rule is to shut the lights off when there's no activity, unless the humidity levels are high, which I have in there so the lights don't shut off while showering if the motion sensors don't pickup the motion in the shower through the fogged-up glass (I have the bathroom fan setup on a separate rule to automate based on humidity levels too).
I'm running into issues with the lights not always setting to the right level... like during the day, it'll set to 25%, even though it should be at 80%. I'm also wondering if there's a way that if the lights aren't at one of the designated dimming levels (i.e., 25%, 80%, 50%, or 1%) that the lights will stay at whatever level's set until the lights are shut off - basically, say I'm in the bathroom and set the lights to 100% because I'm shaving and want to have full-light, that the lights don't dim back down to 50% on me because it's "evening." One thought I had was to get Zigbee buttons that, if pressed, pause the rule until the lights are shut off, but if I don't have to invest in buttons and setup those additional rules because I can tweak my current rules, that would be ideal.
Below is how my rule is currently setup. Any feedback would be greatly appreciated!
Select Trigger Events (ANY will trigger)
Guest Bathroom Motion Sensor changed
Guest Toilet Motion Sensor changed
Select Actions for Guest Bathroom Lights
IF (Guest Bathroom Motion Sensor active(F) OR
Guest Toilet Motion Sensor active(F) AND
Time between 6:00 AM CST and 8:00 AM CST(F) AND
Guest Bathroom Lights(off) is off(T) [FALSE]) THEN
Cancel Delayed Actions
Dim: Guest Bathroom Lights: 25
ELSE-IF (Guest Bathroom Motion Sensor active(F) OR
Guest Toilet Motion Sensor active(F) AND
Time between 8:00 AM CST and Sunset-30 minutes(T) AND
Guest Bathroom Lights(off) is off(T) [FALSE]) THEN
Cancel Delayed Actions
Dim: Guest Bathroom Lights: 80
ELSE-IF (Guest Bathroom Motion Sensor active(F) OR
Guest Toilet Motion Sensor active(F) AND
Time between Sunset-30 minutes and 10:00 PM CST(F) AND
Guest Bathroom Lights(off) is off(T) [FALSE]) THEN
Cancel Delayed Actions
Dim: Guest Bathroom Lights: 50
ELSE-IF (Guest Bathroom Motion Sensor active(F) OR
Guest Toilet Motion Sensor active(F) AND
Time between 10:00 PM CST and 6:00 AM CST(F) AND
Guest Bathroom Lights(off) is off(T) [FALSE]) THEN
Cancel Delayed Actions
Dim: Guest Bathroom Lights: 1
END-IF
IF (Guest Bathroom Motion Sensor inactive(T) AND
Guest Toilet Motion Sensor inactive(T) [TRUE]) THEN
Off: Guest Bathroom Lights --> delayed: 0:05:00 (cancelable)
ELSE-IF (Humidity of Guest Bathroom Temperature/Humidity Sensor(29.4) is > Ambient Temperature/Humidity Sensor(32.7) +10(F) AND
Guest Bathroom Lights(off) is on(F) [FALSE]) THEN
Wait for event: Humidity of Guest Bathroom Temperature/Humidity Sensor(29.4) is <= Ambient Temperature/Humidity Sensor(32.7) +5
Wait for event: Guest Toilet Motion Sensor, Guest Bathroom Motion Sensor any inactive
Off: Guest Bathroom Lights --> delayed: 0:05:00 (cancelable)
END-IF