BlueAir AQI Readings Now Working

Share
BlueAir AQI Readings Now Working
Magic "Mirror"

The update that came in shortly after my last post on the subject did fix reading data from the air quality sensor on a Blueair air purifier via the Home Assistant integration!

To get the data out of home assistant I'm using an automation to write the sensor reading out to a file, then converting it from pollution concentration to an intermediate air quality index value using python-aqi.

action: notify.send_message
metadata: {}
data:
  message: '"{{ states(''sensor.blue_pure_front_pm_2_5'')|float }}"'
target:
  entity_id: notify.file

I'm now pulling values into a little custom chart module for MagicMirror. The 'ba-aqi2.5' line tracks values from the purifier. It's giving similar readings to the sds011 sensor I have set up in another room, displayed as the lines labeled 'aqi2.5' and 'aqi10'.