esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
294 stars 38 forks source link

FastLED uncontrollable when ESP32 reboots #4341

Open Ale11Re opened 1 year ago

Ale11Re commented 1 year ago

The problem

Hi, as the title suggests, I'm having issues when rebooting ESP32. Sometimes fastLED becomes uncontrollable when ESP firmware is being updated, in fact, when firmware update has completed and ESP reboots, it's trying to restore fastLED light status , unsuccessfully. Light strip becomes full white (R,G and B at 100%) and can't be turned off. By using "button: - platform: restart" from HA, ESP reboots and fastLED can be controlled again. Sometimes 2 or 3 restart are needed. Once, it also became uncontrollable when using it normally. Other led strip attached to ledc are unaffected even if transistions become sketchy. Debug messages set to VERY_VERBOSE outputs this:

`[22:26:14][VV][light.addressable:019]:   [153] Color: R=  0 G=  0 B=  0 W=  0
[22:26:14][VV][light.addressable:019]:   [154] Color: R=  0 G=  0 B=  0 W=  0
[22:26:14][VV][light.addressable:019]:   [155] Color: R=  0 G=  0 B=  0 W=  0
[22:26:14][VV][light.addressable:019]:   [156] Color: R=  0 G=  0 B=  0 W=  0
[22:26:14][VV][light.addressable:019]:   [157] Color: R=  0 G=  0 B=  0 W=  0
[22:26:14][VV][light.addressable:019]:   [158] Color: R=  0 G=  0 B=  0 W=  0
[22:26:14][VV][light.addressable:021]:  
[22:26:14][V][component:204]: Component fastled_base took a long time for an operation (1.21 s).
[22:26:14][V][component:205]: Components should block for at most 20-30ms.
[22:26:18][VV][scheduler:225]: Running interval '' with interval=5000 last_execution=22915 (now=27916)
[22:26:18][VV][light.addressable:015]: Addressable Light 'RGB Light' (effect_active=NO)
[22:26:18][VV][light.addressable:019]:   [ 0] Color: R=  0 G=  0 B=  0 W=  0
[22:26:18][VV][light.addressable:019]:   [ 1] Color: R=  0 G=  0 B=  0 W=  0
[22:26:18][VV][light.addressable:019]:   [ 2] Color: R=  0 G=  0 B=  0 W=  0

fastLED chipset used: WS2811 ESP32 used: wrover devkit c

Which version of ESPHome has the issue?

2023.3.1

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.3.6

What platform are you using?

ESP32

Board

esp-wrover-kit

Component causing the issue

fastLED

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

tetele commented 1 year ago

Same issue here, using the Raspiaudio Muse Luxe. Sometimes the neopixel works, other times, after a reboot, it turns solid white and stays that way.

claudiobertsch commented 1 year ago

Same issue.. using a ledstrip with fastled with restore mode always_off... but after reboot all led 100% white.. and controlling not work