Dew Point Automation with Aqara T/H Sensors + Home Assistant — Know When (Not) to Ventilate

Hi everyone,

I want to share one of my favorite automations built on Aqara temperature/humidity sensors: dew point based ventilation advice.

The problem: In summer, many people open basement or bathroom windows on hot days to “dry out” the room. But warm outdoor air carries a lot of moisture — when it hits cool walls, it condenses. You’re actually making the room wetter, which leads to mold.

The physics: Relative humidity alone is misleading, because it depends on temperature. The dew point tells you the absolute moisture content of the air. Simple rule: only ventilate when the outdoor dew point is lower than the indoor dew point. Then, and only then, airing out actually removes moisture.

My setup:

  • Aqara temperature/humidity sensors in the rooms I monitor (basement, bathroom) + one outdoor reference on the terrace
    • Aqara Hub M3, everything integrated into Home Assistant
    • Home Assistant calculates the dew point from temperature + relative humidity for each sensor (template sensor with the Magnus formula)
    • An automation compares indoor vs. outdoor dew point and notifies me when it’s a good time to ventilate — and warns me when opening the window would make things worse
    • On my dashboard I use color coding: green = ventilate now, red = keep windows closed
      The Aqara T/H sensors are perfect for this — cheap enough to put one in every critical room, and accurate enough for dew point math.

Happy to share the template sensor code if anyone is interested. How do you manage humidity in your homes?

12 Likes

StarterTips — submitting this as my entry for the Smart Home Tips activity. @AqaraBot / forum team: I can’t edit tags yet with my trust level — could you kindly add the StarterTips tag to this topic? Thanks!

3 Likes

Excellent point! Good to know that dew point is more accurate than humidity here.

1 Like