In this automation, I’m utilizing a Homey Pro Advanced Flow as the automation engine. I’ve integrated an Aqara Door & Window Sensor and an Aqara FP2 Occupancy Sensor. Additionally, I’ve using Lutron dimmer switches. This practical automation is suitable for all family members (Spouse Approved). I believe it offers the equivalent functionality of a high-end luxury system, such as Control 4, RadioRA 3, or HomeWorks, at a significantly lower cost. Also offers energy savings.
Door Opens → Pre-light + Timer Start
Trigger:
- Contact alarm turned on
Flow:
- Check Guest Bathroom occupied = yes
- Late Night Mode branch:
- If true → dim to 30%
- If false → dim to 100%
Then:
- ANY condition leads to:
Dim to 20%
Start 20 sec timer
Result:
Perfect — this gives the “entry dim” effect and starts your countdown.
FP2 Detects Occupancy → Stop Timer + Full Brightness
Trigger:
- FP2 “Zone Guest Bathroom became occupied”
Flow:
- Stop countdown
- Late Night mode true → dim to 30%
- Otherwise → dim to 100%
Result:
This prevents the room from going dark while someone is inside.
FP2 Detects Shower Occupied
Trigger:
- Zone Shower became occupied
Flow:
- Shower light to 100%
- Does NOT turn off main lights → correct
Result:
Shower light behaves independently and correctly.
FP2 Detects Shower Free
Trigger:
- Zone Shower became free
Flow:
- Turn shower light off
- Only turn off ALL lights if:
- Shower occupied = no
- AND door closed
- AND timer hit zero
Result:
Shower leaves no chance of turning everything off prematurely.
Leaving the Bathroom
When:
- Door closes AND FP2 sees no one AND shower is NOT occupied
Flow:
- Dim to 20%
- Start 20s timer
Timer Reaches Zero → All Off
Only happens when:
- Timer hits 0
- Shower occupied = no
Result:
The lights never turn off during a shower — correct.
Late Night Mode Handling
Your time triggers:
- Time = 00:00 → set Late Night Mode = yes
- Sunrise → set Late Night Mode = no
This is fully correct and clean.
Late Night Mode results in:
| Scenario | Behavior |
|---|---|
| Entry | dim to 20% |
| Occupied | 30% instead of 100% |
| Exit | Immediate OFF (instead of dim to 20% + timer) |


