My HA dashboard notifies me that there are updates available for my 3 ESPHome devices. When I click on the notification, it sends me to the updates page and I can click the devices one-by-one. It tells me for all 3 that version 2023.5.5 is installed on the device, and that version 2023.7.0 is available. I then click install, the progress bar says it’s installing, but nothing happens in the end. The version remains 2023.5.5.
I have tried it numerous times on all 3 device. I have rebooted the devices and retried. I have rebooted HA and retried. They simply won’t update.
Any ideas on how to tackle this? HA is up to date with the latest version by the way.
Do you mean by connecting them to a computer? I have these sensors in difficult to reach places, it will have to be through wifi i’m afraid. Or is that not what you are suggesting?
Otherwise I don’t think I know what you mean by web interface
Okay, thanks for explaining that. I didn’t know about that anymore. I once installed them and they work fine, so don’t have to go there.
I tried update all from the top of the screen. They all fail, and the message is the same for all three. Here I quote the message for one of them:
it doesn’t show since you already tried once (it doesn’t actually check the device, but the version of the compiled files)
Just use the 3 dots and hit ‘install’
And while at the 3 dots, maybe use the ‘clean build files’ option as well?
Please take a look at the forum rules, we can’t really work with unformatted text. It is necessary to format code or logs, as YAML is very picky about indentation. Without formatting you loose these indentations and so we loose the ability to check for errors.
See here:
Despite what others here are guessing, from the logs one can see, that it doesn’t compile correctly, meaning your firmware isn’t even made, so there is nothing to update the device, as there is no correct firmware.
So first things first:
Have you done a restart of ESPHome after the update to 2023.7.0?
If not, restart the Add-on (not HA)
Open any system tool you might have, to see the CPU load. Leave this tool window open.
Go to one of the devices, click the three dot menu and click “install”
It’d be best, if you could have both windows open now, one for the CPU load, the other of ESPHome. See, if you are hitting a 100% CPU load and report back.
If the CPU load stays at a reasonable value (even 100% is ok for a very short time period), check your internet connection. Is HA and therefor the ESPHome Add-on having troubles with downloading things? Eg. if you have a weather provider, does it update?
Please report back with your hardware and versions of software. Eg. what computer are you using, a Pi, something else, we need to know that.
If nothing of the above checks out, re-install the ESPHome Add-on, but not without doing a backup before and ideally with saving the ESPHome configuration files (the devices YAML). It makes things easier if something goes wrong.
Nifty idea to search for the error! Should have thought about that.
But that’s the direction I was thinking. ESPHome has gotten quite power hungry, and I can remember before upgrading from a Pi4 to an Intel i5, my CPU load was near 100% and RAM was always an issue (while compiling).
Stopping the addons did the trick. I had a window open with the CPU/Memory load. Before stopping the addons, the memory percentage was at 88% or so. I don’t have a lot of addons, and most of them don’t need much, but the MariaDB addon eats around 15%. So, definately a RAM issue I would say.
I can explain it or myself too now. I never had any issues with updating the ESP’s. However, a few months ago, I started using MariaDB because I switched from storage on an SD card to an SSD. So, with previous updates of the ESP’s my memory wasn’t used as much by MariaDB yet.
I’m sorry, really, if formatting wouldn’t be that important, I wouldn’t have said something.
Just to note, there are some methods to compile on your local machine, but all of them involve more or less technical knowledge, as you’d need to install another ESPHome instance just for compilation. That’s the “last resort” alternative, if the HA/ESPHome instance isn’t going to compile.
I did exactly this, to off-load the compiles from my HA environment. I didn’t think it involved all that much technical knowledge. I installed the app on my Windows laptop, just like any other Windows app.
Admittedly, it’s all command-line from there. So if that sort of thing scares you maybe you’re better off avoiding it. But to me it was totally worth it. Now I can do my ESPHome development, with lots of re-compiling, never worrying about impacting my production HA system.