kylemanna / sniffer

ESP32 Air Quality Sensor with PMSA003 + BME680 and 1.14" LCD
Other
121 stars 15 forks source link

Sniffer used to work fine but after one of the recent updates it stalls out after time. #17

Open God-TM opened 4 months ago

God-TM commented 4 months ago

I've noticed lately that the sniffer stops working after running for a while.

It'll still respond over the network and I can in theory update it, etc. But when I connect into it, the logs show the PM2.5 is reporting with 0 constantly:

[10:11:13][W][component:214]: Component display took a long time for an operation (0.09 s).
[10:11:13][W][component:215]: Components should block for at most 20-30ms.
[10:11:13][D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[10:11:14][W][component:214]: Component display took a long time for an operation (0.09 s).
[10:11:14][W][component:215]: Components should block for at most 20-30ms.
[10:11:14][D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3
[10:11:15][D][pmsx003:236]: Got PM1.0 Concentration: 0 µg/m^3, PM2.5 Concentration 0 µg/m^3, PM10.0 Concentration: 0 µg/m^3

In Home Assistant I can see the temperature among other stats (pressure, wifi signal, etc.) are still updating... it's just the PM/AQI stuff that goes to 0 and then stays there:

image

If I physically reboot the device, AQI starts showing again. But after a day or so, it'll eventually go back to 0 and stay there. Any idea what could be going on?

Thank you.