springfall2008 / batpred

Home battery prediction and charging automation for Home Assistant, supporting many inverter types
https://springfall2008.github.io/batpred/
107 stars 37 forks source link

Unable to update to anything later than v8.0.0 #1279

Closed PhilPJL closed 1 month ago

PhilPJL commented 1 month ago

Bug

I have a notification to update from v8.0.0 to v8.2.3 (this has been happening since v8.0.0)

Press install. The installation appears to proceed but when it finishes it still says v8.0.0 installed and 'update available'. Pressing install again has no effect.

The Status value for Predbat now displays exception details. See 3rd screenshot.

I can downgrade Predbat back to v8.0.0 to get rid of the exception.

Expected behavior

To install successfully.

Predbat version

Predbat Core v8.0.0 Predbat v8.2.3?

Environment details

GivEnergy 5kW inverter + 9kWh battery.

Standard HAOS.

Screenshots

image image image

Log file Can you capture a log file from the time of the issue, debug mode is not normally required. If you are not keeping the full logs then please enable this in appdaemon.yaml (see the installation instruction in the Predbat docs area for details on how to do this)

gcoan commented 1 month ago

There's been a few people that have had this fail to work after upgrading past v8, myself included.

Restart Appdaemon/Predbat add-on as appropriate after upgrading and it should clear the error and predbat works OK

PhilPJL commented 1 month ago

I've rebooted Home Assistant several times trying to sort this.

When you say restart Appdaemon/Predbat add-on, should Predbat be appearing in the Add-ons page? It's not it appears under HACS and doesn't seem to be restartable.

I have now got 8.2.2 installed successfully somehow, but updating to 8.2.3 gives the usual exception message.

image

Plus if I click the settings button for the update

image

gcoan commented 1 month ago

It's nothing to do with the update button

Predbat runs within an add-on alongside Home Assistant. If you just click 'restart Home Assistant' it will only restart Home Assistant and not the add-on's that run alongside it.

To reboot everything, choose the 'Reboot system' advanced option on the 'restart home assistant' screen

Or simpler you can just restart the add-on that Predbat is running within.

Go to system/add-ons

Find the name of the add-on you installed. Depending on which version of the installation method you followed it will either be:

Click on the add-on name, then click restart

PhilPJL commented 1 month ago

Thanks, I forgot about the restart vs reboot. Reboot + restart appdaemon seems to have fixed things.

gcoan commented 1 month ago

Glad you are sorted

I don't know why these v8 upgrades are having these behaviours requiring an add-on restart. Prior versions have upgraded seamlesly.