Discussion 💬 Beyond Presence Detection: How I Automated My Entire Bathroom with Home Assistant
I’ve been gradually automating my bathroom over the past year. Rather than relying on a single presence sensor to control everything, I use a combination of contact sensors, vibration sensors, presence detection, humidity monitoring, and physical controls to handle different activities.
Automatic ambient lighting
Instead of using a motion sensor to control the main bathroom lighting, I use a door contact sensor.
Every time the bathroom door opens, three groups of ambient lights toggle together:
- A table lamp
- Lighting inside the glass cabinet
- An LED strip around the speaker
All three are managed by Adaptive Lighting, so their brightness and color temperature automatically adjust throughout the day.
The mirror and shower lights are treated separately as task lighting. I don’t necessarily need the entire bathroom illuminated every time I walk in.
Detecting when someone is showering
One of my favorite automations uses two different sensors:
- A vibration sensor attached to the showerhead.
- A presence sensor monitoring the bathtub area.
When water starts flowing, the vibration sensor triggers the shower light. The presence sensor then keeps the light on while someone is in the bathtub.
Once the bathtub area is no longer occupied, the shower light turns off after 30 seconds.
The advantage of this approach is that one sensor detects the activity, while the other determines whether that activity’s lighting is still needed.
Two independent exhaust fan automations
I use two of Blacky’s Home Assistant blueprints to control the same exhaust fan for different purposes.
Routine ventilation:
- Turn on the fan when the designated lighting group turns on.
- Keep the fan running for one additional minute after the lights turn off.
- Apply a 30-minute runtime protection mechanism.
- Limit routine ventilation during late-night hours to reduce unnecessary noise.
Shower ventilation:
- Trigger when relative humidity rises by 3 percentage points per minute.
- Use 80% relative humidity as an additional trigger.
- Detect the end of the humidity increase using a falling rate of 1.2 percentage points per minute.
- Continue ventilation for another 20 minutes.
- Apply a 60-minute protection timeout while waiting for humidity to fall.
Using humidity trends rather than relying entirely on an absolute threshold helps the automation adapt to seasonal changes in humidity.
Automated privacy and natural daylight
My approach to shade automation combines time-based scheduling with activity-based privacy:
- Open the shade during the daytime to bring in natural light.
- Close it in the evening for privacy.
- Override the normal schedule when showering is detected.
- Keep the shade closed while the bathroom is being used for showering.
- Use occupancy and humidity recovery to determine when normal shade operation can resume.
This is the final part of my bathroom automation that connects lighting, shower detection, ventilation, and privacy into a single system.
Physical controls and music
Not everything needs to be automated.
I still use physical buttons to control task lighting and Sonos music playback. I prefer intentional manual control for activities that are difficult to infer reliably from sensors.
For example, standing in front of the mirror doesn’t necessarily mean I’m washing my hands, brushing my teeth, or getting ready for work. Automatically guessing what I want could actually make the experience worse.
What I’ve learned
The most important thing I’ve learned from automating my bathroom is that occupancy and activity are two very different things.
A presence sensor can tell me whether someone is there, but a combination of different sensors can help determine what they’re actually doing.
And sometimes, a physical button is still the best solution.
My goal isn’t to eliminate every manual interaction. It’s to eliminate the repetitive ones while keeping meaningful controls available.
The best automation is the one you eventually forget exists.
I’d love to see how other people approach bathroom automation, especially shower detection and automated privacy.