Smoothly change colortemperature - Hue Bulbs

Hi experts.
I’m trying to set up my light using Zigbee2mqtt and in the process of making it more polished.
My bulbs are Plillips Hue spots and bulbs as I’m coming from Philips Hue.
Switches is various forms of EnOcean 215z.
I have managed to get smotth dimming working, using af Blueprint and Brightness_move and it works flawlessly.
I’m quite happy about it.
Icing on the cake would be to have the colortemperature to change as well - as the old tungsten and halogen bulbs did.
Anyone knows if it’s possible to achieve this?
i.e: When dimming from 100% to 10% the color temperature will go from 2700K to 2200K as well?

You could do an automation based on the brightness state:

alias: Tungsten Emulation
description: ""
trigger:
  - platform: state
    entity_id:
      - light.tuinverlichting
    attribute: brightness
condition: []
action:
  - service: light.turn_on
    data:
      color_temp_kelvin: >
        {{ ((state_attr('light.tuinverlichting','brightness') / 255 * 2000) +
        1801) | int(0)}} 
    target:
      entity_id: light.tuinverlichting
mode: single

Its very basic, but what i did was just take the brightness attribute and divide it by 255 and multiply that by the range i want the color temperature to change. Then add the minimum value (my lights that is 1801 kelvin. (Thats also the fallback value if the template fails for some reason)

Problem is that with an automation you can have that the color temp changes slighty after the percentage change which you can see if you are paying attention. Best bet would be to make a template light and do the calculation there.

Wow - thank’s a lot.
That’s very clever, and I will try it out immidiately.
May I ask what you mean by a template light?