huawei_solar: [Bug]: Storage_total_discharge and storage_total_charge wrong values
Describe the issue
Hello.
Everything was working as expected, but suddenly we got a strange value in the following fields:
storage_total_discharge storage_total_charge
"storage_total_charge": [
34911.75,
"kWh"
],
"storage_total_discharge": [
4295259.47,
"kWh"
],
Any idea what may cause this issue? Forcing a value change in the recorder at “Devloper/Statistics” section does not work.
Thanks!
Bescribe your Huawei Solar Setup
Inverter Type: SUN2000-6KTL-L1 Inverter Firmware version: V200R001C00SPC127 SDongle present: yes Power meter present: single phase Battery: LUNA2000 30kWh Battery Firmware version: V100R002C00SPC118
How do you connect to the inverter?
Over serial, with a serial-to-USB stick
Upload your Diagnostics File
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2023.2.5",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.7",
"docker": true,
"arch": "aarch64",
"timezone": "",
"os_name": "Linux",
"os_version": "5.15.84-v8",
"supervisor": "2023.01.1",
"host_os": "Home Assistant OS 9.5",
"docker_version": "20.10.22",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {
"daikin_residential_altherma": {
"version": "2.1.0",
"requirements": [
"oic==1.4.0"
]
},
"worlds_air_quality_index": {
"version": "0.3.5",
"requirements": []
},
"hacs": {
"version": "1.30.1",
"requirements": [
"aiogithubapi>=22.10.1"
]
},
"huawei_solar": {
"version": "1.2.4",
"requirements": [
"huawei-solar==2.2.4"
]
}
},
"integration_manifest": {
"domain": "huawei_solar",
"name": "Huawei Solar",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/huawei_solar",
"issue_tracker": "https://github.com/wlcrs/huawei_solar/issues",
"requirements": [
"huawei-solar==2.2.4"
],
"codeowners": [
"@wlcrs"
],
"iot_class": "local_polling",
"version": "1.2.4",
"loggers": [
"huawei_solar",
"pymodbus"
],
"is_built_in": false
},
"data": {
"config_entry_data": {
"host": "",
"port": 502,
"slave_ids": [
1
],
"enable_parameter_configuration": true,
"username": null,
"password": null
},
"slave_0": {
"model_name": "SUN2000-6KTL-L1",
"pv_string_count": 2,
"has_optimizers": 22,
"battery_type": 2,
"battery_1_type": 2,
"battery_2_type": 2,
"power_meter_type": 0,
"supports_capacity_control": true
},
"slave_0_data": {
"input_power": [
0,
"W"
],
"line_voltage_A_B": [
234.2,
"V"
],
"line_voltage_B_C": [
0.0,
"V"
],
"line_voltage_C_A": [
0.0,
"V"
],
"phase_A_voltage": [
236.6,
"V"
],
"phase_B_voltage": [
0.4,
"V"
],
"phase_C_voltage": [
0.0,
"V"
],
"phase_A_current": [
9.294,
"A"
],
"phase_B_current": [
0.0,
"A"
],
"phase_C_current": [
0.0,
"A"
],
"day_active_power_peak": [
5770,
"W"
],
"active_power": [
2161,
"W"
],
"reactive_power": [
2,
"VA"
],
"power_factor": [
1.0,
null
],
"grid_frequency": [
49.99,
"Hz"
],
"efficiency": [
100.0,
"%"
],
"internal_temperature": [
22.1,
"\u00b0C"
],
"insulation_resistance": [
30.0,
"MOhm"
],
"device_status": [
"On-grid",
null
],
"fault_code": [
0,
null
],
"startup_time": [
"2023-02-27T06:25:24+00:00",
null
],
"shutdown_time": [
null,
null
],
"accumulated_yield_energy": [
617.1,
"kWh"
],
"daily_yield_energy": [
10.34,
"kWh"
],
"state_1": [
[
"Grid-Connected",
"Grid-Connected normally"
],
null
],
"state_2": [
[
"Unlocked",
"PV disconnected",
"DSP data collection"
],
null
],
"state_3": [
[
"On-grid",
"Off-grid switch disabled"
],
null
],
"alarm_1": [
[],
null
],
"alarm_2": [
[],
null
],
"alarm_3": [
[],
null
],
"pv_01_voltage": [
0.0,
"V"
],
"pv_01_current": [
0.0,
"A"
],
"pv_02_voltage": [
0.0,
"V"
],
"pv_02_current": [
0.0,
"A"
],
"nb_online_optimizers": [
0,
null
],
"grid_A_voltage": [
234.1,
"V"
],
"grid_B_voltage": [
null,
"V"
],
"grid_C_voltage": [
null,
"V"
],
"active_grid_A_current": [
-2.8,
"I"
],
"active_grid_B_current": [
null,
"I"
],
"active_grid_C_current": [
null,
"I"
],
"power_meter_active_power": [
9,
"W"
],
"power_meter_reactive_power": [
656,
"Var"
],
"active_grid_power_factor": [
-0.014,
null
],
"active_grid_frequency": [
49.97,
"Hz"
],
"grid_exported_energy": [
4.13,
"kWh"
],
"grid_accumulated_energy": [
819.79,
"kWh"
],
"grid_accumulated_reactive_power": [
0.0,
"kVarh"
],
"meter_type": [
0,
null
],
"active_grid_A_B_voltage": [
null,
"V"
],
"active_grid_B_C_voltage": [
null,
"V"
],
"active_grid_C_A_voltage": [
null,
"V"
],
"active_grid_A_power": [
null,
"W"
],
"active_grid_B_power": [
null,
"W"
],
"active_grid_C_power": [
null,
"W"
],
"storage_state_of_capacity": [
44.0,
"%"
],
"storage_running_status": [
2,
null
],
"storage_bus_voltage": [
434.7,
"V"
],
"storage_bus_current": [
-5.2,
"A"
],
"storage_charge_discharge_power": [
-2161,
"W"
],
"storage_total_charge": [
34911.75,
"kWh"
],
"storage_total_discharge": [
4295259.47,
"kWh"
],
"storage_current_day_charge_capacity": [
16.4,
"kWh"
],
"storage_current_day_discharge_capacity": [
7.47,
"kWh"
]
},
"slave_0_config_data": {
"storage_maximum_charging_power": [
5000,
"W"
],
"storage_maximum_discharging_power": [
5000,
"W"
],
"storage_charging_cutoff_capacity": [
100.0,
"%"
],
"storage_discharging_cutoff_capacity": [
10.0,
"%"
],
"storage_working_mode_settings": [
2,
null
],
"storage_charge_from_grid_function": [
true,
null
],
"storage_grid_charge_cutoff_state_of_charge": [
100.0,
"%"
],
"storage_fixed_charging_and_discharging_periods": [
[],
null
],
"storage_power_of_charge_from_grid": [
3000,
"W"
],
"storage_maximum_power_of_charge_from_grid": [
3000,
"W"
],
"storage_time_of_use_charging_and_discharging_periods": [
[
{
"__type": "<class 'huawei_solar.registers.HUAWEI_LUNA2000_TimeOfUsePeriod'>",
"repr": "HUAWEI_LUNA2000_TimeOfUsePeriod(start_time=0, end_time=360, charge_flag=<ChargeFlag.CHARGE: 0>, days_effective=(True, True, True, True, True, True, True))"
},
{
"__type": "<class 'huawei_solar.registers.HUAWEI_LUNA2000_TimeOfUsePeriod'>",
"repr": "HUAWEI_LUNA2000_TimeOfUsePeriod(start_time=480, end_time=1320, charge_flag=<ChargeFlag.DISCHARGE: 1>, days_effective=(True, True, True, True, True, True, True))"
}
],
null
],
"storage_excess_pv_energy_use_in_tou": [
0,
null
],
"storage_capacity_control_mode": [
0,
null
],
"storage_capacity_control_soc_peak_shaving": [
50.0,
"%"
],
"storage_capacity_control_periods": [
[],
null
]
},
"slave_0_optimizer_data": {}
}
}
Upload your relevant debug logs
Nothing special except for this:
2023-02-27 16:15:52.992 ERROR (MainThread) [custom_components.huawei_solar] Timeout fetching HV2220041572_configuration_update_coordinator data
Please confirm the following:
- The problem is still present in the latest release of this integration.
- I did not find an existing issue describing this problem.
- I did upload the diagnostics-file that I could retrieve from the ‘Devices & Services Page’
- I did upload the relevant debug logs (via ‘Enable Debug Logging’-feature or by manually configuring HA logging)
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 23 (9 by maintainers)
Quick update. Been mailing back and forth with Huawei, just sent them the dongle logs, so hopefully news soon. Do realise now that I’m connecting to the inverter through inverter wifi <-> pi, while I could also be connecting it through dongle wifi <-> pi. Not sure if that’ll make a difference.
(if anyone can explain me why there are 2 ways to connect to these inverters, would be great 😅)
Please report back with their answer, as I guess you won’t be the last one with this issue.
Good luck!
On Fri, May 12, 2023, 17:22 Sven Charleer @.***> wrote: