You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/binary_sensor.mystrom.markdown
+34-12Lines changed: 34 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -28,22 +28,24 @@ The buttons will give you feedback with its built-in LED:
28
28
- white then green: Pattern was submitted successfully
29
29
- white then red: There is a problem with the communication
30
30
31
-
To use your myStrom WiFi Button in your installation, add the following to your `configuration.yaml` file:
31
+
### {% linkable_title Setup of myStrom Buttons %}
32
32
33
-
```yaml
34
-
# Example configuration.yaml entry
35
-
binary_sensor:
36
-
- platform: mystrom
37
-
```
33
+
You need to configure every button to make it work with Home Assistant. First connect the Wifi Buttons to your wireless network. Once a button is connected you have three minutes to set the actions for the push patterns if the button is not charging. The fastest way is to use `curl`. Check the [documentation](https://mystrom.ch/wp-content/uploads/REST_API_WBP.txt) of the WiFi Button for further details about the implementation (`http://` is replaced by `get://` or `post://`). `action` is the name of the corresponding push pattern (see above).
38
34
39
-
### {% linkable_title Setup of the myStrom Buttons %}
35
+
The endpoint that is receiving the data is `http://[IP address Home Assistant]:8123/api/mystrom`. If you have set an [`api_password`](/components/http/) then this needs to be included in the URL.
40
36
41
-
You need to configure every button to make it work with Home Assistant. First connect the Wifi Buttons to your wireless network. Once a button is connected you have three minutes to set the actions for the push patterns. The fastest way is to use `curl`. Check the [documentation](https://mystrom.ch/wp-content/uploads/REST_API_WBP.txt) of the WiFi Button for further details about the implementation (`http://` is replaced by `get://` or `post://`). `action` is the name of the corresponding push pattern (see above).
37
+
With `api_password:`
42
38
43
-
The endpoint that is receiving the data is `[IP address Home Assistant]:8123/api/mystrom`.
39
+
```
40
+
$ curl -d "[action]=get://[IP address Home Assistant]:8123/api/mystrom?api_password%3D[api_password]%26[action]%3D[ID of the button]" \
41
+
http://[IP address of the button]/api/v1/device/[MAC address of the button]
42
+
```
43
+
44
+
Without `api_password`:
44
45
45
46
```bash
46
-
$ curl -d "[action]=get://[IP address Home Assistant]:8123/api/mystrom?[action]%3D[ID of the button]" http://[IP address of the button]/api/v1/device/[MAC address of the button]
47
+
$ curl -d "[action]=get://[IP address Home Assistant]:8123/api/mystrom?[action]%3D[ID of the button]" \
48
+
http://[IP address of the button]/api/v1/device/[MAC address of the button]
The command-line tool [`mystrom`](https://github.com/fabaff/python-mystrom) is a helper to configure myStrom buttons.
79
+
80
+
If you have set [`login_attempts_threshold`](/components/http/) and forget to include the `api_password` for an action and that action is triggered then after the threshold is reached will the button no longer work because it is banned. See [IP filtering and banning](/components/http/#ip-filtering-and-banning) about how to revert the banning.
81
+
82
+
## {% linkable_title Configuration %}
83
+
84
+
To use your myStrom WiFi Button in your installation, add the following to your `configuration.yaml` file:
85
+
86
+
```yaml
87
+
# Example configuration.yaml entry
88
+
binary_sensor:
89
+
- platform: mystrom
90
+
```
91
+
70
92
<p class='note'>
71
-
The firmware version 2.26 doesn't support TLS/SSL. This means that you are only able to use the WiFi Buttons if you are using plain-text communication between Home Assistant and the clients/entities.
93
+
The firmware version 2.56 doesn't support TLS/SSL. This means that you are only able to use the WiFi Buttons if you are using plain-text communication between Home Assistant and the clients/entities.
0 commit comments