LG WebOS TV Select Sound Output Bluetooth

Hi everyone,

Is it possible to switch the audio output to a known/paired Bluetooth speaker?
I already use this service, but the speaker doesn’t connect automatically I need to go through the settings and select the speaker.

service: webostv.select_sound_output
data:
  entity_id: media_player.lg_webos_smart_tv
  sound_output: bt_soundbar

Regards

1 Like

Hello @Seia

I’m trying to do the same without success. Did you manage already?

I have seen different parameters for sound_output like bt_soundbar as you use, but in another post they use quote marks. Others use external_speaker, external_optical, or external_arc (like here). Do you know if there is a list of possible parameters? I cannot find it in the documentation page for the integration.

Hi @jm87 ,
I didn’t find a solution for choosing the bluetooth speaker.
However, I create a script that selects the speaker in simulating the remote control buttons, it’s not optimal but it works. I’m waiting for a better solution.

Here is the script:

alias: Bluetooth LG Marshall
sequence:
  - service: webostv.select_sound_output
    data:
      entity_id: media_player.lg_webos_smart_tv
      sound_output: bt_soundbar
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: MENU
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: DOWN
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: DOWN
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: DOWN
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: DOWN
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: ENTER
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: DOWN
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: ENTER
  - delay:
      hours: 0
      minutes: 0
      seconds: 3
      milliseconds: 0
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: DOWN
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: LEFT
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: ENTER
  - delay:
      hours: 0
      minutes: 0
      seconds: 3
      milliseconds: 0
  - service: webostv.button
    data:
      entity_id: media_player.lg_webos_smart_tv
      button: EXIT
mode: single
icon: mdi:bluetooth
1 Like