-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
[BUG] Broken, yellow-ish random light effects #121
Comments
I have been testing this with my three lamps and haven't seen the effect fail in that way. In fact, I already really often have the lamp in that setup on my desk, since it's fun to have the colors but it's not fun to have them blind me. How long does is generally take before your lamp gets into this yellow-ish state? |
Maybe some logging from the lamp can ... no pun intended ... shine a light on this. |
How long does is generally take before your lamp gets into this yellow-ish state? |
One point that I can imagine that makes the lamp use white light mode, is when RGB is (255, 255, 255), so smack in the middle of the color circle. I don't have top of mind if i switch the lamp to white light mode when "white" is selected that way, or if ESPHome might do that. I'll have to dig into the code for that. My lamp has ben changing colors happily at 2% brightness for > 4 hours now. I'll check back in a few hours to see what it is doing then (it's in my office, and it's dinner time :-) ) |
Wait, I got my logging turned on, and the color changes are accompanied by:
This means that the random colors don't include the color mode as I assumed. So that explains why it would stay in a white light mode when it gets there. Reproduce: In the above Home Assistant interface, enable fast random and the lamp will show random colors. Solution: Not sure yet, for that I'll have to do some digging. |
Thanks :) |
In my lamp-specific color mode code, I cannot find anything that would do this RGB -> Temperature color switching. In this code, a light mode is guessed when no light mode is provided in the light call request. This is the code that logs My guess is that it is this ESPHome code that triggers the light mode change. I'm not at home currently, so I can't check the logs right away, but I assume that logging will first show If this is the case, the cause is outside of the lamp code and would be an issue to fix in ESPHome code instead. |
During "slow" and "fast" random light effects sooner or later algorithm picks up the night light color (<2000K white) which breaks the effect - all colors from this point resemble yellow-ish white.
Easy reproduce:
These effects should not be stuck at low temperature. Potential solution is to avoid using low temps?
The text was updated successfully, but these errors were encountered: