ZHA Zigbee Light Turning On By Itself

I have about 91 devices configured in my ZHA on latest HA (2024.11.3). About 50 of these are lights.
I am experiencing an issue where lights turn on randomly in the middle of the night.

What is odd is the following: Most of the lights that turn on are part of a Zigbee Group. In all the automations I have they are NEVER turned on one by one but rather the group turns on or off. What happens is for example that 1 light of a 9 light group will. turn on. The logs obviously just say it turned on (no automation or anyting is related to this. What I managed to “observe” is that when a light turns on it looks like when you press “identify” within HA Device Settings. So it almost looks like ZHA is running a periodic identify on the lights which causes them to turn on.

What I tried so far to isolate that the issue is actually coming from ZHA and not a power failure:

  1. For 24h I have turned off my Zigbee Coordinator (Tube’s POE) and in this timeframe no light turned on
  2. I replugged back the coordinator and then disabled ZHA in HA. Again for 24h no light turned on.

This leads me to believe that this is a ZHA issue that is very hard to debug. Is there a way perhaps to get a log of EVERYTHING that ZHA does and why?

Thanks for the help, much appreciated.

Some zigbee lights turn on after attempting a firmware update - the lamp reboots and boom. Some lamps default on on power cut. Brief blip and - boom.

Both net the effect you talk about and when there is no entry in the log the event initiated at the device.

Start your search there.

2 Likes

Hmm Ok thanks, that is a tip, but how does a light know it needs an update? Is there a way to disable updates? I use Gledopto downlights and Gu10 lights . any ideas? Thanks

I think my issue was related to a faulty ZHA group.

What I did to try to naill down the issue was to copy ZNP, ZHA and ZIGPY logs into chatGPT to try and sk it why a certain light turned on. It provided a great summary of what was happening and I was able to trace the issue up until I asked why this could be happening and It gave a few reasons, like faulty firmware and light groups that might have lights added in a wrong way.

I then went onto delete-ing all the light groups that lights that were turning on had and recreated them. I am now 12h+ without an issue and hope this was it.

1 Like

Scratch that, it was not the solution. Light started to turn on again this night :confused:
I am contemplating to move to Z2M as with ZHA this seems impossible to understand what is happening :confused:

I have the same issue and I removed the option to set the light color and brightness in the automation and the light stay on. Do you have these options in your automation? Are you able to disable them to see if the light stays on?

There is no automation anywhere in Home Assistant that would turn on that one specific light that does turn on. I mean I have groups of 3-10 lights (about 5 groups) and an individual light will never turn on within HA as part of an automation.

This issue is so incredibly annoying that it makes me wonder how a Zigbee network can have issues like these happening and there is no way of knowing why.

Yes! EXTREMELY annoying! I’ve been trying different things to figure it out, but I do believe it something kind of Zigbee\HA bug.

I had this issue happen in the past. They way I managed to solve it was to disconnect all my zigbee router devices (which is no easy task given I have 70+) and then reboot HA and things were fine. Now however, I have done this multiple times and it does not help anymore.

I struggle to understand why lights are turning on by themselves if when I turn of ZHA this does not happen. it has to be a ZHA issue, no? or could it be that the devices cant event talk to each other if ZHA isnt running? I am confused about that part

I dont want to sound victory too soon, but I think I might have finally found the issue.

Among many of my Zigbee devices I also have a Hue Dimmer Switch. This device was not working 100% correctly, I was assuming the battery was about to die. So since I was suspicious, I removed the battery and left it removed for the past 1 day. Voila, all seems to be OK now, nothing is behaving weirdly anymore.

PS: I contacted one person who knows a ton about Zigbee before that happened and I got this message which made me suspicious

“unfortately hard to tell what i going on there. could be interference. lights coming on randomly is usually not ZHA or Z2M but something on the network triggering it. sometimes devices come and when they join they boardcast commands on the Zigbee LL group channel which all light typically listen too.”

For what it’s worth I have the exact same thing happening in two different light groups, the differnece being I don’t use ZHA, or rather I do but these light groups are all Hue groups.

Other than random lights turn on (they are outside lights so not critical), I have always found hue rock solid so never seen the need to convert all the bulbs over to ZHA which I user for all my zigbee sensors and stitches.

I had HUE bridge in the past, but due to the fact that it mostly only supports HUE accessories like Aqara Door/Temperature sensors were not supported I migrated to ZHA. All works mostly well in ZHA but I’ve had this issue happen now 3 times already (in the past 2 years) and its incredibly frustrating.

Its odd how one device can compromise the whole network sending random commands to random devices. This is IMO a flaw in Zigbee as it should be constructed in a way that this should not be possible.