Closed mdeweerd closed 2 years ago
It seems related to a new behavior of the on/off state: when below 43% the state of the light is set to "off", but in practice it is still on (brightness high enough).
I am checking to find how I can change that.
New behaviour of the on/off state at 43%?
Can you elaborate? Where are these Infos coming from?
Further testing shows it is more complex.
It looked like when changing brightness to a level lower than 43% or so the light turned off and above it it stayed on (in the UI). But now, any click just turns it off (in the UI).
I get this error:
I do not know how that impacts the adaptive lighting integration.
Anyway, I only get the temperature bar above in the UI when I disable the adaptive-lighting integration.
When entering debug mode and breaking when the "on/off" switch has changing properties, the debugger first stops on this:
Which is initiated from:
So this is likely not due to the integration even if there is some impact from the integration.
I am going to clean up my browsers cache for my instance and check again.
Even with cache fully cleared and integration disabled, the UI still manages to behave strangely with regards to the popup.
However, when the integration is not enabled the standard on-off button in the dashboard behaves normally and when the integration is active, the button immediately switches off after enabling it:
And the light intensity and color changed to the ones that I would expect for this time of day.
I tested in private navigation mode, and selected to not stay logged in.
Changing the light state to on still switches it off immediately (integration active) and on top of that I am logged out (in private mode).
Then, I disabled the integration, reidentified myself in private mode. I was able to switch the light on and off multiple times. I need to reidentify myself only when I manually reload the page.
Maybe this report on the HA forum is related: https://community.home-assistant.io/t/adaptive-lighting-hue-lidl-lights-lidl-lights-are-warmer/379053 .
Yes, I am using LIDL lights as well.
Here are some gif animations illustrating the impact of adaptive lighting.
The light is actually already on, but always switches to off in the UI:
When switching the light on, access to the temperature setting, etc shows only a very short moment as the light switches off again:
The light can be switched on and off normally.
There is a strange UI behavior when changing the intensity (the UI switches the light to off but it is still on). I can set on/off, intensity and temperature despite some strange behavious;
FYI: I tested this on a "TI Sample Light" - the TI Sample Light does not have strange behavior, but Adaptive Lighting is not adapting it despite having configured it.
So, the controls of the TI Sample Light" are working normally, except that Adaptive Lighting does adapt it at all - with or without "prefer_rgb_color: Use 'rgb_color' rather than 'color_temp' when possible."
It looks like this is a LIDL light issue ... It's sending back an off status when it's requested to be on...
https://github.com/zigpy/zha-device-handlers/issues/1303#issuecomment-1019570957
The LIDL light I have is really not behaving correctly.
We can suppose that the fact that things get worse with Adaptive Lighting is essentially because of this bad behavior in association with the commands requested by Adaptive Lighting.
For me you can close this for Adaptive Lighting.
I confirmed that this is due to the device by adding a ZHA quirk to ignore the OnOff attribute updates from the device. The color temperature being incorrect, I set the minimum temperature at 3800 - with a lower value, the light is whiter.
Version information:
Version 1.0.15 HASS OS - core-2021.12.3
Description:
The integration worked fine for several months.
It now changes to white color (possibly more intense) late in the evening (about 22h30/45). This possibly happens after a home assistant restart. The on/off switch behavior of the light is strange because in the UI it can enter some kind of infinite on/off repeating change loop, while the light physically stays on. When I manually wan to change the color temperature, the slidebar is at most only visible for a small moment in the UI.
I have to disable the integration to regain control - no more looping of the on/off state and I can set the color temperature manually.
I checked out the journal but could not find anything relevant.