1
mirror of https://github.com/home-assistant/core synced 2024-08-31 05:57:13 +02:00
ha-core/homeassistant/components/remote/services.yaml

130 lines
3.1 KiB
YAML

# Describes the format for available remote services
turn_on:
name: Turn On
description: Sends the Power On Command.
target:
fields:
activity:
description: Activity ID or Activity Name to start.
example: "BedroomTV"
selector:
text:
toggle:
name: Toggle
description: Toggles a device.
target:
turn_off:
name: Turn Off
description: Sends the Power Off Command.
target:
send_command:
name: Send Command
description: Sends a command or a list of commands to a device.
target:
fields:
device:
name: Device
description: Device ID to send command to.
example: "32756745"
command:
name: Command
description: A single command or a list of commands to send.
required: true
example: "Play"
selector:
text:
num_repeats:
name: Repeats
description: An optional value that specifies the number of times you want to repeat the command(s).
example: "5"
default: 1
selector:
number:
min: 0
max: 255
step: 1
mode: slider
delay_secs:
name: Delay Seconds
description: Specify the number of seconds you want to wait in between repeated commands.
example: "0.75"
default: 0.4
selector:
number:
min: 0
max: 60
step: 0.1
mode: slider
hold_secs:
name: Hold Seconds
description: An optional value that specifies the number of seconds you want to have it held before the release is send.
example: "2.5"
default: 0
selector:
number:
min: 0
max: 60
step: 0.1
mode: slider
learn_command:
name: Learn Command
description: Learns a command or a list of commands from a device.
target:
fields:
device:
description: Device ID to learn command from.
example: "television"
command:
name: Command
description: A single command or a list of commands to learn.
example: "Turn on"
selector:
object:
command_type:
name: Command Type
description: The type of command to be learned.
example: "rf"
default: "ir"
selector:
select:
options:
- "ir"
- "rf"
alternative:
name: Alternative
description: If code must be stored as alternative (useful for discrete remotes).
example: "True"
selector:
boolean:
timeout:
name: Timeout
description: Timeout, in seconds, for the command to be learned.
example: "30"
selector:
number:
min: 0
max: 60
step: 5
mode: slider
delete_command:
name: Delete Command
description: Deletes a command or a list of commands from the database.
target:
fields:
device:
description: Name of the device from which commands will be deleted.
example: "television"
command:
name: Command
description: A single command or a list of commands to delete.
required: true
example: "Mute"
selector:
object: