mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
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
@ -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
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user