Skip to main content

Publish Modbus data from Sigenergy to MQTT, with optional Home Assistant Auto-Discovery and PVOutput updating

Project description

sigenergy2mqtt

Dynamic YAML Badge Docker Image Version PyPI - Version Python Version from PEP 621 TOML Coverage - Tests Coverage - Total Maintenance

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:

  1. It can auto-discover Sigenergy devices and their device IDs without having to specify the host IP address.
  2. It can publish the appropriate messages to allow Home Assistant to automatically discover the Sigenergy devices, simplifying Home Assistant configuration.
  3. Production and consumption data can automatically be uploaded to PVOutput.
  4. It can directly publish the Modbus data to an InfluxDB (v1/2) time series database for long-term storage and analysis.

Pre-requisites

  • Sigenergy ESS or PV Inverter, with Modbus-TCP enabled by your installer or through the mySigen app
  • MQTT broker such as Mosquitto, either standalone or installed as an app to Home Assistant

Installation

Follow the installation guides for supported environments:

Configuration

When parsing configuration options, sigenergy2mqtt looks at the configuration sources in the following order:

  1. Configuration File
  2. Environment Variables
  3. Command Line Options1
  4. Home Assistant App Configuration

This means, for example, that the options specified in the configuration file can be overridden by environment variables and command line options.

The combined reference for CLI flags, environment variables, and YAML configuration keys can be found here.

1 Not applicable to the Home Assistant App

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, although I have developed a testing environment in software that emulates the chargers and three phase implementations. 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

sigenergy2mqtt-2026.6.27b1.tar.gz (408.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sigenergy2mqtt-2026.6.27b1-py3-none-any.whl (474.9 kB view details)

Uploaded Python 3

File details

Details for the file sigenergy2mqtt-2026.6.27b1.tar.gz.

File metadata

  • Download URL: sigenergy2mqtt-2026.6.27b1.tar.gz
  • Upload date:
  • Size: 408.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sigenergy2mqtt-2026.6.27b1.tar.gz
Algorithm Hash digest
SHA256 cb02eb5fa31c2ef4f453668bfe927d4ca62f1379f1a002cee4a7e3abfff24d33
MD5 5f86ad162c6180c38a1a03dfe029d00e
BLAKE2b-256 1dd92bcb0eb32a28343e1aee4575e00a18df82a4c6be8bc7e7b18e705fbae819

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigenergy2mqtt-2026.6.27b1.tar.gz:

Publisher: publish-pypi.yml on seud0nym/sigenergy2mqtt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sigenergy2mqtt-2026.6.27b1-py3-none-any.whl.

File metadata

File hashes

Hashes for sigenergy2mqtt-2026.6.27b1-py3-none-any.whl
Algorithm Hash digest
SHA256 79f02cc138ef7db74a711bc8f15f3bcfe7ddabb27aedf2abc91b5e116ef3e52a
MD5 03ce153ee70b0d74ebbec2982c7fb1f4
BLAKE2b-256 f3c922a9cb1fb9cf06ae3392efdc7333ddd4353aa4dc790a35e032cd4f364ee5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigenergy2mqtt-2026.6.27b1-py3-none-any.whl:

Publisher: publish-pypi.yml on seud0nym/sigenergy2mqtt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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