Open remlei opened 1 year ago
I’ve been using the libretiny platform for a bit and I’m thinking there may be some issues with libretiny_pwm. I have two different rgbww lights and the color selection works usually, but sometimes gets way off or wont set a chosen color at all. For testing I set up the light as five independent lights in esphome and would sometimes get unexpected interactions between them.
possibly related to https://github.com/libretiny-eu/libretiny/issues/200 (which is fixed in libretiny now), which causes PWM outputs to stop working when turning them off and on again
Until ESPHome comes with this new framework version, you can try replacing bk72xx:
with
bk72xx:
framework:
version: 0.0.0
source: https://github.com/libretiny-eu/libretiny.git
in your device yaml to check if that is/was the issue
possibly related to libretiny-eu/libretiny#200 (which is fixed in libretiny now), which causes PWM outputs to stop working when turning them off and on again
Until ESPHome comes with this new framework version, you can try replacing
bk72xx:
withbk72xx: framework: version: 0.0.0 source: https://github.com/libretiny-eu/libretiny.git
in your device yaml to check if that is/was the issue
I am having this same issue, using the patched source has corrected it.
Hopefully, we can get this fix into ESPHome
I've made a video showing both the above issue, and the above solution. https://www.youtube.com/watch?v=U2H-pdLK2CY
thanks for the fix, yes using that specific framework did fix the issue on my side, no major changes at all with the yaml file aside from adding the extra lines for framework. I hope esphome pull the fixes soon.
The problem
Basically its messed up
CCT bulb controls are buggy at best.
the pins are correct. I can control the bulb correctly using openbeken firmware. but not esphome.
Which version of ESPHome has the issue?
2023.9.3
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.8
What platform are you using?
libretiny
Board
generic-bk7231n-qfn32-tuya
Component causing the issue
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response