Hide love lace buttons depending on state of media player

hi,

Sorry if this is the wrong place to post. I am currently using button-entity-row if you have a look at the picture below i would like to know if there is any way of conditionally hiding the buttons circled? Also when the TV is on it shows a play or pause button but i cant find anyway to hide them… if its possible

Here is my config for the card:

entities:
  - entity: media_player.living_room_tv
    hide: play
    icon: 'mdi:television'
    style: null
  - buttons:
      - entity: script.1571603345892
        icon: 'mdi:power'
        style:
          - color: white
      - entity: script.1571603152013
        icon: 'mdi:plex'
        style:
          - color: white
      - entity: script.1571603556828
        icon: 'mdi:netflix'
        style:
          - color: white
      - entity: script.1571603956318
        icon: 'mdi:youtube'
        style:
          - color: white
    type: 'custom:button-entity-row'
type: entities

Much appreciated

You can use the conditional card for it

1 Like

Thanks for the reply. Not sure how i can do this with conditional card though, i did try but it was just hiding the full card and not the separate buttons in the card