Hi guys,
super new to HA, am in healthcare and don’t have a ton of coding knowledge but just getting started.
Got the spotify/spotcast plugins setup, those work great, just trying to get this media card setup to play on two alexas, either separately or grouped, from spotify.
Neither speaker will let me chose any source besides “local speaker”
Only way I can get spotify to play is by using a separate default media card and chosing media, then it plays just on the echo dot, and not on both. Nor can I ever get it to play on the other.
Sorry if this has already been asked before, but is there anyway to change the background opacity based on the state of the device?
I want to have the card at 60% opacity when the status is either unavailable, idle of off and noticed there is a --mini-media-player-background-opacity variable, but unsure how to actually make it work in code!!!
Does anyone know how to use the speaker group management with a dynamically changing “master” speaker? My goal is to only show the card that has the correct “master” speaker.
Currently I’m using the speaker group management along with a conditional card for my Sonos speakers. This allows me to only have the card display in lovelace when the speaking state is playing. I have created a card for each of my speakers as “master”. The issue is that I have to find which card has the “master” speaker as the main entity in order to control the grouping.
I’d like to find a way to only have the card display that has the appropriate “master” speaker as the main entity so I can control the grouping. Hopefully this question makes sense.
Thank you for sharing! I actually did figure this out in a very similar way using sensors instead of binary sensors to determine which speaker is the master. I had not posted my setup yet because Im still making tweaks to it. I might give your setup a go to see if it works any different / better than my current method.
I also found another discussion where someone used entity_filter card with regex state_filter. I had not heard of regex until just now so Im looking into that and also trying out their way of making the card.
Does anyone know how to change the media_title and entity picture of a media player using media_player.play_media with the shortcuts? In the media player documentation there is a section about extra attributes and I tried a lot but couldn’t find how to do it. This is the corresponding code:
shortcuts:
columns: 4 # Max buttons per row
buttons:
- name: "538"
type: service
id: media_player.play_media
data:
entity_id: media_player.sonos
media_content_id: http://22343.live.streamtheworld.com/RADIO538.mp3
media_content_type: music
extra:
title: "538"
Where in the docs can I find something about an extra option? Or do you mean the attribute option? If so, I would like to use it but it doesen‘t work ‚though the attribute exists.
No i mean in the media player docs: Media Player - Home Assistant at Service media_player.play_media it refers to a service_data attribute called extra. In this attribute you can use media_info and metadata but then you will need the datatype map. Further it refers to google dev pages. But i haven’t figured out the right syntax yet. New to this.
Hello, I hope anyone can help me. How can show on mini media player card the source list and media browser icon? I see source list only. The media player view media browser icon, but can not view source list.