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
342 stars 92 forks source link

Battery capacity to display decimal precision #266

Closed housemaister closed 6 months ago

housemaister commented 6 months ago

The battery capacity in HomeAssistant is displayed without decimal precision. E.g. in my case with an SBR096 with 9.6kWh it is displayed as 10 kWh. Adding the precision parameter in the yaml of sensor sg_battery_capacity will change the displaying and also correct calculation of dependent template sensors.

mkaiser commented 6 months ago

hey,

thank you - I have not noticed yet, that my 14.4 kWh battery was displayed as 14 :)

BrettLynch123 commented 6 months ago

I like using this for battery capacity Its meant to give 2 decimal points. but I still get 9.60 for me