What is the right parameter for call_method script

Hi, I have problems with passing a parameter in the right way to a script.
I am trying to select my favorite radio stations on my squeezeplayers via buttons on a custom:mini-media-player card.

When I run the script below everything works fine, the favorite (item_id:5) starts playing.

Test script;

data_template:
  entity_id: media_player.mbr_bdkmr
  command: favorites
  parameters:
    - playlist
    - play
    - item_id:5
action: squeezebox.call_method

But when I pass a parameter to a script via an automation by selecting button 1 or button 2, all my 13 favorites will be placed in the current playlist at once. And the first favorite radiostation (item_id:0) starts playing.

Script;

data_template:
  entity_id: media_player.{{ squeezebox_player }}
  command: favorites
  parameters:
    - playlist
    - play
    - item.id:{{ favorite_id }}
action: squeezebox.call_method

Automation;

type: custom:mini-media-player
entity: media_player.woonkamer
artwork: cover
name: SQZBX woonkamer/keuken
hide:
  source: true
  volume: true
  controls: true
  icon: true
  power: true
  progress: true
shortcuts:
  hide_when_off: true
  attribute: playlist
  columns: 4
  buttons:
    - name: ""
      image: /local/custom_icons/radio_stations/NPO_Radio_2_logo.png
      type: script
      id: script.lms_command_play_favorite
      data:
        squeezebox_player: woonkamer
        favorite_id: 0
    - name: ""
      image: /local/custom_icons/radio_stations/NPO_3FM_logo_2020.png
      type: script
      id: script.lms_command_play_favorite
      data:
        squeezebox_player: woonkamer
        favorite_id: 1

Have you tried templating the whole value for parameters? I don’t use the Squeezebox integration, but this a common issue with other integrations that use parameters like vacuums when people try to template just one part of a data variable.

data:
  entity_id: media_player.{{ squeezebox_player }}
  command: favorites
  parameters: |
    {{ [ "playlist", "play", "item_id:"~favorite_id ] }}
action: squeezebox.call_method

Thanks Didgeridrew, that was the solution, everything is working the way it should!