Read data from GoodWe inverter via local network
Project description
GoodWe
Library for connecting to GoodWe inverter over local network and retrieving runtime sensor values and configuration parameters.
It has been reported to work on GoodWe ET, EH, BT, BH, ES, EM, BP, DT, MS, D-NS, and XS families of inverters. It may work on other inverters as well, as long as they listen on UDP port 8899 and respond to one of supported communication protocols.
(If you can't communicate with the inverter despite your model is listed above, it is possible you have old ARM firmware version. You should ask manufacturer support to upgrade your ARM firmware (not just inverter firmware) to be able to communicate with the inveter via UDP.)
White-label (GoodWe manufactured) inverters may work as well, e.g. General Electric GEP (PSB, PSC) and GEH models.
Usage
- Install this package
pip install goodwe
- Write down your GoodWe inverter's IP address (or invoke
goodwe.search_inverters()
) - Connect to inverter and read all runtime data, example below
import asyncio
import goodwe
async def get_runtime_data():
ip_address = '192.168.1.14'
inverter = await goodwe.connect(ip_address)
runtime_data = await inverter.read_runtime_data()
for sensor in inverter.sensors():
if sensor.id_ in runtime_data:
print(f"{sensor.id_}: \t\t {sensor.name} = {runtime_data[sensor.id_]} {sensor.unit}")
asyncio.run(get_runtime_data())
or the old way (for XS inverters only), create a processor and inverter instance:
import asyncio
from goodwe import GoodWeInverter, GoodWeXSProcessor
async def get_data():
ip_address = '192.168.200.100'
processor = GoodWeXSProcessor()
inverter = GoodWeInverter(inverter_address=(ip_address, 8899), processor=processor)
data = await inverter.request_data()
print(f'power is {data.power} at {data.date:%H:%M:%S}')
asyncio.run(get_data())
References and useful links
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
File details
Details for the file goodwe-0.2.24.tar.gz
.
File metadata
- Download URL: goodwe-0.2.24.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | faae34ebf84017d965e03d03c8b69d351fc9b58ee4c8df77bf89f647a8f90c42 |
|
MD5 | f3f52a10d01a14d68dd3e8bb85b75cfc |
|
BLAKE2b-256 | c3196fe2b4f0d37bce45e15c84faeb4b6e04d473c9d840b4666b9f66230b5d93 |
File details
Details for the file goodwe-0.2.24-py3-none-any.whl
.
File metadata
- Download URL: goodwe-0.2.24-py3-none-any.whl
- Upload date:
- Size: 33.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a12de5f877121d150a733020db92f53601618550af29aa5aadafe2923ae1efb1 |
|
MD5 | 96f7e8943e12b102ff90966deeeb7ae1 |
|
BLAKE2b-256 | 12cb9ff4459d87ae8e22cefcab9cf2f71b7c9ff83672e1600f12299876aa7faa |