Sorry I meant the radiobrowser website https://www.radio-browser.info/.
However I looked after I posted and it seems to have changed. You used to be able to search and get ready to use results. But they seem to have changed it.
Sorry I meant the radiobrowser website https://www.radio-browser.info/.
However I looked after I posted and it seems to have changed. You used to be able to search and get ready to use results. But they seem to have changed it.
Also just found how to find a station on radio-browser.info
Type your search in the search box in the drop-down menu
Thanks for the help. Sorry if i was getting a bit frustrated.
Fair enough, the implementation is very frustrating.
There are many apps, websites etc that you can use with radio browser, and they all have search, local, popular, favorites and similar facilities, why the developer couldn’t have put some of that info HA is a mystery. It is such a jumble.
I just got caught by this. There are TWO “Play Media” options in my list.
Click [+ Add Action], scroll down to “Media Player” and chose the first “Play Media (play media on media player)” option. Note that selecting the “Play media (Starts playing specified media)” option requires that you already have the media_content_id
Note that I have installed the “Music Assistant (BETA)” and “Radio Browser” HA Integrations, and have noticed that the HA “Media” sidebar now is titled “Music Assistant” - so quite possible the extra “Play media” option comes from there.
Yes, the first ones in the list appear to be in no particular sequence … but I believe they are actually in ASCII sequence where numeric digits come before letters, and some special symbols including underscore (_), dot (.) and quote (") come before numbers. I guess that the first few actually have a non-printing symbol (such as the old “bell” which was used on teletypes) before the station name. I use this trick of starting folder or filenames with an underscore to place important files/folders at the top of a directory listing.
If you go down the first few screenfulls you will find that the rest are sorted alphabetically.
Thanks Terry, this was the information which made the “documentation” make sense.
I am tempted to submit a more detailed instruction … but expect it to get rejected for not fitting HA’s policy that “documentation” be hints for developers (and not intended for users).
My next step is to set up some radio stations as favourites to avoid having to scroll through huge lists.
Hi Elektrinis, (also dutch)
Have you got get to work?
How?
can you share the code?
He shared the code.
Yes! Use it with a little edit of the radio stations.
But didn’t get the answer or solution for:
Problem: it does not show if and what is playing now.’
Ok, when you have a station playing, what are all the attributes of the media_player entity you are paying through. You can see these in the states page of developer tools.
I cast my radio-browser stations to an Onkyo receiver and I recently just started playing with templates, so I am no expert, but this is a solution I am using at the moment with Mushroom Template cards for station buttons (it shows IDLE, BUFFERING, and PLAYING). There is some redundancy and buttons in the cast devices that only apply to my DNLA server because I am still working on it while I find time, but I hope this can help others figure things out, because just getting started had me stumped, but slowly I am getting it to what I want, and it works for me… for now.
title: RADIO
path: radio
cards: []
type: sections
badges:
- entity: media_player.yo
- entity: media_player.onkyo_tx_nr696
sections:
- type: grid
cards:
- type: custom:mushroom-template-card
primary: Air1
icon: mdi:radio
entity: media_player.onkyo_tx_nr696_2
picture: >-
https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Air1_logo_2019.svg/440px-Air1_logo_2019.svg.png
multiline_secondary: true
tap_action:
action: call-service
service: media_player.play_media
data:
media_content_id: media-source://radio_browser/36ae4390-a4c1-4572-be11-72fe618fc0a5
media_content_type: audio/mpeg
target:
entity_id: media_player.onkyo_tx_nr696_2
fill_container: false
secondary: >-
{% if state_attr('media_player.onkyo_tx_nr696_2', 'media_content_id')
== 'https://maestro.emfcdn.com/stream_for/air1/airable/aac' -%}
{{ states('media_player.onkyo_tx_nr696_2').upper() }}
{%- else -%}
IDLE
{%- endif %}
hold_action:
action: more-info
- type: custom:mushroom-template-card
primary: GTY.org
icon: mdi:radio
entity: media_player.onkyo_tx_nr696_2
picture: https://www.gty.org/assets/_gty/img/favicon.ico.png
multiline_secondary: true
tap_action:
action: call-service
service: media_player.play_media
data:
media_content_id: media-source://radio_browser/d912d634-979c-4b1a-b9e6-4528144491f1
media_content_type: audio/mpeg
target:
entity_id: media_player.onkyo_tx_nr696_2
secondary: >-
{% if state_attr('media_player.onkyo_tx_nr696_2', 'media_content_id')
== 'https://stream.radio.co/s94ab743da/listen' -%}
{{ states('media_player.onkyo_tx_nr696_2').upper() }}
{%- else -%}
IDLE
{%- endif %}
hold_action:
action: more-info
- type: custom:mushroom-template-card
primary: KWAVE
icon: mdi:radio
entity: media_player.onkyo_tx_nr696_2
picture: >-
https://kwave.com/wp-content/uploads/2023/02/cropped-kwve-favicon-white-lrg-180x180.png
multiline_secondary: true
tap_action:
action: call-service
service: media_player.play_media
data:
media_content_id: media-source://radio_browser/0ba012dc-2528-448c-8528-e1971e0a7bc7
media_content_type: audio/mpeg
target:
entity_id: media_player.onkyo_tx_nr696_2
fill_container: false
secondary: >-
{% if state_attr('media_player.onkyo_tx_nr696_2', 'media_content_id')
==
'https://playerservices.streamtheworld.com/api/livestream-redirect/KWAVEFMAAC.aac'
-%}
{{ states('media_player.onkyo_tx_nr696_2').upper() }}
{%- else -%}
IDLE
{%- endif %}
hold_action:
action: more-info
- type: custom:mushroom-template-card
primary: KLOVE
icon: mdi:radio
entity: media_player.onkyo_tx_nr696_2
picture: >-
https://cdn-profiles.tunein.com/s22561/images/bannerx.jpg?t=637102372250000000
multiline_secondary: true
tap_action:
action: call-service
service: media_player.play_media
data:
media_content_id: media-source://radio_browser/2090bf18-ee98-46c9-a795-917aa8eececf
media_content_type: audio/mpeg
target:
entity_id: media_player.onkyo_tx_nr696_2
fill_container: false
secondary: >-
{% if state_attr('media_player.onkyo_tx_nr696_2', 'media_content_id')
== 'http://maestro.emfcdn.com/stream_for/k-love/web/aac' -%}
{{ states('media_player.onkyo_tx_nr696_2').upper() }}
{%- else -%}
IDLE
{%- endif %}
hold_action:
action: more-info
- type: custom:mushroom-template-card
primary: CR Net
icon: mdi:radio
entity: media_player.onkyo_tx_nr696_2
picture: https://www.christianrock.net/apple-touch-icon.png
multiline_secondary: true
tap_action:
action: call-service
service: media_player.play_media
data:
media_content_id: media-source://radio_browser/960cfee5-0601-11e8-ae97-52543be04c81
media_content_type: audio/mpeg
target:
entity_id: media_player.onkyo_tx_nr696_2
fill_container: false
secondary: >-
{% if state_attr('media_player.onkyo_tx_nr696_2', 'media_content_id')
== 'http://listen.christianrock.net/stream/1/' -%}
{{ states('media_player.onkyo_tx_nr696_2').upper() }}
{%- else -%}
IDLE
{%- endif %}
hold_action:
action: more-info
- type: custom:mushroom-template-card
primary: PP Net
icon: mdi:radio
entity: media_player.onkyo_tx_nr696_2
picture: http://www.christianpowerpraise.net/apple-touch-icon.png
multiline_secondary: true
tap_action:
action: call-service
service: media_player.play_media
data:
media_content_id: media-source://radio_browser/96147f07-0601-11e8-ae97-52543be04c81
media_content_type: audio/mpeg
target:
entity_id: media_player.onkyo_tx_nr696_2
secondary: >-
{% if state_attr('media_player.onkyo_tx_nr696_2', 'media_content_id')
== 'http://listen.christianpowerpraise.net/stream/7/' -%}
{{ states('media_player.onkyo_tx_nr696_2').upper() }}
{%- else -%}
IDLE
{%- endif %}
hold_action:
action: more-info
- type: custom:mushroom-template-card
primary: The Blast
icon: mdi:radio
entity: media_player.onkyo_tx_nr696_2
picture: >-
https://www.theblast.fm/home/wp-content/uploads/2021/05/blast_logo_full.png
multiline_secondary: true
tap_action:
action: call-service
service: media_player.play_media
data:
media_content_id: media-source://radio_browser/f8748bef-347d-48a0-a728-fdac35a8cc8b
media_content_type: audio/mpeg
target:
entity_id: media_player.onkyo_tx_nr696_2
fill_container: false
secondary: >-
{% if state_attr('media_player.onkyo_tx_nr696_2', 'media_content_id')
== 'https://theblast-stream.theblast.fm/128?hash=1691169947864.mp3'
-%}
{{ states('media_player.onkyo_tx_nr696_2').upper() }}
{%- else -%}
IDLE
{%- endif %}
hold_action:
action: more-info
- type: custom:mushroom-template-card
primary: 88.1 KJazz
icon: mdi:radio
entity: media_player.onkyo_tx_nr696_2
picture: https://upload.wikimedia.org/wikipedia/en/0/06/KJAZZ_New_Logo.png
multiline_secondary: true
tap_action:
action: call-service
service: media_player.play_media
data:
media_content_id: media-source://radio_browser/9d21a291-df15-46eb-9760-2bf6614d3be7
media_content_type: audio/mpeg
target:
entity_id: media_player.onkyo_tx_nr696_2
secondary: >-
{% if state_attr('media_player.onkyo_tx_nr696_2', 'media_content_id')
==
'http://playerservices.streamtheworld.com/api/livestream-redirect/KKJZFMAAC.aac'
-%}
{{ states('media_player.onkyo_tx_nr696_2').upper() }}
{%- else -%}
IDLE
{%- endif %}
hold_action:
action: more-info
- type: custom:mushroom-media-player-card
entity: media_player.yo
icon: mdi:audio-video
use_media_info: true
show_volume_level: true
volume_controls:
- volume_set
- volume_buttons
- volume_mute
media_controls:
- on_off
- shuffle
- previous
- play_pause_stop
- next
- repeat
name: Yo M
double_tap_action:
action: call-service
service: media_player.play_media
data:
media_content_id: media-source://radio_browser/d912d634-979c-4b1a-b9e6-4528144491f1
media_content_type: audio/mpeg
target:
entity_id: media_player.onkyo_tx_nr696_2
icon_type: icon
fill_container: false
- type: custom:mushroom-media-player-card
entity: media_player.onkyo_tx_nr696
use_media_info: true
media_controls:
- on_off
- shuffle
- previous
- play_pause_stop
- next
- repeat
volume_controls:
- volume_buttons
- volume_set
- volume_mute
show_volume_level: true
name: DNLA M
primary_info: state
title: Onkyo
max_columns: 4