Skip to content
AWTRIX Flows
Submit flow
Air Quality Index (AQI) in your city shown on an AWTRIX display
Fig. 1 Air Quality Index (AQI) in your city, as Dmytro Sudakevych (megadimich) runs it.

Air Quality Index (AQI) in your city

Air Quality Index (AQI) in your city

Specifications
System Home Assistant
Firmware AWTRIX 3
Topic Social
Built by Dmytro Sudakevych (megadimich)
File PjqGAXrjOYNK.yaml · 1.8 KB
Icons 1
Published 24 Jan 2024 · updated 24 Jan 2024
Downloads 6
  1. You need to create a sensor in the configuration.yaml file or add a link to a file containing an AQI sensor and a sensor to change the color of the message text.
    In my case, I added the following lines to the configuration.yaml:

homeassistant:
packages: !include_dir_merge_named includes/packages

Place the api_waqi_info_sensors.yaml file in the packages folder.
At https://aqicn.org/data-platform/token/ you must create your token according to the instructions on that site.
Then you should enter this token in the file api_waqi_info_sensors.yaml in resource_template instead of YOURS_TOKEN and instead of A195973 enter your city, for example kyiv or better Air quality monitoring station: A + station code - mine is A195973.

  1. Create your automation. I added my automation to the automations.yaml file. In this file, set your AWTRIX MQTT prefix in topic: instead of awtrix_565c3c.

  2. Do not forget to download the icon mentioned in the project.

If you have any questions, please contact me on Discord at megadimich.

More flows for Home Assistant or Social

Something wrong with this flow? Report it.