Site updated at 2017-05-11 21:15:24 UTC

This commit is contained in:
Travis CI 2017-05-11 21:15:24 +00:00
parent 92f9d1f463
commit 19fdb01ea3
26 changed files with 52 additions and 45 deletions

View file

@ -72,12 +72,19 @@
<li>Spotify Premium account.</li>
<li>Spotify Application, properly configured.</li>
</ul>
<p>To create the required Spotify Application, login to <a href="https://developer.spotify.com">Spotify Developer</a>, visit the <a href="https://developer.spotify.com/my-applications/#!/applications">My Applications</a> page, and select <strong>Create An App</strong>. Enter any name and description. Once your application is created, you can view it and discover your <strong>Client ID</strong> and <strong>Client Secret</strong>, which are placed in the Home Assistant configuration file. Finally, add a <strong>Redirect URI</strong> in the following form:</p>
<p><code class="highlighter-rouge">http://&lt;your_home_assistant_url_or_local_ip&gt;/api/spotify</code></p>
<p>If youve set up Home Assistant to use SSL encryption, use:</p>
<p><code class="highlighter-rouge">https://&lt;your_home_assistant_url_or_local_ip&gt;/api/spotify</code></p>
<p>The first part of the URL will be whatever you use to access Home Assistant from outside your network (including port if applicable).</p>
<p>Remember to select <strong>Save</strong> after adding the URI. You may also need to set the <code class="highlighter-rouge">base_url</code> attribute of the <a href="https://home-assistant.io/components/http/">HTTP Component</a>.</p>
<p>To create the required Spotify Application:</p>
<ul>
<li>Login to <a href="https://developer.spotify.com">Spotify Developer</a></li>
<li>Visit the <a href="https://developer.spotify.com/my-applications/#!/applications">My Applications</a> page</li>
<li>Select <strong>Create An App</strong>. Enter any name and description. Once your application is created, view it and copy your <strong>Client ID</strong> and <strong>Client Secret</strong>, which are used in the Home Assistant configuration file.</li>
<li>Add a <strong>Redirect URI</strong> in the following forms:</li>
</ul>
<p>No SSL: <code class="highlighter-rouge">http://&lt;your_home_assistant_url_or_local_ip&gt;:&lt;port&gt;/api/spotify</code></p>
<p>If using SSL: <code class="highlighter-rouge">https://&lt;your_home_assistant_url_or_local_ip&gt;:&lt;port&gt;/api/spotify</code></p>
<p>The URL is whatever you use to access Home Assistant from outside your network (including port if applicable).</p>
<ul>
<li>Click <strong>Save</strong> after adding the URI. You may also need to set the <code class="highlighter-rouge">base_url</code> attribute of the <a href="https://home-assistant.io/components/http/">HTTP Component</a>.</li>
</ul>
<h2><a class="title-link" name="configuration" href="#configuration"></a> Configuration</h2>
<p>To add Spotify to your installation, add the following 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>