Puzzle: what switches my lights?

This may be a good laugh for some :slight_smile:
I just started with HA, installed Z2M, connected a couple of switches and lamps, tried different blueprints and automations. None of this really worked for me, so I’m trying to understand it more deeply …

I now have a switch, Aqara WXKG15LM (Aqara WXKG15LM control via MQTT | Zigbee2MQTT) that toggles on/off two different lamps. But I have no idea how they are connected! In HA Automation Dashboard I turned off every single Automation. But the switch still toggles the lamps! Why?

I found the Z2M event log. For some reason, the log only shows events from the switch, nothing about the lamps that faithfully turn on or off. Why is this?

And how can I find out what connects the switch to the lamps?

Thank you for any help, or guidance!

Open that entity and look in logbook what triggered it on or off.
Might be a faulty switch.

Tanks for the quick reply, Daniel!

I looked in HA Logbook: none of the two lamps (and the switch) show up when toggled by the switch.
But the lamps appear in the logbook when I switch them on the HA Dashboard!
How is that possible?

I don’t know.
All that cross my mind is that they don’t report status back to ha for some reason
Maybe they are faulty, that is mostly unlikely, or they are not wired properly.
I wired all my switches by my self, test the wires by pulling it to test if the wires are properly connected and then install it back.
Maybe someone who did installation didn’t do it properly and you have loose wire.
It is hard to tell. I think you will have to pull it out and see are the wires properly connected.
But you know… don’t play with electricity. At least turn off the breaker.

One of the lamps is a light bulb, so no wiring. The other is wired, I’ll check it.
I will reset them and start over. Thanks again for your replies!

Maybe you have managed to create. A Zigbee group with the devices.

Hi Wally, thanks for your response!
I checked in the HA Settings Helpers tab. It’s completely empty. I assume any group would be shown here. And I know I hadn’t dare to try setting up a group.
So I don’t think that’s what it was.
In the meantime I deleted the switch and paired it new, so the issue is resolved for now.
Cheers

He meant grouping in Z2M, not helpers.

Good point. But no, there is no group in Z2M either.

Since we talking about it, what is the advantage of a Z2M group vs a HA group? How are they used?
Thanks!

See if it is bound to the lights.

Example:

Xiaomi / Aqara switches have the habit binding themselves to other devices without someone/something telling them to.

Groups in HA are not bound to one protocol and can also contain more device types than Zigbee groups.

Zigbee groups can use a single multicast packetvto reach many devices, where HA needs to send a packet to each single device, which takes time and can make it look like a cascade effect or some devices can be missed.
Zigbee groups might also work with HA not running, because the devices can send the multicast packets themselves.

Thanks francisp, good info!
Currently nothing is bound to it but I’ll keep that in mind in the future. Much appreciated :slight_smile:

Hi Wally, thanks for the detailed info!
For a newbie like me this is very valuable. Really appreciate it