Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery configuration issue #272

Closed
wlcrs opened this issue Jan 23, 2023 · 9 comments
Closed

Battery configuration issue #272

wlcrs opened this issue Jan 23, 2023 · 9 comments
Labels
wontfix This will not be worked on

Comments

@wlcrs
Copy link
Owner

wlcrs commented Jan 23, 2023

          @wlcrs I am also experiencing issues with elevated permission operations, my use case is changing battery configuration

I didn't want to raise a new issue - bug as it is more than likely the same as @r13ssh is running into, but let me know if you want me to raise a new one instead

here are the details after enabling extensive logging as you have suggested: -

Describe your Huawei Solar Setup

Inverter Type: SUN2000-6KTL-L1
Inverter Firmware version: V200R001C00SPC124
SDongle present: no
Power meter present: single phase
Battery: LUNA2000 10kWh
Battery Firmware version: V100R002C00SPC116

How do you connect to the inverter?

Via SUN2000-<serial_no> WiFi

Upload your Diagnostics File

Diagnostics File:

config_entry-huawei_solar-e698316461e8c0ed05ffbd592187e6c1.json.txt

Upload your relevant debug logs

home-assistant_2023-01-23T17-59-18.918Z.log

Originally posted by @steve-hawkins in #265 (comment)

@wlcrs
Copy link
Owner Author

wlcrs commented Jan 23, 2023

@steve-hawkins Your diagnostics file shows that the configuration parameters are correctly populated. This is different from the original issue. Can you describe exactly what your problem is, preferably with screenshots illustrating your problem?

@steve-hawkins
Copy link

none of the configuration changes that require elevated permissions appear to work, as an example if I set the switch.battery_charge_from_grid entity value to false / off it shows as off in Home Assistant yet it is not then reflected in the Huawei configuration: -

Screenshot_20230123-182531

Screenshot_20230123-182155

@wlcrs
Copy link
Owner Author

wlcrs commented Jan 23, 2023

Can you please generate debug logs via the method described here: https://www.home-assistant.io/docs/configuration/troubleshooting/#debug-logs-and-diagnostics

Please mention what changes to the configuration you tried to make while debug logging was enabled. Which one succeeded? Which didn't?

@steve-hawkins
Copy link

Configuration changes whilst running debug logs: -

  • Charge from grid (from on to off) = didn't work
  • Grid charge cutoff SOC (from 100% to 80%) = didn't work
  • Excess PV energy use in TOU (from "Charge" to "Fed to grid") = didn't work
  • Working Mode (from "Time of Use" to "Maximum Self Consumption") = succeeded
  • Working Mode (from "Maximum Self Consumption" to "Time of Use") = succeeded

home-assistant_huawei_solar_2023-01-23T19-11-36.987Z.log

@wlcrs
Copy link
Owner Author

wlcrs commented Jan 25, 2023

I've inspected your debug logs, and can see no errors when you change these values: the inverter accepts them nicely.

I however have been able to replicate the behavior, but I'm assuming it is caused by the wrong value being cached by the FusionSolar app, or maybe the online backend?

After changing these values, I observe that the changes are not directly reflected by the FusionSolar app, but they do appear to have come through when checking on the inverter directly.

You can check the real value of each setting by directly connecting to the inverter via the "Device commissioning" function of the FusionSolar app. Most settings can be found under 'Power adjustment'. You'll need to disable the integration when you want to use the Device Commisioning tool.

@steve-hawkins
Copy link

Thanks @wlcrs I'll do some more testing as I starting looking into this when turning off charge from grid whilst away from the property for a couple of days. Doing this through home assistant showed it was off, but the overnight TOU charging period still pulled from the grid.

@etamtlosz
Copy link

Someone in the HA forum mentioned that it takes 10 minutes for the "Charge from grid" to be activated/deactivated after he flips the "Battery Charge from Grid" switch.
I tried the replicate it with my setup and is doing the same.

Steve, did you try to wait for the 10 minutes to pass before checking in the fusion solar app/commisioning?

@zbuh
Copy link

zbuh commented Mar 27, 2023

I'm also seeing this behaviour, even after like 30 minutes.
Not sure if the changes are being applied or not.

@stale
Copy link

stale bot commented May 26, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix This will not be worked on label May 26, 2023
@stale stale bot closed this as completed Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants