Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 0 additions & 9 deletions homeassistant/components/siren/services.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# Describes the format for available siren services

turn_on:
name: Turn on
description: Turn siren on.
target:
entity:
domain: siren
supported_features:
- siren.SirenEntityFeature.TURN_ON
fields:
tone:
description: The tone to emit when turning the siren on. When `available_tones` property is a map, either the key or the value can be used. Must be supported by the integration.
example: fire
filter:
supported_features:
Expand All @@ -19,7 +16,6 @@ turn_on:
selector:
text:
volume_level:
description: The volume level of the noise to emit when turning the siren on. Must be supported by the integration.
example: 0.5
filter:
supported_features:
Expand All @@ -31,7 +27,6 @@ turn_on:
max: 1
step: 0.05
duration:
description: The duration in seconds of the noise to emit when turning the siren on. Must be supported by the integration.
example: 15
filter:
supported_features:
Expand All @@ -41,17 +36,13 @@ turn_on:
text:

turn_off:
name: Turn off
description: Turn siren off.
target:
entity:
domain: siren
supported_features:
- siren.SirenEntityFeature.TURN_OFF

toggle:
name: Toggle
description: Toggles a siren.
target:
entity:
domain: siren
Expand Down
28 changes: 28 additions & 0 deletions homeassistant/components/siren/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,33 @@
}
}
}
},
"services": {
"turn_on": {
"name": "Turn on",
"description": "Turns the siren on.",
"fields": {
"tone": {
"name": "Tone",
"description": "The tone to emit. When `available_tones` property is a map, either the key or the value can be used. Must be supported by the integration."
},
"volume_level": {
"name": "Volume",
"description": "The volume. 0 is inaudible, 1 is the maximum volume. Must be supported by the integration."
},
"duration": {
"name": "Duration",
"description": "Number of seconds the sound is played. Must be supported by the integration."
}
}
},
"turn_off": {
"name": "Turn off",
"description": "Turns the siren off."
},
"toggle": {
"name": "Toggle",
"description": "Toggles the siren on/off."
}
}
}