Open TheAndi opened 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.
Which version of ESPHome has the issue? 2024.4.2
What type of installation are you using? Home Assistant Add-on
Which version of Home Assistant has the issue? 2024.5.2
What platform are you using? ESP8266
Board Athom Led Strip Controller LS-5P
Component causing the issue Fading in ESPHome - color temperature transition with gamma correction and constant brightness
I can confirm this is an issue with esp8266 software PWM - it it in fact an issue in calculating the brightness values for each channel of CCT lights when gamma correction and constant brightness are enabled.
The problem
I am using custom-made PCBs with ESP-S2 to control 12V CCT strips and WS2815 strips. After setting everything up with ESPHome and Homeassist, everything works flawlessly except the fading.
Every time I trigger any transition e.g. color/brightness change, the fading does not seam right. Or let me say the path from the current state (rgb/brightness) to the new state takes some detours.
I set
default_transition_length:
to5s
to exaggerate and study this effect.It seems that any new state (actually, even sending the same color from the color picker in HA) leads to the strip dimming down first and then going to the new state. How can that be?
This happens for my addressable and CCT strips the same way, being more visible with the digital ones.
E.g. when dimming down the digital strips to a lower brightness, they undershoot the new brightness and then go up again. I hope my following drawing can visualize it:
When the new value is very low. The strip even goes off shortly before reaching the new brightness... I also set
gamma_correct: 1
to not mess with anything.It is not my hardware, as this does not arise when using WLED and its fading.
Could you please let me know what I'm doing wrong or if this is a bug?
Which version of ESPHome has the issue?
2023.2.4
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.2.5
What platform are you using?
ESP32
Board
Custom made board based on ESP-S2
Component causing the issue
Fading in ESPHome
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response