Site updated at 2016-10-29 08:20:24 UTC

This commit is contained in:
Travis CI 2016-10-29 08:20:24 +00:00
parent 3ad132f0ed
commit 97d7dc5115
23 changed files with 38 additions and 37 deletions

View file

@ -176,7 +176,7 @@ Make sure that the URL matches exactly your endpoint or resource.
<p>The Home Assistant <a href="/developers/rest_api/">API</a> exposes the data from your attached sensors. If you are running multiple Home Assistant instances which are not <a href="/developers/architecture/#multiple-connected-instances">connected</a> you can still get information from them.</p>
<p>If the Home Assistant instance in the resource variable is protected by an API password, you can append <code class="highlighter-rouge">?api_password=YOUR_PASSWORD</code> to the resource url to authenticate.</p>
<p>If the Home Assistant instance in the resource variable is protected by an API password, you can append <code class="highlighter-rouge">?api_password=YOUR_PASSWORD</code> to the resource URL to authenticate or use <code class="highlighter-rouge">headers:</code>.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">sensor</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">rest</span>
@ -186,6 +186,7 @@ Make sure that the URL matches exactly your endpoint or resource.
<span class="s">unit_of_measurement</span><span class="pi">:</span> <span class="s2">"</span><span class="s">°C"</span>
</code></pre>
</div>
<h3><a class="title-link" name="accessing-a-http-authentication-protected-endpoint" href="#accessing-a-http-authentication-protected-endpoint"></a> Accessing a HTTP authentication protected endpoint</h3>
<p>The REST sensor supports HTTP authentication and customized headers.</p>