Hello, I would appreciate some help with auto entities card. My goal is to show a media-control card or a custom button card depending upon if the media player entity is active or not. It works fine if I choose the entities card type, however if I change it to media-control, then I just get an error message stating that I need a card from the media domain. What’s wrong here?
This is working:
type: custom:auto-entities
card:
type: entities
filter:
include:
- entity_id: media_player.tv
state: playing
exclude: []
else:
type: custom:button-card
styles:
card:
- font-size: 80px
- padding: 0px
- height: 190px
- background-color: '#996119'
entity: sensor.time
color_type: card
color: '#262626'
show_icon: false
show_state: true
show_name: false
And this does not:
type: media-control
card:
type: entities
filter:
include:
- entity_id: media_player.tv
state: playing
exclude: []
else:
type: custom:button-card
styles:
card:
- font-size: 80px
- padding: 0px
- height: 190px
- background-color: '#996119'
entity: sensor.time
color_type: card
color: '#262626'
show_icon: false
show_state: true
show_name: false
Thank you!
Csaba