Journal

Clean Air in Your Home with Smart Home: How to Control Air Quality with IoT

อากาศสะอาดในบ้านด้วย Smart Home: ใช้ IoT ควบคุมคุณภาพอากาศอย่างชาญฉลาด

May 16, 2026 · 2 min read
Clean Air in Your Home with Smart Home: How to Control Air Quality with IoT

Why Use IoT to Control Air Quality?

IoT-based air quality control outperforms leaving a purifier running continuously because the system responds to real-time PM2.5 readings, saves energy, and coordinates multiple devices simultaneously.

Home Assistant and HomeBridge with Air Purifiers

Home Assistant (open-source) supports over 1,000 air purifier models including Xiaomi, Dyson, and Philips through Miio Integration or Matter. You can set automations to activate the purifier when PM2.5 exceeds 35 ug/m3 and control it via Google Assistant. HomeBridge bridges non-HomeKit devices into the Apple ecosystem, enabling Siri and iPhone Home App control.

Recommended PM2.5 Sensors

Xiaomi Smart Air Quality Monitor: measures PM2.5, CO2, temperature, humidity, connects to Home Assistant via Miio. PurpleAir PA-II: high accuracy, suitable for both indoor and outdoor use. IKEA VINDRIKTNING: affordable, with LED air quality indicator. Aqara Air Quality Monitor: measures PM2.5, TVOC, temperature, humidity, integrates well with HA. Place sensors at 1 to 1.5 meters height in frequently used rooms, away from direct pollution sources.

Complete Automation Setup

Example automations in Home Assistant: when PM2.5 > 35 ug/m3, activate purifier at High Speed and send notification; when outdoor PM2.5 > 50 ug/m3, close electric dust curtains and enable Positive Pressure ventilation; when PM2.5 < 15 ug/m3, switch purifier to Sleep Mode.

Benefits of Automated Air Management

Reduces respiratory disease risk, eliminates the need for manual control, uses energy only when necessary, and enables remote monitoring at any time. HappySmart is ready to design and install IoT air quality management systems for homes of every size.

Questions & answers

Which PM2.5 sensor integrates most easily with Home Assistant?
The Xiaomi Smart Air Quality Monitor connects easily through the Miio Integration and is very affordable. The Aqara Air Quality Monitor also works well with HA via Zigbee.
Can I automate dust curtains to close when outdoor PM2.5 spikes?
Yes. In Home Assistant, create an automation triggered by the outdoor PM2.5 value from the IQAir integration. When it exceeds 50 ug/m3, command the dust curtains to close and activate the Positive Pressure ventilation system.
Can HomeBridge connect a Xiaomi air purifier to Apple HomeKit?
Yes. HomeBridge has a plugin for Xiaomi Air Purifier that enables Siri and Apple Home App control on iPhone and iPad.
Where is the best place to put a PM2.5 sensor in the home?
Place it at 1 to 1.5 meters from the floor in frequently used rooms such as the bedroom and living room, at least 1 meter away from gas stoves, the purifier itself, and the front door.
How does the automated system save energy?
The system activates the purifier only when PM2.5 exceeds the set threshold and switches to Sleep Mode when air quality improves, replacing continuous operation and significantly reducing electricity consumption.

Related reading