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

sungrow update no battery forced mode #295

Closed Inrebusillis closed 1 month ago

Inrebusillis commented 1 month ago

according to the last modregister document The forced charging mode is setted using register 33208 and following not the 13050. https://github.com/BigWanna/Sungrow-ModbusRegister-/files/13242230/TI_20231019_Communication.Protocol.of.Residential.Hybrid.Inverter_V1.1.2_EN.pdf

Could you implement this? would be fantastic. Regards

Before you create an issue, make sure to update to the current version of modbus_sungrow.yaml

Describe the bug: Setting the battery forcedcharge with the isolarcloud is ok no change is setted with the GUI.

A clear and concise description of what the bug is. I am trying to force the battery to charge via the GUI or via register 13050 direct MODBUS command. I noted with MODBUS reader that the register13050 value stay on 00XAA in both case I put to forced or default mode the system via isolarcloud ( in this case the battery is forced to load and doing it)

Your Sungrow inverter:

Home Assistant version:

modbus_sungrow.yaml:

Inverter Firmware Status: image

To Reproduce Steps to reproduce the behavior:

  1. Go to isolarcloud
  2. Click on energymanagement change to force charging
  3. open MODBUS reader
  4. See error

Expected behavior register 13050 shold change from 00XAA to 00XBB or 00 X CC it stay 00XAA

register 33208 change according the documentation in the link

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Gnarfoz commented 1 month ago

For me the following works: While the "EMS mode selection" (register 13050) is on "self consumption mode" (0), the "charge/discharge command" (register 13051) toggle is set to "stop" (0xCC). If I want to force charge/discharge, I select "forced mode" (2) for "EMS mode selection" and "charge" (0xAA) or "discharge" (0xBB) for the "charge/discharge command". They're the two dropdowns provided on the default dashboard offered in this repository .

Regarding register 33208, considering it directly precedes 11 other registers (33209-33219) related to scheduled forced charging, I'm inclined to assume it toggles the time based forced charging and is not related to the above "forced mode" method.

Inrebusillis commented 1 month ago

Thanks! that make perfectly sense, I was not aware that I shall change first EMS mode and then the batterie forced as you describe. Much simple to integrate with home automation and Tibber as you just need to set this 2 parameter.