Site updated at 2015-12-19 17:29:41 UTC

This commit is contained in:
Paulus Schoutsen 2015-12-19 09:29:41 -08:00
parent 5ddb1dac36
commit 45020579c3
259 changed files with 5974 additions and 4067 deletions

View file

@ -23,7 +23,8 @@
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@balloob">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="RESTful sensor">
<meta name="twitter:description" content="Instructions how to integrate REST sensors into Home Assistant.">
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
@ -104,7 +105,7 @@
</header>
<hr class="divider">
<p>The rest sensor platform is consuming a given endpoint which is exposed by a <a href="https://en.wikipedia.org/wiki/Representational_state_transfer">RESTful API</a> of a device, an application, or a web service. The sensor has support for GET and POST requests.</p>
<p>The <code>rest</code> sensor platform is consuming a given endpoint which is exposed by a <a href="https://en.wikipedia.org/wiki/Representational_state_transfer">RESTful API</a> of a device, an application, or a web service. The sensor has support for GET and POST requests.</p>
<p>To enable this sensor, add the following lines to your <code>configuration.yaml</code> file for a GET request:</p>
@ -115,7 +116,7 @@
<span class="key">resource</span>: <span class="string"><span class="content">http://IP_ADDRESS/ENDPOINT</span></span>
<span class="key">method</span>: <span class="string"><span class="content">GET</span></span>
<span class="key">name</span>: <span class="string"><span class="content">REST GET sensor</span></span>
<span class="key">value_template</span>: <span class="string"><span class="content">'{{ template }}'</span></span>
<span class="key">value_template</span>: <span class="string"><span class="content">'{{ value_json.x }}'</span></span>
<span class="key">unit_of_measurement</span>: <span class="string"><span class="delimiter">&quot;</span><span class="content">°C</span><span class="delimiter">&quot;</span></span>
</pre></div>
</div>
@ -215,6 +216,9 @@ Make sure that the URL matches exactly your endpoint or resource.
<div class='section'>
<h1 class='title delta'>Related components</h1>
<ul class='divided'>
<li><a href='/components/binary_sensor.rest/'>
RESTful binary sensor
</a></li>
<li><a href='/components/switch.rest/'>
RESTful switch
</a></li>
@ -283,6 +287,9 @@ Make sure that the URL matches exactly your endpoint or resource.
<li>
<a href='/components/sensor.transmission/'>Transmission sensor</a>
</li>
<li>
<a href='/components/sensor.twitch/'>Twitch sensor</a>
</li>
<li>
<a href='/components/sensor.vera/'>Vera sensor</a>
</li>
@ -312,9 +319,15 @@ Make sure that the URL matches exactly your endpoint or resource.
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item">
<p class="copyright">
<span class="credit">Powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>. Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.</span>
</p>
<div class="copyright">
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
<a rel="me" href='https://github.com/balloob/home-assistant'><i class="icon-github"></i></a>
<div class="credit">
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
</div>
</div>
</div>
</div>
</div>