Play one radio stream by pushing one button

Hello
I would like to play only a single radio stream to a media player with one single button.

I have tried many but everything is too extensive.
So no selectors but just one button that plays one stream one media player.
Who can help me on my way.

So please no links to all the difficult script i tried them all and they are too much.

I understand i have to give more input

The radios station for example is https://stream.100p.nl/100pctnl.mp3

the media player is media_player.audio

Hi Ernst,
without knowing which stream you would like to play on which device, it is difficult to give you hints.
For example, my SONOS behaves different to my ‘frontier silicon’-speakers.
Maybe you take the time to read this topic https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371

I use this to play radio Wales on chromecast

alias: Play Radio Wales (HG)
description: ''
trigger:
  - platform: state
    entity_id: input_boolean.radio_wales
    to: 'on'
condition: []
action:
  - service: media_player.play_media
    target:
      entity_id: media_player.home_group
    data:
      media_content_id: >-
        http://stream.live.vc.bbcmedia.co.uk/bbc_radio_wales_fm?s=1641199659&e=1641214059&h=c0da96092edbdc9142733a3e69aad041
      media_content_type: audio/mp4
mode: single

With an input boolean triggering it.

1 Like

Nice i understand much but i’m such a beginner i don’t know how to go further whit the input boolean
I understand i have to trigger it there it stops for me.

Create toggle helper in configuration / automations and scenes / helpers and use that as the button and automation trigger.

1 Like

And it’s working Thanks .

You can also use this one. I have edited it on my own purposes with the radio stations and icons.

Playing webradio (and other audio) from Lovelace dashboard :: Sequr