HA Air Quality Dashboard
Air quality monitoring dashboard for Home Assistant
About This Project
The HA-Air-Quality-Dashboard is a Lovelace dashboard configuration for Home Assistant that displays air quality readings from the World Air Quality Index (WAQI) integration. It presents the Air Quality Index (AQI), PM2.5, and PM10 values as grid cards, with background and text colors that change according to the AQI severity bands published by AirNow, from Good through Hazardous. The project also adds weather widgets from the IMS Weather custom component, since local wind and atmospheric conditions affect how pollutants spread.
The dashboard is built with the Home Assistant YAML configuration format and the custom:button-card component, using JavaScript templates within the card definitions to map numeric sensor states to colors. The author notes that Home Assistant's built-in gauge card supports only three severity levels, which is why color-coded button cards were used to represent the six-level AQI scale. The repository includes a suggested RGB color table and screenshots of the layout, and the sensor entity names must be replaced to match each user's own WAQI and weather integrations.
The project is intended for Home Assistant users who monitor air quality at home, particularly those in areas prone to wildfire smoke or industrial pollution. It may also serve as a reference for developers who want to apply template-based conditional styling to sensor data in custom Lovelace dashboards.