2020-04-05 08:33:45 +00:00
|
|
|
# Describes the format for available webostv services
|
2020-01-02 21:32:57 +00:00
|
|
|
|
|
|
|
button:
|
2020-04-05 08:33:45 +00:00
|
|
|
description: "Send a button press command."
|
2020-01-02 21:32:57 +00:00
|
|
|
fields:
|
|
|
|
entity_id:
|
|
|
|
description: Name(s) of the webostv entities where to run the API method.
|
2020-04-05 08:33:45 +00:00
|
|
|
example: "media_player.living_room_tv"
|
2020-01-02 21:32:57 +00:00
|
|
|
button:
|
2020-04-05 08:33:45 +00:00
|
|
|
description: >-
|
|
|
|
Name of the button to press. Known possible values are
|
2020-09-07 17:24:06 +00:00
|
|
|
LEFT, RIGHT, DOWN, UP, HOME, MENU, BACK, ENTER, DASH, INFO, ASTERISK, CC, EXIT,
|
2020-01-02 21:32:57 +00:00
|
|
|
MUTE, RED, GREEN, BLUE, VOLUMEUP, VOLUMEDOWN, CHANNELUP, CHANNELDOWN,
|
2020-09-22 07:32:09 +00:00
|
|
|
PLAY, PAUSE, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
|
2020-04-05 08:33:45 +00:00
|
|
|
example: "LEFT"
|
2020-01-02 21:32:57 +00:00
|
|
|
|
|
|
|
command:
|
2020-04-05 08:33:45 +00:00
|
|
|
description: "Send a command."
|
2020-01-02 21:32:57 +00:00
|
|
|
fields:
|
|
|
|
entity_id:
|
|
|
|
description: Name(s) of the webostv entities where to run the API method.
|
2020-04-05 08:33:45 +00:00
|
|
|
example: "media_player.living_room_tv"
|
2020-01-02 21:32:57 +00:00
|
|
|
command:
|
2020-04-05 08:33:45 +00:00
|
|
|
description: >-
|
|
|
|
Endpoint of the command. Known valid endpoints are listed in
|
2020-01-02 21:32:57 +00:00
|
|
|
https://github.com/TheRealLink/pylgtv/blob/master/pylgtv/endpoints.py
|
2020-05-27 13:51:39 +00:00
|
|
|
example: "system.launcher/open"
|
|
|
|
payload:
|
|
|
|
description: >-
|
|
|
|
An optional payload to provide to the endpoint in the format of key value pair(s).
|
|
|
|
example: >-
|
|
|
|
target: https://www.google.com
|
2020-01-02 21:32:57 +00:00
|
|
|
|
2020-01-27 09:40:48 +00:00
|
|
|
select_sound_output:
|
2020-04-05 08:33:45 +00:00
|
|
|
description: "Send the TV the command to change sound output."
|
2020-01-27 09:40:48 +00:00
|
|
|
fields:
|
|
|
|
entity_id:
|
|
|
|
description: Name(s) of the webostv entities to change sound output on.
|
2020-04-05 08:33:45 +00:00
|
|
|
example: "media_player.living_room_tv"
|
2020-01-27 09:40:48 +00:00
|
|
|
sound_output:
|
|
|
|
description: Name of the sound output to switch to.
|
2020-04-05 08:33:45 +00:00
|
|
|
example: "external_speaker"
|