Dynamic name for a button card?

Hi! Is it somehow possible to add a dynamic label to the button? I’d want my play/pause button to show the current position of my media:

type: button
    entity: media_player.plex_plex_media_player_foo
    icon: hass:play-pause
    # This value is not evaluated and just displays the template as text:
    name: "{{state_attr(''media_player.plex_plex_media_player_llama', 'media_position')}}" work

Most built-in cards don’t support templates, and if the docs don’t say the card does support them, it probably doesn’t. Check out GitHub - custom-cards/button-card: ❇️ Lovelace button-card for home assistant for more flexible button card.

1 Like