MatterVN / ModbusTCP2MQTT

Sungrow & SMA Solar Inverter addon for Home Assistant using mobusTCP
MIT License
67 stars 49 forks source link

sungrow-sg8kd power consumption #2

Open rianbk opened 2 years ago

rianbk commented 2 years ago

Are you able to figure out the power consumption for the sungrow-sg8kd. Generation only seems to really only provide half the data required for anything meaningful

highground88 commented 2 years ago

Try using the SG5KD for your 8 - it's working fine on mine.

ttvt commented 2 years ago

I've made some adjustment. Try it and let me know

Yop1403 commented 2 years ago

Slowly getting there (I have the Sungrow SG5K). HA expects the daily energy consumption in kWh - currently some of the values calculated are in Wh (x1000) which leads to a wrong result in HA. As per below I have consumed 5000 kWh (which would cause quite a financial hole in my pocket) today - the correct value would be 5 kWh (/1000)

HA0

Can you divide the following values by 1000 (marked in yellow in the graphics below) - then everything should be correctly displayed in HA.

HA3

Furthermore, it seems the signs of daily_purchased_energy (displayed as Inverter Daily Energy Import) needs to be changed from + to - in order for HA to show the respective correct sign for both values. As per below currently the energy flow direction (the arrow points in the wrong direction in the graphics below - marked in yellow) is not correctly displayed in HA.

HA5

I guess after these few changes we can be there 👍🏻

mingieee commented 2 years ago

Having the same problem. Value for sensor.inverter_daily_energy_consumption seems to be in Watt Hours, but is interpreted by Home Assistant as kWh.

Sungrow SG5KD

D6C1B55B-7BFF-4104-A952-6FD5F6459F58