Publish Modbus data from Sigenergy to MQTT, with optional Home Assistant Auto-Discovery and PVOutput updating
Project description
sigenergy2mqtt is a bridge between the Modbus interface of the Sigenergy energy system and the MQTT lightweight publish/subscribe messaging protocol.
In addition, sigenergy2mqtt has several optional features:
- It can publish the appropriate messages to allow Home Assistant to automatically discover the Sigenergy devices, simplifying Home Assistant configuration.
- Production and consumption data can automatically be uploaded to PVOutput.
- It can auto-discover Sigenergy devices and their device IDs without having to specify the host IP address.
Installation
Follow the installation guides for supported environments:
Configuration
When parsing configuration options, sigenergy2mqtt looks at the configuration sources in the following order:
This means, for example, that the options specified in the configuration file can be overridden by environment variables and command line options.
Click on the links above to see the configuration options available.
* Not applicable to the Home Assistant Add-On
Modbus Auto-Discovery
You can automatically discover Sigenergy devices on your network. Auto-discovery is triggered when you do not configure a Modbus host, or if you specify the command line option --modbus-auto-discovery, the environment variable SIGENERGY2MQTT_MODBUS_AUTO_DISCOVERY, or you can force it through the Home Assistant Add-on Configuration. The command line option and the environment variables take a value of either once or force: If once is specified, auto-discovery will only occur if no existing auto-discovery results are found. If force, auto-discovery will overwrite any previously discovered Modbus hosts and device IDs.
Auto-discovery is a lengthy process because your local network has to be scanned for potential Modbus hosts, and once detected there are 247 potential device IDs to be scanned on each host.
MQTT Publish and Subscribe Topics
The topics that are published and subscribed to by sigenergy2mqtt can be found here.
Disclaimer
sigenergy2mqtt was developed for my own use, and as such has only been tested in my single-phase environment without AC or DC chargers. In addition, there has been only cursory testing of the write functions. If you find a problem, please raise an issue.
Thanks
sigenergy2mqtt was inspired the Home Assistant integrations developed by TypQxQ.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sigenergy2mqtt-2026.1.5.tar.gz.
File metadata
- Download URL: sigenergy2mqtt-2026.1.5.tar.gz
- Upload date:
- Size: 104.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0f24891394ab7f10a35859f6f2d9930ead4d00dd134436b99c1602077e73ecf
|
|
| MD5 |
f76c75cb7df25108c97b68b3b28bb0b5
|
|
| BLAKE2b-256 |
b7cc04a981a5f1d0cc16b1c77477220a8df71c0c8526b9922634c26c0244c89b
|
Provenance
The following attestation bundles were made for sigenergy2mqtt-2026.1.5.tar.gz:
Publisher:
publish-pypi.yml on seud0nym/sigenergy2mqtt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sigenergy2mqtt-2026.1.5.tar.gz -
Subject digest:
d0f24891394ab7f10a35859f6f2d9930ead4d00dd134436b99c1602077e73ecf - Sigstore transparency entry: 791240260
- Sigstore integration time:
-
Permalink:
seud0nym/sigenergy2mqtt@ebf0dc07f8458314f2899d600be2c455edb53fd8 -
Branch / Tag:
refs/tags/2026.1.5 - Owner: https://github.com/seud0nym
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@ebf0dc07f8458314f2899d600be2c455edb53fd8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sigenergy2mqtt-2026.1.5-py3-none-any.whl.
File metadata
- Download URL: sigenergy2mqtt-2026.1.5-py3-none-any.whl
- Upload date:
- Size: 131.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc9c12c3444bcb16d5c77bc8df0800ec82a4b9f059e0f0ab8b2d1a6d73b48e4c
|
|
| MD5 |
f6be25219db8ab03ab5f75f9f07f2f4f
|
|
| BLAKE2b-256 |
ca0cc162f56c69c6d492badc22095f6f4459b6da1d903b7c61472cdfd534f97c
|
Provenance
The following attestation bundles were made for sigenergy2mqtt-2026.1.5-py3-none-any.whl:
Publisher:
publish-pypi.yml on seud0nym/sigenergy2mqtt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sigenergy2mqtt-2026.1.5-py3-none-any.whl -
Subject digest:
fc9c12c3444bcb16d5c77bc8df0800ec82a4b9f059e0f0ab8b2d1a6d73b48e4c - Sigstore transparency entry: 791240265
- Sigstore integration time:
-
Permalink:
seud0nym/sigenergy2mqtt@ebf0dc07f8458314f2899d600be2c455edb53fd8 -
Branch / Tag:
refs/tags/2026.1.5 - Owner: https://github.com/seud0nym
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@ebf0dc07f8458314f2899d600be2c455edb53fd8 -
Trigger Event:
release
-
Statement type: