antpoli
(Antonio)
October 29, 2025, 1:12pm
1
Do you know hot to find diret link to one radio that is in the list of radio browser?
I need to have a button on lovelace that once I press, I listen the radio station.
If I go on radio browser I always need to browse by hand the full list of avavilable stations…
Thanks
Choose a card that allows actions, then use perform-action as the tap-action.
In the following Tile card example, that can be found under Interactions:
The media_player.play_media action will allow you to use the media selector to choose the radio station when you are setting up the card.
Here's the YAML configuration for the Tile card
type: tile
entity: media_player.home_assistant_voice
name: Radio Casa Pueblo
hide_state: true
vertical: false
tap_action:
action: perform-action
perform_action: media_player.play_media
target:
entity_id: media_player.home_assistant_voice
data:
media:
media_content_id: media-source://radio_browser/508741c2-4111-11e8-b74d-52543be04c81
media_content_type: audio/mpeg
features_position: bottom
antpoli
(Antonio)
October 29, 2025, 4:46pm
3
The issue is that I am not able to identify the link to enter into “media_content_id”
If you set up the card using its UI you don’t need to supply that, it is supplied by the Media selector.
antpoli
(Antonio)
October 30, 2025, 11:28pm
5
I would like to have a toggle button: when I click it starts streaming the radio or stops
For that you would need to have the action of the button call a script that branches the on and off actions based on the state of the media player.