Currently you have to define a shell_command and then call it from automation like
- service_template: >
{% if is_state("input_select.radio_station", "RelaxFM") %}
shell_command.onkyo_play_relaxfm
Expected improvement like below (crude example)
- shell_command_exceute
data_template: >
{% if is_state("input_select.radio_station", "RelaxFM") %}
"/usr/local/aplay -radiofm"