Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vindolin/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.
https://github.com/vindolin/sma2mqtt
mqtt sma solar-energy
Last synced: 11 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/vindolin/sma2mqtt
- Owner: vindolin
- License: mit
- Created: 2023-01-30T11:29:26.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T16:41:40.000Z (almost 2 years ago)
- Last Synced: 2024-12-18T16:48:59.435Z (14 days ago)
- Topics: mqtt, sma, solar-energy
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
--------
```bash
pip install sma2mqtt
``````bash
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] [--just_print] [--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)
--just_print
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.
```