It started out just wanting a card I could simply load my entities into and it auto switch to the most recently playing one. I’ve been actively adding to it with a bunch of stuff I find useful and I hope you do too!
Some key functionalities include:
Ability to add custom actions on the card that target the currently selected entity by putting “current” for the entity_id for any home assistant service. I’ve used this to play certain genre playlists or switch to a specific source on the tv.
You can toggle match_theme on to inherit your home assistant accent colors.
You can toggle collapse_on_idle on to shrink the player down when it’s not playing. This looks pretty nice on mobile. That feature and always_collapsed (so collapse even when playing) are currently in pre-release as I have some bugs to work out).
When you manually select an entity chip, it will pin that chip in place so it doesn’t auto switch for that session, tap the pin to unpin.
I wanted to keep the config relatively simple while still providing a lot of functionality. This is my first real submission to the community and I’d love for you to check it out. It’s in HACS so you can just search for Yet Another Media Player.
I really like this. I have been playing around with something like this myself. My wife is not techy and although she can use her iPad, does not like to browse or drill down into menus. This solves the problem. The only thing I can’t get to work is my Apple Music playlists. The public ones work fine as I was playing around with yours. But the private ones are hard to get. Sometimes you can get them through developer tools->state. But that doesn’t always work. When it does, it won’t randomize the playlist and seems to jump into other playlists. Have you worked with this at all and had any luck? Would be interested if you have any suggestions or ideas.
Since you mentioned playlists specifically, you would just change where I had album in my media type to playlist and use the uri for library://playlist/xxxx
Thanks for the cool card. I like the carousels to pick up a player then a source.
I mostly use Amazon Echo speakers and I notice that the Jazz example in the documentation (below) plays just fine on my Google Nest Mini but not on my Echos where I get the message: “To send TTS, please set public url in integration configuration”
I’m afraid that’s a limitation to the Echos, not your player though.
Please note: I am NOT a Nabu Casa subscriber.
- name: 🎷 Jazz
service: media_player.play_media
service_data:
entity_id: current
media_content_id: https://streaming.live365.com/a49833
media_content_type: music
extra:
metadata:
metadataType: 3
title: KJazz 88.1
subtitle: KJazz 88.1
images:
- url: https://cdn-profiles.tunein.com/s37062/images/logod.jpg
Has anyone been able to launch a streaming url on an Echo?
On the other hand, stations from TuneIn work fine on my Echos like so:
- name: Radio Paradise Mellow Mix
icon: mdi:radio
service: media_player.play_media
service_data:
entity_id: current
media_content_id: Radio Paradise Mellow Mix
media_content_type: TUNEIN
Thank you so much! I tried this out this morning and it works great! My wife will love this. Thanks again. Not just for the help. But for the custom card.
If you want to listen to streamed radios from this Top 100 from RadioBrowser by launching them from Home Assistant, you can create a script (whose name is script.media_play_patate_douce_radiobrowser):
sequence:
- data:
media_content_id: tell radio browser number 20
media_content_type: custom
target:
entity_id: media_player.office
action: media_player.play_media
alias: "Media: play Patate Douce on Office (RadioBrowser)"
description: ""
then add it to your actions (in your yet-another-media-player custom card)
The requirement is to install the Radio Browser skill on your Alexa app.
The only drawback is that the script is set to play to a particular Echo speaker (Office in my example) so no matter the speaker you pick on the first row of chips, it’ll play on Office.
That would be cool if we could choose a speaker that would be a variable sent to the aforementioned script
Another thing is the artwork missing with this kind of source.
I don’t see the Group Players entry in the hamburger menu.
I select a speaker then my Patate Douce stream. The radio starts but the previous artwork remains although I specified enqueue: replace in the script (but it seems to be the same with other stations and I thought this worked before ).
That’s awesome! It is SO cool to see how others are using my card.
Regarding group players, it’s only on supported players. If you click the hamburger menu and choose “More Info” and there’s no “Join Players” option built into Home Assistant then it won’t show in YAMP either. If you do see the join players option but it’s not showing in YAMP let me know.
Not sure about the artwork not showing, I’ll try to replicate your script and see what it does on my end when I get some time.
Glad you’re liking the card! Makes me very happy to see people using it. I never anticipated it getting as big as it already has.
Very nice card, and this was the best version. But now i only can grouping the speakers, i want everywhere the same music, but different volume. that was very easy in the first version.