Guest Bathroom Automation

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.

:one:

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::heavy_check_mark: Dim to 20% :heavy_check_mark: Start 20 sec timer

Result:

Perfect — this gives the “entry dim” effect and starts your countdown.


:two:

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.


:three:

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.


:four:

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.


:five:

Leaving the Bathroom

When:

  • Door closes AND FP2 sees no one AND shower is NOT occupied

Flow:

  • Dim to 20%
  • Start 20s timer

:six:

Timer Reaches Zero → All Off

Only happens when:

  • Timer hits 0
  • Shower occupied = no

Result:

The lights never turn off during a shower — correct.


:seven:

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)
32 Likes

Hi, cool! Unfortunately, this is not possible within Aqara Home :cry:

3 Likes

Aqara is working on it!

4 Likes

Hi Kevin, very cool setup! Automatically turns on/off lights, that’s very convenient.

7 Likes

Even with just lighting, there are many details to consider. Thank you for sharing!

5 Likes

it seems simple but its actually a lot of trouble shooting to get this correct in all situations

3 Likes

But it’s so interesting to model, it’s a pleasure :slightly_smiling_face:

4 Likes

Thanks for laying this out so clearly.

3 Likes

Great automations. I’ve used the motion P2 in several bathrooms but shower curtains prevent from detecting motion inside the shower. I’ve gotten around it with using humidity sensors to detect the shower in use, but using an FP2 with zones is a great idea.

2 Likes

Congrats @KevinStarks, it looks very cool! :ok_hand:

2 Likes

Turn out amazing I’ll definitely use your ideas. Thanks :+1:t3:

2 Likes

That is amazing! What the heck is homey!?! I need to look into that. I love the visual for tying all the automations together. I think that’s more how my brain works.

1 Like

Yea it took a lot tinkering to get it bulletproof! The automation has changed and evolved since I posted this. I guess the biggest compliment I get now is no complaints. It just works every time.

2 Likes

Do you ever have any issues with delays or the automation not triggering as expected? Do you have it confirm the action has been taken somehow to make sure the device took the command?

1 Like

So cool. Thanks for sharing.

1 Like

Fantastic! I’m just starting with Homey and getting all my smart devices integrated. I was going to create something similar but for my bedroom closet. Really appreciate that you shared all the details!

1 Like

How many presence sensors do you have? Just one in the bathroom and you have created zones? I like what you’ve done!

1 Like

I agree. Love these.

1 Like

Yea, I have a glass shower. Before I used a temp & humidity sensor to turn on the light or stop it from turning off.