CW/WW and Colour Temperature slider support in custom Light Output

Last ESPHome update introduced “color_interlock” to the RGBW and RGBWW light components, which gives you the same result as using better_rgbww_output.h.
Take a look: https://esphome.io/components/light/rgbw.html#rgbw-color-interlock

1 Like

Yeah one of the recent updates wrecked my instance of “better_rgbww”. But when I stripped this custom work out and used it like a standard light it works great, even with CW and WW too! I think some changes must have gotten added on github to solve this perhaps.

Here’s my (new) working 0.114.4 hass code for the same bulb:

# Define output pins
output:
  - platform: esp8266_pwm
    id: output_red
    pin: GPIO5
  - platform: esp8266_pwm
    id: output_green
    pin: GPIO4
  - platform: esp8266_pwm
    id: output_blue
    pin: GPIO13
  - platform: esp8266_pwm
    id: output_warm_white
    pin: GPIO12
  - platform: esp8266_pwm
    id: output_cold_white
    pin: GPIO14

# Define a light entity
light:
  - platform: rgbww
    name: yard1
    id: yard1
    gamma_correct: 2.8
    red: output_red
    green: output_green
    blue: output_blue
    cold_white: output_cold_white
    warm_white: output_warm_white
    cold_white_color_temperature: 5000 K
    warm_white_color_temperature: 2700 K
    effects:
      - flicker:
          alpha: 95%
          intensity: 2.5%

sensor:
  - platform: wifi_signal
    name: "WiFi Signal Sensor"
    update_interval: 60s

Wow! Thank you! Less complicated. Bad for the time invested to make better_rgbww. Just one question… Maybe you know… Is there a possibility to hide the white bar since it is useless?

Capture d’écran, le 2020-10-04 à 10.45.02

So far, not that I’m aware of… :person_shrugging:t2:

1 Like

Thanks so much for sharing!