Journal

How to Connect Smart Home with Fresh Air System to Create a Genuinely Healthy Indoor Environment

เชื่อมต่อ Smart Home กับ Fresh Air System อย่างไรให้สร้างสภาพแวดล้อมสุขภาพดีได้จริง

May 16, 2026 · 1 min read
How to Connect Smart Home with Fresh Air System to Create a Genuinely Healthy Indoor Environment

Why Integration Matters More Than Just Installation?

Many homes have both Fresh Air Systems and Smart Home devices running independently — Fresh Air on a timer, purifiers operating separately with no communication between them. The result is a system too dumb to respond to real situations: outdoor PM2.5 spiking after field burning nearby, or CO2 surging in the kitchen during cooking.

True integration means every device shares data and makes decisions together — like a central nervous system responding to the environment in real time.

Step 1 — Build a Sensor Network

Place Air Quality Sensors in every occupied room (bedroom, living room, office, kitchen). Choose sensors measuring at least 3 values: PM2.5, CO2, and humidity. All Zigbee sensors transmit data to Home Assistant via ZHA integration. Data is logged in InfluxDB on Raspberry Pi 5 for long-term trend analysis.

For Bangkok specifically, add an outdoor AQI sensor or pull data from IQAir or OpenWeatherMap APIs to compare outdoor versus indoor conditions and decide whether to open Fresh Air intake or switch to recirculation.

Step 2 — Define Automation Rules

Core rules to set up immediately:

Rule 1 — CO2 Control: When bedroom CO2 > 900 ppm → increase Fresh Air speed to Medium; when CO2 > 1,200 ppm → increase to High + send LINE notification; when CO2 < 700 ppm → reduce back to Low.

Rule 2 — Outdoor PM2.5 Protection: When outdoor AQI > 100 → close Fresh Air intake, activate recirculation mode + increase Air Purifier speed; when outdoor AQI < 50 → resume normal Fresh Air intake.

Rule 3 — Humidity Control: When indoor humidity > 70% → activate humidity exhaust fan + temporarily reduce Fresh Air intake; when indoor humidity < 40% → reduce exhaust speed to prevent over-drying.

Step 3 — App Monitoring and Remote Control

Configure a Home Assistant Dashboard on your smartphone showing:

  • Real-time PM2.5, CO2, and humidity for every room
  • Fresh Air System status (speed, mode, filter health)
  • Outdoor Air Quality Index from API
  • 24-hour history and weekly trends

Configure LINE Notify to send a daily summary at 07:00 reporting last night's average air quality, filter status, and day-specific recommendations (e.g., PM2.5 high today — recommend keeping windows closed).

Step 4 — Real Bangkok Scenario Example

In January-February, Bangkok PM2.5 spikes to 60-80 μg/m³ on still mornings. A well-integrated system responds as follows:

  1. 04:00: Outdoor AQI sensor detects rising PM2.5
  2. 04:05: Fresh Air System automatically switches to recirculation mode
  3. 04:10: All home Air Purifiers increase speed
  4. 06:30: LINE notification before wake-up: outdoor PM2.5 at 75 μg/m³, home already protected
  5. Throughout the day: continuous monitoring, intake reopened when AQI drops below 50

Future: AI and ML for Smart Air Management

The next evolution of Smart Home + Fresh Air uses Machine Learning on RPi5 to learn family patterns: predict CO2 spikes 30 minutes ahead from history, adapt Fresh Air scheduling to seasons and behavior, and reduce energy use without compromising air quality. Home Assistant supports custom TensorFlow models via AppDaemon integration.

Questions & answers

Is the IQAir API free to use with Home Assistant?
IQAir offers a free tier with limited API calls, sufficient for pulling outdoor AQI data every 15-30 minutes. OpenWeatherMap free tier and Windy.com API are also viable alternatives.
What is InfluxDB and why use it with Home Assistant?
InfluxDB is a time-series database designed for storing timestamped sensor data, enabling long-term trend analysis such as weekly average PM2.5 or CO2 patterns by time of day. Home Assistant supports InfluxDB integration natively.
How do you configure LINE Notify with Home Assistant?
Create a LINE Notify token at notify.line.me → add the LINE Notify integration in Home Assistant → use the notify.line service in automation YAML with message content and token. Both text messages and camera snapshot images can be sent.
Does using AppDaemon for ML in Home Assistant require Python knowledge?
AppDaemon is a Python runtime on Home Assistant, so basic Python is required. For those less comfortable with Python, Node-RED is a visual programming tool that integrates with Home Assistant more easily and can handle many automation scenarios without coding.
What is the difference between recirculation mode and Fresh Air intake?
Fresh Air intake opens to accept filtered outdoor air — suitable when outdoor air quality is good. Recirculation mode closes the intake and repeatedly filters existing indoor air — suitable when outdoor air is poor. A good ERV system can automatically switch between modes based on outdoor AQI data.

Related reading