light.group: Added example for usage in scripts. (#5004)

* Added example for usage in scripts

* ✏️ Typo fix

* 🚀 Trigger rebuild
This commit is contained in:
Joakim Sørensen 2018-03-24 12:56:52 +01:00 committed by Franck Nijhof
parent 238a7f87ed
commit a14a7488bf

View File

@ -46,3 +46,18 @@ Example of the light group "Kitchen Lights".
</p>
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
```