cdpuk / givenergy-local

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

Unable to activate timed charging #94

Open kylegordon opened 2 weeks ago

kylegordon commented 2 weeks ago

Hi,

Trying to take advantage of Octopus free electricity time slots, but I can't seem to get the integration to apply the changes to the inverter.

Hybrid Gen 3 5.0kW, Firmware: D0.309-A0.309 2x Giv-Bat 9.5, Firmware: 3017

Givenergy-local v2.1.0-beta4

Triggering the following action results in no change to the inverter in the mobile app or in the GE portal, even after a few minutes:

data:
  device_id: 636335f26ef06930329cf34272a13502
  start_time: "13:00:00"
  end_time: "14:00:00"

I have attached the debug logs, from enabling debug, reloading integration, to submitting the action.

I think the relevant lines may be

2024-09-09 22:43:01.405 DEBUG (MainThread) [custom_components.givenergy_local.coordinator] Finished fetching Inverter data in 0.922 seconds (success: True)
2024-09-09 22:43:01.420 DEBUG (MainThread) [custom_components.givenergy_local] Scheduled next update for charge_slot_1 at 2024-09-10 13:00:00
2024-09-09 22:43:01.462 DEBUG (MainThread) [custom_components.givenergy_local] Scheduled next update for charge_slot_2 at 2024-09-10 00:01:00

home-assistant_givenergy_local_2024-09-09T21-46-12.956Z.zip

The second battery schedule does not seem correct.

Happy to experiment!

cdpuk commented 2 weeks ago

The logs contain two disconnects indicated by network_consumer reader at EOF, cannot continue, closing connection. It's not clear whether these are directly related, as it looks like there were more than two attempts to set the charge mode in this time.

It's worth trying the latest stable v2.0.6 to see if that makes any difference.

You could also try changing the setting from the app/portal and see whether the integration picks up the change, which can take up to 5 minutes, or can be forced via a reload.

The second charge slot being incorrect shouldn't be an issue.

kylegordon commented 2 weeks ago

Heya,

Sorry about the wait in getting back to you.

I've downgraded to v2.0.6, and am now also testing with just a plain/brand new home-assistant config in docker. Unfortunately it appears to be the same. I can't get new schedules to stick or enable, and I can't get existing ones to be disabled either, using the Disable Timed Charging call.

Maybe I'm doing something wrong and have misread the docs? I don't use any features other than reading entities at this point.

home-assistant_givenergy_local_2024-09-15T19-50-01.044Z.zip

I can edit the charging times in the GE web UI and the HA logs (the "Scheduled next update" lines) reflect it correctly. Triggering an action with the above YAML also has the logs showing the requested times, but it doesn't appear in the GE mobile app or web UI.

kylegordon commented 1 week ago

The confusion continues, I've just spotted in my monitoring that the battery is clearly charging between 1300 and 1400, yet the GE website and app both state that charging is disabled, and if it were it would be between 1800 and 2000.

I think it might be time for a restart or something...