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:
This is an example of an entity that turned off without context (Not turned off by HA):
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.
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:
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.