mondo
July 31, 2022, 4:21pm
1
Currently the LG WebOS integration supports changing the sound output device (hdmi, optical, etc), but it does not support changing the Digital Sound Output mode (PCM, PassThrough, Auto). The only library I could find that could be manipulated to change this is the aiopylgtv python lib. Here’s an example:
import asyncio
from aiopylgtv import WebOsClient
async def runloop():
client = await WebOsClient.create('mytv.local')
await client.connect()
uri = "com.webos.settingsservice/setSystemSettings"
params = {"category": "sound", "settings": {'soundOutputDigital': 'passThrough'}}
doutput = await client.luna_request(uri, params)
await client.disconnect()
asyncio.get_event_loop().run_until_complete(runloop())
WallyR
(Wally)
August 5, 2022, 12:42pm
2
Remember to vote for your own request.
1 Like
mondo
December 19, 2022, 11:35pm
3
Here’s a script that I’m using to do this. sound_mode options are “passThrough”, “auto”, and “pcm”.
alias: LG C2 eArc output mode
sequence:
- service: webostv.command
data:
entity_id: media_player.lg_webos_tv_oled77c2pua
command: system.notifications/createAlert
payload:
message: digital output mode {{ sound_mode }} (set by home assistant)
modal: false
buttons:
- label: ok
focus: true
buttonType: ok
onClick: luna://com.webos.settingsservice/setSystemSettings
params:
category: sound
settings:
soundOutputDigital: "{{ sound_mode }}"
type: confirm
isSysReq: true
- delay: 1
- service: webostv.button
data:
entity_id: media_player.lg_webos_tv_oled77c2pua
button: ENTER
mode: single
icon: mdi:speaker-message
2 Likes
tombom
(tom)
December 26, 2023, 4:22pm
4
hi and sorry to dig this up.
but i have a somewhat similiar request: is it possible to disable/enable eARC in LG TV settings with a script like the one above?
there is a bug w the handshake on my AVR thus i have to disable/enable eARC once after turning it on.