mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
Update scene examples (#18675)
This commit is contained in:
parent
077f32fa88
commit
d6df7b1e10
@ -12,7 +12,7 @@ ha_domain: scene
|
|||||||
|
|
||||||
You can create scenes that capture the states you want certain entities to be. For example, a scene can specify that light A should be turned on and light B should be bright red.
|
You can create scenes that capture the states you want certain entities to be. For example, a scene can specify that light A should be turned on and light B should be bright red.
|
||||||
|
|
||||||
Scenes can be created and managed via the user interface using the [Scene Editor](/docs/scene/editor/). They can also be configured via `configuration.yaml`:
|
Scenes can be created and managed via the user interface using the [Scene Editor](/docs/scene/editor/). They can also be manually configured via `configuration.yaml`. Note that the entity data is not service call parameters, it's a representation of the wanted state:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
@ -23,17 +23,26 @@ scene:
|
|||||||
light.tv_back_light: "on"
|
light.tv_back_light: "on"
|
||||||
light.ceiling:
|
light.ceiling:
|
||||||
state: "on"
|
state: "on"
|
||||||
xy_color: [0.33, 0.66]
|
|
||||||
brightness: 200
|
brightness: 200
|
||||||
|
color_mode: "xy"
|
||||||
|
xy_color: [0.33, 0.66]
|
||||||
- name: Movies
|
- name: Movies
|
||||||
entities:
|
entities:
|
||||||
light.tv_back_light:
|
light.tv_back_light:
|
||||||
state: "on"
|
state: "on"
|
||||||
brightness: 125
|
brightness: 125
|
||||||
light.ceiling: off
|
light.ceiling: "off"
|
||||||
media_player.sony_bravia_tv:
|
media_player.sony_bravia_tv:
|
||||||
state: "on"
|
state: "on"
|
||||||
source: HDMI 1
|
source: HDMI 1
|
||||||
|
- name: Standard
|
||||||
|
entities:
|
||||||
|
light.tv_back_light:
|
||||||
|
state: "off"
|
||||||
|
light.ceiling:
|
||||||
|
state: "on"
|
||||||
|
brightness: 125
|
||||||
|
color_mode: "white"
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user