Is it possible to replace automatic elements of the player with other sensor data? For example, I’m using my Chromecast Audio named “Basement speaker” to stream radio stations. When I stream a station, the default player looks like this:
Separately, I’ve created scrape sensors to obtain the current song and artist of a radio station. I can display that information in a separate entities card:
What I’d like to do is to combine the two, so that the mini media card displays sensor.kgbi_songname instead of Basement speaker and sensor.kgbi_artist instead of Default Media Receiver. Is this possible? I’m looking through the many options of the card but not seeing a way to accomplish this.
Hi @kalkih, in the latest version (V1.12), the card does not fetch the defined media player icon. It shows the default ‘cast’ icon for all media players.
I’ve partially solved this myself using the Lovelace card-templater card (Jinja2 card templating in Lovelace!). I replaced the name with a template and hid the “Default Media Receiver.” I’d still prefer to be able to replace that element as well. Anyway, my new card’s code is:
I’m about 90% satisfied with this setup. All that’s left is to nest this inside a conditional that displays this card if I’m actually listening to KGBI, otherwise it will display a basic card. Then if I can capture the album art as I’ve written about here: Scrape Help Needed for Radio Station, I’d like to template the background to be the result of that scrape.
im missing one small thing. When i use the default original media player card there’s a button (when using spotify) that give me direct access to the media browser.
I do have a strange behavior with mini-media-player since a few weeks
Every time when I open home assistant on my phone or even on my computer it takes a while till mini-media-player is loaded. First it shows me that the custom component cannot be found. but after a few moments it is loaded (see attached gif)
Ideally I think I’m supposed to have the media_player.multiroom_player control the source, play, pause, next and then the power buttons for media_player.living_room and media_player.outside are controlled by the power buttons.
I have looked and can’t figure out how to setup the media_player.multiroom_player which would control the stations from my sonos system. Hopefully someone has this working with Sonos and it’s easy. Any guidance is greatly appreciated.
I have a question and a response to Jarne_Roussard:
Question: So it appears like I need to setup a media player to act as the source. I have Sonos which I thought was a media player but it doesn’t appear to be working if I put in in the yaml in the place of media_player.multiroom_player. Does everyone setup a separate media player on their machines?
The card first shown in my request above is developed by Kalkih and can be found here: