Optional card for LG WebOS remote control

Custom card supplied with the LG WebOS remote control
the card displays a png image. the file path is reconstructed from the card according to the TV’s media title or source content.
if source is equal to hdmi: of the hdmi_list then the card will display the source content of the mediaplayer associated with hdmi:
if mediaplayer is not configured but only “hdmi: xxxx” is present then the card will display the xxxx.png file
when the TV is off but one of the media players in the hdmi_list is on, the card will display the file linked to the source attribute of the first hdmi: entity in the list on.
then configure the hdmi_list putting the mediaplayer in first place which, when the tv is off, must have priority over the others.

card

watch video