-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative way to handle CWWW led bulb #193
Comments
Was there any progress on this. Having the same issue with the Briliant downlight, GPOIO5 is brightness and GPIO13 is CW/WW. Not sure how to add them neatly into a component other than the hack above. https://blakadder.github.io/templates/brilliant_downlight.html |
@xdas Well there's some progress as in you can now create custom light components (https://esphome.io/components/light/custom.html) easily that can support any possible configuration you want. |
thanks, I did try to go down this path but I think at the moment it is a step too far for me. |
Another use case for this is the newest revision of the Feit Smart bulb BPA800/RGBW/AG/2(P), where GPIO4 controls the overall white brightness, and GPIO5 controls the color temp, or mix between CW/WW. |
Similarly, the Arlec Grid Connect CWWW bulb uses GPIO5 for brightness, and GPIO13 for colour temperature. I will try the hack above for now. |
I built a custom light output for these CWWW bulbs with a temp and brightness pin, unlike the standard CWWW pinout. Give it a go. https://github.com/ozeraser/ESPHome/tree/master/CWWW%20Custom%20light%20Tuya_Arlec%20Grid%20Connect |
I was finally able to wrap my head around creating a custom light component for the Feit Smart Bulb. I changed it up a little bit so that when the user sets the light to pure white, it'll change over the the CWWW leds and turn off the RGB leds (and vise-versa) so both are not on at the same time. The tricky part for me was cross-fading the RGB with the White without access to the progress from the LightTransformer. More a proof-of-concept for me than something ready for public consumption (not commented), but don't know how much more I'm actually going to get to do to it so I posted it anyways. |
Nice write-up, @ozeraser. |
Nice ! You are my hero ! Now I understand the new custom way to properly implement this kind of smart bulb ! Thanks you ! |
I tried to use your code but I'm getting the following errors. Not sure what I'm doing wrong: Compiling .pioenvs/test-down-light/lib01f/ESPAsyncTCP-esphome/SyncClient.cpp.o My yaml is attached. |
Describe the problem you have/What new integration you would like
I bought couple of "SL06" cold white/warm white led bulb, instead of having 2 parallel channels for cold and warm they put them in serial, from electronic point of view one mosfet transistor is connected to both warm led and to second mosfet transistor controlling cold led. It's impossible to light cold led alone, it's impossible to bright cold led more than warm led. To resume, there is a PWM channel for overall brightness and a second PWM channel too "cool down" the light temperature.
Please describe your use case for this integration and alternatives you've tried:
Actual workaround is to declare the cwww light bulb as a RGB light bulb with the following setup:
red channel for PWM1 (the overall brightness)
green channel for PWM2 (the cold led)
blue channel to dummy pin (not wired)
When setting the light color to 100% red, 0% green, 0%blue I have the warmest possible color.
By adding green without changing red I'm cooling down the light.
The brightness control work fine in this case.
Additional context
The text was updated successfully, but these errors were encountered: