esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
294 stars 37 forks source link

Dashboard no longer displays "Update Available" #4912

Closed 3ative closed 1 year ago

3ative commented 1 year ago

The problem

Post ESPHome 2023.9.0 (Add-on) Dashboard no longer displays blue "Update Available" on devices.

Yet, HA Settings Icon displays number of devices with updates though.

I.E. image

Which version of ESPHome has the issue?

2023.9.0

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.9.3

What platform are you using?

ESP8266

Board

N/A

Component causing the issue

N/A

Example YAML snippet

No response

Anything in the logs that might be useful for us?

None

Additional information

No response

3ative commented 1 year ago

Forgot to add: Tried: Add-on restart, HA restart and Supervisor (VM) Shutdown and restart

robgough1970 commented 1 year ago

same here - looking at device log - shows version 2023.9.0 although devices have not been updated

3ative commented 1 year ago

Additional... If it helps: image

DieMetRik commented 1 year ago

Try to install again.

KrX3D commented 1 year ago

i got the same problem. i noticed that the /config/esphome/.esphome folder is missing

when i hit install on i.e. one of my esp32 this folder is not generated anymore

im not sure if this was always the folder or if it changed:

Building .pioenvs/flexispot-e7/firmware.bin

DieMetRik commented 1 year ago

Folder move to addon/data folder

KrX3D commented 1 year ago

Folder move to addon/data folder

via windows smb this folder is empty, also when i look at it with studio code server

3ative commented 1 year ago

Try to install again.

Tried that too... Made no difference

3ative commented 1 year ago

Folder move to addon/data folder

via windows smb this folder is empty, also when i look at it with studio code server

Yes, it was listed as one of the "Breaking Changes" - It's a real pain to debug cpp files now.

jesserockz commented 1 year ago

Unfortunately I cannot automatically fix this for people that have already upgraded to 2023.9.0, but I will try to put out 2023.9.1 today that will migrate the json files used for the card information so people that skip 2023.9.0 wont have this issue.

ssieb commented 1 year ago

It's a real pain to debug cpp files now.

The only cpp file that you don't already have is the generated main.cpp. But really, if you're debugging you should be running esphome locally. It's much easier.

andreas-bulling commented 1 year ago

Unfortunately I cannot automatically fix this for people that have already upgraded to 2023.9.0, but I will try to put out 2023.9.1 today that will migrate the json files used for the card information so people that skip 2023.9.0 wont have this issue.

Would be good to at least have instructions for how to fix this for these people (I am one of them and I have 45+ ESPHome devices running)

jesserockz commented 1 year ago

If you have a recent HA core backup, you could pull the json files from there and put them into the right place. This could be back into the /config/esphome/.esphome folder which should then be moved into the /data folder when upgrading to 2023.9.1 later. Just dont restart the 2023.9.0 add-on or it will remove them again

andreas-bulling commented 1 year ago

And how do I copy the files from the backup to the hassio directory - samba?

ssieb commented 1 year ago

Yes, or any of the other file manager addons.

3ative commented 1 year ago

Thanks @jesserockz, that's great. 🙏 Luckily I copied my .esphome folder before I upgraded. 😎

andreas-bulling commented 1 year ago

that's not great, this is a desaster. I also don't get why it doesn't create the files in /data apparently - or does it, i.e. I can just upgrade all devices and don't have to upload the json files manually one by one?

and, btw, the solution doesn't work: I just copied the first json file to the server, into the .esphome directory, but the esphome add-on still doesn't indicate any available upgrade.

jesserockz commented 1 year ago

@andreas-bulling yes you can just install/upgrade them and the json files will be regenerated again one-by-one

jesserockz commented 1 year ago

@andreas-bulling If you have 2023.9.0 already, it wont be looking at the .esphome directory, it will only look in the /data directory for the files

KrX3D commented 1 year ago

/addon /data

do not contain any .esphome folder...

image

jesserockz commented 1 year ago

/data is individual per each addon (the ssh addon has its own /data folder). You can only see the contents either from the host OS, or by exec into the esphome addon container.

3ative commented 1 year ago

For those with back-ups (prior to 2023.9.0), wait for this update, copy back your JSONs and start the add-on.

https://github.com/esphome/esphome/pull/5441#issuecomment-1738537547

andreas-bulling commented 1 year ago

FYI - I had upgraded to 2023.9.0 already without saving the JSONs. .esphome was gone and no available updates were indicated in the web interface then as many others have reported.

I upgraded to 2023.9.1 this morning without copying over the JSONs manually before and now the update status is still shown correctly again.

3ative commented 1 year ago

FYI - I had upgraded to 2023.9.0 already without saving the JSONs. .esphome was gone and no available updates were indicated in the web interface then as many others have reported.

I upgraded to 2023.9.1 this morning without copying over the JSONs manually before and now the update status is still shown correctly again.

I noticed that too... I thought I'd comment, just in case.

KrX3D commented 1 year ago

For those with back-ups (prior to 2023.9.0), wait for this update, copy back your JSONs and start the add-on.

esphome/esphome#5441 (comment)

that worked for me, now i see the UPDATE button again

JackTalisker commented 1 year ago

I upgraded my esphome (docker container) from 2023.8.3 to 2023.9.2 and my .esphome config directory seems to be unharmed in its old position "/home/pi/esphome:/config" Starting the container I do not see the update button. What can I do? Thank you