Site updated at 2016-06-04 15:40:20 UTC
This commit is contained in:
parent
41be8cb2c7
commit
d214dd5fb3
26 changed files with 67 additions and 45 deletions
2
atom.xml
2
atom.xml
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Home Assistant]]></title>
|
<title><![CDATA[Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Community | Home Assistant]]></title>
|
<title><![CDATA[Category: Community | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Device-Tracking | Home Assistant]]></title>
|
<title><![CDATA[Category: Device-Tracking | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: ESP8266 | Home Assistant]]></title>
|
<title><![CDATA[Category: ESP8266 | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: How-To | Home Assistant]]></title>
|
<title><![CDATA[Category: How-To | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: iBeacons | Home Assistant]]></title>
|
<title><![CDATA[Category: iBeacons | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title>
|
<title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: MQTT | Home Assistant]]></title>
|
<title><![CDATA[Category: MQTT | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Organisation | Home Assistant]]></title>
|
<title><![CDATA[Category: Organisation | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: OwnTracks | Home Assistant]]></title>
|
<title><![CDATA[Category: OwnTracks | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
|
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title>
|
<title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Release-Notes | Home Assistant]]></title>
|
<title><![CDATA[Category: Release-Notes | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Survey | Home Assistant]]></title>
|
<title><![CDATA[Category: Survey | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Talks | Home Assistant]]></title>
|
<title><![CDATA[Category: Talks | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Technology | Home Assistant]]></title>
|
<title><![CDATA[Category: Technology | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: User-Stories | Home Assistant]]></title>
|
<title><![CDATA[Category: User-Stories | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Video | Home Assistant]]></title>
|
<title><![CDATA[Category: Video | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<title><![CDATA[Category: Website | Home Assistant]]></title>
|
<title><![CDATA[Category: Website | Home Assistant]]></title>
|
||||||
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
|
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
|
||||||
<link href="https://home-assistant.io/"/>
|
<link href="https://home-assistant.io/"/>
|
||||||
<updated>2016-06-04T12:36:14+00:00</updated>
|
<updated>2016-06-04T15:39:47+00:00</updated>
|
||||||
<id>https://home-assistant.io/</id>
|
<id>https://home-assistant.io/</id>
|
||||||
<author>
|
<author>
|
||||||
<name><![CDATA[Paulus Schoutsen]]></name>
|
<name><![CDATA[Paulus Schoutsen]]></name>
|
||||||
|
|
|
@ -123,6 +123,7 @@ You should choose a unique device name (DEVICE_NAME) to avoid clashes with other
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
http://localhost:8123/api/states/binary_sensor.radio
|
http://localhost:8123/api/states/binary_sensor.radio
|
||||||
{
|
{
|
||||||
"attributes": {
|
"attributes": {
|
||||||
|
@ -161,7 +162,7 @@ print(response.text)
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ http -v POST http://localhost:8123/api/states/binary_sensor.radio \
|
<div class="code"><pre>$ http -v POST http://localhost:8123/api/states/binary_sensor.radio \
|
||||||
x-ha-access:YOUR_PASSWORD state=off \
|
x-ha-access:YOUR_PASSWORD content-type:application/json state=off \
|
||||||
attributes:='{"friendly_name": "Radio"}'
|
attributes:='{"friendly_name": "Radio"}'
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -107,6 +107,7 @@
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
-d '{"payload": "Test message from HA", "topic": "home/notification"}' \
|
-d '{"payload": "Test message from HA", "topic": "home/notification"}' \
|
||||||
http://IP_ADDRESS:8123/api/services/mqtt/publish
|
http://IP_ADDRESS:8123/api/services/mqtt/publish
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
|
@ -113,6 +113,7 @@ You should choose a unique device name (DEVICE_NAME) to avoid clashes with other
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
-d '{"state": "20", "attributes": {"unit_of_measurement": "°C", "friendly_name": "Bathroom Temp"}}' \
|
-d '{"state": "20", "attributes": {"unit_of_measurement": "°C", "friendly_name": "Bathroom Temp"}}' \
|
||||||
http://localhost:8123/api/states/sensor.bathroom_temperature
|
http://localhost:8123/api/states/sensor.bathroom_temperature
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
@ -123,6 +124,7 @@ You should choose a unique device name (DEVICE_NAME) to avoid clashes with other
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
http://localhost:8123/api/states/sensor.bathroom_temperature
|
http://localhost:8123/api/states/sensor.bathroom_temperature
|
||||||
{
|
{
|
||||||
"attributes": {
|
"attributes": {
|
||||||
|
|
|
@ -113,7 +113,7 @@
|
||||||
<p>Check if you are able to access the device located at <code>http://IP_ADRRESS</code>. The details about your switch is provided as a JSON response.</p>
|
<p>Check if you are able to access the device located at <code>http://IP_ADRRESS</code>. The details about your switch is provided as a JSON response.</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET http://IP_ADDRESS/report
|
<div class="code"><pre>$ curl -X GET -H "Content-Type: application/json" http://IP_ADDRESS/report
|
||||||
{
|
{
|
||||||
"power": 0,
|
"power": 0,
|
||||||
"relay": false
|
"relay": false
|
||||||
|
|
|
@ -103,6 +103,7 @@
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>curl -X GET \
|
<div class="code"><pre>curl -X GET \
|
||||||
-H "x-ha-access: YOUR_PASSWORD" \
|
-H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
http://IP_ADDRESS:8123/ENDPOINT
|
http://IP_ADDRESS:8123/ENDPOINT
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -154,7 +155,8 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
<p>Sample <code>curl</code> command:</p>
|
<p>Sample <code>curl</code> command:</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" http://localhost:8123/api/
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -190,7 +192,8 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
<p>Sample <code>curl</code> command:</p>
|
<p>Sample <code>curl</code> command:</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/config
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" http://localhost:8123/api/config
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -212,7 +215,8 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
<p>Sample <code>curl</code> command:</p>
|
<p>Sample <code>curl</code> command:</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/discovery_info
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" http://localhost:8123/api/discovery_info
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -234,7 +238,8 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
<p>Sample <code>curl</code> command:</p>
|
<p>Sample <code>curl</code> command:</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/bootstrap
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" http://localhost:8123/api/bootstrap
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -260,7 +265,8 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
<p>Sample <code>curl</code> command:</p>
|
<p>Sample <code>curl</code> command:</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/events
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" http://localhost:8123/api/events
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -291,7 +297,8 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
<p>Sample <code>curl</code> command:</p>
|
<p>Sample <code>curl</code> command:</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/services
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" http://localhost:8123/api/services
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -331,13 +338,17 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
<p>Sample <code>curl</code> commands:</p>
|
<p>Sample <code>curl</code> commands:</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/history/period/2016-02-06
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
http://localhost:8123/api/history/period/2016-02-06
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/history/period/2016-02-06?filter_entity_id=sensor.temperature
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
http://localhost:8123/api/history/period/2016-02-06?filter_entity_id=sensor.temperature
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -367,7 +378,8 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
<p>Sample <code>curl</code> command:</p>
|
<p>Sample <code>curl</code> command:</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/states
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" http://localhost:8123/api/states
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -397,6 +409,7 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
http://localhost:8123/api/states/sensor.kitchen_temperature
|
http://localhost:8123/api/states/sensor.kitchen_temperature
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -417,6 +430,7 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
http://localhost:8123/api/error_log
|
http://localhost:8123/api/error_log
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -429,6 +443,7 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
http://localhost:8123/api/camera_proxy/camera.my_sample_camera?time=1462653861261 -o image.jpg
|
http://localhost:8123/api/camera_proxy/camera.my_sample_camera?time=1462653861261 -o image.jpg
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -472,6 +487,7 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
-d '{"state": "25", "attributes": {"unit_of_measurement": "°C"}}' \
|
-d '{"state": "25", "attributes": {"unit_of_measurement": "°C"}}' \
|
||||||
http://localhost:8123/api/states/sensor.kitchen_temperature
|
http://localhost:8123/api/states/sensor.kitchen_temperature
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
@ -539,6 +555,7 @@ You can append <code>?api_password=YOUR_PASSWORD</code> to any url to log in aut
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
-d '{"entity_id": "switch.christmas_lights", "state": "on"}' \
|
-d '{"entity_id": "switch.christmas_lights", "state": "on"}' \
|
||||||
http://localhost:8123/api/services/switch/turn_on
|
http://localhost:8123/api/services/switch/turn_on
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
@ -572,8 +589,8 @@ The result will include any changed states that changed while the service was be
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
<div class="code"><pre>$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
-d '{"template": "It is !"}' \
|
-H "Content-Type: application/json" \
|
||||||
http://localhost:8123/api/template
|
-d '{"template": "It is !"}' http://localhost:8123/api/template
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -98,7 +98,8 @@
|
||||||
<p>There are various ways to access the stream. One is <code>curl</code>:</p>
|
<p>There are various ways to access the stream. One is <code>curl</code>:</p>
|
||||||
|
|
||||||
<div class="highlighter-coderay"><div class="CodeRay">
|
<div class="highlighter-coderay"><div class="CodeRay">
|
||||||
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/stream
|
<div class="code"><pre>$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
|
||||||
|
-H "Content-Type: application/json" http://localhost:8123/api/stream
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
12
sitemap.xml
12
sitemap.xml
|
@ -1701,26 +1701,26 @@
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://home-assistant.io/demo/frontend.html</loc>
|
<loc>https://home-assistant.io/demo/frontend.html</loc>
|
||||||
<lastmod>2016-06-04T12:35:26+00:00</lastmod>
|
<lastmod>2016-06-04T15:39:06+00:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://home-assistant.io/demo/index.html</loc>
|
<loc>https://home-assistant.io/demo/index.html</loc>
|
||||||
<lastmod>2016-06-04T12:35:26+00:00</lastmod>
|
<lastmod>2016-06-04T15:39:06+00:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc>
|
<loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc>
|
||||||
<lastmod>2016-06-04T12:35:26+00:00</lastmod>
|
<lastmod>2016-06-04T15:39:06+00:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html</loc>
|
<loc>https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html</loc>
|
||||||
<lastmod>2016-06-04T12:35:26+00:00</lastmod>
|
<lastmod>2016-06-04T15:39:07+00:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html</loc>
|
<loc>https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html</loc>
|
||||||
<lastmod>2016-06-04T12:35:26+00:00</lastmod>
|
<lastmod>2016-06-04T15:39:07+00:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://home-assistant.io/static/mdi-demo.html</loc>
|
<loc>https://home-assistant.io/static/mdi-demo.html</loc>
|
||||||
<lastmod>2016-06-04T12:35:26+00:00</lastmod>
|
<lastmod>2016-06-04T15:39:07+00:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue