SolarEdge 2 MQTT Service
The SolarEdge2MQTT service is a project designed to read data from a SolarEdge inverter and publish it to an MQTT broker. The service is useful for integrating SolarEdge inverters into home automation systems or other applications that use MQTT for data exchange. It provides real-time monitoring of power flow and other parameters from the inverter. The project is open-source and can be customized to suit specific needs.
The SolarEdge2MQTT service is currently in an early stage of development. While it is functional and can be used to read data from a SolarEdge inverter and publish it to an MQTT broker, it is still undergoing active development. Features may be added, removed, or changed, and there may be bugs. Users should be aware of this and use the service with caution. Despite its early state, the project is open-source and contributions are welcome.
Installation and Configuration
Install and update using pip.
pip install -U solaredge2mqtt
Install and update using docker
docker pull ghcr.io/deroetzi/solaredge2mqtt:latest
Service configuration
The service is configured by environment variables. The following options can be set:
| Environment Variable | default (production/development) | description |
|---|---|---|
| SE2MQTT_ENVIRONMENT | production | Choose the default environment settings: production or development. |
| SE2MQTT_MODBUS_HOST | None | IP address of your inverter |
| SE2MQTT_MODBUS_PORT | 1502 | Modbus port of your inverter |
| SE2MQTT_MODBUS_TIMEOUT | 1 | Timeout for the modbus connection |
| SE2MQTT_MODBUS_UNIT | 1 | Modbus unit address |
| SE2MQTT_CLIENT_ID | solaredge2mqtt | MQTT client id |
| SE2MQTT_BROKER | None | IP address of your MQTT broker |
| SE2MQTT_PORT | 1883 | Port of your MQTT broker |
| SE2MQTT_USERNAME | None | Username to authenticate to your MQTT broker |
| SE2MQTT_PASSWORD | None | Password to authenticate to your MQTT broker |
| SE2MQTT_TOPIC_PREFIX | solaredge | SolarEdge2MQTT will use this as prefix topic |
| SE2MQTT_INTERVAL | 5 | Interval between requests in seconds |
| SE2MQTT_LOGGING_LEVEL | INFO | Set logging level to DEBUG, INFO, WARNING, ERROR, CRITICAL |
Example configuration
You can download .env.example and rename it to .env. Inside, you can modify the default configuration values to meet your needs in this file.
Run the service
In the console
Copy the .env.example file to .env and modify it according to your needs.
Then, simply run solaredge2mqtt to start the service.
With docker:
docker run --name solaredge2mqtt --rm \
-e "SE2MQTT_MODBUS_HOST=<INVERTER_IP>" \
-e "SE2MQTT_BROKER=<BROKER_IP>" \
-e "SE2MQTT_USERNAME=<MQTT_USERNAME>" \
-e "SE2MQTT_PASSWORD=<MQTT_PASSWORD>" \
-e "TZ=Europe/Berlin" \
ghcr.io/deroetzi/solaredge2mqtt:latest
Add optional environment arguments from above to fit to your setup.
Metadata
Release files for solaredge2mqtt 0.1.1
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 | Actions |
|---|---|---|---|---|
| solaredge2mqtt-0.1.1.tar.gz | 30.7 kB | Without provenance | Details for solaredge2mqtt-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| solaredge2mqtt-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for solaredge2mqtt-0.1.1-py3-none-any.whl |
Total release size: 42.4 kB
Release files / solaredge2mqtt-0.1.1.tar.gz
| Download URL | solaredge2mqtt-0.1.1.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86657f14b9357c9ab2f2bcb97359f553fb4fb5ec29c4058a703ba60beec382ef
|
|
BLAKE2b-256 checksum How to use checksums |
1dba94b95866c3873652add82ffc6323541c5a329a8b12e6edd85bf627b5ec8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / solaredge2mqtt-0.1.1-py3-none-any.whl
| Download URL | solaredge2mqtt-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5dc4239fe847dbfc89b360c677b3c045e855021801844e81a7aace764f20db2
|
|
BLAKE2b-256 checksum How to use checksums |
a2ecc25d9166d8022196d805bdf489a50a9bc63f2c5f004a20ac1e84ef411931
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for solaredge2mqtt 0.1.1
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.