Chromecast Radio with station and player selection

Hello guys,

Sorry if this off topic…

I have playlists in my /media folder. Now if I try to play it via nest mini by using media_play service. The Playlist is not played.

If I play the Playlist using vlc it plays just fine.

What am I doing wrong here?

Kindly guide

Could this work, or (relatively) easily be adapted, to work with Sonos speakers and without Chromecast device?

I would say yes if your sonos speakers have a media_player entity. Having said that you might like to look at the new Music Assistant integration. GitHub - music-assistant/hass-music-assistant: Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.

Is anyone outside of the UK able to get BBC radio 5 live working? And if so could you explain how? :slight_smile:

Hi Bob (Hoe gaat het?)
I am Dutch (Rotterdammer) and living in Florida and use HA. I am not very technical but have used YAML a few times in HA. How can I add your integration to my HA in simple steps :grinning: ?

I am using this for years and very happy with it.

Did someone figure out a way to integrate the radiostation icon so that is shows up in the standard mediaplayer card?

If I run the radiostation from tunein it shows the radiostation icon if I run it from home assistnat it doesn’t :frowning:

Thanks!
One question; how to play the radio on multiple media players?
I mean how did you set this: media_player.everywhere

I created a number of speaker groups in the Google Home app. These automatically get brought into HA as additional media_players.

Just a heads up, that option is going to be limited going forward.

Well that sucks. I’d better set up a heap more groups quickly since they say existing groups will not be affected.

I did the same! They didn’t specify a cutoff date but it still worked for me a few days ago.

I was planning on maybe adding another google speaker or two but I might have to start looking for a different eco system for the music and just keep the google stuff around for tts and google assistant stuff.

1 Like

Well that didn’t last long :laughing:

Thankfully!

Oldish topic…and I’ve been using this method for a while. But has anyone found a way of externalising the list of stations and urls, so that they can be read by home assistant and presented as a list?

One of my posts way back up this thread has my code that does this.

image

do you know where? or can link to it.

So something like a json/yaml file with “station”: “url” that can be read and consumed by an automation/script?

Actually, it was linked only a little way up… easy find.

I did see that…The main bit I want to externalise is this:

media_content_id: >
          {% if is_state("input_select.radio_station", "Hit 92-9") %} http://ic6ti.scahw.com.au/6ppm_128
          {% elif is_state("input_select.radio_station", "Nova 93-7") %} http://streaming.novaentertainment.com.au/nova937
          {% elif is_state("input_select.radio_station", "Mix 94-5") %} http://sc01.scahw.com.au/6mix_32
          {% elif is_state("input_select.radio_station", "96FM") %} https://icy.ihrcast.arn.com.au/au_012_icy
          {% elif is_state("input_select.radio_station", "80's 1") %} http://ic2ti.scahw.com.au/2easy_128
          {% elif is_state("input_select.radio_station", "80's 2") %} http://18243.live.streamtheworld.com/T_RAD_80S_S01_SC?
          {% elif is_state("input_select.radio_station", "OldSkool Hits") %} http://sc01.scahw.com.au/loveland_32
          {% elif is_state("input_select.radio_station", "Old Skool Anthems") %} http://nebula.shoutca.st:8075/stream
          {% elif is_state("input_select.radio_station", "Raw FM (dance)") %} https://frontend.stream.rawfm.net.au/i/syd-stream-192k.mp3 
          {% elif is_state("input_select.radio_station", "181FM Power (Todays Hits)") %} http://listen.181fm.com/181-power_128k.mp3?
          {% elif is_state("input_select.radio_station", "181FM 90's Dance") %} http://listen.181fm.com/181-90sdance_128k.mp3
          {% elif is_state("input_select.radio_station", "181FM Star 90's") %} http://listen.181fm.com/181-star90s_128k.mp3
          {% elif is_state("input_select.radio_station", "181FM The Breeze") %} http://listen.181fm.com/181-breeze_128k.mp3
          {% elif is_state("input_select.radio_station", "Heat Radio (RnB)") %} http://174.37.159.206:8106/stream
          {% elif is_state("input_select.radio_station", "Fresh 92-7") %} http://live.fresh927.com.au:80/freshaac
          {% elif is_state("input_select.radio_station", "DI Chill & Tropical House") %} http://pub1.diforfree.org:8000/di_chillntropicalhouse_hi
          {% elif is_state("input_select.radio_station", "DI Disco House") %} http://pub1.diforfree.org:8000/di_discohouse_hi
          {% elif is_state("input_select.radio_station", "DI Funky House") %} http://pub1.diforfree.org:8000/di_funkyhouse_hi
          {% elif is_state("input_select.radio_station", "DI Liquid D&B") %} http://pub1.diforfree.org:8000/di_liquiddnb_hi
          {% elif is_state("input_select.radio_station", "Aloha Joe's Relaxation Island") %} http://s2.voscast.com:7932/
          {% elif is_state("input_select.radio_station", "Spectrum Fit") %} http://51.255.235.165:5292/
          {% elif is_state("input_select.radio_station", "Energy FM Australia") %} http://s3.viastreaming.net:8502/
          {% elif is_state("input_select.radio_station", "Jazz Relax") %} http://199.195.194.94:8036/stream
          {% elif is_state("input_select.radio_station", "Australian Country") %} https://streaming.radio.co/s5ea3fdd1c/listen
          {% elif is_state("input_select.radio_station", "Rebel FM") %} https://au1.fastcast4u.com/proxy/rblgc?mp=/stream
          {% endif %}

these if statements. I want that content, the station name and the url in a file outsode of the automation. The automation will read it for the list of station names input_select, and then use the station name and url for the selection before passing to the media player.