Rule Machine to turn off bathroom exhaust fan based on humidity or motion

Hello! I would like RM to be able to turn on an exhaust fan based on motion or humidity. Then turn off the fan based on humidity requirements or motion.

I'm trying to distinguish between an event like just walking into the bathroom vs taking a shower. I want the fan to be on while in the bathroom but then turn off shortly after I leave. Whereas during and after a shower I want it to run for however long it needs to decrease the humidity.

I've got everything set up to turn on with motion and humidity and off with humidity, but I don't know how to add the lack of motion to turn off in 5 minutes (if the humidity is satisfied). Basically I want the humidity requirements to trump the motion for shutting off the fan.

Bobby of the Hubitat staff posted a great YT video you might want to watch.

1 Like

I found that for my needs, using two motion sensors was a solution. I set one in the shower itself. This lets me automate when I'm entering the shower vs just using the sink or toilet. I separate the room lights from the fan control. Humidity variations are not really easy to use as a shower detector imho, but are okay for use in fan control.

And this has been recently discussed and there are a lot of examples of doing this on this forum. The search feature is very handy in finding them.

3 Likes

I use an Aqara FP2 presence sensor in my master bathroom to set up zones for the tub, toilet, vanity, and shower, as well as general lighting. When my hub is in night mode, I turn on lights at a low level to act as night lights to guide the path to the toilet, but at other times, I turn on/off lights as needed.

For the toilet, after a minute I turn on the fan until someone leaves plus a delay of ten minutes to eliminate odors. For the shower, if the presence lasts more than a couple minutes, I then turn on the fan until the humidity of the bathroom is within 3% of the humidity in the adjacent master bedroom, with a ten hour (yes, hour) time out.