I’ve an LG TV with WebOS, and also have made some script for using, but i would like to make a script to change the sound output (for exemple go from tv speaker to headset).
I don’t see something like this in the states, … do you know if it is possible ?
It seems that since one of the last version we have an service available for changing the sound_output.
i just see that in the doc, but not tryed for the moment.
Every sound_output capabilities of your tv can be used.
The more easy way to know the name of the sound_output tu use is to change manually (with your tv remote control) the sound ouput in the TV, and for each one go into home assistant, in developement tools, then in states, and check the states of your media_player.yourtvname
There you will find the real name of the current sound_output selected, for exemple (tv_speaker, tv_headphone, …)
I can get this working in a script, but how to get it working in an automation? I would like to change my sound_output to external_speaker when the source changes to i.e. Netflix.
This is my trigger:
platform: state
entity_id: media_player.lg55b6v
attribute: source_list
to: Netflix
Logically, this should work in my opinion, but I wouldn’t be posting if it did. The action works, I can run it manually and the sound output changes, but it doesn’t react to the trigger unfortunately.