Automating Bathroom Ventilation with Humidity and Time Controls

I’ve been working on a smart bathroom ventilation system using Rule Machine, and I wanted to share my experience and ask for some advice. Here’s what I’ve got so far:

I’ve installed Aeotec humidity sensors in both my bathroom and laundry room, which are connected to a roof fan via a Sonoff breaker. The goal is to automate the fan to run based on humidity levels and time constraints. Here’s how I’ve set it up:

  • Humidity Thresholds: The fan turns on when humidity exceeds 40% and stays on until it drops below 35%. If the humidity doesn’t drop below 35% within 1.5 hours, the fan turns off automatically.
  • Time Constraints: The fan only starts between 9 AM and 10 PM. However, I’ve run into an issue where I want the fan to stop at 10 PM regardless of the humidity level. This is proving tricky in Rule Machine, and I’m curious if anyone has a workaround or suggestion.

I’ve attached a screenshot of my current rule setup for reference. Any insights or tips would be greatly appreciated! :blush:

Rule Machine Setup

This project has been a fun challenge, and I’m excited to see how it turns out! Thanks for your help!