-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add Google Air Quality integration #39107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
c0ffeeca7
merged 15 commits into
home-assistant:next
from
Thomas55555:google_air_quality
Nov 26, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9398cfb
Add google air quality integration
Thomas55555 69e2742
Update source/_integrations/google_air_quality.markdown
Thomas55555 6160491
Apply suggestions from code review
Thomas55555 ec783a8
tiny tweaks
c0ffeeca7 16464a0
tiny style tweaks
c0ffeeca7 e5743f8
update sensors
Thomas55555 ba3d7b8
Merge branch 'google_air_quality' of https://github.com/Thomas55555/h…
Thomas55555 c7a226a
merge
Thomas55555 b500b93
Merge branch 'next' into google_air_quality
Thomas55555 eebe64d
Update source/_integrations/google_air_quality.markdown
Thomas55555 48f333f
Update source/_integrations/google_air_quality.markdown
Thomas55555 2852b1c
Merge branch 'next' into google_air_quality
Thomas55555 6689d81
change to API key
Thomas55555 8b6fe31
Update source/_integrations/google_air_quality.markdown
Thomas55555 096b266
Update source/_integrations/google_air_quality.markdown
Thomas55555 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| --- | ||
| title: Google Air Quality | ||
| description: Instructions on how to integrate Google Air Quality into Home Assistant. | ||
| ha_category: | ||
| - Sensor | ||
| ha_release: 2025.12 | ||
| ha_iot_class: Cloud Poll | ||
| ha_config_flow: true | ||
| ha_codeowners: | ||
| - '@Thomas55555' | ||
| ha_platforms: | ||
| - sensor | ||
| ha_integration_type: integration | ||
| ha_domain: google_air_quality | ||
| ha_quality_scale: bronze | ||
| --- | ||
|
|
||
| The **Google Air Quality** {% term integration %} provides Air quality data through the Google Air Quality API. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| You need an API key. Follow the instructions [in the Google developer documentation](https://developers.google.com/maps/documentation/air-quality/get-api-key) for creating an API key. | ||
| Additionally, you have to create a *Billing Account*. At the time of writing this documentation, Google allows 10,000 API calls per month for free. | ||
|
|
||
| {% important %} | ||
| This integration polls every 60 minutes. Here is an overview about how many API calls are performed per month in dependence of the amount of coordinates: | ||
|
|
||
| Coordinates | API calls per month | ||
| ----------- | ------------------- | ||
| 1 | 800 | ||
| 2 | 1,600 | ||
| 3 | 2,400 | ||
| 4 | 3,200 | ||
| 5 | 4,000 | ||
| 10 | 8,000 | ||
| 12 | 9,600 | ||
|
|
||
| Consider each restart of Home Assistant is an additional API call, per coordinate/entry. | ||
|
|
||
| You can set up a [budget](https://cloud.google.com/billing/docs/how-to/budgets) for your billing account. This does not limit your costs, but you can get an alert when you reach the budget. | ||
| You may want to setup [disable billing with notifications](https://cloud.google.com/billing/docs/how-to/disable-billing-with-notifications). This can still produce costs between incurring costs and receiving budget notifications. | ||
|
|
||
| Make sure to monitor the cost. If you make too many requests, you will be charged for it. The integration cannot monitor it for you. | ||
| {% endimportant %} | ||
|
|
||
| {% include integrations/config_flow.md %} | ||
|
|
||
| ## Supported functionality | ||
|
|
||
| ### Sensor | ||
|
|
||
| The integration will create the following sensors: | ||
| For your local air quality you can find more details [here](https://developers.google.com/maps/documentation/air-quality/laqis) | ||
|
|
||
| - **Universal Air Quality Index (UAQI)** | ||
| *The global air quality index provided by Google. Ranges from 0 (worst) to 100 (best).* | ||
|
|
||
| - **UAQI Category** | ||
| *Descriptive category for UAQI. Possible values include: Excellent air quality, Good air quality, Moderate air quality, Low air quality, Poor air quality.* | ||
|
|
||
| - **UAQI Dominant Pollutant** | ||
| *The pollutant that most significantly influences the UAQI value. Possible values include: PM2.5, PM10, Ozone (O₃), Nitrogen Dioxide (NO₂), Sulphur Dioxide (SO₂), Carbon Monoxide (CO)* | ||
|
|
||
| - **Local Air Quality Index** | ||
| *A regionally calibrated AQI value, where available.* | ||
|
|
||
| - **Local Category** | ||
| *Descriptive category for the local AQI. The values can differ from the ones set as UAQI Category.* | ||
|
|
||
| - **Local Dominant Pollutant** | ||
| *The pollutant that most significantly influences the local AQI. The values can differ from the ones set as UAQI Dominant Pollutant.* | ||
|
|
||
| - **PM2.5** | ||
| *Particulate matter smaller than 2.5 µm in diameter.* | ||
|
|
||
| - **PM10** | ||
| *Particulate matter smaller than 10 µm in diameter.* | ||
|
|
||
| - **Ozone (O₃)** | ||
| *Ground-level ozone concentration.* | ||
|
|
||
| - **Nitrogen Dioxide (NO₂)** | ||
| *Nitrogen dioxide concentration.* | ||
|
|
||
| - **Sulphur Dioxide (SO₂)** | ||
| *Sulphur dioxide concentration.* | ||
|
|
||
| - **Carbon Monoxide (CO)** | ||
| *Carbon monoxide concentration.* | ||
|
|
||
| ## Removing the integration | ||
|
|
||
| {% include integrations/remove_device_service.md %} | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.