From 13c661c2f5cdb2f457b58be41ec1583c7c939195 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 23 May 2017 23:29:41 +0200 Subject: [PATCH] Add endpoint --- source/_components/binary_sensor.mystrom.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_components/binary_sensor.mystrom.markdown b/source/_components/binary_sensor.mystrom.markdown index 0f3d35f2a3d..ec61cdd5ca4 100644 --- a/source/_components/binary_sensor.mystrom.markdown +++ b/source/_components/binary_sensor.mystrom.markdown @@ -40,6 +40,8 @@ binary_sensor: You need to configure every button to make it work with Home Assistant. First connect the Wifi Buttons to your wireless network. Keep in mind that they only support WPS (Wi-FI Protected Setup). 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). +The endpoint that is recieving the data is `[IP address Home Assistant]:8123/api/mystrom`. + ```bash $ 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] {