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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for SungrowInverter-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dce37fcb5db311fcf41958099eac5a96452798346eaf11eb12b194482fe29846 |
|
MD5 | 1a172283707bc25dd4052dc449156211 |
|
BLAKE2b-256 | 7824be070700f430494352734e8fc4be82db8731884ef0994fe10c33f92e6f8c |