From a14a7488bfa1416bc0b0ce5ddc9941ba40e99ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 24 Mar 2018 12:56:52 +0100 Subject: [PATCH] light.group: Added example for usage in scripts. (#5004) * Added example for usage in scripts * :pencil2: Typo fix * :rocket: Trigger rebuild --- source/_components/light.group.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/_components/light.group.markdown b/source/_components/light.group.markdown index 2b4d3035767..4ec8262463d 100644 --- a/source/_components/light.group.markdown +++ b/source/_components/light.group.markdown @@ -46,3 +46,18 @@ Example of the light group "Kitchen Lights".

The supported features of all lights will be added together. For example, if you have one RGB light in a group of otherwise brightness-only lights, the light group will be shown with a color picker. + +## {% linkable_title Script Example %} + +Here's an example of a script using the above light group. + +```yaml +script: + turn_on_kitchen_lights: + alias: Kitchen lights on + sequence: + service: light.turn_on + data: + entity_id: light.kitchen_lights + brightness: 100 +```