Chromecast Radio with station and player selection

I’ve not upgraded to 0.105 but will defo keep an eye on it and report back when I upgrade this weekend

Hi, I’v got the same problem as you. In my.

I ended up with using a custom card: Group card from Hacs

          - type: custom:group-card
            card:
              type: entities
              title: Radio
              show_header_toggle: false
            group: group.radio

Hope this can healp you

radio
First off…Thanks for taking the time and packaging this up! I sincerely appreciate the simplicity of a package for something like this…So I got this setup and working…sorta. I modified a couple things to get it to play with my Sonos setup.

I have one question for anyone?? I was under the impression that when I would change any inputs (ie Radio Station, Speakers, Volume) that it would dynamically adjust accordingly. Is it normal to have to press “Play” after making a change to volume, Speakers, or Station to get the script to update?

Perhaps I set it up wrong. Any input would be appreciated! thanks again!

I’m not sure which version you have (there have been several iterations), but most likely yes you would have to press play for the change to take effect.
If you want the change to take effect straight away, you need to add an automation that triggers on input_select and calls the script

- alias: Change Radio Station
  initial_state: true
  trigger:
    - platform: state
      entity: input_select.radio_station
  action:
    - service: script.turn_on
      data:
        entity_id: script.radio538
1 Like

Has anyone figured out a way to display “media_title:” and “media_artist:” as a part of the player?

Yes, but since you’re looking at radio streams you first need to retrieve that data (if it’s even available) using scrape sensors
Have a look here

Can someone help me with this. I am New to Hassio an would like to get this to work. I have everything in my config files but dont know how to get this to show up in lovelace. Can someone please guide me on that part

Thanks

Hi,
Assuming you got all the entities right.
Try adding a entities card.

Works for me :slight_smile:

I have the input selects and script and all working fine. I just want to know if there is an easy way to find the URL’s for the radio streams? I am struggling trying to find them to add to this.

Thanks in advance

Heyho,
i think there is no native way with the cast component. But i adopted the Node-Red version from @coen17st in one of the upper posts and it works fine with me…

1 Like

There’s no easy way to retrieve this as each website can use a different way to stream.
Doing a google search is probably what will give you the most results based on a specific station that you’re looking for.
I normally use Winamp to then play a stream to confirm the stream URL actually works

In Chrome hit F12 to open the dev panel and look (Ctrl + F) for ‘audio’ in the html section. Often you will find the stream url

Thanks for all the replies to this.
@sparkydave : that is the solution I thought would be needed but is a littel hit and miss. I’ll just keep searching until I find them all.
No one likes to advertise their direct media links.

How do I get the URL for Netflix and Pandora? Would be nice to press a HA button and have Pandora play on my patio chrome cast.

there is no such thing as “the” url for pandora/netflix. You’d need the URL of a stream, and it needs to be in mp3 format, not video.
and since you need to be logged in to access these services, I’m pretty sure you can’t access the stream URL directly from HA…

I guess I don’t know much about these services. From reading your response I gather that when I cast from my phone to my chrome cast device, its not the chrome cast device that is “reaching out” to the service, but rather when I hit cast it tells the service to “reach out” to my chrome cast device?

Really nice work Coen. I have imported the text in NodeRed, but what do i really to change in de NodeRed? I have 1 google home mini en chromecast. And also what do i neet to add in de config yaml file?

Hey, guys,
do you have if it works with dot echoes (amazon alexa) I copied the files but it doesn’t seem to work
Thank you for your help

Hello guys, now everyting works very fine by me Only the toggle will not work bij Residentie Radio when turn off or turn on i get this error:

Failed to call service homeassistant/turn_off. Unable to find service input_number/turn_off

afbeelding

On the right side how did you add PLAY and STOP text? By me is dat execute.