So i want a card to show the correct media control card according to the source of my tv.
So for plex i want to show a media control card for media_player.plex…
For HDMI2 i want to show a media control card for media_player.telenettvbox_2
For netflix, disneyplus i want to show a media control card for media_player.lg_living
Somehow the lgwebos integration doens’t bring in any attributes so can’t use that in my yaml. so is there another way to put this in my conditions?
Thx in advance!
PS: this is what ChatGPT gives me:
type: vertical-stack
cards:
- type: conditional
conditions:
- entity: media_player.lg_living
state: 'on'
attributes:
source: 'plex'
card:
type: media-control
entity: media_player.plex_plex_for_lg_lg_49un71006lb
name: Plex Control
icon: 'mdi:plex'
- type: conditional
conditions:
- entity: media_player.lg_living
state: 'on'
attributes:
source: 'HDMI2'
card:
type: media-control
entity: media_player.telenettvbox_2
name: TV Box Control
icon: 'mdi:television-box'