mkaiser / Sungrow-SHx-Inverter-Modbus-Home-Assistant

Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
345 stars 92 forks source link

Max. charge and discharge power. 0 is invalid value. #58

Closed dylan09 closed 1 year ago

dylan09 commented 1 year ago

The value 0 is not valid for sg_battery_max_charge_power and sg_battery_max_discharge_power. Setting register to 0 leads to error Pymodbus: SungrowSH10RT: Exception Response(134, 6, SlaveFailure).

iSolarCloud shows 0.01 ~ 10.6 as valid range. So minimum value for input_numbers set_sg_battery_max_charge_power and set_sg_battery_max_discharge_power should be >= 10.

My suggestion would be minimum of 100. Equal to the step size.