The ecowitt app gives numerical measurements from the WH41 air quality sensor, but it also generates an Air Quality Index (AQI) and a "smiley face" rating system. Only the numerical measurements are made available by the ecowitt base station, so this exporter should generate some indices to export, too.
We should make it clear that this is specifically the PM 2.5 air quality index as the WH41 can't measure other pollutants.
The ecowitt app gives numerical measurements from the WH41 air quality sensor, but it also generates an Air Quality Index (AQI) and a "smiley face" rating system. Only the numerical measurements are made available by the ecowitt base station, so this exporter should generate some indices to export, too.
We should make it clear that this is specifically the PM 2.5 air quality index as the WH41 can't measure other pollutants.
Australia
The ecowitt app seems to calculate the AQI as described by the Australian government in NEPM
The NEPM standard calculates the AQI by
where the reading for PM 2.5 is averaged over 24 hours, and the "standard" reference is 25 µg/m3.
The resultant index is then binned into the following categories:
UK
As I'm British, this is the standard I propose making the default in the ecowitt exporter.
There is also a UK standard called DAQI which assigns the index directly based on the concentration of PM 2.5. It also uses a rolling 24-hour average.