basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.71k stars 128 forks source link

AL when controlling lights using Zigbee groups (ZHA) stopped working #800

Open joch opened 9 months ago

joch commented 9 months ago

Describe the bug and how to reproduce it:

Hi!

In my AL config I have added individual lights, as I want to be able to override most of them (when one of the kids presses the full house disco button for instance…). I control most of them using Zigbee groups though in order for them to be as reliable as possible. With one of the recent updates, AL stopped adapting lights turned on using a Zigbee group. Toggling the light off and on in HA makes AL update the light properly though.

I have been using AL for a long time and this setup has always worked great up until recently, so I wonder if it has to do with one of the recent updates. I can try to narrow it down more if needed. I currently moved all light to use HA groups until this is working again, but I can move something back if I need to test something.

Steps to reproduce the behavior:

  1. Add a light to a AL
  2. Add the light to a Zigbee group
  3. Turn on the Zigbee group
  4. The light is not adapted by AL
Noxeus commented 9 months ago

Did you try enabling detect_non_ha_changes and see if that helped? For Deconz, it labels any on/off changes done via the group as 'Non-HA' change.

joch commented 9 months ago

Did you try enabling detect_non_ha_changes and see if that helped? For Deconz, it labels any on/off changes done via the group as 'Non-HA' change.

Just did some testing and it seems to work — thanks for the workaround!

I have never had to use detect_non_ha_changes for ZHA groups before, so something is working differently than it used to.