coen17st
(Coen Stam)
December 8, 2019, 10:33am
1
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
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
coen17st
(Coen Stam)
December 9, 2019, 8:11pm
2
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.
rak
(Ralf Klüber)
January 26, 2020, 6:00pm
3
coen17st:
Found a workaround.
Would you mind sharing your config on how you solved this?
coen17st
(Coen Stam)
January 28, 2020, 12:21pm
4
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
Ghallydc
(CleverX)
February 19, 2020, 11:07am
5
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