djjudas21 / ecowitt-exporter

EcoWitt exporter for Prometheus
4 stars 3 forks source link

Ecowitt WH41 low battery condition #17

Closed djjudas21 closed 9 months ago

djjudas21 commented 9 months ago

The Ecowitt WH41 air quality sensor has some weird behaviour when the battery is low.

The battery level is reported as an integer between 1-5. When the battery level hits 1, the PM2.5 reading suddenly jumps up to 1000 ug/m3 and stays there until the battery is charged.

Screenshot from 2024-01-08 17-08-24

This is a fault with the sensor itself, but it would be cool if we could work around it in the exporter.

If the battery level = 1 and the pm25 reading = 1000 then the reading should be dropped. It's better to provide no data than wrong data.