sma2mqtt
Command line tool that listens to the multicast Speedwire of a SMA Energy Meter/Home Manger 2.0 and writes the values to a MQTT server.
I'm using this in my home to read the power consumption/generation from a SMA Home Manager 2.0.
Use at your own risk.
Install:
pip install sma2mqtt
sma2mqtt --help
usage: sma2mqtt [-h] [--topic TOPIC] [--mqtt_client_id MQTT_CLIENT_ID]
[--mqtt_address MQTT_ADDRESS]
[--mqtt_port MQTT_PORT] [--mqtt_username MQTT_USERNAME]
[--mqtt_password MQTT_PASSWORD] [--no_mqtt] [--dump_data]
[--serial_nr] [--force_print_serial] [--print_offsets]
Command line tool that listens to the multicast Speedwire of a SMA Energy Meter/Home Manger 2.0 and writes the values to a MQTT server.
optional arguments:
-h, --help show this help message and exit
--topic TOPIC Topic for the MQTT message. (default: sma)
--mqtt_client_id MQTT_CLIENT_ID
Distinct client ID for the MQTT connection. (default: sma2mqtt)
--mqtt_address MQTT_ADDRESS
Address for the MQTT connection. (default: localhost)
--mqtt_port MQTT_PORT
Port for the MQTT connection. (default: 1883)
--mqtt_username MQTT_USERNAME
User name for the MQTT connection. (default: None)
--mqtt_password MQTT_PASSWORD
Password name for the MQTT connection. (default: None)
--no_mqtt
Don't connect to MQTT and just print the values.
--dump_data
Write the binary datagram to {TMP}/sma_dump.bin.
--serial_nr
Only watch packets for this serial number.
--force_print_serial
Print the serial number, even if only one was found.
--print_offsets
Print the offsets where the patterns were found.
Metadata
Release files for sma2mqtt 0.0.13
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 |
|---|---|---|---|---|
| sma2mqtt-0.0.13.tar.gz | 6.2 kB | Without provenance | Details for sma2mqtt-0.0.13.tar.gz |
Release files / sma2mqtt-0.0.13.tar.gz
| Download URL | sma2mqtt-0.0.13.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f61fe7d9b9bac522ee8f0bee9cc157c30b92944a06c314e0d86830d453f070e0
|
|
BLAKE2b-256 checksum How to use checksums |
93e49359db79804e89f6ad9dcb948b1f02be6331174d9c0388e1884b19f12b40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for sma2mqtt 0.0.13
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.