I've just created a small website to monitor PM2.5, realtime, nearby my home and my two Xiaomi Air Purifier 2s.
The outside PM2.5 value is from a Purpleair station nearby my home. All the PM2.5 and AQI values are fed to this website from my local mosquitto broker. I created a bash script to get my Xiaomi airpurifier pm2.5 value from my Home Assistant API (I still can't find a way to get the data directly from the Xiaomi unit) and published them to my mqtt broker. Another bash script to get pm2.5 value direct from Purpleair website. These two bash scripts are running every minute with crontab.
You may have a look at the website:
https://bthofen.com/aqiHere is the link to the demo video I capture from my Android mobile phone.
https://photos.app.goo.gl/EpcwYWwmtikYWRfD8 I use my old iPhone 4s as a mini console.
[ You are not allowed to view attachments ]
I'm willing to share the code if you are interested, bearing in mind I'm a noob on the coding.