Closed danielbrunt57 closed 1 year ago
BTW, "Main Light" in screenshot is light.patio_lighting...
I've discovered that it's the initial_transition: 10 causing the failure. If I turn the light on, it comes on at the last brightness. I set a new different brightness, turn it off, back on, and it comes on at that last brightness. If I set initial_transition: 0 then it behaves correctly, i.e. I can turn it on, adjust brightness to say 30%, turn it off then back on, and it comes on at the expected AL brightness of 10%.
Is this a Zigbee quirk??
Thanks a lot for reporting and providing all information so clearly! 😄
(Only quickly looking now, I have to leave)
Interestingly, it seems like AL sets them to the same brightness at least:
22:13:52.887 Preparing adaptation data for light.patio_lighting with service data {'entity_id': 'light.patio_lighting', 'transition': 10.0, 'brightness': 27}
22:13:52.888 Preparing adaptation data for light.patio_stair_lighting with service data {'entity_id': 'light.patio_stair_lighting', 'transition': 10.0, 'brightness': 27}
22:17:37.554 Preparing adaptation data for light.patio_stair_lighting with service data {'entity_id': 'light.patio_stair_lighting', 'transition': 10.0, 'brightness': 27}
22:17:39.252 Preparing adaptation data for light.patio_lighting with service data {'entity_id': 'light.patio_lighting', 'transition': 10.0, 'brightness': 27}
22:17:45.356 Preparing adaptation data for light.patio_lighting with service data {'entity_id': 'light.patio_lighting', 'transition': 10.0, 'brightness': 27}
22:17:47.237 Preparing adaptation data for light.patio_stair_lighting with service data {'entity_id': 'light.patio_stair_lighting', 'transition': 10.0, 'brightness': 27}
22:18:53.381 Preparing adaptation data for light.patio_lighting with service data {'entity_id': 'light.patio_lighting', 'transition': 10.0, 'brightness': 27}
22:18:53.382 Preparing adaptation data for light.patio_stair_lighting with service data {'entity_id': 'light.patio_stair_lighting', 'transition': 10.0, 'brightness': 27}
both at 27.
Will come back to this issue later.
So, after a few hours of troubelshooting a failed HA update to 2023.8.2...and a little more analyzing the patio light control!...
The patio lights seem to have a problem with transition, specifically the new stair lighting strip. With a transition > 0, theny do not turn on. I thought HA would handle transition if it can not hand it off to the device but apparently not. With AL initial_transition: 5
it does not even turn on after turning it off/on. The other light supports transition natively but also turns on at the last brightness, which is okay if I do not enable take_over_control, otherwise AL sees the turn on at previous brightness as a "someone else changed the brightness so I concede to their control" and does not adapt...
Shaking head, violently!!! LOL!
I can only imagine the complexity you have to deal with in this integration!
Far too many permutations and combinations out there!!
Not to mention "user knowledge"!!!
I'm closing this as solved...
Time to enjoy my patio!
(BTW, the 5m strip of stair lighting will be cut and attached under each step, but that's a project for another day!)
That's looking very cozy! 😄
Sorry you had to go through that. Do you think there is any lesson you learned that is useful to add to the Troubleshooting section of the README?
If a new light won't turn on with Adaptive lighting enabled and using transition, check if Home Assistant can turn on the light with transition as It may not!
Example: Zigbee YSR-MINI--01_dimmer (eWeLight ZB-DL01)
It has a native transition value which Zigbee2MQTT does not present to Home Assistant.
If you try and use transition: nnn
in Home Assistatnt, this light will not turn on.
Therefore (for now) do not use transition
in either Home Assistant or Adaptive Lighting with this device!
How's that?
I don't know if it's an HA problem or a Zigbee2MQTT problem. I will report the lack of ability to set the native transition value to Zigbee2MQTT. We'll see what unfolds!
Before submitting a bug report, please follow these troubleshooting steps:
Please confirm that you have completed the following steps:
And after toggling the lights off/on one by one...
(It would be nice if we could click an "export config button" and get a yaml equivalent of the UI config to paste in here!)