Hi @Umbe
I haven’t really managed to get it working and I don’t use it for that reason. I would love to find a solution if you find one. I have the popup working and it displays properly but taking my action buttons does absolutely nothing.
Here’s my code for the pop-up definition (before views
section of the UI) :
media_player.office_stb:
card:
type: 'custom:media_player-popup-card'
switchHeight: 400px
switchWidth: 150px
entity: media_player.office_stb
actions:
- service: media_player.volume_mute
service_data:
entity_id: this
name: MUTE
icon: 'mdi:speaker'
- service: media_player.media_play_pause
service_data:
entity_id: this
name: PLAY/PAUSE
icon: 'mdi:play-pause'
- service: media_player.media_next_track
service_data:
entity_id: this
name: SOURCE
icon: 'mdi:skip-next'
style:
$: |
.mdc-dialog .mdc-dialog__container {
width: 100%;
}
.mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
width:100%;
box-shadow:none;
}
.: |
:host {
--mdc-theme-surface: rgba(0,0,0,0);
--secondary-background-color: rgba(0,0,0,0);
--ha-card-background: rgba(0,0,0,0);
--mdc-dialog-scrim-color: rgba(0,0,0,0.8);
--mdc-dialog-min-height: 100%;
--mdc-dialog-min-width: 100%;
--mdc-dialog-max-width: 100%;
}
mwc-icon-button {
color: #FFF;
}
and here’s the tile definition under views
:
- entity: media_player.office_stb
tap_action:
action: more-info
entity: media_player.office_stb
and this is what the popup looks like: