Improve scene docs (#11063)

* Improve scene docs

* Improve examples
This commit is contained in:
Santobert 2019-11-05 15:43:33 +01:00 committed by Paulus Schoutsen
parent f7e5b556ff
commit e31d02acd7

View File

@ -24,9 +24,10 @@ scene:
entities: entities:
light.tv_back_light: light.tv_back_light:
state: on state: on
brightness: 100 brightness: 125
light.ceiling: off light.ceiling: off
media_player.sony_bravia_tv: media_player.sony_bravia_tv:
state: on
source: HDMI 1 source: HDMI 1
state: on state: on
``` ```
@ -37,15 +38,15 @@ name:
required: true required: true
type: string type: string
entities: entities:
description: Entities to control. description: Entities to control and their desired state.
required: true required: true
type: list type: list
{% endconfiguration %} {% endconfiguration %}
As you can see, there are two ways to define the states of each `entity_id`: As you can see, there are two ways to define the states of each `entity_id`:
- Define the `state` directly with the entity. - Define the `state` directly with the entity. Be aware, that `state` needs to be defined.
- Define a complex state with its attributes. - Define a complex state with its attributes. You can see all attributes available for a particular entity under `developer-tools -> state`.
Scenes can be activated using the service `scene.turn_on` (there is no 'scene.turn_off' service). Scenes can be activated using the service `scene.turn_on` (there is no 'scene.turn_off' service).
@ -83,6 +84,7 @@ automation:
brightness: 100 brightness: 100
light.ceiling: off light.ceiling: off
media_player.sony_bravia_tv: media_player.sony_bravia_tv:
state: on
source: HDMI 1 source: HDMI 1
``` ```