Entity-filter card

I want to use the media-control card but with entities visible only when media_player in “on” or “playing” state. I tried with entity-filter card but unsuccesfully… there is a better way to have that?

AFAIK it can only be done on a per entity (=media_player) basis
This is what I have for each of my players

      - type: entity-filter
        title: Media Players
        show_header_toggle: false
        entities:
          - media_player.house
        state_filter:
          - "playing"
          - "idle"
          - "on"
        show_empty: false
        card:
          type: media-control
          entity: media_player.house

That’s what i was trying, but i’d like to have one card for all media players…

use a vertical stack in combination with a conditional card. Here’s a link to what I do: