I’ve been running a DIY kit for a long time now and I’ve been using ESPHome for most of that time. I had written my config so it would upload to the AirGradient API along with home HomeAssistant and I watch HA daily, but I don’t often check the AirGradient site.
Someone posted on my Github earlier today that the upload wasn’t working for them into the API, and when I checked mine, I was getting the same error. I haven’t changed my ESPHome config, but it looks like the last time my sensor talked to the API was Feb 5th. Were there any backend changes that may account for that? I could try flashing to an older ESPHome to try or just try the Arduino sketch, but the format of the json body and API address hasn’t changed, so not sure why it would have stopped.
This is my config in ESPHome
airgradient_esphome/airgradient.yml at main · MallocArray/airgradient_esphome (github.com)
Example errors in ESPHome logs:
[W][http_request:086]: HTTP Request failed; URL: http://hw.airgradient.com/sensors/airgradient:xxxxx/measures; Error: connection failed; Duration: 0 ms
or
[W][http_request:093]: HTTP Request failed; URL: http://hw.airgradient.com/sensors/airgradient:XXXXXX/measures; Code: 400; Duration: 276 ms