sma2mqtt


Namesma2mqtt JSON
Version 0.0.7 PyPI version JSON
download
home_pagehttps://github.com/vindolin/sma2mqtt
SummaryCommand 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.
upload_time2023-02-07 18:09:15
maintainer
docs_urlNone
authorThomas Schüßler
requires_python
licenseMIT
keywords sma mqtt
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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]

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.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/vindolin/sma2mqtt",
    "name": "sma2mqtt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "sma,mqtt",
    "author": "Thomas Sch\u00fc\u00dfler",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/3a/34/19e2b7560da9d7010dbb524548a9d41e833cb8f2fae99993a2f86ad5f246/sma2mqtt-0.0.7.tar.gz",
    "platform": null,
    "description": "# 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]\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```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "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.",
    "version": "0.0.7",
    "split_keywords": [
        "sma",
        "mqtt"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a3419e2b7560da9d7010dbb524548a9d41e833cb8f2fae99993a2f86ad5f246",
                "md5": "545acd01c3d536842f87c0fdcf7307e9",
                "sha256": "843dcec997bb7b6ab813c5a77ced940ba54bcc882196d6d2bfb5a81a43d03e6d"
            },
            "downloads": -1,
            "filename": "sma2mqtt-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "545acd01c3d536842f87c0fdcf7307e9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5744,
            "upload_time": "2023-02-07T18:09:15",
            "upload_time_iso_8601": "2023-02-07T18:09:15.756270Z",
            "url": "https://files.pythonhosted.org/packages/3a/34/19e2b7560da9d7010dbb524548a9d41e833cb8f2fae99993a2f86ad5f246/sma2mqtt-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-07 18:09:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "vindolin",
    "github_project": "sma2mqtt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "sma2mqtt"
}
        
Elapsed time: 0.04015s