Skip to main content

A client to allow access to a Sungrow inverter modbus parameters (read only).

Project description

SungrowInverter

Provides a way to query Sungrow residential hybrid or string inverters for current state and statistics using ModBus TCP client.

Currently does not support any writing to holding registers (for now).

Usage

from sungrowinverter inport SungrowInverter

client = SungrowInverter("192.168.1.27")
await client.async_update()

#Get a list data returned from the inverter.
print(client.data)

Methods and Variables

Contructor

SungrowInverter(ip_address, port=502, initialize=True, slave=0x01, retries3, timeout=60)

port: modbus TCP port defaults to 502 on sungrow inverters used here

initialize: <True|False> if set will query inverter during setup of object and determine inverter model, nominal power capability and other statsic inverter related data

slave: defaulted to 0x01 as per specs your inverter may nee to change this.

retries: number of attempts to query the registers on the inverter before failing

timeout: tcp connection is stopped after this long

Methods

Available methods and how to use

`client.inverter_model()

`client.async_update()

Variables

client.

Note

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SungrowInverter-0.1.5.tar.gz (10.9 kB view hashes)

Uploaded Source

Built Distribution

SungrowInverter-0.1.5-py3-none-any.whl (13.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page