Site updated at 2017-10-20 19:24:55 UTC

This commit is contained in:
Travis CI 2017-10-20 19:24:55 +00:00
parent e8107bbf6d
commit 81dc875eff
26 changed files with 65 additions and 65 deletions

View file

@ -94,7 +94,7 @@
</code></pre>
</div>
<h3><a class="title-link" name="setup-of-the-mystrom-buttons" href="#setup-of-the-mystrom-buttons"></a> Setup of the myStrom Buttons</h3>
<p>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 <code class="highlighter-rouge">curl</code>. Check the <a href="https://mystrom.ch/wp-content/uploads/REST_API_WBP.txt">documentation</a> of the WiFi Button for further details about the implementation (<code class="highlighter-rouge">http://</code> is replaced by <code class="highlighter-rouge">get://</code> or <code class="highlighter-rouge">post://</code>). <code class="highlighter-rouge">action</code> is the name of the corresponding push pattern (see above).</p>
<p>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 <code class="highlighter-rouge">curl</code>. Check the <a href="https://mystrom.ch/wp-content/uploads/REST_API_WBP.txt">documentation</a> of the WiFi Button for further details about the implementation (<code class="highlighter-rouge">http://</code> is replaced by <code class="highlighter-rouge">get://</code> or <code class="highlighter-rouge">post://</code>). <code class="highlighter-rouge">action</code> is the name of the corresponding push pattern (see above).</p>
<p>The endpoint that is receiving the data is <code class="highlighter-rouge">[IP address Home Assistant]:8123/api/mystrom</code>.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>curl -d <span class="s2">"[action]=get://[IP address Home Assistant]:8123/api/mystrom?[action]%3D[ID of the button]"</span> http://[IP address of the button]/api/v1/device/[MAC address of the button]
<span class="o">{</span>