Guest Bathroom Automation (Updated)


My Guest Bathroom Automation (FP300 + FP2)

I wanted my hallway and bathroom to work together as one system instead of two separate automations.

To do that, I use:

  • Aqara FP300 in the hallway.
  • Aqara FP2 in the Guest Bathroom.

Each sensor has a different responsibility.

Hallway (FP300)

The FP300 isn’t responsible for bathroom occupancy.

Its only job is to detect approaching and leaving .

As soon as someone walks toward the bathroom, the hallway tells the bathroom:

“Someone is coming.”

The bathroom enters PRE-LIGHT and softly turns on before the person even reaches the door.

This makes the room feel much more natural than waiting for someone to step inside before the lights come on.

Bathroom (FP2)

The FP2 handles everything that happens inside the bathroom.

I divided it into two zones:

  • Bathroom Zone
  • Shower Zone

The Bathroom Zone tells the automation that someone is using the room normally.

The Shower Zone tells the automation someone is showering, which is treated differently because people don’t move much in the shower.

The Bathroom Has Five States

  • OFF – Nobody is inside.
  • PRE-LIGHT – Someone is approaching.
  • ACTIVE – Someone is using the bathroom.
  • SHOWER – Someone is showering.
  • BRIDGE – Someone is moving between the hallway and bathroom.

The room is always in one of these states.

Walking Into the Bathroom

You walk down the hallway.

:arrow_right: The FP300 detects you.

The bathroom enters PRE-LIGHT and turns on a soft light.

You walk through the doorway.

:arrow_right: The FP2 Bathroom Zone detects you.

The bathroom changes to ACTIVE .

If you step into the shower…

:arrow_right: The FP2 Shower Zone becomes occupied.

The bathroom changes to SHOWER .

Because SHOWER is a protected state, the lights won’t accidentally turn off if the sensor briefly loses you while you’re standing still or behind the shower curtain.

Walking Out

This is where the BRIDGE state comes in.

When you leave the bathroom, the FP2 no longer sees you, but you’re still physically in the doorway and entering the hallway.

Instead of immediately turning everything off, the bathroom enters BRIDGE .

During this brief transition, the hallway takes over.

The FP300 sees you enter the hallway and activates the Hallway¹ automation.

Once you’re fully out of the bathroom and the transition is complete, the bathroom finally changes from:

ACTIVE → BRIDGE → OFF

This handoff prevents the hallway and bathroom from fighting over the lights while you’re standing in the doorway.

Why I Built It This Way

Most occupancy automations treat every sensor as if it’s making decisions on its own.

I wanted each sensor to have a specific job.

  • The FP300 watches movement to and from the bathroom.
  • The FP2 watches what happens inside the bathroom.

The result is a smoother experience:

  • The bathroom lights are already on before I enter.
  • The hallway lights come on naturally when I leave.
  • No lights turning off while showering.
  • No flickering in the doorway.
  • The hallway and bathroom never fight over who’s in control.

Instead of asking, “Did a sensor detect motion?” , my automation asks, “Where is the person in their journey?”

That small change has made this one of the most reliable automations in my smart home.

17 Likes

Glad to hear your setup got upgraded! Thanks for sharing with the community.

4 Likes

I like the idea, though may be overkill for a lot of homes. The lights coming on when I enter the bathroom is good enough for me :slight_smile:

But I am curious, where did you build these automations. Can you share screenshots of some of the logic? I’m particularly interested in the “protected state” of the shower zone.

3 Likes
2 Likes
3 Likes

I split the responsibilities between three platforms so each one does what it does best.

  • Homey Pro is the brain. It processes sensor events, manages the room states, and runs all of the automation logic.
  • Home Assistant is responsible for lighting. It stores and activates all of my lighting scenes, transitions, and adaptive lighting.
  • Apple Home is what my family uses every day. It provides Siri voice control, the Home app, and manual control of devices.

One of the most important parts of the automation is the SHOWER state.

When the FP2 detects someone in the shower, the bathroom enters the SHOWER state. While in this state, it ignores normal occupancy changes from the Bathroom Zone. This means someone can walk into or out of the bathroom without causing the lights to change or turn off.

The bathroom will remain in SHOWER until the shower is no longer occupied. Only then will it return to ACTIVE , and eventually OFF once the room is vacant.

3 Likes