Add Search, Favorites and Recent to Radio Browser

just found this: GitHub - lukx/home-assistant-jukebox: Home-Assistant Radio Station and Stream Selector Card

I agree that the features in the original post are needed to make the Radio Browser useful. The card recommended by rbric looked as if it might give a workaround but, it seems, is not recommended for HAOS and triggers warnings about using it there.

Where do you see this warning?

It doesn’t specify HAOS but Download | HACS talks about other versions (Supervised, Container and Core) and adds If you are not sure what type of Home Assistant you are using, then you should probably not use HACS (or any other custom integration)

He is just saying that HACS is not for simpletons. You need to be able to read and follow instructions.

Also the instructions are there for haos.

For the radio browser, perhaps I missed it but I cannot for the life of me find a search box. I am trying to play a radio called Frisky Deep (not Frisky, nor Frisky Chill - but Frisky Deep).

WOuld it be possible to add a search box please so I can find instantly what am looking for. Its amusing going through the counties pages and music genres - and still not finding what am looking for.

Please, my kingdom for an autocomplete radio station search box !

Thanks,
DS

1 Like

Make your favorite buttons

https://rouwette.com/radio-browser/

It is frustrating to find a radio station in the media browser even though it is sorted alphabetically. Each folders contain too many items. If we know the radio station we desire to listen to, perhaps it should be searchable with a search bar?

1 Like

Whals my site.

https://rouwette.com/radio-browser](Play Radio Browser via Home Assistant - Rouwette.com

This works great. I know this might be pushing it but it’s there any way to send an image to the player? I have a Google home hub which plays the radio station from the button but it doesn’t get the image of the radio station and instead just shows a screen staying Default Music player.

1 Like

Hi all,

I want to add my vote: Radio browser is great, but it should be more integrated in the whole HA. The ability to add favorites or some kind of playlist/subset And a standard card to play those radio stations (not only to external media devices, but also in the browser) would be a very valuable addition.

I am coming from domoticz+ dashticz. Over there it was a standard block/card. Streamplayer — Dashticz beta documentation

I have this for a few years, making my dashboard an internet radio.
Hope HA is adding this soon.

I don’t see a way to select a radio station. I only see a box for content ID. Am I missing something obvious?

This is good and I currently use it, but I am interested to find way to browse and play (as opposed to predefining a ‘favorites’ selection). There are an insane number of radio stations and I want to keep sampling more on the fly!

Music Assistant has radiobrowser as a music provider. Not sure whether it makes it any easier to browse and sample, but worth a look.

1 Like

so today i discovered with voice, that i can have my stuff play music… nice.

how ever, I emidiatly voted for the upgrade of the media browser in home assistant as in my opinion thats the worst media player section ive come across in a verrrrrrrrrry long time. IIRC even the almost first generation of 1997 Winamp did whipp the lamas a** better than this sorry excuse of an interface. no truly…

And since some folks here

find it funny to promote theyre solutions behind a $0 paywall to what ever gain they may get by that, probably my user data or i dont know, i thought i just post the code for my music button cards with a screen shot beside it and make it for the next guy a easy copy paste thing to get em startetd.

ive just put in my favorite station and my not so much favorite station from here around Stuttgart Germany that are greeting me in my car via DAB and therestrical.

