LG WebOS - Support digital sound output setting

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())

Remember to vote for your own request. :slight_smile: