bohdan-s / SunGather

GNU General Public License v3.0
141 stars 57 forks source link

Controlling sungrow through EMS registers #153

Closed hacor closed 1 month ago

hacor commented 7 months ago

Hi,

I was wondering if someone out here could perhaps help me out with my Sungrow inverter experiment. I have a SH10.0RT hybrid inverter with a Sungrow battery of 12.8kWh and I want to permanently control the charging/discharging power of the battery. Why:

My software is running perfectly on Goodwe inverters, but Sungrow gives me strange behaviours. All settings are based on the modbus PDF 12/01/2023

What do I set:

What happens in this situation: The inverter starts charging at 2000W (read battery power 13022) for about 1 seconds, than the power drops to 0 and after 3 seconds it gives me 2000W again for 1 second. In the meantime no fields were written in the inverter. This behaviour repeats all the time, which I think is not healthy for the device. It feels like some internal setting keeps it from charging

Good to knows:

{
    "ems_power": 0,
    "mode": 204,
    "ems_mode": 0
  }

The inverter starts back to solar charging in self-consumption mode, which works perfectly.

I really hope someone can help me out, because I'm really stuck here.

Thanks! kind regards

Hacor

jbardu commented 1 month ago

did you get any good answer to these issues? I search a lot and there is so much stuff on reading data but very little on controlling such things. It seems like an obvious thing. Why is it so hard. Or you solved it?

hacor commented 1 month ago

@jbardu It seemed to had something to do with the grid import feed. I had to allow the inverter to take power from the grid to charge. It was fighting itself in order to do so.

As a hint: try your commands with mbpoll this tool helped me get the inverter stable by trying multiple registers