Setting the time on a Growatt Inverter

After monitoring my solar inverter for over a year now, I have had a couple of instances where the daily energy graphs went a bit strange. It turns out that the inverter’s internal clock will occasionally drift by several hours.  This causes the daily energy production figure to reset at a time other than midnight.

Setting the time on the inverter is quite painful due to the “knock knock” user interface.  Thankfully, you can set the date and time by writing to ModBus registers.

I have created a script that now runs each morning to set the inverter’s date and time to the current date and time:

#!/usr/bin/env python
""" Created on Fri Sep 29 2016
@author: Paul Wilkinson
from datetime import datetime
from pymodbus.client.sync import ModbusSerialClient as ModbusClient
# choose the serial client
client = ModbusClient(method='rtu', port='/dev/tx0000', baudrate=9600, stopbits=1, parity='N', bytesize=8, timeout=1)
now =

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.