I’m using the LG webOS integration for my LG C1 TV but it defauls to using the media player dashboard card.
How can I create a card (?) that displays an on/off toggle and then an input selection? (the LG webOS integration shows possible inputs but I just want to change the input without having to click on the entity, etc).
Do I need to create a custom card or can something be configured to function like the above?
Not easily as the configuration options of an input_select helper do not support templating. At least not directly in the config of the input select.
You can create an input_select but setting the options to the source list of the media player requires an automation. Then you would require another automation to change the media_player source whenever the input_select was changed.
Input select
input_select:
media_source:
name: Media Source
options:
- Not loaded
Automations to load the options to the input select
Just started down the HA rabbit hole, and this solved the exact thing I wanted, so thank you very much.
However, I struggled a bit with this trying to figure it out, the source_list attribute wasn’t returning anything. Until I realized after discovering the STATES tab in developer tools that the source_list doesn’t appear unless the TV is powered on.
So I think the source load automation could be improved by updating the list when the TV powers on rather than when HA starts.