Costume button cards - with some extra data

hey all
need some help with custom button cards config and syntax.
the code below works gr8 in other button config/scripts, and i would like to use it as an alternative for “random” light color, as a double_tap

service: light.turn_on
entity_id: light.desk
data_template:
  hs_color:
    - "{{ range(360)|random }}"
    - "{{ range(80,101)|random }}"
  brightness_pct: 100

im not sure how to place it correctly in the custom-button-card config for it to work.
i trired this, with no luck:

type: custom:button-card
entity: light.desk
name: Desk
size: 60%
icon: mdi:desk-lamp-off
color: auto
tap_action:
  action: call-service
  service: light.toggle
  service_data:
    entity_id: light.desk
double_tap_action:
  action: call-service
  service: light.toggle
  service_data:
    entity_id: light.lava
    data_tamplete:
      hs_color:
        - "{{ range(360)|random }}"
        - "{{ range(80,101)|random }}"
      brightness_pct: 100

would love some help with this.
cheers