Smart Dehumidifier Automation – Humidity, Tumble Dryer, Energy Monitoring & Alerts

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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

  1. 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.

6 Likes

One failure case I would test is a Home Assistant restart partway through a drying session or the rest period. If the sustained humidity checks use for:, HA’s trigger documentation notes that those pending waits reset on a restart or automation reload. I would not assume that the six-hour cap and one-hour rest recover correctly without checking how the session state is stored.

For that, date-and-time deadlines in input_datetime helpers are worth considering. They restore their previous state when no fixed initial value is configured. I would reconcile the stored deadlines with the actual plug state on startup, including any deadline that passed while HA was offline, and avoid starting the appliance just because HA restarted. How are you currently tracking the session start and the next allowed restart?

Nice write-up, especially the 30-minute minimum runtime and the separate stop condition. That’s exactly the kind of hysteresis that keeps devices from toggling around a threshold.

I use a similar idea in our basement, but with a different goal: instead of running a dehumidifier, Home Assistant compares the dew point inside with the dew point outside and tells me when opening the windows actually removes moisture. In autumn and winter that’s often enough. Maybe the two approaches could be combined: ventilate when the outside air is dry enough, and only run the dehumidifier when it isn’t.

Frank