Stream radio to chromecast or local browser

Hi,

I am having a we’ll working radio stream to chromecast working in HA.

Optionally I also want to play the streams in my local browser (next to casting it to a chromecast)

this is the script I am using:

radio538:
  alias: Play Radio on Chromecast Audio
  sequence:
  - service: media_player.volume_set
    data:
      entity_id: media_player.woonkamer_audio
  - service: media_player.play_media
    data_template:
      entity_id: >
        {% if is_state("input_select.chromecast_audio", "Woonkamer") %} media_player.woonkamer_audio
        {% endif %}
      media_content_id: >
        {% if is_state("input_select.radio_station", "Radio 538") %} http://playerservices.streamtheworld.com/api/livestream-redirect/RADIO538.mp3
        {% elif is_state("input_select.radio_station", "Q-Music") %} http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3
        {% elif is_state("input_select.radio_station", "3FM") %} http://icecast.omroep.nl/3fm-bb-mp3
        {% elif is_state("input_select.radio_station", "Veronica") %} http://playerservices.streamtheworld.com/api/livestream-redirect/VERONICA.mp3
        {% elif is_state("input_select.radio_station", "Heart 80s") %} http://media-ice.musicradio.com/Heart80sMP3
        {% endif %}
      media_content_type: audio/mp4

I can add a separate weblink to a radio stream, but it would be great to have this choice at the chromecast field, for example “local browser” as an option.

Is there a way to achieve this?

I’ve user the browser service:

{% elif is_state("input_select.chromecast_audio", "Local Browser") %} browser.browse_url

But this opens the browser on the machine where HA is running.

I think I need the weblink service, but how to control that?

Hello!
I am very new to all this but am very happy so far with Hassio, this might sound very stupid but how do I add your cast script to lovelace?

Cheers
Henning