Entity Filter Card and Custom mini-media-player possible?

Hi, i want to use the custom card ‘mini media player’ within the Filter Card. Is this possible?
I want to hide the player when no media is being played
I get an error when use in the following code:

filter card:

      - type: entity-filter
        show_empty: false
        state_filter:
          - "playing"
          - "paused"
        entities:
          - entity: media_player.google_home_big_01 
        card:
          type: custom:mini-media-player
          name: Google Home Speaker
          icon: mdi:google-home
          more_info: true
          artwork: full-cover
          source: icon
          sound_mode: icon
          info: short

Capture

original without filter card:

      - type: custom:mini-media-player
        entity: media_player.google_home_big_01
        name: Google Home Speaker
        icon: mdi:google-home
        more_info: true
        artwork: full-cover
        source: icon
        sound_mode: icon
        info: short  

Found a workaround. I use the conditional card instead of the filter card. Now the Mediaplayer entity is only visible when state is not off.

Would you mind sharing your config on how you solved this?

sure, here you go

          - type: custom:vertical-stack-in-card   
            cards: 
              - type: conditional
                conditions:
                  - entity: media_player.chromecast_woonkamer
                    state_not: "off"
                card:
                    type: custom:mini-media-player
                    entity: media_player.chromecast_woonkamer
                    name: Chromecast Woonkamer
                    more_info: true
                    artwork: full-cover
                    source: icon
                    sound_mode: icon

Just resolved my issue too.
Thanks for sharing

Hello,

I found your post to solve this problem and I thought that maybe a working configuration will be helpful to others. You could find my card config below.

Regards,

- type: entity-filter
        name: Media Played
        show_empty: false
        entities:
          - media_player.apple_tv
          - media_player.echo_bedroom
          - entity: media_player.living_room
            type: 'custom:mini-media-player'
            artwork: cover
            hide:
              power_state: false
              source: true
              volume: false
            icon: 'mdi:spotify'
          - entity: media_player.echo_bedroom
            type: 'custom:mini-media-player'
            artwork: cover
            hide:
              power_state: false
              source: true
              volume: false
            icon: 'mdi:spotify'
        state_filter:
          - playing
2 Likes