Cct cob led

Hi everyone!
I’m having trouble controlling the brightness and color temperature of my CCT COB LED strip (608 LEDs)

I’m using:
ESP32 + ESPHome
2x IRLB4132 MOSFET-Y

The problem is that when I change the color temperature, I see the strip’s brightness drop slightly, and it only returns to normal once the new color temperature is set.

My YAML currently looks like this:

output:
  - platform: ledc
    pin: GPIO25
    id: pwm_warm_raw
    frequency: 1220Hz
    zero_means_zero: true

  - platform: ledc
    pin: GPIO26
    id: pwm_cold_raw
    frequency: 1220Hz
    zero_means_zero: true

  - platform: template
    id: pwm_cct_warm
    type: float
    write_action:
      - output.set_level:
          id: pwm_warm_raw
          level: !lambda |-
            if (state <= 0.0f) return 0.0f;
            return powf(state, 0.833f);

  - platform: template
    id: pwm_cct_cold
    type: float
    write_action:
      - output.set_level:
          id: pwm_cold_raw
          level: !lambda |-
            if (state <= 0.0f) return 0.0f;
            return powf(state, 0.833f);

light:
  - platform: cwww
    name: "Posteľ LED"
    id: bed_light
    warm_white: pwm_cct_warm
    cold_white: pwm_cct_cold
    warm_white_color_temperature: 2700K
    cold_white_color_temperature: 5000K
    constant_brightness: true
    gamma_correct: 1.0
    default_transition_length: 800ms
    restore_mode: RESTORE_AND_ON

Thanks in advance for any help. Have a nice day, everyone. :innocent:

I have no idea how to read that…

Does you setup work correctly without your “custom gamma correction”?