Services
The six bscpylgtv services with their fields, plus the standard services the TV supports.
All services target the media_player entity of the TV. Developer tools in Home Assistant show the same names and descriptions.
| Service | Fields | Purpose |
|---|---|---|
bscpylgtv.button | button (required) | Press a remote button. |
bscpylgtv.command | command (required), payload | Send a raw SSAP endpoint. |
bscpylgtv.select_sound_output | sound_output (required) | Change the sound output. |
bscpylgtv.launch_app | app_id (required), params | Launch an app. |
bscpylgtv.take_screenshot | filename | Capture the screen. |
bscpylgtv.set_settings | category (required), settings (required) | Write TV settings. |
bscpylgtv.button#
service: bscpylgtv.button
target:
entity_id: media_player.lg_webos_tv
data:
button: INFOButton names are in Remote commands. An unknown name fails with Unknown button <name>.
bscpylgtv.command#
Sends a raw SSAP endpoint. The response comes back when you call the service with a response variable. This is for expert use.
service: bscpylgtv.command
target:
entity_id: media_player.lg_webos_tv
data:
command: system.launcher/open
payload:
target: https://www.youtube.comThe service cannot read return values of Luna-only endpoints (library limitation).
bscpylgtv.select_sound_output#
service: bscpylgtv.select_sound_output
target:
entity_id: media_player.lg_webos_tv
data:
sound_output: external_arcValues are in Sound outputs.
bscpylgtv.launch_app#
service: bscpylgtv.launch_app
target:
entity_id: media_player.lg_webos_tv
data:
app_id: com.webos.app.youtube
params:
contentTarget: https://www.youtube.com/watch?v=dQw4w9WgXcQbscpylgtv.take_screenshot#
Without filename the JPEG returns as base64 in the response. With filename the integration writes the file. Path rules and the warning about www are in Take a screenshot.
service: bscpylgtv.take_screenshot
target:
entity_id: media_player.lg_webos_tv
data:
filename: /media/tv_screen.jpgbscpylgtv.set_settings#
Writes settings through the settings API of the TV.
service: bscpylgtv.set_settings
target:
entity_id: media_player.lg_webos_tv
data:
category: picture
settings:
backlight: 55
contrast: 80Standard services#
| Service | Use |
|---|---|
media_player.play_media with app or channel | See Launch apps and tune channels. |
media_player.select_source | Pick an app or input from the source list. |
media_player.turn_on, turn_off, volume_*, media_* | The usual media player controls. |
notify.send_message | Toast on the TV. See Entities. |
remote.send_command | See Remote commands. |