ESPHome RGBWW Light, brightness problem

Tags: #<Tag:0x00007f77f8c3bfa0>

Hi everyone,

I bought a cheap WiFi Light Bulb a few days ago. It uses the “Lumary” app which I found out to be identical to Tuya or Smart Life, so I tried to flash a custom firmware using tuya-convert. And voíla, it worked right away. After finding out the correct GPIO Pins (it uses an ESP8266) using Tasmota, I flashed ESPHome with the RGBWW component (the bulb supports warm and cold white). My ESPHome config looks as follows:

  - platform: rgbww
    name: "Schreibtischlampe"
    red: output_red
    green: output_green
    blue: output_blue
    cold_white: output_coldwhite
    warm_white: output_warmwhite
    cold_white_color_temperature: 7000 K
    warm_white_color_temperature: 2700 K
  - 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_coldwhite
    pin: GPIO14
  - platform: esp8266_pwm
    id: output_warmwhite
    pin: GPIO12

The integration to Home Assistant works, however, and that is my problem, there seems to be a bug (or I missed some config, however the Docs don’t show many options). When setting the bulb to white, I can’t adjust the brightness. It kind of changes the color temperature, but not the brightness when adjusting the brightness slider. A similiar issue has been reported here long time ago, however no answer was provided.

Brightness changing works btw fine when setting any other color than white.

Hope somone can help, thanks in advance :slight_smile:

How exactly are you changing the brightness?

You should be able to adjust brightness and colour seperately within HA if you have a correct pin-out. You could also split into 2 light entitites (one rgb and cwww) within one device, it gives you more flexibility.

That’s exactly what I ended up doing and it works great, thanks!