Monitor Taiwan's air quality in real-time with Home Assistant
This integration provides comprehensive air quality monitoring across Taiwan, supporting both standard monitoring stations and micro air quality sensors. Data is sourced from the Taiwan Ministry of Environment's Environmental Data Open Platform API.
Important
API Key Required: You must register as a member and apply for an API KEY before using this integration.
API Key Validity: The API KEY is valid for 1 year only.
Tip
Debugging: If you encounter any issues, enable debug mode in the integration settings, reproduce the problem, then open an issue with the log file.
- Standard Monitoring Stations: Access data from Taiwan's official air quality monitoring network
- Micro Air Quality Sensors: Monitor data from air quality micro sensors deployed across the country
Standard Monitoring Stations provide:
- PM2.5 (Fine Particulate Matter)
- PM10 (Coarse Particulate Matter)
- O₃ (Ozone)
- CO (Carbon Monoxide)
- SO₂ (Sulfur Dioxide)
- NO₂ (Nitrogen Dioxide)
- AQI (Air Quality Index)
- Wind Speed & Direction
Micro Air Quality Sensors provide:
- PM2.5 (Fine Particulate Matter)
- Temperature
- Humidity
- Open HACS in your Home Assistant instance
- Search for "Taiwan Air Quality Monitor"
- Click "Download"
- Restart Home Assistant
- Download the
taiwan_aqmfolder from this repository - Copy it to your
custom_componentsdirectory - Restart Home Assistant
- Navigate to Settings → Devices & Services
- Click Add Integration
- Search for Taiwan Air Quality Monitor
- Enter your API KEY from the Environmental Data Open Platform
- Click Submit
After initial setup, you can add monitoring stations:
- Go to your Taiwan Air Quality Monitor integration
- Click Configure or Add Entry
- Choose the type:
- Add Monitoring Station: For standard air quality monitoring stations
- Add Micro Sensor: For micro air quality sensors
- Select the station from the dropdown list
- Click Submit
The entities will be automatically created within a few seconds!
- View Stations: All configured stations appear as subentries under the main integration
- Remove Station: Click the trash icon next to any station to remove it and its entities
- Wait 1-2 seconds for the automatic reload to complete
- Check Home Assistant logs for any errors
- Try manually reloading the integration
- Ensure your API KEY is valid and not expired
- Follow the instructions in your registration email to reapply for a new key.
- Update the key in the integration settings
Enable debug logging by adding to your configuration.yaml:
logger:
default: info
logs:
custom_components.taiwan_aqm: debugContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
- Forked from besthand/TaiwanAQI
- Data provided by Taiwan Ministry of Environment
If you encounter any issues or have questions:
- Check the Issues page
- Enable debug mode and collect logs
- Open a new issue with detailed information