Skip to content

mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant

Repository files navigation

An easy-to-use YAML-based integration for several Sungrow inverters for Home Assistant.

Discord Chat

2026-01-01 "Version 2 of modbus_sungrow.yaml"

After five years of continuous development with maintained backwards compatibility, this integration reached its limits. With the help of @theunknown86 and several others, this yaml-based integration was rebased on a better and more flexible codebase. It still remains yaml-based and not a "full" Home Assistant integration, but can now support different Sungrow models with their specific features ("quirks"). As long there is no "real integration" available, I will continue to maintain the new yaml file.

The migration to the new version requires a few manual steps, see migration guide.

The old version will be archived in the separate branch 2025-legacy. The "dev"-branch which was tested now by several users is now the "main"-branch.

Contents

1. Overview

This integration lets you gather sensor data and control the EMS (Energy Management System) of a wide range of Sungrow inverters, including, but not limited to: SH3.6RS, SH4.6RS, SH5.0RS, SH5.0RT, SH6.0RS, SH8.0RT, SH8.0RT-V112, SH6.0RT, SH10RT, SH10RT-V112, SH5K-20, SH3K6, SH4K6, SH5K-V13, SH5K-30. A battery is not required, but several sensors will not be available without one.

If available on your inverter, connect the inverter to the Home Assistant network using the inverters internal LAN port. The WiNet-S Ethernet port and the WiNet-S Wi-Fi also work, but sometimes slightly slower and with some restrictions imposed by Sungrow on which data is available.

SHxRT connections overview

SHxRT LAN connection

2. Documentation

3. Support

My personal time is quite limited, but there are several nice people here who like to help.

If you need any kind of assistance, you have three options:

4. Visual impressions

Home Assistant's built-in Energy Dashboard

Default dashboard tab "Overview"

Default dashboard tab "Detail"

Default dashboard tab "EMS control"

5. Tested configurations

I have a Sungrow SH10.RT inverter and a PylonTech Force H1 battery with 14.4 kWh, updating frequently to the latest available firmware and Home Assistant. I try to thoroughly test features before releasing them, but I cannot test everything (e.g., backup capabilities, DO-related, sungrow-battery-specifics ...)

The Modbus register mapping is based on Sungrow's official Modbus communication protocol specification. These documents are available from Sungrow support. They are only updated sporadically. If you have a newer version, let me know in the GitHub discussions!

TI_20251119_Communication_Protocol_of_Residential_Hybrid_Inverter_V1.1.11_EN.pdf
TI_20230117_Communication.Protocol.of.Residential.and.Commerical.PV.Grid-connected.Inverter_V1.1.53_EN.pdf

6. Status and future work

This is meant to be a simple, straight-forward YAML-based integration. If you need more than this, I recommend having a look at other projects:

7. Contributions

We are happy to share our experiences - feel encouraged to share yours with us, too!

If you have any questions, feature requests, found any bugs or have some hints how to update the documentation, a low-threshold way is to join the Discord Chat and just ask.

8. Related work

9. Acknowledgements

Thanks to all the people, who are actively contributing to this project! Special thanks to Gnarfoz, Louisbertelsmann, dylan09, elektrinis and many more!

About

Home Assistant integration for Sungrow inverters: SH*RT series (SH10RT), SHx.RS series (SH3.RS), SH*K series (SH4K6), SxT-series (S20T)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 34

Languages