/OpenInverterGateway

Firmware replacement for Growatt ShineWiFi-S

Primary LanguageC++MIT LicenseMIT

Growatt_ShineWiFi

Firmware replacement for Growatt ShineWiFi-S (serial), ShineWiFi-X (USB) or custom build sticks (ESP8266/ESP32).

How to install

  • Download a precompiled release from here (hardcoded to default settings/growatt protocol 1.24)

Or

  • Checkout this repo
  • Setup platform.io
  • Open the project folder and choose the correct env for your hardware
  • Rename and adapt Config.h.example to Config.h with your compile time settings

After you obtained an image you want to flash:

  • Flash to an esp32/esp8266 or to a shineX/S-stick (details).
  • Connect to the setup wifi called GrowattConfig (PW: growsolar) and configure the firmware via the webinterface at http://192.168.4.1
  • If you need to reconfigure the stick later on you have to either press the ap button (configured in Config.h) or reset the stick twice within 2-10sec

Features

Implemented Features:

  • Built-in simple Webserver
  • The inverter is queried using Modbus Protocol
  • The data received will be transmitted by MQTT to a server of your choice.
  • The data received is also provided as JSON
  • Show a simple live graph visualization (http://<ip>) with help from highcharts.com
  • Firmware update via wifiManager
  • It supports basic access to arbitrary modbus data
  • It tries to autodected which stick type to use
  • Wifi manager with own access point for initial configuration of Wifi and MQTT server (IP: 192.168.4.1, SSID: GrowattConfig, Pass: growsolar)
  • Currently Growatt v1.20, v1.24 and v3.05 protocols are implemented and can be easily extended/changed to fit anyone's needs
  • TLS support for esp32
  • Debugging via Web and Telnet

Not supported:

  • It does not make use the RTC or SPI Flash of these boards.
  • It does not communicate to Growatt Cloud at all.
  • The ShineWifi-LAN stick is not supported. But there is another project for this

Supported sticks/microcontrollers

  • ShineWifi-S with a Growatt Inverter connected via serial (Modbus over RS232 with level shifter)
  • ShineWifi-X with a Growatt Inverter connected via USB (USB-Serial Chip from Exar)
  • Wemos-D1 with a Growatt Inverter connected via USB (USB-Serial Chip: CH340)
  • NODEMCU V1 (ESP8266) with a Growatt Inverter connected via USB (USB-Serial Chip: CH340)
  • ShineWifi-T (untested, please give feedback)
  • Lolin32 (ESP32) with a Growatt Inverter connected via USB

I tested several ESP8266-boards with builtin USB-Serial converters so far only boards with CH340 do work (CP21XX and FTDI chips do not work). Almost all ESP8266 modules with added 9-Pin Serial port and level shifter should work with little soldering via Serial.

See the short descriptions to the devices (including some pictures) in the "Doc" directory.

Supported Inverters

  • Growatt 1000-3000S
  • Growatt MIC 600-3300TL-X (Protocol 124 via USB/Protocol 120 via Serial)
  • Growatt MID 3-25KTL3-X (Protocol 124 via USB)
  • Growatt MOD 3-15KTL3-X-H (Protocol 120 via USB)
  • Growatt MOD 12KTL3-X (Protocol 124 via USB)
  • Growatt MID 25-40KTL3-X (Protocol 120 via USB)
  • Growatt SPH 4000-10000STL3-X BH (Protocol 124 via Serial)
  • And others ....

Modbus Protocol Versions

The documentation from Growatt on the Modbus interface is available, search for "Growatt PV Inverter Modbus RS485 RTU Protocol" on Google.

The older inverters apparently use Protocol v3.05 from year 2013. The newer inverters apparently use protocol v1.05 from year 2018. There is also a new protocol version v1.24 from 2020. (used with SPH4-10KTL3 BH-UP inverter)

JSON Format Data

For IoT applications the raw data can now read in JSON format (application/json) by calling http://<ip>/status

Homeassistant configuration

Homeassistant config is described here

Debugging

If you turned on ENABLE_WEB_DEBUG in the Config.h (see Config.h.example) there is a debug site under http://<ip>/debug. You can turn on ENABLE_TELNET_DEBUG to get the debug messages via a telnet client. telnet <ip>

To enable even more messages, take a look to DEBUG_MODBUS_OUTPUT.

Change log

See here

Acknowledgements

This arduino sketch will replace the original firmware of the Growatt ShineWiFi stick.

This project is based on Jethro Kairys work on the Modbus interface https://github.com/jkairys/growatt-esp8266

Some keywords:

ESP8266, ESP-07S, Growatt 1000S, Growatt 600TL, ShineWifi, Arduino, MQTT, JSON, Modbus, Rest