I have this to let it work on my 2 Alexa’s and FKB:
- type: vertical-stack
title: Radio station selector
cards:
- type: entities
entities:
- entity: input_select.helpers_radio_selector
- entity: input_select.helpers_radio_station
- entity: script.stream_radio
icon: mdi:play
secondary_info: none
name: Start selection
stream_radio:
alias: "Control - Play Radio"
icon: mdi:play
description: "Radio - Here all channels can be selected and turn them on or off on Tablet or Alexa"
sequence:
- service: media_player.play_media
data:
entity_id: >-
{% if is_state('input_select.helpers_radio_selector', 'Bedroom') %}
media_player.bedroom
{% elif is_state('input_select.helpers_radio_selector', 'Livingroom') %}
media_player.livingroom
{% elif is_state('input_select.helpers_radio_selector', 'Kitchen') %}
media_player.browser_mod_ae1b43e7_eb57c683
{% endif %}
media_content_id: >-
{% if is_state('input_select.helpers_radio_station', 'Radio 538') and states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %}
play Radio538 on TUNEIN
{% elif is_state('input_select.helpers_radio_station', 'Q-Music') and states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %}
play Qmusic on TUNEIN
{% elif is_state('input_select.helpers_radio_station', '3FM') and states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %}
play 3FM on TUNEIN
{% elif is_state('input_select.helpers_radio_station', '100% NL') and states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %}
play 100%NL on TUNEIN
{% elif is_state('input_select.helpers_radio_station', 'Veronica') and states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %}
play Radio Veronica on TUNEIN
{% elif is_state('input_select.helpers_radio_station', 'Sky Radio') and states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %}
play Sky Radio on TUNEIN
{% elif is_state('input_select.helpers_radio_station', 'Sky Radio Christmas') and states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %}
play Sky Radio Christmas on TUNEIN
{% elif is_state('input_select.helpers_radio_station', 'SLAM! Hardstyle') and states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %}
play Slam! Hardstyle TUNEIN
{% elif is_state('input_select.helpers_radio_station', 'SLAM!') and states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %}
play SLAM! on TUNEIN
{% elif is_state('input_select.helpers_radio_station', 'Radio 538') and is_state('input_select.helpers_radio_selector', 'Kitchen') %}
https://21253.live.streamtheworld.com/RADIO538.mp3
{% elif is_state('input_select.helpers_radio_station', 'Q-Music') and is_state('input_select.helpers_radio_selector', 'Kitchen') %}
https://stream.qmusic.nl/qmusic/aachigh
{% elif is_state('input_select.helpers_radio_station', '3FM') and is_state('input_select.helpers_radio_selector', 'Kitchen') %}
http://icecast.omroep.nl/3fm-bb-mp3
{% elif is_state('input_select.helpers_radio_station', '100% NL') and is_state('input_select.helpers_radio_selector', 'Kitchen') %}
https://stream.100p.nl/100pctnl.mp3
{% elif is_state('input_select.helpers_radio_station', 'Veronica') and is_state('input_select.helpers_radio_selector', 'Kitchen') %}
https://20723.live.streamtheworld.com/VERONICA.mp3
{% elif is_state('input_select.helpers_radio_station', 'Sky Radio') and is_state('input_select.helpers_radio_selector', 'Kitchen') %}
https://19993.live.streamtheworld.com/SKYRADIO.mp3
{% elif is_state('input_select.helpers_radio_station', 'Sky Radio Christmas') and is_state('input_select.helpers_radio_selector', 'Kitchen') %}
https://20853.live.streamtheworld.com/SRGSTR08.mp3
{% elif is_state('input_select.helpers_radio_station', 'SLAM! Hardstyle') and is_state('input_select.helpers_radio_selector', 'Kitchen') %}
https://stream.slam.nl/web11_mp3
{% elif is_state('input_select.helpers_radio_station', 'SLAM!') and is_state('input_select.helpers_radio_selector', 'Kitchen') %}
https://stream.slam.nl/web14_mp3
{% endif %}
media_content_type: >-
{% if is_state('input_select.helpers_radio_selector', 'Kitchen') %} audio/mp3
{% elif states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %} custom
{% endif %}
###########################################################################################
# RADIO STOP COMMAND
###########################################################################################
stream_radio_stop:
alias: "Stop Radio"
icon: mdi:stop
sequence:
- service: >-
{% if is_state('input_select.helpers_radio_selector', 'Kitchen') %} media_player.media_stop
{% elif states('input_select.helpers_radio_selector') in ['Bedroom', 'Livingroom'] %} media_player.media_pause
{% endif %}
data:
entity_id: >-
{% if is_state('input_select.helpers_radio_selector', 'Livingroom') %} media_player.livingroom
{% elif is_state('input_select.helpers_radio_selector', 'Bedroom') %} media_player.bedroom
{% elif is_state('input_select.helpers_radio_selector', 'Kitchen') %} media_player.browser_mod_ae1b43e7_eb57c683
{% endif %}