Files
core/homeassistant/components/webostv/services.yaml
T
starkillerOG 1278f32306 Add webostv sound_output capability (#31121)
* Webostv: add sound_output capability

Add the ability to read and set the sound_output

* Webostv: add sound_output capability

* Webostv: add sound_output capability

* fix blank spaces

* fix to long line

* add ,

* Import ATTR_SOUND_OUTPUT

Do not have the ability to test this change right now

* Add white space

* Create const.py

* Use const import

* Use import from const.py

* Add docstring

* Change order

* Change order

* Fix import

* Fix import

* Fix typo

* Change order again

* Change order again

* Change order of attributes
2020-01-27 10:40:48 +01:00

36 lines
1.3 KiB
YAML

# Describes the format for available webostv services
button:
description: 'Send a button press command.'
fields:
entity_id:
description: Name(s) of the webostv entities where to run the API method.
example: 'media_player.living_room_tv'
button:
description: Name of the button to press. Known possible values are
LEFT, RIGHT, DOWN, UP, HOME, BACK, ENTER, DASH, INFO, ASTERISK, CC, EXIT,
MUTE, RED, GREEN, BLUE, VOLUMEUP, VOLUMEDOWN, CHANNELUP, CHANNELDOWN,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
example: 'LEFT'
command:
description: 'Send a command.'
fields:
entity_id:
description: Name(s) of the webostv entities where to run the API method.
example: 'media_player.living_room_tv'
command:
description: Endpoint of the command. Known valid endpoints are listed in
https://github.com/TheRealLink/pylgtv/blob/master/pylgtv/endpoints.py
example: 'media.controls/rewind'
select_sound_output:
description: 'Send the TV the command to change sound output.'
fields:
entity_id:
description: Name(s) of the webostv entities to change sound output on.
example: 'media_player.living_room_tv'
sound_output:
description: Name of the sound output to switch to.
example: 'external_speaker'