adaptive-lighting
adaptive-lighting copied to clipboard
Don't send RGB value when color temperature is being changed and vice versa
with my custom esphome based lights, adaptive lighting sends a setting like this
[00:46:58][D][light:265]: 'Computer Light' Setting:
[00:46:58][D][light:278]: Brightness: 7%
[00:46:58][D][light:282]: Color Temperature: 500.0 mireds
[00:46:58][D][light:287]: Red=100%, Green=100%, Blue=100%
[00:46:58][D][light:304]: Transition Length: 45.0s
This confuses the code on my light to whether it should set color temp or rgb and ends up with either both or one or the other. Can we avoid sending the RGB values when we are in color temp mode?
I don't think this should happen. Do you have RGB mode on or off?
RGB mode is off
Those logs you post it don’t seem familiar to me. Is this not another component that is logging it?
It might be possible that adaptive lighting is not sending the RGB value at all but that the logger of that component is always logging the RGB value.
@basnijholt this is actually the logger from my esphome RGBW controller. For reference, when I change the color temperature through the home assistant interface, no RGB values are sent. I'm not certain this software is the culprit, but I'm not sure what the difference is between how Adaptive Lighting and how Home Assistant temperature control sends lighting commands. I can try to do some further investigating soon if you want
Hi @CorvetteCole. Are you still having this issue with the latest adaptive lighting version 1.7.0?
Unfortunately I've changed my hardware so I no longer have this issue. I still have the old controller, I can give it a look if you want
Sure! If the issue is present, I'm sure someone else is having the issue and we should debug this.
I believe this is fixed in 1.10.1
I'd like to apologize and warn in advance, I have a long backlog right now (busy!) so this might take a few weeks to get to. Hopefully can do it this weekend but we'll see
No worries at all, this is your project after all and of course you can do it at your own leisure. I'm just noting the issues where I believe there was code introduced that could potentially fix the issue.
hass was updated significantly since this was posted and the bitfield supported_features
was completely deprecated by supported_color_modes
which adaptive lighting now uses.
In the spirit of cleaning up the issues here, I will close this one. Feel free to reopen if it turns out this problem still exists.