* Added new commands and functionality to the harmony remote component. -This includes the ability to optionally specify a number of times to repeat a specific command, such as pressing the volume button multiple times. -Also added a new command that allows you to send multiple commands to the harmony at once, such as sending a set of channel numbers. -Updated the unit tests for these changes. * Fix flake8 coding violations * Remove send_commands command and make send_command handle a single or list of commands * Remove send_commands tests * Update itach and kira remotes for new send_command structure. Fix pyharmony version in requirements_all.txt * Fix incorrect variable name * Fix a couple minor issues with remote tests
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
# Describes the format for available remote services
|
|
|
|
turn_on:
|
|
description: Sends the Power On Command
|
|
|
|
fields:
|
|
entity_id:
|
|
description: Name(s) of entities to turn on
|
|
example: 'remote.family_room'
|
|
activity:
|
|
description: Activity ID or Activity Name to start
|
|
example: 'BedroomTV'
|
|
|
|
turn_off:
|
|
description: Sends the Power Off Command
|
|
|
|
fields:
|
|
entity_id:
|
|
description: Name(s) of entities to turn off
|
|
example: 'remote.family_room'
|
|
|
|
send_command:
|
|
description: Sends a single command to a single device
|
|
|
|
fields:
|
|
entity_id:
|
|
description: Name(s) of entities to send command from
|
|
example: 'remote.family_room'
|
|
device:
|
|
description: Device ID to send command to
|
|
example: '32756745'
|
|
command:
|
|
description: A single command or a list of commands to send.
|
|
example: 'Play'
|
|
num_repeats:
|
|
description: An optional value that specifies the number of times you want to repeat the command(s). If not specified, the command(s) will not be repeated
|
|
example: '5'
|
|
delay_secs:
|
|
description: An optional value that specifies that number of seconds you want to wait in between repeated commands. If not specified, the default of 0.4 seconds will be used
|
|
example: '0.75'
|
|
|
|
harmony_sync:
|
|
description: Syncs the remote's configuration
|
|
|
|
fields:
|
|
entity_id:
|
|
description: Name(s) of entities to sync
|
|
example: 'remote.family_room'
|