Automate light temperature through sensors or coordinates

Hello,

I’ve group of lights and led strips that allow the change of temperature for the light, however I’m stuck in order to set up some system, similar like Flux does.

I’ve tried the following configuration in my configuration.yaml however I see no effect or modification

switch:
  - platform: flux
    lights:
      - light.monitors
      - light.tv_lamp
    name: Fluxer
    start_time: "7:00"
    stop_time: "23:00"
    start_colortemp: 4000
    sunset_colortemp: 3000
    stop_colortemp: 1900
    brightness: 200
    disable_brightness_adjust: false
    mode: xy
    transition: 30
    interval: 30