diff --git a/atom.xml b/atom.xml index 20b74b7df1..87f505939a 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/announcements/atom.xml b/blog/categories/announcements/atom.xml index 4f6dfde2d9..ad2924936e 100644 --- a/blog/categories/announcements/atom.xml +++ b/blog/categories/announcements/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Announcements | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 9a9070aad1..c3b6a8a73d 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index b66dd03a37..4a77ad490f 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]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index ae8a02c6c0..7a423796c3 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index a9349d4460..ab03b71f97 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]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 5487344d02..360b67d71f 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+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 24a682f3e3..171ad76d0d 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]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 95a530c9e6..e4eb77aecb 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]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/media/atom.xml b/blog/categories/media/atom.xml index 1593ef9d8d..9210dee957 100644 --- a/blog/categories/media/atom.xml +++ b/blog/categories/media/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Media | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/merchandise/atom.xml b/blog/categories/merchandise/atom.xml index e58e125dad..7e8cc6ceb0 100644 --- a/blog/categories/merchandise/atom.xml +++ b/blog/categories/merchandise/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Merchandise | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index fc2f26348c..7824d9c3c2 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index 034cec77f2..cd99762c46 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/organization/atom.xml b/blog/categories/organization/atom.xml index 6569e9e52b..2dad8252af 100644 --- a/blog/categories/organization/atom.xml +++ b/blog/categories/organization/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organization | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index cd6ba357ef..b336121f11 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 835d6747a9..41df4b3cd7 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]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+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 9f59e622e5..bd929c5533 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]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 5d7130931a..91ca0a0fdd 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]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 1783e1d62c..3df7454545 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index 053d86dce4..eb04ae1ce0 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 86f663b841..5a48859557 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index c28e4c4368..1ae95e64d8 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]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index dff42b92ca..8b5b5c60aa 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index e48dc24fca..8bcc50a0c4 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2018-02-09T21:13:12+00:00 + 2018-02-09T22:11:57+00:00 https://home-assistant.io/ diff --git a/components/python_script/index.html b/components/python_script/index.html index 9c935b09a4..11a32d429c 100644 --- a/components/python_script/index.html +++ b/components/python_script/index.html @@ -117,7 +117,20 @@ } -

For examples, visit the Scripts section in our forum.

+

Calling Services

+

The following example shows how to call a service from python_script. This script takes two parameters: entity_id (required), rgb_color (optional) and calls light.turn_on service by setting the brightness value to 255.

+
entity_id = data.get('entity_id')
+rgb_color = data.get('rgb_color', [255, 255, 255])
+if entity_id is not None:
+    service_data = {'entity_id': entity_id, 'rgb_color': rgb_color, 'brightness': 255 }
+    hass.services.call('light', 'turn_on', service_data, False)
+
+
+

The above python_script can be called using the following JSON as an input.

+
{"entity_id": "light.bedroom", "rgb_color": [255, 0, 0] }
+
+
+

For more examples, visit the Scripts section in our forum.