Beginner Question Light Template

Hello,

i have a lamp which consists of a shelly switch and a tradfri bulb. Now I want to combine those two things to one device. I have learned that i can use a light template for that. But now i´m stuck and need help. That´s my template so far.

light:
  - platform: template
    lights:
      sternlampe:
        friendly_name: "Sternlampe"
        unique_id: "SternlampeTemplate"
        turn_on:
          service: switch.turn_on
          data:
            entity_id: switch.shelly1_98cdac1f7d98
        turn_off:
          service: switch.turn_off
          data:
            entity_id: switch.shelly1_98cdac1f7d98
        set_level:
          service: light.turn_on
          data:
            brightness_pct: XXX
          target:
            entity_id: light.gluhbirne_stern_light_4
        set_temperature:
          service: light.turn_on
          data:
            color_temp: YYY
          target:
            entity_id: light.gluhbirne_stern_light_4

The entity “switch.shelly1_98cdac1f7d98” is my shelly and the entity “light.gluhbirne_stern_light_4” is my tradfri bulb. This bulb can be dimmed and the color temperature can be set. I have no idea what to put where the “XXX” and “YYY” is. Is my thinking way off? Thanks for the help!

Greetings Magerquark