From d214dd5fb33d6fe7f66a5b9ce161ed1bd52083d8 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sat, 4 Jun 2016 15:40:20 +0000 Subject: [PATCH] Site updated at 2016-06-04 15:40:20 UTC --- atom.xml | 2 +- blog/categories/community/atom.xml | 2 +- blog/categories/device-tracking/atom.xml | 2 +- blog/categories/esp8266/atom.xml | 2 +- blog/categories/how-to/atom.xml | 2 +- blog/categories/ibeacons/atom.xml | 2 +- blog/categories/internet-of-things/atom.xml | 2 +- blog/categories/mqtt/atom.xml | 2 +- blog/categories/organisation/atom.xml | 2 +- blog/categories/owntracks/atom.xml | 2 +- blog/categories/presence-detection/atom.xml | 2 +- .../public-service-announcement/atom.xml | 2 +- blog/categories/release-notes/atom.xml | 2 +- blog/categories/survey/atom.xml | 2 +- blog/categories/talks/atom.xml | 2 +- blog/categories/technology/atom.xml | 2 +- blog/categories/user-stories/atom.xml | 2 +- blog/categories/video/atom.xml | 2 +- blog/categories/website/atom.xml | 2 +- components/binary_sensor.http/index.html | 5 ++- components/notify.mqtt/index.html | 1 + components/sensor.http/index.html | 6 ++- components/switch.mystrom/index.html | 2 +- developers/rest_api/index.html | 45 +++++++++++++------ developers/server_sent_events/index.html | 3 +- sitemap.xml | 12 ++--- 26 files changed, 67 insertions(+), 45 deletions(-) diff --git a/atom.xml b/atom.xml index 912fd662a0..714cb1aacb 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 4dd7e40fcd..3aa33489bc 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index e6387466c0..411cabc331 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index bab1425658..3004562e4e 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 2dd8a25744..1869237205 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index b9a41afef0..bf7bb8dc16 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index 2298b6654e..41235c8c64 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index a5d256a0bf..f725aa60fd 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index 0dabb3752e..c11e55baa4 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index b774ee2817..fd3089a297 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 1ced9ab56c..36bb76fa3e 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index b46d497267..a5bea4b11b 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 5091b9015b..d1e3d611f3 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index c5ab360fc2..410b85e899 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 3758cf7ff4..6a4b3e31b5 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index ec53832116..8724f849a1 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index d212754cab..d0e991d7da 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index c94ee8c41d..b4d3c230b3 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 0b8bd0c319..43ac95b437 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-06-04T12:36:14+00:00 + 2016-06-04T15:39:47+00:00 https://home-assistant.io/ diff --git a/components/binary_sensor.http/index.html b/components/binary_sensor.http/index.html index fe57748f1c..ae4724cff0 100644 --- a/components/binary_sensor.http/index.html +++ b/components/binary_sensor.http/index.html @@ -123,7 +123,8 @@ You should choose a unique device name (DEVICE_NAME) to avoid clashes with other
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
-        http://localhost:8123/api/states/binary_sensor.radio
+       -H "Content-Type: application/json" \
+       http://localhost:8123/api/states/binary_sensor.radio
 {
     "attributes": {
         "friendly_name": "Radio"
@@ -161,7 +162,7 @@ print(response.text)
 
 
$ 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"}'
 
diff --git a/components/notify.mqtt/index.html b/components/notify.mqtt/index.html index 339502f657..ff5e0d386b 100644 --- a/components/notify.mqtt/index.html +++ b/components/notify.mqtt/index.html @@ -107,6 +107,7 @@
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" \
        -d '{"payload": "Test message from HA", "topic": "home/notification"}' \
        http://IP_ADDRESS:8123/api/services/mqtt/publish
 
diff --git a/components/sensor.http/index.html b/components/sensor.http/index.html index 30c2ee49f4..39b4ee22fc 100644 --- a/components/sensor.http/index.html +++ b/components/sensor.http/index.html @@ -112,7 +112,8 @@ You should choose a unique device name (DEVICE_NAME) to avoid clashes with other

For a quick test curl can be useful to “simulate” a device.

-
$ curl -XPOST -H "x-ha-access: YOUR_PASSWORD" \
+  
$ 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"}}' \
        http://localhost:8123/api/states/sensor.bathroom_temperature
 
@@ -123,7 +124,8 @@ You should choose a unique device name (DEVICE_NAME) to avoid clashes with other
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
-        http://localhost:8123/api/states/sensor.bathroom_temperature
+       -H "Content-Type: application/json" \
+       http://localhost:8123/api/states/sensor.bathroom_temperature
 {
     "attributes": {
         "friendly_name": "Bathroom Temp",
diff --git a/components/switch.mystrom/index.html b/components/switch.mystrom/index.html
index 09493c6a16..ca1c9ccdd4 100644
--- a/components/switch.mystrom/index.html
+++ b/components/switch.mystrom/index.html
@@ -113,7 +113,7 @@
 

Check if you are able to access the device located at http://IP_ADRRESS. The details about your switch is provided as a JSON response.

-
$ curl -X GET http://IP_ADDRESS/report
+  
$ curl -X GET -H "Content-Type: application/json" http://IP_ADDRESS/report
 {
     "power":    0,
     "relay":    false
diff --git a/developers/rest_api/index.html b/developers/rest_api/index.html
index fa1e1de041..882688026b 100644
--- a/developers/rest_api/index.html
+++ b/developers/rest_api/index.html
@@ -103,6 +103,7 @@
 
curl -X GET \
     -H "x-ha-access: YOUR_PASSWORD" \
+    -H "Content-Type: application/json" \
     http://IP_ADDRESS:8123/ENDPOINT
 
@@ -154,7 +155,8 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut

Sample curl command:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/
+  
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" http://localhost:8123/api/
 
@@ -190,7 +192,8 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut

Sample curl command:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/config
+  
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" http://localhost:8123/api/config
 
@@ -212,7 +215,8 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut

Sample curl command:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/discovery_info
+  
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" http://localhost:8123/api/discovery_info
 
@@ -234,7 +238,8 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut

Sample curl command:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/bootstrap
+  
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" http://localhost:8123/api/bootstrap
 
@@ -260,7 +265,8 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut

Sample curl command:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/events
+  
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" http://localhost:8123/api/events
 
@@ -291,7 +297,8 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut

Sample curl command:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/services
+  
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" http://localhost:8123/api/services
 
@@ -331,13 +338,17 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut

Sample curl commands:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/history/period/2016-02-06
+  
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" \
+       http://localhost:8123/api/history/period/2016-02-06
 
-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/history/period/2016-02-06?filter_entity_id=sensor.temperature
+  
$ 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
 
@@ -367,7 +378,8 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut

Sample curl command:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/states
+  
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" http://localhost:8123/api/states
 
@@ -397,7 +409,8 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
-        http://localhost:8123/api/states/sensor.kitchen_temperature
+       -H "Content-Type: application/json" \
+       http://localhost:8123/api/states/sensor.kitchen_temperature
 
@@ -417,6 +430,7 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" \
        http://localhost:8123/api/error_log
 
@@ -428,8 +442,9 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut

Sample curl command:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD"\
-   http://localhost:8123/api/camera_proxy/camera.my_sample_camera?time=1462653861261 -o image.jpg
+  
$ 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
 
@@ -472,6 +487,7 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" \
        -d '{"state": "25", "attributes": {"unit_of_measurement": "°C"}}' \
        http://localhost:8123/api/states/sensor.kitchen_temperature
 
@@ -539,6 +555,7 @@ You can append ?api_password=YOUR_PASSWORD to any url to log in aut
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" \
        -d '{"entity_id": "switch.christmas_lights", "state": "on"}' \
        http://localhost:8123/api/services/switch/turn_on
 
@@ -572,8 +589,8 @@ The result will include any changed states that changed while the service was be
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
-      -d '{"template": "It is !"}' \
-      http://localhost:8123/api/template
+       -H "Content-Type: application/json" \
+       -d '{"template": "It is !"}' http://localhost:8123/api/template
 
diff --git a/developers/server_sent_events/index.html b/developers/server_sent_events/index.html index 74f6435529..7ea6250416 100644 --- a/developers/server_sent_events/index.html +++ b/developers/server_sent_events/index.html @@ -98,7 +98,8 @@

There are various ways to access the stream. One is curl:

-
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" http://localhost:8123/api/stream
+  
$ curl -X GET -H "x-ha-access: YOUR_PASSWORD" \
+       -H "Content-Type: application/json" http://localhost:8123/api/stream
 
diff --git a/sitemap.xml b/sitemap.xml index 4171c19f8a..0ad91a2fb9 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1701,26 +1701,26 @@ https://home-assistant.io/demo/frontend.html - 2016-06-04T12:35:26+00:00 + 2016-06-04T15:39:06+00:00 https://home-assistant.io/demo/index.html - 2016-06-04T12:35:26+00:00 + 2016-06-04T15:39:06+00:00 https://home-assistant.io/googlef4f3693c209fe788.html - 2016-06-04T12:35:26+00:00 + 2016-06-04T15:39:06+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html - 2016-06-04T12:35:26+00:00 + 2016-06-04T15:39:07+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html - 2016-06-04T12:35:26+00:00 + 2016-06-04T15:39:07+00:00 https://home-assistant.io/static/mdi-demo.html - 2016-06-04T12:35:26+00:00 + 2016-06-04T15:39:07+00:00