Ever since I updated my automation to turn on lights based on area (office) the lights of the kitchen also turn on. I have checked all my configurations, traces and events and I can’t understand why they turn on.
This light should not have turned on, and it does not list any reason why it got turned on.
This only happens when I configure it to turn on/off based on area
Ikea = Zigbee, so could be binding out of the box. It’s not unheard of.
Here’s a quick & dirty way to test this:
Create a group with all your office lights.
Turn on the group using a service call > check your kitchen light is still off.
Change your automation to turn on your new office group & trigger it > check your kitchen light is still off.
If both the above work without triggering your kitchen light, double check that no other office devices are defined as lights. Only way to check this is to then add ALL lights with area = office into your group and repeat the last 2 steps from above.
If your kitchen light never gets triggered after all this, it could be a bug. Try changing the area for your kitchen light & change it back in case something’s messed up. If that still doesn’t work, it’s definitely a bug which should be raised on github.
Then all that’s left for you to do is follow my last 2 paragraphs:
Either you have another device in your office area which is recognised as a light, or else there’s an actual bug.
Given there’s no actual trigger info is sent in your logs, I suspect the former. You might have an device in your office which is:
a) recognised as a light
b) bound to the kitchen light by default
I followed @ShadowFist’s suggestion and used the developer / template page to list all my “light” devices in the lobby area:
{{ area_entities('lobby') | select('match','light.*') | list }}
And I found the culprit. In the list, I also have a Zigbee group associated in direct bind mode with a Tradfri button and that includes both the Lobby and Kitchen lights. It’s supposed to be used to switch on/off all the main lights in case my HA box is down.
When the light.toggle service is called, this triggers the group and toggles all devices included in this group!
I moved the group to another area, and this is working fine now.