AirGradient Forum

OTA update Home Assistant

My AirGradient ONE (Model I-9PSL) is currently connected through Home Assitant, local configuration mode.

My firmware version is 3.1.4 and Home Assistant tells me an update is available. I’ve tried several times changing configuration mode to cloud and waiting hours, even power cycle it, but it doesn’t update. What am I doing wrong? Thank you!

Hi @iker ,

Can you make sure these steps:

  1. Is your monitor already registered to airgradient dashboard?
  2. Have you set the current firmware set to latest? You can do it by go to airgradient dashboard then General Settings ➝ Firmware ➝ Current Firmware then after choosing the version, click save

Let me know if you need further assistance!

Hi,

Thank you for the quick reply.

I don’t have it registered to the dashboard, Home Assistant only. I thought changing it to cloud it would update and it was not needed to register to the dashboard.

Yes, you should register the monitor first. You can follow this setup wizard, its a quick process, no need to do anything to the monitor.

I’m in the same situation. I have set up locally, HA detected it, the API report configurationControl: "local".

I have entered the serial number into the airgradient dot com dashboard and checked to always update firmware.

The link “New Firmware Available” leads to a URL at the air gradient .com website which this Discourse instance forbids me from posting.

What is expected to happen next here?

Hi @gback , welcome to the forum.

Monitor periodically check ota update every 1 hour. You should just wait for it or restart the monitor if you don’t want to wait.

Thanks for the answer. Nothing happened after multiple hours. Could you confirm that the device will pull settings from the airgradient dashboard (such as Fahrenheit vs Celsius) even when set up to use HA, that is, even when configurationControl is set to local?

I believe that it should be cloud to pull the configuration from the dashboard.

I wouldn’t expect it to do a firmware update while Configuration Control is set to Local. You can still have it added to HomeAssistant and still Cloud control so changing settings is done on the Dashboard, but you can still have data in HomeAssistant

Following arduino/docs/local-server.md at master · airgradienthq/arduino · GitHub I set configurationControl to both.
When I go to AirGradient however, I don’t see any immediate effect if I, for instance, change the brightness.
I can change parameters by directly PUTing them.

For testing, try full Cloud control. You should see the setting reflected in about 30 seconds, possibly up to 1 minute.

If you connect the USB to a computer and use the firmware flashing pages you can view the logs instead of updating firmware and can see when it is getting configs from the Dashboard and what the settings are