esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 36 forks source link

ESP rgbww light goes out of sync #3660

Open nicolasbisi opened 2 years ago

nicolasbisi commented 2 years ago

The problem

I have 2 lights that are being seen by Home Assistant, and I use a helper to control them both at the same time. I notice that my lights are getting out of sync, or losing their limits after a while. One way to easily force it to happen is to enable an effect (always used Random) Before the effect is used, when I move the slider to the warmest colour, we can see that all the values match.

Screen Shot 2022-10-07 at 1 34 51 PM

I then turn the random effect on, wait a while, turn it off and set it to the warmest colour again.

Screen Shot 2022-10-07 at 1 36 12 PM

Setting the light individually makes no difference. The only way to fix this problem and get them back in sync is to power the off and back on. The same happens with the coldest colour. They don't match after using an effect.

Which version of ESPHome has the issue?

2022.3.1

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2022.10.0 (but have seen it before)

What platform are you using?

ESP8266

Board

ESP8285 DMP-L1

Component causing the issue

Light

Example YAML snippet

output:
  - platform: esp8266_pwm
    id: output_cw
    pin: GPIO12
    min_power: 0.0001
    zero_means_zero: true

  - platform: esp8266_pwm
    id: output_ww
    pin: GPIO14
    min_power: 0.001
    zero_means_zero: true

  - platform: esp8266_pwm
    pin: GPIO04
    id: output_r
    min_power: 0.001
    zero_means_zero: true

  - platform: esp8266_pwm
    pin: GPIO13
    id: output_g
    min_power: 0.001
    zero_means_zero: true

  - platform: esp8266_pwm
    pin: GPIO05
    id: output_b
    min_power: 0.001
    zero_means_zero: true

light:
  - platform: rgbww
    effects:
      - random:
      - pulse:
      - strobe:
      - flicker:
    default_transition_length: 0s
    restore_mode: ALWAYS_OFF
    color_interlock: true
    name: Living Room TV Light 01
    red: output_r
    green: output_g
    blue: output_b
    warm_white: output_ww
    cold_white: output_cw
    cold_white_color_temperature: 6000 K
    warm_white_color_temperature: 2000 K

Anything in the logs that might be useful for us?

No response

Additional information

No response

bkaufx commented 2 years ago

Start by upgrading ESPHome to the latest version. You need to reinstall the ESPHome add-on from the official repo to upgrade to the current version. https://github.com/esphome/home-assistant-addon

I see in the second pic both bulbs are set to 499 mired and seem to have a similar cold/warm ratio, but maybe the brightness of the right one is 1/2 the left one. What would happen next in the second pic if you changed the brightness slider of your helper? If you look at the individual lights in Home Assistant, do they both match the helper?

nicolasbisi commented 2 years ago

@bkaufx Thanks for the reply and the link, I didn't know there was another repo. I have updated everything and I'm now running on ESPHome 2022.9.4 I retested everything. I made sure that they were in sync after the update and left "Random" run for a while. I then started moving the sliders (Colour temperature and Brightness), and I'm still seeing it. I moved the light individually to the limits, and they still show different values. On home assistant, it seems that everything is in sync. Doesn't matter where the slider of the group is, the other ones follow, but the log on esphome shows the difference. Visually, the lights are very close, but it's noticeable.

Screen Shot 2022-10-08 at 2 18 55 PM
github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.