Homeassistant-Growatt-Local-Modbus icon indicating copy to clipboard operation
Homeassistant-Growatt-Local-Modbus copied to clipboard

VPP Protocol

Open notalotofexperience opened this issue 1 year ago • 1 comments

See image of values of SPH.

Maybe it is easier to use the Growatt VPP protocol instead of the RTU protocol. This because Growatt does not update the RTU protocol anymore and the VPP (the addresses are the same for all growatt bettery inverters.

image

Some examples of the VPP protocol to control te battery (what is most interesting I think).

Instant discharging 5kw for 10 minutes Set register 30407 to value 1 # activate remote control Set register 30408 to value 10 # control for 10 minutes Set register 30409 to value -50 # discharge 50% of a 10kw battery, i.e. 5kw (modbus does not allow for negative values so you need to subtract the value from 65535 to send a negative value)

To plan charging fot the next day (for instance based on EPEX power values)

Charging with 100% of the rated power of the battery between 16:02 to 17:31 Set register 30407 to 1 (enable remote control) Set register 30410 to 1 (enable AC charging) Set register 30411 to 2 (choose time slot 2) Set register 30412 to 1660+2=962 Set register 30413 to 1760+31=1051 Set register 30414 to 100 (100%)

Note: The time range setting requires the use of 0x10 to write multiple hold register function codes; the 20-time piece ranges must not overlap; otherwise, the setting will not be successful.

Is there a way you can implement this so automations can be made based on other values / calculations like lowest value for energy pricing on the EPEX? This would be really helpful...

attached the VPP protocol 2.1 GROWATT VPP COMMUNICATION PROTOCOL OF INVERTER_V2.01.pdf

notalotofexperience avatar Jan 03 '25 17:01 notalotofexperience

Hi,

Adding the VPP protocol registers to read information from the inverter should not be difficult. Getting battery Information based on the installation size already requires additional logic.

However, battery control will be challenging as it would require adding new HA Entities and exploring ways to efficiently expose them to control behavior. Additionally, I don't have an inverter that supports this making it difficult to test and little additional value for me while it would be quite some work.

WouterTuinstra avatar Jan 05 '25 13:01 WouterTuinstra