wlcrs / huawei_solar

Home Assistant integration for Huawei Solar inverters via Modbus
GNU Affero General Public License v3.0
559 stars 89 forks source link

Battery configuration issue #272

Closed wlcrs closed 1 year ago

wlcrs commented 1 year ago
          @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- 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 https://github.com/wlcrs/huawei_solar/issues/265#issuecomment-1400755606_

wlcrs commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Configuration changes whilst running debug logs: -

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

wlcrs commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

stale[bot] commented 1 year ago

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