RGBWW color_interlock wrong behavior


I’m not sure what’s is wrong here, but I can’t change from white to color using color_interlock: true
I’m testing with and RGBWW downlight.
I’ve mapped colors:

PWM0 -> GPIO13 -> Warm White     5
PWM1 -> GPIO5 -> Cold White        4
PWM2 -> GPIO4 -> Red (R)       1
PWM3 -> GPIO15   ????
PWM4 -> GPIO12 -> Green (G)         2
PWM5 -> GPIO14 -> Blue (B)          3

Is tasmota, everything is working fine setting PWM channels and option 37 to 0.
Now, I’m trying to make it work in ESPHome.
First problem: I always see COLOR and WHITE controls in HA for this device. The correct way should be only color controls when “COLOR” is selected or only WHITE controls when “TEMPERATURE” is selected, right?

Second problem: If I set color_interlock to false (default), I can turn on white and color LED’s at the same time. I think this is the correct behavior for this setting.
If I set color_interlock to true, RGB LED’s are turned off and I can only control color temperature and brightness…BUT the color picker and color brightness still displayng in HA device. Even if I select “COLOR” in device settings, the buld still in white mode (warn or cold), doesn’t change to color, even selecting the color.

This is my actual configuration:

  name: teste2_rgb
  platform: ESP8266
  board: esp12e

  ssid: "Skynet"
  password: !secret wifi_skynet_pwd
  domain: '.skylocal'

  # Enable fallback hotspot (captive portal) in case wifi connection fails
    ssid: "Teste2 Hotspot"
    password: "ABhyjlAovXqY"


# Enable logging

# Enable Home Assistant API


  port: 80
    username: jmaurin
    password: !secret web_server_pwd

  - platform: rgbww
    name: "Spot-X"
    red: r
    green: g
    blue: b
    cold_white: cw
    warm_white: ww
    cold_white_color_temperature: 6536 K
    warm_white_color_temperature: 2000 K
    color_interlock: true

# Example output entry
  - platform: esp8266_pwm
    id: r
    pin: GPIO4
  - platform: esp8266_pwm
    id: g
    pin: GPIO12    
  - platform: esp8266_pwm
    id: b
    pin: GPIO14
  - platform: esp8266_pwm
    id: cw
    pin: GPIO5
  - platform: esp8266_pwm
    id: ww
    pin: GPIO13    

1 Like

What version of HA are you running?
If it’s >2021.5 then you could be experiencing the same behaviour a few of us have observed with the updated colour-picker in HA.
There’s more info at https://github.com/esphome/issues/issues/2046

FYI for anyone else experiencing this issue, this should be fixed with Home Assistant 2021.8 and ESPHome 2021.8.