Skip to content

Commit a14a748

Browse files
ludeeusfrenck
authored andcommitted
light.group: Added example for usage in scripts. (home-assistant#5004)
* Added example for usage in scripts * ✏️ Typo fix * 🚀 Trigger rebuild
1 parent 238a7f8 commit a14a748

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/_components/light.group.markdown

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,18 @@ Example of the light group "Kitchen Lights".
4646
</p>
4747
4848
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.
49+
50+
## {% linkable_title Script Example %}
51+
52+
Here's an example of a script using the above light group.
53+
54+
```yaml
55+
script:
56+
turn_on_kitchen_lights:
57+
alias: Kitchen lights on
58+
sequence:
59+
service: light.turn_on
60+
data:
61+
entity_id: light.kitchen_lights
62+
brightness: 100
63+
```

0 commit comments

Comments
 (0)