A custom card to display Air Quality Index (AQI) and pollutant levels in Home Assistant, with forecast visualization.
- Displays real-time AQI data and pollutant levels.
- Forecast chart with dominant pollutants.
- Color-coded AQI categories.
- Download the
aqi-dashboard.js
file or clone this repository. - Place the file in your Home Assistant's
www
directory. - Add the following resource to your Home Assistant configuration:
lovelace: resources: - url: /local/aqi-dashboard.js type: module
- Restart Home Assistant or refresh your browser cache.
Add the following YAML to your dashboard:
type: custom:aqi-dashboard
entity: sensor.google_aqi_sensor