type: vertical-stack
cards:
  - type: entities
    entities:
      - entity: input_select.radio
      - entity: input_select.sender
  - type: horizontal-stack
    cards:
      - type: conditional
        conditions: []
        card:
          type: custom:button-card
          show_entity_picture: true
          entity_picture: |
            [[[
              var station = states["input_select.sender"].state;
              if ([station] == '107.7 LIVE') return '/local/media/1077live.png';
              if ([station] == 'SSL Classic') return '/local/media/SSL.avif';
            ]]]
          size: 19%
          tap_action:
            action: call-service
            service: media_player.play_media
            service_data:
              media_content_id: |
                [[[
                  var station = states["input_select.sender"].state;
                  if ([station] == '107.7 LIVE') return 'media-source://radio_browser/58891bcf-e1e3-11e9-a8ba-52543be04c81';
                  if ([station] == 'SSL Classic') return 'media-source://radio_browser/96109022-0601-11e8-ae97-52543be04c81';
                ]]]
              media_content_type: audio/acc
              entity_id: |
                [[[
                  var player = states["input_select.radio"].state;
                  if ([player] == 'BK-fire10-11-Manne') return 'media_player.bk_fire10_11_manne';
                  if ([player] == 'BK-fire10-11-Flur') return 'media_player.bk_fire10_11_flur';
                  if ([player] == 'Zotac-Box') return 'media_player.zotac_box';
                ]]]
          hold_action:
            action: call-service
            service: media_player.media_stop
            target:
              entity_id: |
                [[[
                  var player = states["input_select.radio"].state;
                  if ([player] == 'BK-fire10-11-Manne') return 'media_player.bk_fire10_11_manne';
                  if ([player] == 'BK-fire10-11-Flur') return 'media_player.bk_fire10_11_flur';
                  if ([player] == 'Zotac-Box') return 'media_player.zotac_box';
                ]]]              
          name: |
            [[[
              var station = states["input_select.sender"].state;            
              if ([station] == '107.7 LIVE') return 'Die neue Werbe-107.7-Playback-Songs';
              if ([station] == 'SSL Classic') return 'Sunshine Live - WIR sind unter euch...';
            ]]]
  - type: entities
    entities:
      - type: custom:slider-entity-row
        attribute: volume_level
        name: BK-Fire10-11-Manne
        icon: mdi:volume-high
        entity: media_player.bk_fire10_11_manne
      - type: custom:slider-entity-row
        attribute: volume_level
        name: BK-Fire10-11-Flur
        icon: mdi:volume-high
        entity: media_player.bk_fire10_11_flur
      - type: custom:slider-entity-row
        attribute: volume_level
        name: Zotac Box
        icon: mdi:volume-high
        entity: media_player.zotac_box

the pictures reside in /config/www/media/picturename.extension
and thats NOT the same as the media folder of home assistant!!! one could also use the direct uri to the stations logo on theier side to get updates, as SSL for example changes the logo on a regular base.

and her the helpers:

and

as you can see i also added two dropdown helpers (input_select) for “radio/speaker-device” and “sender/station-selector” and populated them. My code obviously needs adjustments for your stations, but if you copy it 1:1 and reporoduce my helpers, its working out of the box, then you can go from there.

I made the buttoncard fully flexible. short press starts the selected station on the selected device, long press stops playback on the selected device.

I was unable to reproduce the automation on the volume sliders though, some input here would be apreciated…

AND as a bonus:
my wifes favorite station: :slight_smile: i hate em for the “call to win and lots off adds and oh we play live songs” actually they play 24 times a day the same song, so booooooring, but it seams most folks dont mind, or dont even notice… dont know, my brain just notice such stuff and its really bugging me. dont you know those folks telling the same storry every time you see them? Hence I named em “die neue 107,7 Werbetrommel und Playback-Songs”, thats apropriately…

grafik

and folks, watch out, if you missplace the station id, you end up thinking why your home town station is so cool but are actually listening to something else entirely… just happend to me…

now I have q-dance in my favorites too :slight_smile:

if ([station] == 'Q-Dance') return 'media-source://radio_browser/674e1f9d-4686-4bc0-8fc3-7e1517ed543a

cheers and have fun

Hi everyone,

I just came across this topic as I, like most of you, would love to be able to cleanly handle favorites etc. out of the box. However, there’s a good explanation as to why you won’t be getting this from the integration any time soon.

There already was an attempt at doing this back in 2022 through a PR: Smart radio browser by giachello · Pull Request #72730 · home-assistant/core · GitHub The discussion goes something like this:

Instead of each integration building out its own logic for things like this […] add such a feature (including UI management) to the media browser itself.

and continues as

It could be re-implemented as a generic media source feature in Home Assistant as suggested above (and for which an architectural proposal has been opened).

In short, we’re barking up the wrong tree here and there is discussion open, though it could use some additional guidance: Adding Favorites and Playback services to Media Source · home-assistant/architecture · Discussion #770 · GitHub

People might be interested in Radio Browser - Music Assistant

1 Like