python-intelbras-solar-local
This is an async Python client that reads and controls Intelbras solar inverters over the local network, with no cloud
and no account. It was built for the
ha-intelbras-solar-local Home Assistant integration.
Intelbras IONS inverters are rebranded Sungrow string inverters, and their Wi-Fi datalogger is a Sungrow WiNet-S. The datalogger exposes two interfaces without a login, and this library uses both:
- Modbus TCP on port
502, using the Sungrow SG-RS register map. This is the main data source. - The datalogger WebSocket on port
8082, which the built-in web UI uses. It provides Wi-Fi and cloud link state, active faults and alarms, and the commercial model.
Features
- ⚡ Power readings: AC, DC, apparent and reactive power, plus power factor.
- 🔋 Energy counters for today, the month, the year and the lifetime total (0.1 kWh resolution).
- ☀️ Voltage, current and power for each MPPT input.
- 🔌 Grid voltage, current and frequency (0.01 Hz).
- 🩺 Health data: work state, internal temperature, bus voltage, insulation resistance and fault code.
- 📡 Datalogger data: Wi-Fi and cloud connectivity, active fault list and alarm count.
- 🛠️ Controls: start or stop the inverter, switch power limitation on or off, set the power limit (%), set the clock.
- No
pymodbusdependency. The library ships a tiny asyncio Modbus TCP client, so it never clashes with the version that Home Assistant pins. - Fully async (
aiohttp) and typed (py.typed).
Installation
pip install python-intelbras-solar-local
Quickstart
import asyncio
from intelbras_solar_local import IntelbrasSolarClient
async def main() -> None:
async with IntelbrasSolarClient("192.168.31.17") as client:
status = await client.async_get_status()
print(status.model, status.serial, status.work_state)
print(f"{status.power_ac} W now, {status.energy_today} kWh today")
for n, mppt in enumerate(status.mppts, 1):
print(f"MPPT{n}: {mppt.voltage} V x {mppt.current} A = {mppt.power} W")
asyncio.run(main())
Supported hardware
| Inverter | Datalogger firmware | Sungrow type code |
|---|---|---|
| Intelbras IONS-5K M5 | WIFI-SV300.001.03.P002 (WiNet-S) |
0x2614 |
Other Intelbras IONS models and Sungrow SG-RS inverters behind a WiNet-S should work as well.
If yours differs, open an issue with the output of examples/status.py.
API overview
| Method | Description |
|---|---|
async_get_status() |
Returns an InverterStatus from Modbus, with a DataloggerStatus when the WebSocket answers (best-effort) |
async_get_inverter_data() |
Modbus-only InverterStatus |
winet.async_get_status() |
Datalogger-only DataloggerStatus |
async_set_inverter_on(on) |
Starts or stops generation (holding register 5005) |
async_set_power_limit_enabled(enabled) |
Switches power limitation on or off (5006) |
async_set_power_limit(percent) |
Sets the power limit, 0–100 % (5007) |
async_set_clock(datetime) |
Sets the inverter clock (4999–5004) |
The register map and the WebSocket protocol are documented in the docs.
Development
uv venv && uv pip install -e ".[test]"
pytest
ruff check .
License
MIT © Hudson Brendon. This project is not affiliated with Intelbras or Sungrow.
Metadata
Release files for python-intelbras-solar-local 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python_intelbras_solar_local-0.1.0.tar.gz | 47.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_intelbras_solar_local-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.1 kB
Release files / python_intelbras_solar_local-0.1.0.tar.gz
| Download URL | python_intelbras_solar_local-0.1.0.tar.gz |
|---|---|
| Size | 47.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9805087ede6706903135b2428a269db83c2dd749687ec0b35b8d7a8ac82d436
|
|
BLAKE2b-256 checksum How to use checksums |
bf0cdd14be73889e71c659fc790be664221aed819f890045abea01cbbf3a4b49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / python_intelbras_solar_local-0.1.0-py3-none-any.whl
| Download URL | python_intelbras_solar_local-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81cc13ca2f179b5d2c2f93aad0f33b500b89b11d53d244f85e862fd6aefd1ab6
|
|
BLAKE2b-256 checksum How to use checksums |
cb0eed36b7422c730b361c6dfaab0977ae4c23facb40653a1264def58a4747f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Security for python-intelbras-solar-local 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.