To quote or not to quote

Hello,

I have this automatisation that works fine :

alias: Audio streaming 's morgens inschakelen
description: ''
trigger:
  - platform: time
    at: input_datetime.tijdstip_audio_streaming_s_morgens_inschakelen
condition:
  - condition: and
    conditions:
      - condition: state
        entity_id: input_boolean.toggle_op_vakantie
        state: 'off'
      - condition: and
        conditions:
          - condition: state
            entity_id: input_boolean.toggle_audio_streaming
            state: 'on'
action:
  - service: script.switch_audio_streaming_inschakelen
  - service: script.media_radio_play
    data:
      station: '{{ states(''input_select.radio_station'') }}'
      player: Pioneer
mode: single

Now I want the same in a button, so I did this :

type: button
tap_action:
  action: call-service
  service: script.media_radio_play
  service_data:
    station: '{{ states(''input_select.radio_station'') }}'
    player: Pioneer
  target: {}
name: Test button

But it doesn’t work…I get these errors in the log :

I really donn’t see what the problem is, so please help me out of this :disappointed_relieved:

You can’t template in lovelace. You have to make a script and call the script.

I just did, but thanks for telling me the reason !