diff --git a/atom.xml b/atom.xml index a7c1843b14..faf3b4bac8 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index bf0412c0cb..aaafcb365d 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index b03ff799cd..5fe93dbe8d 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-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 538911dc5f..6f2cd04f45 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 5c35dcd018..1b8d87f146 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-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 1cf3bdb470..5aa634a526 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+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 9b3a925a16..458f6aad6f 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-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index bd26c175f3..9f3f0dc4e1 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 49b3eed841..1517e338ac 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 3a417cd65a..d6c88d1965 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index f3f432175a..19732f9d96 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index b290c3f24a..c0431ac5ea 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 325c0a98a0..1db78641c8 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-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+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 a8dedc3407..96c6b5e548 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-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index e5eb0058ce..759772ba37 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-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 99916846e1..d1872598a3 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 2a8ad5751c..8ff605ca80 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 9577253f9f..690cb4d20d 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 75cb2de42b..674f030bbb 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-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index 81dc07ea99..b7c7559a2a 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 5f4a5e3392..c1b0bc2d4c 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-10-16T16:00:09+00:00 + 2016-10-17T16:24:04+00:00 https://home-assistant.io/ diff --git a/developers/python_api/index.html b/developers/python_api/index.html index a75a288a20..8e513f3c2f 100644 --- a/developers/python_api/index.html +++ b/developers/python_api/index.html @@ -91,9 +91,11 @@

In the package homeassistant.remote a Python API on top of the HTTP API can be found.

-

This page is not a full documentation it’s more a collection of some example. A simple way to get all current entities is to visit the “Set State” page in the “Developer Tools”. For the examples below just choose one from the available entries. Here the sensor sensor.office_temperature and the switch switch.livingroom_pin_2 are used.

+

Note: This page is not full documentation for this API, but a collection of examples showing its use.

-

First import the module and setup the basics.

+

A simple way to get all current entities is to visit the “Set State” page in the “Developer Tools”. For the examples below just choose one from the available entries. Here the sensor sensor.office_temperature and the switch switch.livingroom_pin_2 are used.

+ +

First import the module and setup the basics:

import homeassistant.remote as remote
 
@@ -102,7 +104,7 @@
 
-

This snippets shows how to use the homeassistant.remote package in another way.

+

Here’s another way to use the homeassistant.remote package:

import homeassistant.remote as remote
 
@@ -115,7 +117,7 @@
 
 

Get configuration

-

Get the current configuration of a Home Asssitant instance.

+

Get the current configuration of a Home Assistant instance:

import homeassistant.remote as remote
 
@@ -127,7 +129,7 @@
 
 

Get details about services, events, and entitites

-

Similar to the output in the “Developer Tools” of the frontend.

+

The output from this is similar to the output you’d find via the frontend, using the DevTools console.

import homeassistant.remote as remote
 
@@ -152,7 +154,7 @@
 
 

Get the state of an entity

-

To get the details of a single entity the get_state method is used.

+

To get the details of a single entity, use get_state:

import homeassistant.remote as remote
 
@@ -166,13 +168,13 @@
 
-

The output is composed out of the details which are stored for this entity.

+

This outputs the details which are stored for this entity, ie:

Office Temperature is 19 °C.
 
-

The exact same thing is working for a switch. The difference is that both entities have different attributes.

+

Switches work the same way. The only difference is that both entities have different attributes.

import homeassistant.remote as remote
 
@@ -187,7 +189,7 @@
 
 

Set the state of an entity

-

Of course, it’s possible to set the state.

+

Of course, it’s possible to set the state as well:

import homeassistant.remote as remote
 from homeassistant.const import STATE_ON
@@ -198,11 +200,11 @@
 
-

The state will be set to those value until the next update occurs.

+

The state will be set to the new values until the next update occurs.

Blinking all entites of a domain

-

If you want to turn on all entities of a domain, just use a service which was retrieved by get_services.

+

If you want to turn on all entities of a domain, retrieve the service via get_services and act on that:

import time
 import homeassistant.remote as remote
@@ -218,7 +220,7 @@
 
 

Control a single entity

-

To turn on or off a single switch. The ID of the entity is needed as attribute.

+

To turn on or off a single switch, pass the ID of the entity:

import time
 import homeassistant.remote as remote
@@ -235,9 +237,9 @@
 
 

Specify a timeout

-

The default timeout for an API call with call_service is 5 seconds. Service +

The default timeout for an API call with call_service is 5 seconds. Services taking longer than this to return will raise -homeassistant.exceptions.HomeAssistantError: Timeout unless provided with a +homeassistant.exceptions.HomeAssistantError: Timeout, unless provided with a longer timeout.

import homeassistant.remote as remote
@@ -259,7 +261,7 @@ longer timeout.

Send a notification

-

The example uses the jabber notification platform to send a single message to the given recipient in the configuration.yaml file.

+

The example uses the Jabber notification platform to send a single message to the given recipient in the configuration.yaml file:

import homeassistant.remote as remote
 
@@ -271,7 +273,7 @@ longer timeout.

-

For more details please check the source of homeassistant.remote.

+

For more details, please check the source of homeassistant.remote.

diff --git a/sitemap.xml b/sitemap.xml index effac230f7..72f0dcbe91 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2168,62 +2168,62 @@ https://home-assistant.io/demo/frontend.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/index.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00 https://home-assistant.io/static/mdi-demo.html -2016-10-16T15:59:27+00:00 +2016-10-17T16:23:19+00:00