A single light keep turning on and off, seemingly at random.
Upon further inspection, I see a pattern related to my IKEA Motion sensors. The light in my kitchen seems to be following the state of all 5 IKEA motion sensor I have.
There is no mention of the light entity in automations.yaml
There is no mention of the light entity in any scenes that are trigged by the motion sensor
There is no binding setup in Z2m
There are no blueprints that mistakenly have the light entity hardcoded
I see a message event to turn on/off the light in the z2m log immediately after a motion sensor is triggered.
I tried disabling the automation that each motionsensor is otherwise using to control the light they actually supposed to control and the behavior still exists.
This image shows very clearly that if any motionsensor is triggered, the light is also triggered.
This is problem that is very hard to debug, but in my experience it is always related to poor connection and/or wrong configuration.
I don’t know how you configured this, but try to remove device, including helpers or z2m groups, from z2m and mqtt, disable automations with this entity, restart ha and pair it again.
It’s a bit pain but I didn’t find any other way. I don’t promise that after all this, this will work.
I am wondering whether it could be related to the simple device pairing that IKEA has built into their decices that don’t require a hub … and maybe that somehow has pickedup my dimmer device.
I don’t have anything from ikea but randomly turning on/off lights for no reason happen to me using zigbee switches, wifi switches cloud control, some with, some without mqtt support and it seems that this is somehow related or to connection or wrong configuration.
Xiaomi sockets used to do the same thing. They had a hard codes Zigbee Group 1 and anything which was transmitting On/Off commands for Zigbee Group 1 was triggering those sockets.
You need to look at the Group settings both for the motion sensors and for the lamp. Remove any default Group definitions and check again.
Those are really good suggestions.
I cannot find anything in the settings, but I will try and hard-reset the device and see if it stops doing it.
I have multiple of those exact devices and this is the only one behaving like this.