MallocArray / airgradient_esphome

ESPHome definition for an AirGradient DIY device to send data to HomeAssistant and AirGradient servers
GNU General Public License v3.0
248 stars 43 forks source link

After a day or two start getting bad or no data and weird white boxes over parts of the display #88

Closed matt-sorenson closed 2 months ago

matt-sorenson commented 2 months ago

I have the AirGradient Pro 3.7, without the TVOC sensor, but with an upgrade to the SHT41 temp/humidity sensor.

I've been running it for a few weeks and pretty consistently after about a day of running random sensors will stop reporting data, (or the particle sensor will sometimes report 0, but other times also no data).

I'll try to snap a picture the next time I get the white box overlaying the screen but that's much less consistent.

Restarting the device "fixes" it for about a day.

I've attached the config for one of my devices below, the other device I have is configured pretty much the same.

office-airgradient.yaml.txt (uploaded as txt because github wouldn't accept a yaml file for some reason).

I'll make sure to grab logs before I restart next time this occurs

Is there any troubleshooting you can recommend?

I'm looking at adding a restart button through ESPHome and a crappy workaround I can think of is to just write a home assistant automation to restart the device every hour but I'd much prefer trying to root cause this before falling back to that.

MallocArray commented 2 months ago

I've seen this a few times, almost exclusively on my 3.7 board, maybe a small number of times on a 4.2 board.

Physically unplugging it and plugging in again seems to address it until a future update is installed.

You could try to factory reset it, which just erases all of your preference settings on the device, such as any of the toggles for displaying F or C, and if the Blank page is enabled, but doesn't actually erase the ESPHome program on the device. I may try it next time I encounter it:

  factory_reset: github://MallocArray/airgradient_esphome/packages/button_factory_reset.yaml
matt-sorenson commented 2 months ago

When I grabbed logs it looks like the issue is i2c related so was more confident it was related to my upgrade to SHT41 & rechecked my solder joints on the SHT41 and both had my shoddy solder joints on a couple pins (i'd bought a few boards on amazon without pins pre-soldered), closing this out as that seems the most likely cause