Winter has always been a bit of a challenge in my home, especially when it comes to managing humidity levels in the bathroom. This year, I decided to tackle the issue head-on using my smart home setup. I wanted to share my journey and the solution I came up with in case it helps anyone else facing similar challenges.
The Problem
In our bathroom, we have a fan that’s connected to the lights. Whenever the lights are turned on, the fan kicks in. The fan has a built-in timer that keeps it running for about 30 minutes after the lights are turned off. This setup works great most of the time, keeping humidity levels below 60%. However, during the winter months, when the window is closed, humidity often spikes above 70%, and we have to manually start the fan or open the windows.
The Solution
To address this, I decided to integrate a BLE humidity sensor into my smart home system. The goal was to create an automation that would automatically turn on the fan when the humidity reached a certain threshold, ensuring that the air stays dry without manual intervention.
Here’s what I came up with:
- Trigger: The automation is triggered when the humidity sensor detects a level above 70%.
- Condition: Before taking any action, the system checks if the bathroom lights have been off for at least 30 minutes. This ensures that the fan isn’t activated unnecessarily if someone is still in the bathroom.
- Action: If both conditions are met, the system turns on the bathroom lights for exactly 5 seconds. This brief burst of light is enough to activate the fan, which then runs for its full 30-minute cycle, effectively reducing the humidity.
The Automation Code
Here’s the code I used to set up the automation:
yaml
alias: “Bathroom - Humidity Control”
description: “Automatically manages bathroom fan based on humidity levels”
mode: single
trigger:
- platform: state
entity_id: sensor.ble_humidity_gvh5075_403a
from: “70”
condition:
- condition: state
entity_id: switch.bathroom_lights
state: “off”
for:
minutes: 30
action:
- service: switch.turn_on
entity_id: switch.bathroom_lights
duration: 5
The Results
This setup has been a game-changer for our winter routine. The bathroom stays dry and comfortable without any manual intervention. It’s also been a great learning experience, as I had to troubleshoot a few issues along the way, such as ensuring the automation didn’t conflict with other routines.
Tips for Others
If you’re considering a similar setup, here are a few tips:
- Sensor Placement: Make sure your humidity sensor is placed in the right spot to get accurate readings.
- Automation Timing: Test different timings to ensure the automation works seamlessly with your daily routine.
- Integration: Consider integrating other sensors or devices if you have specific needs, like temperature control or air quality monitoring.
Final Thoughts
Smart home automation isn’t just about convenience; it’s about creating a living space that adapts to your needs. This project has shown me the power of integrating different smart devices to solve everyday problems. If you’re looking to enhance your home’s comfort during the winter months, I highly recommend exploring similar automation solutions!
Happy automating! ![]()