1
mirror of https://github.com/home-assistant/core synced 2024-10-13 14:52:10 +02:00
ha-core/homeassistant/components/scene/services.yaml
Santobert c35f9ee35f Creating a scene by snapshotting entities (#28939)
* Initial commit

* Add tests

* service.yaml

* typo

* snapshooted -> snapshot

* snapshot_entities instead of snapshot

* Edit validator

* Fix tests

* Remove keys()

* Improve coverage

* Activate scenes

* Use pytest.raise

* snapshot -> snapshotted
2019-11-22 13:21:28 -08:00

42 lines
1.0 KiB
YAML

# Describes the format for available scene services
turn_on:
description: Activate a scene.
fields:
entity_id:
description: Name(s) of scenes to turn on
example: "scene.romantic"
reload:
description: Reload the scene configuration
apply:
description: Activate a scene. Takes same data as the entities field from a single scene in the config.
fields:
entities:
description: The entities and the state that they need to be.
example:
light.kitchen: "on"
light.ceiling:
state: "on"
brightness: 80
create:
description: Creates a new scene.
fields:
scene_id:
description: The entity_id of the new scene.
example: all_lights
entities:
description: The entities to control with the scene.
example:
light.tv_back_light: "on"
light.ceiling:
state: "on"
brightness: 200
snapshot_entities:
description: The entities of which a snapshot is to be taken
example:
- light.ceiling
- light.kitchen