Skip to content

Bathroom automation: light sensors, fan, humidity and door

Bathroom automation: light sensors, fan, humidity and door

Bathroom automation: light sensors, fan, humidity and door

_ Anything below is probably obvious to a lot of people, but I love learning about the automations that others have created, and I thought I'd share them with the community just in case someone didn't think about it. to do so.

# Wear

Make the bath as automated as possible. Turn on and off automatically and intelligently the light and exhaust fan. The only thing that should be done manually is to turn on the exhaust fan when it is not really wet (ie no one is showering).

# Requirements

* ** Third-party HomeKit application. ** You can configure this in Eve or Controller, but I prefer (Home + 4) (https://apps.apple.com/us/app/home-4/id995994352) myself.
* ** Door / window sensor and temperature / humidity sensor. ** I set up an Aqara hub and I was super happy with it. The security alarm function is excellent and the sensors are very accessible, which becomes more important the more you buy. And (I explained elsewhere why I prefer hubs for Bluetooth / Wi-Fi devices) (https://www.homekit.blog.com/r/HomeKit/comments/dvwsth/in_defense_of_hubconnected_devices/).
* ** Ecobee thermostat. ** You can probably configure something similar to another HomeKit compatible thermostat, but I have no experience in this regard. Also, it would be possible to use absolute values ​​to check the high humidity, rather than relative values ​​based on the humidity reported by the thermostat.
* ** Smart lights and fan switches. ** I use and love Lutron. I have no neutral yarn, so they were the only option. But I'm glad I went with them. They have proven to be some of the most reliable and responsive HomeKit devices I use.

# Shortcut: Bathroom fan

This will automatically turn the exhaust fan on and off depending on the humidity level in the bathroom (relative to the rest of the house). The fan will never turn off automatically if someone is in the bathroom (with the door closed).

## When that happens

* ** Relative humidity of current bath: ** any change

## On condition

* ** Presence: ** Someone is home

## Make a shortcut

### Get home status

How wet is it in the bathroom?

> Obtain "Bath sensor humidity", Relative current humidity

### Get Home + Calculate + If

How wet is the rest of the house? Add 10 to this so we can turn on the bathroom fan if it is at least 10% wetter than the rest of the house. If it is not so wet, turn off the fan, but only if the bathroom door is open. (You don't want to turn off the fan automatically if someone is in the bathroom.)

> Get the “ Thermostat“, Current relative humidity

> Calculate `Current relative humidity (thermostat)` + 10

> If `Current relative humidity (bath)` `is greater than or equal to` `Calculation result & # 39; & # 39;

>> Set 'Bathroom Fan (On)'

> Otherwise

>> If the “ door of the bath“, the state of the contact sensor“ is “ Open“

>>> Set "Bathroom Fan (OFF)"

>> Otherwise

>> End If

> End If

# Shortcut: The bathroom door is open

This will automatically turn off the light when someone opens the bathroom door. It will also perform the same humidity check as above, so if the fan was on, but no one was showering, turn off the fan as well.

## When that happens

* ** Status of the bath door contact sensor: ** No contact

## Make a shortcut

### Control man

> Set "Light Light (OFF)"

### Get home status

How wet is it in the bathroom?

> Obtain "Bath sensor humidity", Relative current humidity

### Get Home + Calculate + If

How wet is the rest of the house? Add 10 to this so we can turn off the fan if the bathroom has a relative humidity of 10% compared to the rest of the house.

> Get the “ Thermostat“, Current relative humidity

> Calculate `Current relative humidity (thermostat)` + 10

> If `Current relative humidity (bath)` `is greater than or equal to` `Calculation result & # 39; & # 39;

> Otherwise

>> Set "Bathroom Fan (OFF)"

> End If

# Automation: the bathroom door closed

It will automatically light the bathroom light at 2% brightness, but only at night (not in the morning) and only if the light is not already lit (and possibly at a different brightness level).

I was amazed the next day when I turned on the light 100% and closed the door. It got too dark, so I added the last part.

As for the moment, the bathroom has a night light in it, which is more than enough if I go to the bathroom in the middle of the night. I don't want any light in this case.

## When that happens

* ** Status of the bath door contact sensor: ** Contact detected

## On condition

* ** Time of day: ** From sunset until 5 hours 30m before sunrise
* ** Bath light power supply status: ** OFF

## Take action

* ** Brightness for the bathroom: ** 2%
* ** Light condition of the bath: ** ON

# Thanks for reading

As always, thank you to everyone in the community for inspiring me to set up all these shit and to take the time to share it. Let me know if you have any suggestions for improvements or automations. I would love to hear them!