mini-media-player icon indicating copy to clipboard operation
mini-media-player copied to clipboard

Button state to indicate which radio station is selected

Open uncappedshady opened this issue 2 years ago • 0 comments

Hi there, I have created a mini-media-player card with buttons for radio stations. What I cannot seem to get working is to have the button highlighted that I selected to indicate which radio station is currently playing.

Any ideas on how to achieve this?

Below is my code:

type: custom:mini-media-player entity: media_player.googlehome0339 shortcuts: buttons: - id: https://live.jacarandafm.com/jacarandahigh.mp3 image: http://cdn-profiles.tunein.com/s6410/images/logod.jpg name: Jacaranda FM type: music - id: >- https://playerservices.streamtheworld.com/api/livestream-redirect/FM947.mp3 image: https://cdn-radiotime-logos.tunein.com/s6400d.png name: 94.7 FM type: music - id: >- https://playerservices.streamtheworld.com/api/livestream-redirect/5FMAAC.aac image: https://cdn.webrad.io/images/logos/radiosa-org/5fm.png name: 5FM type: music - id: https://edge.iono.fm/xice/57_medium.aac image: http://cdn-profiles.tunein.com/s151818/images/logod.png name: HOT FM type: music columns: 4 group: false volume_stateless: false artwork: none

And here is the card:

image

uncappedshady avatar Oct 14 '22 08:10 uncappedshady