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

Self-consume mode not triggering #300

Open tux43 opened 1 month ago

tux43 commented 1 month ago

Hi,

I am working on a Sungrow Sh10RT inverter and I am finding that even when Self-consume mode is triggered the inverter is not supplying current to the house. I am not sure if it is a problem with the integration or the inverter? To keep things simple I have created a script that sends these modbus commands directly to the inverter, it matches this integration. Is there anything else I should be doing to trigger the inverter to go into Self-Consume mode?


alias: "SMART MOTION: Self-consumption mode battery"
sequence:
  - service: modbus.write_register
    data:
      hub: SungrowSHx
      slave: 1
      address: 13050
      value: 204
    alias: Set Stop (default)
  - service: modbus.write_register
    data:
      hub: SungrowSHx
      slave: 1
      address: 13049
      value: 0
    alias: Set EMS Mode Self-consumption mode (default)
Gnarfoz commented 1 month ago

Did the inverter work correctly before you started trying to control it via Modbus? I.e. via iSolarCloud or directly via the WiNet-S interface?

tactmaster commented 1 month ago

I have a similar issues. It was working. I must have accidenly set export limit. So it set the limit to 500w. Then I had a play, Now is not suppling the house with battery. It is leaving it 100% and importing It can be set to force dischange.

koturbash commented 2 weeks ago

Having the same issue, self-consumption worked fine before Modbus/integration into HA. Now self-consumption via Modbus does not work.

When self-consumption is triggered in HA, it says my SH10RT-V112 is in self-consumption mode and iSolarCloud (installer account) says Self-Consumption, so Modbus works. But my SH10RT-V112 does not behave as expected (does not discharge the battery to load and imports from the grid instead). Charging Start Power and Discharging Start Power set to the minimum possible 0.01kW iSolarCloud also tried 0 in HA.

Forced charge works as expected, but requires too many conditions/workarounds to execute properly. original Self-Consumption mode would be much more suitable and desired.

Does anyone have any updates on this? Perhaps a solution? =)

Gnarfoz commented 2 weeks ago

It's nothing the integration did on its own, it doesn't write anything unless you make it write something. I'd suggest looking at the charge/discharge time windows in the advanced settings in iSolarCloud (or via the WiNet-S interface, admin / pw8888): image

There are several ways to more or less accidentally disable the battery in the various advanced settings...

Also, beware, in the iSolarCloud interface, in some places, you first have to click on one table entry for several subordinate rows to appear. If I remember correctly, this is one of those things.

koturbash commented 2 weeks ago

Thanks, @Gnarfoz! Indeed, it was the reason for self-consumption not working as expected!

I wonder why those settings got changed in the first place, as I set those the next day SH10RT-V112 was installed and have not modified them since. Could it be connected to these options on iSolarCloud? (see below)

What do those 0.5h 1h and 72h mean anyway? do settings go back to defaults after 72h?

Clipboard01

tactmaster commented 2 weeks ago

What I found was the several setting got set to disabled. Not 100% sure what setting i changed to make this break.

It was weekend and weekday discharging. image

So setting 5 weekend discharging which mean will use the battery for self consumtion not as i though.....to discarge to the battery to the grid..

Gnarfoz commented 2 weeks ago

Yeah, the parameters are grouped in very confusing ways.

@koturbash I think those are settings that control how long iSolarCloud will wait for a result of the operation. I don't know how 72 hours makes sense for anything. Who would wait 72 hours for a setting to be applied or not applied? 🤔

Gnarfoz commented 2 weeks ago

Considering that this discussion asks for the settings above to be added to this integration, I don't think it is touching these values, yet: https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant/discussions/240