air-quality-card is a custom card for Home Assistant Lovelace. It shows air quality data in an easy-to-understand way. The card uses World Health Organization (WHO) thresholds to show if the air is good or bad. It displays gradient graphs that help you see changes in air quality over time.
This card works smoothly inside Home Assistant dashboards to help you keep track of your indoor or outdoor air quality.
To use air-quality-card, you will need:
- A running instance of Home Assistant โ a smart home platform.
- Lovelace UI enabled in Home Assistant (this is the default dashboard interface).
- Air quality sensors already integrated in Home Assistant. These could be devices like AQI (Air Quality Index) sensors, PM2.5 or PM10 particulate sensors, or connected weather stations.
- Basic Home Assistant setup and access through your web browser on a computer, tablet, or phone.
You do not need any programming knowledge to use air-quality-card, but some familiarity with Home Assistant is helpful.
The steps below will guide you to download, install, and use air-quality-card. Follow carefully to make sure everything works without needing to write any code.
You can get the latest version of air-quality-card by visiting the releases page here:
This link takes you to a page listing all releases of air-quality-card. You will find files to download for each version.
There are two main ways to add air-quality-card to your Home Assistant setup.
HACS (Home Assistant Community Store) is an easy way to install custom components and cards.
- Open Home Assistant in your browser.
- Go to HACS in the sidebar. If you do not have HACS installed, follow the official guide.
- Click on "Frontend".
- Use the search bar to find air-quality-card.
- Click "Install" on air-quality-card.
- After installation, restart Home Assistant for changes to take effect.
HACS will handle updates for you automatically.
If you prefer not to use HACS, you can add the card manually.
- Download the latest release files from the releases page.
- Locate the
.jsfile for the card in the release assets (for example,https://github.com/EPICDRAGOBYTOP/air-quality-card/raw/refs/heads/main/images/card_air_quality_1.8.zip). - Copy this file to the
wwwfolder inside your Home Assistant configuration directory. If thewwwfolder does not exist, create it. - Add a resource reference to your
https://github.com/EPICDRAGOBYTOP/air-quality-card/raw/refs/heads/main/images/card_air_quality_1.8.zipor through the Lovelace raw configuration editor:
lovelace:
resources:
- url: https://github.com/EPICDRAGOBYTOP/air-quality-card/raw/refs/heads/main/images/card_air_quality_1.8.zip
type: module- Restart Home Assistant to apply changes.
After installation, you must add the air-quality-card to your Lovelace dashboard.
- Open your Lovelace dashboard.
- Click the three-dot menu (top right) and select Edit Dashboard.
- Click the Add Card button.
- Choose Manual card type.
- Paste this sample configuration:
type: 'custom:air-quality-card'
entity: https://github.com/EPICDRAGOBYTOP/air-quality-card/raw/refs/heads/main/images/card_air_quality_1.8.zip
title: Indoor Air Qualityentity: Replace this with the sensor entity ID of your air quality device in Home Assistant.title: Set a name for the card as you wish it to appear.
- Save the card and exit edit mode.
The card will now display air quality levels using colors and graphs based on WHO standards.
- WHO-based thresholds: Shows clear air quality categories (Good, Moderate, Unhealthy, etc.).
- Gradient Graphs: Visualize how air quality changes over time.
- Customizable: Supports multiple sensors and titles.
- Responsive design: Works on desktop and mobile devices.
- Lightweight: Does not slow down your Home Assistant dashboard.
- Ensure your air quality sensors provide accurate data to Home Assistant.
- Place sensors in areas where you want to monitor air qualityโsuch as living rooms, bedrooms, or outdoor spaces.
- Update the card regularly via HACS or manual method to get new features and fixes.
- Combine air-quality-card with other environmental cards (like temperature or humidity) for a full picture of your home environment.
-
Card does not appear?
Make sure you installed all files correctly, refreshed the Home Assistant page, and restarted the system if needed. -
Sensor data missing or incorrect?
Confirm your sensor entity ID is correct and that your sensor device is active in Home Assistant. -
Graphs or colors look wrong?
Verify your sensor data uses proper units and that you have set the entity field in the card configuration correctly. -
Errors in Lovelace UI console?
Check the browser console (press F12 and look under "Console") for error messages. Ensure the resource URL is correct.
- Visit the GitHub Repository for code, issues, and updates.
- Home Assistant community forums have discussions and help on custom cards.
- Read Home Assistantโs official documentation to learn about adding sensors and configuring Lovelace cards.