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
305 stars 79 forks source link

load_power sensor only shows positive load #146

Closed koch86 closed 10 months ago

koch86 commented 10 months ago

I am wondering if there is an possibility to sense negative values for the load_power sensor. In my setup, there is a separate micro inverter (Hoymiles) connected to a plug in my house (before the smart meter). This leads to energy export in sunny hours and therefor negative load values.

But: the sensor load_power cuts off any negative load and therefor it is not possible to measure/calculate the real power consumption of the house.

Question: Can this value be obtained somehow? Tried different values and also some calculations but never found the value I am looking for… :-(

image

dylan09 commented 10 months ago

Maybe you could have a look at sensor.export_power_raw. Should be negative when importing power. But don't know if its possible to calculate the value you wish to get?

koch86 commented 10 months ago

Maybe you could have a look at sensor.export_power_raw. Should be negative when importing power. But don't know if its possible to calculate the value you wish to get?

Unfortunately this sensor does not help in my case…

just for clarification:

House consumes 250 W (unknown value) Micro Inverter generates 400 W (known value) Sungrow SmartMeter real input is -150 W but sensor.load_power measures 0 W Sungrow Inverter generates sensor.total_dc_power 5000 W Export sensor.export_power_raw (and also sensor_export_power) is 5000 W

I would like to calc the house consumption so I need the actual load of the SmartMeter input to calc the houses power consumption.

dylan09 commented 10 months ago

Then maybe the value of sg_meter_active_power could be the right value. It's not officially documented. But could be the real meter value?

koch86 commented 10 months ago

Unfortunately not - even the difference between real meter load an DC power is not the value I am looking for. Decided to install another Shelly 3EM to monitor the load.

Thanks for your assistance!

elektrinis commented 10 months ago

I have a second inverter connected per sungrow manual, and I am experiencing this non-negative measurement as well. I believe it's a bug in sungrow firmware.