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

@ -113,6 +113,7 @@
<ul>
<li><code class="highlighter-rouge">apple_tv</code>: Apple TV</li>
<li><code class="highlighter-rouge">axis</code>: (Axis Communications security devices)</li>
<li><code class="highlighter-rouge">bose_soundtouch</code>: Bose Soundtouch speakers</li>
<li><code class="highlighter-rouge">denonavr</code>: Denon Network Receivers</li>
<li><code class="highlighter-rouge">directv</code>: DirecTV</li>
<li><code class="highlighter-rouge">flux_led</code>: Flux Led/MagicLight</li>

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">

View file

@ -124,7 +124,7 @@ Turning the device on/off in the user interface will <em>not</em> turn the physi
<p><em>“This AirPlay connection requires iOS 7.1 or later, OS X 10.10 or later, or iTunes 11.2 or later.”</em></p>
<p>then device authentication is required. Press the icon in the upper left corner and select the leftmost icon according to the image below:</p>
<p><img src="/images/screenshots/developer-tools.png" /></p>
<p>Select <code class="highlighter-rouge">media_player</code> as domain, <code class="highlighter-rouge">apple_tv_authenticate</code> as service and enter <code class="highlighter-rouge"><span class="p">{</span><span class="err">'entity_id':</span><span class="w"> </span><span class="err">'XXX'</span><span class="p">}</span></code> into “Service Data”, but replace XXX with the entity id of your device (e.g. <code class="highlighter-rouge">media_player.apple_tv</code>). Press the button and hopefully you are presented with an input dialog asking for a pin code:</p>
<p>Select <code class="highlighter-rouge">apple_tv</code> as domain, <code class="highlighter-rouge">apple_tv_authenticate</code> as service and enter <code class="highlighter-rouge"><span class="p">{</span><span class="err">'entity_id':</span><span class="w"> </span><span class="err">'XXX'</span><span class="p">}</span></code> into “Service Data”, but replace XXX with the entity id of your device (e.g. <code class="highlighter-rouge">media_player.apple_tv</code>). Press the button and hopefully you are presented with an input dialog asking for a pin code:</p>
<p><img src="/images/components/apple_tv/authenticate.png" /></p>
<p>If no dialog appears, go back to the states view and show it from there. A PIN code should now be visible on your TV, just enter it into the dialog and press “Confirm”. You should see if it succeeded in the state view:</p>
<p><img src="/images/components/apple_tv/credentials.png" /></p>