Turn on the bathroom fan when a shower starts
Turn the bathroom fan on when the shower light goes on or humidity rises, and turn it off once the bathroom has stayed dry for a while.
Best for: A bathroom fan on a smart switch and either a shower light or a humidity sensor that can trigger it reliably.
Not for: A shared circuit where the fan cannot be switched independently of the light, or overnight hours unless the household wants ventilation running while sleeping.
Why this exists
A fan that only runs when someone remembers to flip the switch does not help with mirror fog or lingering humidity. Tying the fan to an existing shower signal, whether the light or a humidity reading, removes the need to remember, and turning it off automatically once humidity settles avoids a fan running long after the shower ends.
What I used
| Job | Good enough | Never think about it | Notes |
|---|---|---|---|
| Detect bathroom motion with humidity, temperature, and light | Aeotec TriSensor 8 | Zooz ZSE11 800LR Q Sensor | Use this for the humidity-based trigger, not for the fastest motion response. |
| Switch the bathroom fan independently | No personally verified recommendation yet | No personally verified recommendation yet | Confirm any smart switch used here is rated for the fan motor’s load and that the physical wall switch keeps working. |
See recommended gear for the job-first checklist. Product links on this page are direct, non-affiliate Amazon links. Product recommendations and any future affiliate relationships are explained in the disclosure.
Logic
- Trigger: The shower light turns on, or bathroom humidity rises above its calibrated baseline.
- Conditions: The time falls within the household’s normal waking hours, unless overnight ventilation is specifically wanted.
- Action: Turn on the bathroom fan.
- Wait / timeout: Keep the fan running until the trigger clears and stays clear for several minutes.
- Stop condition: The light turns off, or humidity drops back to baseline, for the confirmation period.
- Manual override: The physical wall switch always works regardless of the automation.
Setup notes
- Choose one primary trigger, either the shower light or a humidity sensor, and treat the other as a backup rather than combining them in a way that confuses troubleshooting.
- Record the bathroom’s humidity baseline on a normal day with no shower running.
- Set the on-threshold clearly above that baseline so normal humidity swings do not start the fan.
- Require the trigger to clear for several minutes before turning the fan off, so a brief pause in the shower does not shut it off early.
- Restrict the automation to normal waking hours unless the household wants it running overnight.
- Test with an actual shower, not just running the sink, before trusting the thresholds.
Advanced features
Fixed maximum run time
Add a maximum run time, such as 30 minutes, so a stuck sensor or an unusually long humid period cannot leave the fan running indefinitely unnoticed.
Combine light and humidity
Where both are available, use the light as the immediate on-trigger and the humidity reading only to extend the off-delay on longer showers.
Failure modes
- Fan does not turn on: Confirm the trigger source is reporting current data and that the fan switch responds to a manual test.
- Fan turns on for unrelated reasons: If using humidity, raise the threshold or confirm nothing else in the bathroom (kettle steam, an open window on a humid day) is triggering it.
- Fan does not turn off: Confirm the off-condition requires both the trigger and a sustained clear period, and check for a stuck humidity reading.
- Fan runs at night unexpectedly: Add or correct the waking-hours condition.
- Physical switch stops working: Reconnect or replace the smart switch; the wall control must always be usable.
Done when
- The baseline humidity level has been recorded on a normal day.
- A real shower reliably starts the fan using the chosen trigger.
- The fan turns off within a reasonable time after the shower ends.
- A brief pause mid-shower does not turn the fan off early.
- The automation stays within the intended hours.
- The physical wall switch still works normally.
FAQ
Which trigger is more reliable, the light switch or humidity?
A light-based trigger is simpler and more reliable, since the light almost always goes on first. A humidity sensor is more accurate about the shower itself but reacts a little later and needs its own calibration.
Why not just leave the fan on a timer?
A fixed timer either wastes electricity by running too long or shuts off too early on a long shower. Tying the fan to the actual trigger and humidity level fits real use better.
Should the fan run overnight?
Restrict it to normal waking hours unless the household specifically wants ventilation overnight, since a fan running unexpectedly at night can be startling.