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 End-of-discharge SOC valid range is set to 12 - 20, instead of 0-20 #277

Closed raulliive closed 1 year ago

raulliive commented 1 year ago

Describe the issue

End-of-Discharge SOC valid range is currently set to 12-20%, while Huawei allows in Fusion Solar it to be set to as low as 0.

I believe this integration should follow Huawei's configuration options.

Please change the number.py line 83 to allow end of discharge to be set to 0.

Bescribe your Huawei Solar Setup

Inverter Type: Inverter Firmware version: SDongle present: yes / no Power meter present: three phase / single phase / no Battery: LG RESU xxkWh / LUNA2000 xxkWh / None Battery Firmware version:

How do you connect to the inverter?

Via the SDongle, wired connection

Upload your Diagnostics File

Drag & Drop your Diagnostics File here.

Upload your relevant debug logs

Not relevant.

Please confirm the following:

wlcrs commented 1 year ago

Strangely enough, the Huawei Solar Modbus Interface Definitions tell me that the valid value range for that register is [12, 20]:

image