First of all thank you for your great work. I have a Alexa i every room and it would be awesome if I could choose my device from a list in one mini media player card. Now I have to create a mini card for every device. Would this be possible?
To additional questions:
First of all thank you for your great work. I have a Alexa i every room and it would be awesome if I could choose my device from a list in one mini media player card. Now I have to create a mini card for every device. Would this be possible?
Thanks!
You could achieve this by setting up an input select, and then use conditional cards to render the entity selected in the input select. There might be a more elegant solution than using conditional cards, since you would have to set up quite a few, but I guess it's mostly copy-paste.
It's possible that it doesn't work in the custom alexa component, have you tried doing it manually to see if it works?
I've never used the custom alexa component or tunein for that matter, but if it does support media_player.play_media you could possibly skip the script and set type: music & id: tunein-uri. diectly in the shortcut.
Thank you for the very quick response ...
You could achieve this by setting up an input select, and then use conditional cards to render the entity selected in the input select. There might be a more elegant solution than using conditional cards, since you would have to set up quite a few, but I guess it's mostly copy-paste.
Sorry that I am so blond but I have no idea how. Do you have an example?
- It's possible that it doesn't work in the custom alexa component, have you tried doing it manually to see if it works?
No it doesn't work
2. I've never used the custom alexa component or tunein for that matter, but if it does support media_player.play_media you could possibly skip the script and set
type: music&id: tunein-uri. diectly in the shortcut.
I will try but how can I specify the channel like bigFM?
Feedback:
type:music
id: tunein-uri or tunein-bigFM doesn't work ... :(
here a example script:
radio6:
sequence:
- service: media_player.play_media
alias: 1live
data_template:
entity_id: media_player.wohnzimmer
media_content_id: 1live 眉berall
media_content_type: TUNEIN
Sorry that I am so blond but I have no idea how. Do you have an example?
Don't have an example, but it should be quite easy.
input_select:
selected_echo:
name: Echo
options:
- First Echo
- Second Echo
- Another one
initial: First Echo
icon: mdi:music
- type: entities
entities:
- input_select.selected_echo
# conditional card example (one for each echo)
type: conditional
conditions:
- entity: input_select.selected_echo
state: "First Echo"
card:
- type: custom:mini-media-player
entity: media_player.first_echo
...
No it doesn't work
Okay, nothing I can do then, sorry.
here a example script:
If that script works, you should be able to put this right in the mini-media-player card:
...
buttons:
- icon: mdi:cat
type: TUNEIN
id: 1live 眉berall
...
Thank you very much ... this is really great and I can avoid the scripts
buttons:
- icon: mdi:cat
type: TUNEIN
id: 1live 眉berall
But for my feature request .. would it not possible that you implement an option to chose the media player in your mini player card in one of the future releases?
But for my feature request .. would it not possible that you implement an option to chose the media player in your mini player card in one of the future releases?
Sorry, won't happen.
The input select + conditional cards route should be a sufficient solution.
Or if someone made a custom card that wraps other card(s) and provides this functionality, could be cool card.
What a pity ... I guess it would be a valid option ...

@kalkih your example of using the conditional card along with the input_select does in-fact work.