springfall2008 / batpred

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

Entities missing after HA 2024.11.03 update #1661

Open pgit2345 opened 1 day ago

pgit2345 commented 1 day ago

After upgrading from HA 2024.11.02 to 2024.11.03 most of the predbat entities were missing from the predbat control card. Plan html missing. System not starting e.g. not going into demand or other modes. A few people have been having this issue as described in Giv Forum, links below.

Had to restart predbat addon and then restart HA itself to sort it. Sometimes twice.

Then when upgrading to PredBat 8.7.0 and again to 8.7.1 continued to have issues with some or all entities missing. Again had to restart several times (both PredBat and HA) to get the entities back and the system back in demand operation.

It appears to be a web socket issues connecting to supervisor. Code snippet below on url.

https://community.givenergy.cloud/d/3696-first-night-live-on-predbat/2741

plus also discussed here

https://community.givenergy.cloud/d/5277-issues-with-home-assistant-connecting-to-ge-hybrid-inverter-gen-3/2

Expected behaviour succesful operation and all entities present after either a HA or Predbat upgrade.

Predbat version 8.7.0 and 8.7.1

Environment details

Screenshots error snippet on above url,

Log file error snippet on above url.

pgit2345 commented 1 day ago

Screenshot_20241124_185723_Home Assistant Screenshot_20241124_185858_Home Assistant Couple of screenshots. Just upgraded to 8.7.2, same issue. Tried a rebuild of PredBat addon, plus copied and pasted the controls card from the add-ons directory again in case anything had changed (I had updated it for all the discharge to export renamed, but did that manually). It is now working, probably took 15 minutes for all the entities to appear again in the card. Could see the last few (at the end of the card) arriving one by one just after I saved the card/dashboard. Not sure if it's just really slow to start up or if it really does need the restarts.