myStrom2MQTT
myStrom buttons allows to send HTTP requests. If a press pattern is applied then a request is send to a devices.
This module is not official, developed, supported or endorsed by myStrom AG.
For questions and other inquiries, use the issue tracker in this repository please.
myStrom AG has provided and is still providing hardware for testing and development.
Supported home automation platforms
Add the moment the following platforms are supported:
Requirements
You need to have Python installed.
myStrom button (button or button+, could work with the Motion sensor too)
A MQTT broker
Network connection
Devices connected to your network
Installation
The package is available in the Python Package Index .
$ pip3 install mystrom2mqtt
Usage
Set the target of the button. The port which is used by mystrom2mqtt is 8321.
curl --location --request POST 'http://[IP of the button]/api/v1/action/generic' \
--data-raw 'post://[mystrom2mqtt host]:8321'
A configuration file is needed. The format is TOML and the default name config.toml.
[mystrom2mqtt]
broker = "192.168.0.20"
port = 1883
username = "mqtt"
password = "mqtt"
To start `mystrom2mqtt specify the path with -c, --config to the configuration file:
mystrom2mqtt -c path/to/config.toml
To autostart mystrom2mqtt create a systemd unit file named /etc/systemd/system/mystrom2mqtt.service with the parameters you
[Unit]
Description=myStrom2MQTT
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/mystrom2mqtt -c "/path/to/config.toml"
[Install]
WantedBy=multi-user.target
License
mystrom2mqtt is licensed under ASL 2.0, for more details check LICENSE.
Metadata
Release files for mystrom2mqtt 0.1.0
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 |
|---|---|---|---|---|
| mystrom2mqtt-0.1.0.tar.gz | 8.5 kB | Without provenance | Details for mystrom2mqtt-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mystrom2mqtt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mystrom2mqtt-0.1.0-py3-none-any.whl |
Total release size: 17.5 kB
Release files / mystrom2mqtt-0.1.0.tar.gz
| Download URL | mystrom2mqtt-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6b0f18cb76b11e2f038a196d283517b0095b545d6a0c85fcbab47a5f1f86b20
|
|
BLAKE2b-256 checksum How to use checksums |
b9dee236f23087ba5849d03ed917a5aff78712b4496c9f8b98d6bfe7e132a172
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / mystrom2mqtt-0.1.0-py3-none-any.whl
| Download URL | mystrom2mqtt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9dab139946947dd17b4fdef885badac7d675ae36c28bd0746ec0228b2afa49e
|
|
BLAKE2b-256 checksum How to use checksums |
544e4edc1ec88306028012751a45056182ece0620ba666d69f94befa316cdb01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Security for mystrom2mqtt 0.1.0
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.