Exporting & Visualizing Xiaomi Air Purifier data with Prometheus & Grafana
I recently bought a Xiaomi Air Purifier (4 Lite) and it does not have historical data. So as any normal human would do I export its data and create the history myself. I have made the exporter here, together with a Grafana dashboard. What can we monitor? This is a list of things we can monitor from the device: Environment: Air Quality Index (PM2.5 Concentration) Temperature Relative Humidity Device Status: Power Status ON/OFF State (Uptime) Current Mode (Auto, Sleep, Manual) Fan level (Manual mode only) Fan RPM (Not shown in Xiaomi Home app) Device Fault (Normal, Sensor Lost, Motor Stop) Filter Life: % Filter Life Used Filter Life Used (in days) Filter Life Remaining (in days) Grafana Dashboard ...