Hi guys. First of all, thanks for great card @kalkih , I’m using it since few years ago. Finally I decided to automate little bit a music on my 6 Echo Dot devices, but found a problem. Not sure where could be root cause, HA, Amazon or Mini Media Player, so let’s try to ask here. To make thing simple, let’s forget 6 Echo devices, let’s focus on 2 Echo devices in living room.
Let’s say I have following devices:
- media_player.alexa_living_room
- media_player.alexa_living_room_2
Let’s say I made a speaker group (multiroom music) in Alexa app, which is exposed to Home Assistant:
- media_player.living_room_area
I would like to have same Mini Media Player yaml for each of above 3 entities (with respective entity within yaml ofc), but this isn’t working for group. E.g. this is the yaml for single speaker media_player.alexa_living_room
:
type: custom:mini-media-player
entity: media_player.alexa_living_room
artwork: cover
source: full
sound_mode: full
info: scroll
shortcuts:
columns: 2
buttons:
- type: custom
name: Rock Radio
id: play ROCK Radio Beograd on tunein on Alexa Living Room
icon: mdi:guitar-electric
- type: custom
name: BBC Radio 1
id: play BBC Radio 1 on tunein on Alexa Living Room
icon: mdi:guitar-electric
tts:
platform: alexa
toggle_power: false
And this is the yaml for the speaker group media_player.living_room_area
:
type: custom:mini-media-player
entity: media_player.living_room_area
artwork: cover
source: full
sound_mode: full
info: scroll
shortcuts:
columns: 2
buttons:
- type: custom
name: Rock Radio
id: play ROCK Radio Beograd on tunein on Living Room Area
icon: mdi:guitar-electric
- type: custom
name: BBC Radio 1
id: play BBC Radio 1 on tunein on Living Room Area
icon: mdi:guitar-electric
tts:
platform: alexa
toggle_power: false
Single speaker card is fully working, but on group speaker card, buttons and TTS are not working. Nevertheless I’m not sure what does this mean, I can notice that Source is missing on speaker group card (top card is single speaker, bottom card is speaker group):
I found workaround. Buttons are working for group speaker if their command requesting a group speaker and if entity of Mini Media Player card is set to single speaker. Also (more than dirty) workaround for TTS is set multiple single speaker entities. Yeah, I know this is confusing, so below is full workaround yaml for working buttons and TTS for speaker group:
type: custom:mini-media-player
entity: media_player.alexa_kitchen
artwork: cover
source: full
sound_mode: full
info: scroll
shortcuts:
columns: 2
buttons:
- type: custom
name: Rock Radio
id: play ROCK Radio Beograd on tunein on Living Room Area
icon: mdi:guitar-electric
- type: custom
name: BBC Radio 1
id: play BBC Radio 1 on tunein on Living Room Area
icon: mdi:guitar-electric
tts:
platform: alexa
entity_id:
- media_player.alexa_living_room
- media_player.alexa_living_room_2
toggle_power: false
But this is little stupid, because this way I have no volume, pause, etc. controls for group, but for single device instead.
Sorry for long post, I am also open for proposes how this could be done different, maybe smarter way, thx.