this is my script for the radio stations in lms as a favorite
service: squeezebox.call_method
target:
entity_id: media_player.{{states.input_select.lms_player.state}}
data:
command: favorites
parameters: >
{% if is_state('input_select.chromecast_radio_station', 'ProFM') %}
["playlist", "play", "item_id:0"]
{% elif is_state('input_select.chromecast_radio_station', 'KissFM') %}
["playlist", "play", "item_id:1"]
{% elif is_state('input_select.chromecast_radio_station', 'EuropaFM') %}
["playlist", "play", "item_id:2"]
{% elif is_state('input_select.chromecast_radio_station', 'RadioZu') %}
["playlist", "play", "item_id:3"]
{% elif is_state('input_select.chromecast_radio_station', 'DigiFM') %}
["playlist", "play", "item_id:4"]
{% elif is_state('input_select.chromecast_radio_station', 'MagicFM') %}
["playlist", "play", "item_id:5"]
{% elif is_state('input_select.chromecast_radio_station', 'VirginRadio') %}
["playlist", "play", "item_id:6"]
{% elif is_state('input_select.chromecast_radio_station', 'RadioPetrecere')
%}
["playlist", "play", "item_id:7"]
{% elif is_state('input_select.chromecast_radio_station', 'NationalFM') %}
["playlist", "play", "item_id:8"]
{% elif is_state('input_select.chromecast_radio_station', 'WefunkRadio') %}
["playlist", "play", "item_id:9"]
{% elif is_state('input_select.chromecast_radio_station', 'FunkyRadio') %}
["playlist", "play", "item_id:10"]
{% elif is_state('input_select.chromecast_radio_station',
'RadioFunkyThrills') %}
["playlist", "play", "item_id:11"]
{% elif is_state('input_select.chromecast_radio_station', 'Bayern1') %}
["playlist", "play", "item_id:12"]
{% elif is_state('input_select.chromecast_radio_station', 'Bayern3') %}
["playlist", "play", "item_id:13"]
{% elif is_state('input_select.chromecast_radio_station', 'Charivari') %}
["playlist", "play", "item_id:14"]
{% elif is_state('input_select.chromecast_radio_station', 'Energy') %}
["playlist", "play", "item_id:15"]
{% elif is_state('input_select.chromecast_radio_station', 'AntenneBayern')
%}
["playlist", "play", "item_id:16"]
{% elif is_state('input_select.chromecast_radio_station', 'RadioMedias') %}
["playlist", "play", "item_id:17"]
{% endif %}