light.group: Added example for usage in scripts. (#5004)
* Added example for usage in scripts * ✏️ Typo fix * 🚀 Trigger rebuild
This commit is contained in:
parent
238a7f87ed
commit
a14a7488bf
1 changed files with 15 additions and 0 deletions
|
@ -46,3 +46,18 @@ Example of the light group "Kitchen Lights".
|
||||||
</p>
|
</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.
|
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
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue