UPDATE: As of 0.107 - AirVisual integration has been updated in Home Assistant. I've edited configuration for it in description.
In this video we will configure AirVisual Air Quality Index (AQI) sensor with Home Assistant.
https://www.home-assistant.io/integra...
This integration can help you learn more about air-quality in your area and setup automations and warnings based on air-quality data.
In order for it to work you need to already have configured and installed temperature and humidity sensors.
00:40 - First thing we have to do is create community account at AirVisual, for that go to web page:
https://airvisual.com/api
After registration, you have to check your e-mail and click on the link from AirVisual to confirm your account.
01:33 - Next, we need to get API key.
01:58 - in your configuration.yaml file add following lines:
AirVisual
airvisual:
api_key: !secret airvisual_api
geographies: # You can leave this out for your home location
latitude: 42.81212 # you can leave this out for your home location
longitude: 108.12422 # or un-comment if you want to get data for some other location
After you finished editing configuration.yaml file, save it, add airvisual_api and it's key to secrets.yaml file, save it, check configuration and restart Home Assistant to activate AirVisual integration.
07:20 - You can now create Automation that can give you alert if air-quality falls below good.
PLEASE NOTE - I type two errors in video - first is I said above but typed in below box, and next one was wrong sensors used.
This is how CORRECT values will look in automations.yaml file after you create it:
id: '1579536149087'
alias: AQI Warning
description: ''
trigger:
above: '50'
entity_id: sensor.chinese_air_quality_index
platform: numeric_state
condition: []
action:
data:
message: Airvisual AQI is getting worse! It's above 50!
service: notify.beardedbot
Check your configuration and reload Automations.
And this is it!
Please leave a comment if you would like to see more component configuration videos.
Of course, subscribe if you still haven't and I'll see you next time!
Have fun!
BeardedTinker
Twitter: @BeardedTinker
Discord: / discord
#HomeAssistant #AirVisual