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
310 stars 80 forks source link

Battery capacity scale or unit wrong? #72

Closed dylan09 closed 1 year ago

dylan09 commented 1 year ago

Hi,

I am testing a little bit around with my battery and backup settings. I have found, that I must have a really huge battery. Entity sg_battery_capacity tells me a capacity of 12.000 kWh. 🙃 Maybe the scale factor or the unit is wrong. Connected is a HVS 12,8 kWh battery. Solutions could be

Maybe someone could help how to fix the entity definition

mkaiser commented 1 year ago

oh, you are right. In my case the battery capacity returns "14,400 kWh"

... damn ',' vs. '. ' ... mixed them up...., again ;)

I saw the register definition in a german forum. I guess it was iobroker or https://www.photovoltaikforum.com.

Have no time to test at the moment. If you could do a PR, this bug will be fixed sooner :)

dylan09 commented 1 year ago

Found the source for the register definitions: photovoltaikforum.de Scale should be 0.01.

Now capacity has correct value.

mkaiser commented 1 year ago

thank you!