cdpuk / givenergy-local

Home Assistant integration for local access to GivEnergy inverter and battery systems
MIT License
47 stars 14 forks source link

Integration "Failed Setup" - currently bricked #82

Open rongalbraith opened 1 month ago

rongalbraith commented 1 month ago

Hardware and versions

Describe the bug

Overnight the integration failed. It's been running for some time without issue but now it can't see the devices/entities. Tried a restart and reload but no luck, grabbed some log files and hopefully this will help determine the problem (looks like the Givenergy data context may have changed).

Debug log

home-assistant_givenergy_local_2024-05-16T09-12-58.317Z.log

rongalbraith commented 1 month ago

Possibly a duplicate of #81 but I'm running different hardware.

alex250472 commented 1 month ago

Upgraded from 1.9.1 to latest version and stopped working. Same hardware & firmware as above. Have rolled back to 1.9.1 and started working again.

Lmcde3 commented 1 month ago

Thanks for the update Alex. I'm also facing this big but prefer not to roll back. Am keeping an eye out for any further developments as I love this integration. Thanks all.

matteovescovi commented 1 week ago

Hi,

I believe I may have found a workaround for the reported issue. I'm sharing the information here in case it helps you too.

I'm running with:

Inverter model & generation: GIV-HY5.0
Inverter firmware version: D0.450-A0.451
Battery firmware version: 3015
Home Assistant integration version: 2.0.4

I had (almost) the same issue. My logs showed the following warnings:

2024-06-26 10:23:54.173 WARNING (MainThread) [custom_components.givenergy_local.coordinator] Failed to convert discharge_slot_2 from [0, 60]: minute must be in 0..59

This is similar to the warnings in the attached log:

2024-05-16 00:42:47.327 WARNING (MainThread) [custom_components.givenergy_local.coordinator] Inverter model failed validation: Failed to convert discharge_slot_1 from [60, 2359]: minute must be in 0..59

and the givenergy_local integration would error out and give me ‘no devices or entities’ and ‘failed to setup, will retry’.

I used the givenergy cloud remote control on https://givenergy.cloud/ to read the Discharge 2 Settings.

In my case, the Discharge 2 End Time config was showing a value of --:--.

I set it to 00:00 and reloaded the integration.

After doing that, the integration is working correctly.