mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Update scene docs
This commit is contained in:
parent
2109e1f917
commit
6a877e19f5
@ -9,28 +9,36 @@ sharing: true
|
|||||||
footer: true
|
footer: true
|
||||||
---
|
---
|
||||||
|
|
||||||
A user can create scenes that capture the states you want certain entities to be. For example a scene can contain that light A should be turned on and light B should be bright red. Deactivating a scene will restore the previous state from before the scene was activated. Just like scripts, scenes have their own separate page to see which scenes are on.
|
A user can create scenes that capture the states you want certain entities to be. For example a scene
|
||||||
Scenes can be activated using the service scene.turn_on and deactivated using the service scene.turn_off.
|
can contain that light A should be turned on and light B should be bright red.
|
||||||
|
|
||||||
|
A scene is active if all states of the scene match the actual states. An optional `fuzzy_match` option
|
||||||
|
can be given to allow entities to match if attributes are not exact but are in range of the preferred
|
||||||
|
state.
|
||||||
|
|
||||||
|
If a scene is manually activated it will store the previous state of the entities. These will be
|
||||||
|
restored when the state is deactivated manually. If one of the enties that are being tracked change
|
||||||
|
state on its own, the old state will not be restored when it is being deactivated.
|
||||||
|
|
||||||
|
Scenes can be activated using the service `scene.turn_on` and deactivated using the service `scene.turn_off`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
scene:
|
scene:
|
||||||
- name: Romantic
|
- name: Romantic
|
||||||
|
# Optional, allow fuzzy matching number atttributes to check if scene is on
|
||||||
|
fuzzy_match: 0.2
|
||||||
entities:
|
entities:
|
||||||
light.tv_back_light: on
|
light.tv_back_light: on
|
||||||
light.ceiling:
|
light.ceiling:
|
||||||
state: on
|
state: on
|
||||||
color: [0.33, 0.66]
|
color: [0.33, 0.66]
|
||||||
brightness: 200
|
brightness: 200
|
||||||
|
|
||||||
- name: all_lights_on
|
- name: Movies
|
||||||
entities:
|
entities:
|
||||||
group.all_lights:
|
light.tv_back_light:
|
||||||
state: on
|
state: on
|
||||||
|
brightness: 100
|
||||||
- name: all_lights_off
|
light.ceiling: off
|
||||||
entities:
|
|
||||||
group.all_lights:
|
|
||||||
state: off
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user