{"id":18229722,"url":"https://github.com/vindolin/sma2mqtt","last_synced_at":"2026-05-02T06:38:39.733Z","repository":{"id":65605312,"uuid":"595091466","full_name":"vindolin/sma2mqtt","owner":"vindolin","description":"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.","archived":false,"fork":false,"pushed_at":"2023-02-12T16:41:40.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T01:46:48.641Z","etag":null,"topics":["mqtt","sma","solar-energy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vindolin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-01-30T11:29:26.000Z","updated_at":"2024-08-17T06:19:06.000Z","dependencies_parsed_at":"2023-05-14T10:30:26.362Z","dependency_job_id":null,"html_url":"https://github.com/vindolin/sma2mqtt","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"9102dc147efacf2f1ad4b6a34d945d23d93f62c7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2Fsma2mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2Fsma2mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2Fsma2mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindolin%2Fsma2mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vindolin","download_url":"https://codeload.github.com/vindolin/sma2mqtt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238791988,"owners_count":19531033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mqtt","sma","solar-energy"],"created_at":"2024-11-04T10:03:27.429Z","updated_at":"2026-05-02T06:38:34.683Z","avatar_url":"https://github.com/vindolin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sma2mqtt\n\nCommand 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.\n\nI'm using this in my home to read the power consumption/generation from a SMA Home Manager 2.0.\n\n\nUse at your own risk.\n\n\n\nInstall:\n--------\n```bash\npip install sma2mqtt\n```\n\n```bash\nsma2mqtt --help\n```\n\n```\nusage: sma2mqtt [-h] [--topic TOPIC] [--mqtt_client_id MQTT_CLIENT_ID]\n                     [--mqtt_address MQTT_ADDRESS]\n                     [--mqtt_port MQTT_PORT] [--mqtt_username MQTT_USERNAME]\n                     [--mqtt_password MQTT_PASSWORD] [--just_print] [--dump_data]\n                     [--serial_nr] [--force_print_serial] [--print_offsets]\n\nCommand 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.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --topic TOPIC         Topic for the MQTT message. (default: sma)\n  --mqtt_client_id MQTT_CLIENT_ID\n                        Distinct client ID for the MQTT connection. (default: sma2mqtt)\n  --mqtt_address MQTT_ADDRESS\n                        Address for the MQTT connection. (default: localhost)\n  --mqtt_port MQTT_PORT\n                        Port for the MQTT connection. (default: 1883)\n  --mqtt_username MQTT_USERNAME\n                        User name for the MQTT connection. (default: None)\n  --mqtt_password MQTT_PASSWORD\n                        Password name for the MQTT connection. (default: None)\n  --just_print\n                        Don't connect to MQTT and just print the values.\n  --dump_data\n                        Write the binary datagram to {TMP}/sma_dump.bin.\n  --serial_nr\n                        Only watch packets for this serial number.\n  --force_print_serial\n                        Print the serial number, even if only one was found.\n  --print_offsets\n                        Print the offsets where the patterns were found.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindolin%2Fsma2mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvindolin%2Fsma2mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindolin%2Fsma2mqtt/lists"}