Journal

Controlling Home Air Quality with Home Assistant: The Complete Step-by-Step Guide

การควบคุมคุณภาพอากาศในบ้านด้วย Home Assistant: คู่มือฉบับสมบูรณ์

May 16, 2026 · 1 min read
Controlling Home Air Quality with Home Assistant: The Complete Step-by-Step Guide

Why Indoor Air Quality Matters More Than You Think

The average person spends 80-90% of their day indoors, yet indoor air can contain pollutants at 2-5 times the concentration of outdoor air. In Bangkok, where PM2.5 and high humidity are year-round concerns, the main indoor contaminants include PM2.5/PM10 dust, VOCs from furniture and cleaning products, CO2 from occupants, and mold from humidity. Measurable health impacts include eye and respiratory irritation, headaches, fatigue, and long-term asthma exacerbation.

How Home Assistant Controls Air Quality

Home Assistant (HA) is an open-source Smart Home platform connecting hundreds of device brands into one system. Its air quality management capabilities cover three core areas: real-time monitoring via a Lovelace Dashboard displaying PM2.5/CO2/VOC/humidity readings across all rooms simultaneously; automatic device control triggered by measured values; and instant alerts via LINE, Telegram, or mobile app when any parameter exceeds safe standards.

Required Devices and Selection Guide

Four categories of hardware are needed to start an HA air management system: a server (Raspberry Pi 4 at approximately 2,500 THB, or a dedicated Home Assistant Green device); air quality sensors (Aqara TVOC, Airthings Wave Plus, Shelly H&T); air purifiers (Xiaomi Mi Purifier series, Philips 2000i/3000i, Dyson Pure Cool); and a Zigbee gateway for Zigbee-protocol sensors such as ConBee II or SkyConnect.

Installation and Configuration Steps

Setting up the system follows five main steps: (1) install Home Assistant OS on Raspberry Pi or a supported device; (2) configure MQTT Broker via the Mosquitto add-on for MQTT-protocol devices; (3) add sensors through Settings → Devices & Services → Add Integration; (4) build a Lovelace Dashboard with Gauge cards using green-yellow-red color coding for PM2.5 and CO2; (5) create automations — for example, activate the purifier when PM2.5 exceeds 25 μg/m³ and send a LINE alert when CO2 exceeds 1,000 ppm.

Tips for Maximum Effectiveness

Experienced HA users recommend four practices: use InfluxDB and Grafana to store air quality history beyond the default 30-day limit; implement hysteresis in automations (activate purifier at PM2.5 > 25, deactivate at < 15) to prevent rapid on-off cycling; create a composite Air Quality Index entity combining multiple parameters for at-a-glance status; and update HA every 2-4 weeks to receive new integrations and bug fixes. A well-configured system monitors and manages indoor air quality automatically around the clock without requiring manual intervention.

Questions & answers

How does Home Assistant differ from Google Home for air quality management?
HA runs locally without depending on cloud services, keeping data in your home. It supports far more complex automations and hundreds of air quality sensor models. Google Home suits basic voice-controlled operation but cannot match HA's automation depth.
Which PM2.5 sensor is most accurate for Home Assistant?
Airthings Wave Plus offers the highest accuracy and also measures radon. Aqara TVOC provides excellent value with stable Zigbee connectivity. Shelly H&T excels specifically for temperature and humidity monitoring.
Is writing HA automations difficult?
Home Assistant includes a visual drag-and-drop editor requiring no coding. More complex automations can use YAML, and the Thai HA community provides many ready-to-use examples.
Does Home Assistant work if the internet goes down?
Yes, HA operates entirely locally. All automations continue working without internet — only features requiring external cloud APIs are affected.
Is the electricity cost high when running purifiers via HA automations?
Much lower than leaving them running continuously. Well-designed automations activate purifiers only when PM2.5 is elevated, typically saving 20-35% energy compared to always-on operation.

Related reading