I’ve built a Home Assistant automation for my utility room that uses an Aqara Zigbee temperature and humidity sensor, a smart plug with power monitoring, and the status of my Samsung tumble dryer.
The idea is to keep humidity under control, particularly when drying clothes, without leaving the dehumidifier running unnecessarily.
I wanted something more sophisticated than a basic humidity-triggered smart plug. The Aqara sensor provides the environmental data, while Home Assistant combines it with appliance status, power monitoring, timers and notifications.
- Automatic starting
The dehumidifier starts when any of the following happens:
- The tumble dryer starts running.
- Room humidity rises above 62% for five minutes.
- I manually switch the dehumidifier on.
It also checks whether the room needs further drying after a rest period.
- Intelligent stopping
Rather than simply switching off when humidity drops, the automation uses two conditions:
- Humidity must be below 55%.
- The dehumidifier must have completed at least 30 minutes of operation.
The humidity needs to remain below 55% for 30 minutes before the normal humidity-based stop is triggered.
This prevents excessive switching on and off when humidity fluctuates around a threshold.
- Maximum runtime and automatic restart
Each session has a maximum runtime of six hours.
After stopping, the automation allows a one-hour rest period before checking whether humidity is still high enough to justify another session.
This is particularly useful when there’s a lot of wet laundry.
- Detecting a full water tank
The dehumidifier is connected to a smart plug that measures electricity consumption.
If the plug is switched on but the appliance draws less than 5 W for ten minutes, I receive a notification that the water tank may be full.
This saves me having to keep checking the tank manually.
- Sensor failure notifications
If the Aqara humidity sensor becomes unavailable for two hours, Home Assistant sends me an alert.
That way, I know if a battery or Zigbee connection problem is preventing reliable humidity monitoring.
- Manual override
I can still turn the dehumidifier on or off manually. Switching it off ends the current session, so I don’t have to fight against the automation.