Site updated at 2017-07-17 17:15:19 UTC

This commit is contained in:
Travis CI 2017-07-17 17:15:19 +00:00
parent c6c7a1e6fe
commit f68f4f81cd
28 changed files with 61 additions and 49 deletions

View file

@ -77,6 +77,25 @@
<p>Support for the Avi-on Bluetooth dimmer switch <a href="http://avi-on.com/">Avi-On</a>.</p>
<p>To enable these lights, add the following lines to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">light</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">avion</span>
<span class="s">username</span><span class="pi">:</span> <span class="s">testuser@fakedomain.com</span>
<span class="s">password</span><span class="pi">:</span> <span class="s">foobar</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>username</strong> (<em>Optional</em>): The username used in the Avion app. If username and password are both provided, any associated switches will automatically be added to your configuration.</li>
<li><strong>password</strong> (<em>Optional</em>): The password used in the Avion app.</li>
<li><strong>devices</strong> (<em>Optional</em>): An optional list of devices with their bluetooth address, a custom name to use in the frontend and the API key. The API key can be obtained by executing the following command:
<div class="highlighter-rouge"><pre class="highlight"><code>curl -X POST -H "Content-Type: application/json" -d '{"email": "fakename@example.com", "password": "password"}' https://admin.avi-on.com/api/sessions | jq
</code></pre>
</div>
</li>
</ul>
<p>with the email and password fields replaced with those used when registering the device via the mobile app. The passphrase field of the output should be used as the API key in the configuration.</p>
<p>If username and password are not supplied, devices must be configured manually like so:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Manual device configuration.yaml entry</span>
<span class="s">light</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">avion</span>
<span class="s">devices</span><span class="pi">:</span>
@ -84,18 +103,10 @@
<span class="s">name</span><span class="pi">:</span> <span class="s">Light 1</span>
<span class="s">api_key</span><span class="pi">:</span> <span class="s">Gr35a/rt3RgaRenl9ag8Ba==</span>
<span class="s">00:21:3D:20:00:a1</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Bulb 2</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Light 2</span>
<span class="s">api_key</span><span class="pi">:</span> <span class="s">Gr35a/rt3RgaRenl9ag8Ba==</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>devices</strong>: A list of devices with their bluetooth address, a custom name to use in the frontend and the API key. The API key can be obtained by executing the following command:</li>
</ul>
<div class="highlighter-rouge"><pre class="highlight"><code>curl -X POST -H "Content-Type: application/json" -d '{"email": "fakename@example.com", "password": "password"}' https://admin.avi-on.com/api/sessions | jq
</code></pre>
</div>
<p>with the email and password fields replaced with those used when registering the device via the mobile app. The passphrase field of the output should be used as the API key in the configuration.</p>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">