Lights spontaneously come on

I added a new Zigbee light switch yesterday for the overhead lights in my master bedroom using the ZHA integration. It seemed to be working fine until the lights came on at 1:30 AM and again at 5:39 AM. They stayed on for about 10 seconds then shut off.

The entity history shows that the lights were turned on and off at those times. Is there a way to figure out what caused the lights to turn on?

Do you have these lights connected to alexa from HA? If yes, is alexa hunches turned on? If yes, turn them off.

Otherwise, look at the logbook for those devices, if there’s no context, the state change came from outside HA. This is an example of an entity that was turned on by HA:

image

This is an example of an entity that turned off without context (Not turned off by HA):

image

If your logbook entries look like my last image, the state change is coming from something outside HA.

EDIT: I just realized that my images may be misleading. Those are 2 different devices with the same name (The differing icons should give that away). One is the switch that controls the light, the other is the light. So when I turn off the light switch for garage temporary laser, the light for garage temporary laser turns off and HA detects that.

Thanks for the quick reply. No to Alexa or Google.

It looks like it was commanded by something outside HA.

What could possibly trigger it from outside HA?

I’d wager there is something in the zigbee controller that is doing this. Possibly grouping or something else. I have no experience with ZHA, so it might be best to wait for someone else to reply.

I have the same issue with some ZWave lights and have not been able to identify any relevant information in the log.
What I do know is that, in my case, it is not directly the lights, but a few automations that run spontaneously. I checked the automations several times, but could not find an error.

For ZWave, it’s likely group associations. If you are running Zwave JS UI, you can view and alter group associations on each node. If you’re running normal Zwave JS, I don’t believe there is a UI for that yet.

Thanks. I am not sure about this as I replaced one switch that is the Action of the (most) culprit Automation and it still has the same issue of spontaneous Action. It has no Group Association other than “Root Endpoint Lifeline”.
Another switch that actions in that Automation has a group association that I do not recognize, but am afraid to remove till I understand it:

That’s blasting on/off/dim events to node 1.

Thanks Petro. Useful to be able to see that info in Z-Wave JS UI, but am not sure that this is the reason of spontaneous ON events. I continue to research.

It’s not, that group just sends on/off/dim events to node 1. Sorry if that wasn’t clear.

1 Like

I rewrote the culprit automation from scratch and deleted the old one. Curious to see if the pattern continues.

So, it has happened again twice. The last time it happened when I opened the garage door (which is electric but not integrated to HA).

Then my Zigbee switches stopped working. I started getting an error when I try to activete a light…

image

Maybe 2 different problems? Or driver/integration problem?

I’m using a Sonoff USB/Zigbee dongle:

I just turned on debug logging so maybe that will show something when it happens again.

I also unpluged and replugged the Zigbee dongle. The error went away. That’s pointing at the dongle.

You’re getting zigbee congestion errors. You shouldn’t be getting MAX_MESSAGE_LIMIT_REACHED