Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions homeassistant/components/scene/services.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,21 @@
# Describes the format for available scene services

turn_on:
name: Activate
description: Activate a scene.
target:
entity:
domain: scene
fields:
transition:
name: Transition
description: Transition duration it takes to bring devices to the state
defined in the scene.
selector:
number:
min: 0
max: 300
unit_of_measurement: seconds

reload:
name: Reload
description: Reload the scene configuration.

apply:
name: Apply
description: Activate a scene with configuration.
fields:
entities:
name: Entities state
description: The entities and the state that they need to be.
required: true
example: |
light.kitchen: "on"
Expand All @@ -37,29 +25,20 @@ apply:
selector:
object:
transition:
name: Transition
description: Transition duration it takes to bring devices to the state
defined in the scene.
selector:
number:
min: 0
max: 300
unit_of_measurement: seconds

create:
name: Create
description: Creates a new scene.
fields:
scene_id:
name: Scene entity ID
description: The entity_id of the new scene.
required: true
example: all_lights
selector:
text:
entities:
name: Entities state
description: The entities to control with the scene.
example: |
light.tv_back_light: "on"
light.ceiling:
Expand All @@ -68,8 +47,6 @@ create:
selector:
object:
snapshot_entities:
name: Snapshot entities
description: The entities of which a snapshot is to be taken
example: |
- light.ceiling
- light.kitchen
Expand Down
52 changes: 51 additions & 1 deletion homeassistant/components/scene/strings.json
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
{ "title": "Scene" }
{
"title": "Scene",
"services": {
"turn_on": {
"name": "Activate",
"description": "Activates a scene.",
"fields": {
"transition": {
"name": "Transition",
"description": "Transition duration it takes to bring devices to the state defined in the scene."
Comment thread
frenck marked this conversation as resolved.
Outdated
}
}
},
"reload": {
"name": "Reload",
"description": "Reloads scenes from the YAML-configuration."
Comment thread
frenck marked this conversation as resolved.
Outdated
},
"apply": {
"name": "Apply",
"description": "Activates a scene with configuration.",
"fields": {
"entities": {
"name": "Entities state",
"description": "The entities and the state that they need to be."
Comment thread
frenck marked this conversation as resolved.
Outdated
},
"transition": {
"name": "Transition",
"description": "Transition duration it takes to bring devices to the state defined in the scene."
Comment thread
frenck marked this conversation as resolved.
Outdated
}
}
},
"create": {
"name": "Create",
"description": "Creates a new scene.",
"fields": {
"scene_id": {
"name": "Scene entity ID",
"description": "The entity_id of the new scene."
Comment thread
frenck marked this conversation as resolved.
Outdated
},
"entities": {
"name": "Entities state",
"description": "The entities to control with the scene."
Comment thread
frenck marked this conversation as resolved.
Outdated
},
"snapshot_entities": {
"name": "Snapshot entities",
"description": "The entities of which a snapshot is to be taken."
Comment thread
frenck marked this conversation as resolved.
Outdated
}
}
}
}
}