mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add selectors to Scene service definitions (#46729)
This commit is contained in:
parent
88d143a644
commit
616e8f6a65
@ -1,53 +1,79 @@
|
|||||||
# Describes the format for available scene services
|
# Describes the format for available scene services
|
||||||
|
|
||||||
turn_on:
|
turn_on:
|
||||||
description: Activate a scene.
|
description: Activate a scene
|
||||||
|
target:
|
||||||
fields:
|
fields:
|
||||||
transition:
|
transition:
|
||||||
|
name: Transition
|
||||||
description:
|
description:
|
||||||
Transition duration in seconds it takes to bring devices to the state
|
Transition duration in seconds it takes to bring devices to the state
|
||||||
defined in the scene.
|
defined in the scene.
|
||||||
example: 2.5
|
example: 2.5
|
||||||
entity_id:
|
selector:
|
||||||
description: Name(s) of scenes to turn on
|
number:
|
||||||
example: "scene.romantic"
|
min: 0
|
||||||
|
max: 300
|
||||||
|
step: 1
|
||||||
|
unit_of_measurement: seconds
|
||||||
|
mode: slider
|
||||||
|
|
||||||
reload:
|
reload:
|
||||||
description: Reload the scene configuration
|
description: Reload the scene configuration
|
||||||
|
|
||||||
apply:
|
apply:
|
||||||
description:
|
description: Activate a scene with configuration
|
||||||
Activate a scene. Takes same data as the entities field from a single scene
|
|
||||||
in the config.
|
|
||||||
fields:
|
fields:
|
||||||
transition:
|
|
||||||
description:
|
|
||||||
Transition duration in seconds it takes to bring devices to the state
|
|
||||||
defined in the scene.
|
|
||||||
example: 2.5
|
|
||||||
entities:
|
entities:
|
||||||
|
name: Entities state
|
||||||
description: The entities and the state that they need to be.
|
description: The entities and the state that they need to be.
|
||||||
|
required: true
|
||||||
example:
|
example:
|
||||||
light.kitchen: "on"
|
light.kitchen: "on"
|
||||||
light.ceiling:
|
light.ceiling:
|
||||||
state: "on"
|
state: "on"
|
||||||
brightness: 80
|
brightness: 80
|
||||||
|
selector:
|
||||||
|
object:
|
||||||
|
transition:
|
||||||
|
name: Transition
|
||||||
|
description:
|
||||||
|
Transition duration in seconds it takes to bring devices to the state
|
||||||
|
defined in the scene.
|
||||||
|
example: 2.5
|
||||||
|
selector:
|
||||||
|
number:
|
||||||
|
min: 0
|
||||||
|
max: 300
|
||||||
|
step: 1
|
||||||
|
unit_of_measurement: seconds
|
||||||
|
mode: slider
|
||||||
|
|
||||||
create:
|
create:
|
||||||
description: Creates a new scene.
|
description: Creates a new scene
|
||||||
fields:
|
fields:
|
||||||
scene_id:
|
scene_id:
|
||||||
|
name: Scene entity ID
|
||||||
description: The entity_id of the new scene.
|
description: The entity_id of the new scene.
|
||||||
|
required: true
|
||||||
example: all_lights
|
example: all_lights
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
entities:
|
entities:
|
||||||
|
name: Entities state
|
||||||
description: The entities to control with the scene.
|
description: The entities to control with the scene.
|
||||||
example:
|
example:
|
||||||
light.tv_back_light: "on"
|
light.tv_back_light: "on"
|
||||||
light.ceiling:
|
light.ceiling:
|
||||||
state: "on"
|
state: "on"
|
||||||
brightness: 200
|
brightness: 200
|
||||||
|
selector:
|
||||||
|
object:
|
||||||
snapshot_entities:
|
snapshot_entities:
|
||||||
|
name: Snapshot entities
|
||||||
description: The entities of which a snapshot is to be taken
|
description: The entities of which a snapshot is to be taken
|
||||||
example:
|
example:
|
||||||
- light.ceiling
|
- light.ceiling
|
||||||
- light.kitchen
|
- light.kitchen
|
||||||
|
selector:
|
||||||
|
object:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user