IKEA remote magically toggles Xiaomi switch without being linked anywhere

Hello everyone,

I’m having a strange issue with three Zigbee devices. Two IKEA TRADFRI remotes (E1524/E1810) and a Xiaomi Aqara single key wall switch (QBKG11LM).
Whenever I press the middle button (toggle) on one of the IKEA remotes the Xiaomi Aqara always toggles, I’ve added the Xiaomi Aqara switch yesterday.
I’m running Home Assistant 0.102.3 and zigbee2mqtt 1.9.0 with a CC2531 USB stick.

I’ve tried the following things:

  • repairing the Xiaomi switch
  • repairing the IKEA remotes
  • running the unbind command

When I stop the Home Assistant and Zigbee2mqtt docker containers the same thing happens, so I’m thinking it’s not a zigbee2mqtt or HA issue.
My thought is that somehow the Xiaomi switch is picking up the toggle commands from the IKEA remote.

Here is the zigbee2mqtt log when the toggle button gets pressed:

zigbee2mqtt:debug 2020-01-22 19:39:55: Received Zigbee message from 'IKEA remote 1', type 'commandToggle', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
zigbee2mqtt:info  2020-01-22 19:39:55: MQTT publish: topic 'zigbee2mqtt/IKEA remote 1', payload '{"linkquality":39,"action":"toggle"}'
zigbee2mqtt:info  2020-01-22 19:39:55: MQTT publish: topic 'zigbee2mqtt/IKEA remote 1', payload '{"linkquality":39,"action":""}'
zigbee2mqtt:debug 2020-01-22 19:39:56: Received MQTT message on 'zigbee2mqtt/Light 1/set' with data '{"state": "ON"}'
zigbee2mqtt:debug 2020-01-22 19:39:56: Publishing 'set' 'state' to 'Light 1'
zigbee2mqtt:debug 2020-01-22 19:39:56: Received Zigbee message from 'Xiaomi Aqara Wall Switch', type 'attributeReport', cluster 'genOnOff', data '{"61440":134013020,"onOff":1}' from endpoint 1 with groupID 0
zigbee2mqtt:info  2020-01-22 19:39:56: MQTT publish: topic 'zigbee2mqtt/Xiaomi Aqara Wall Switch', payload '{"power":0,"consumption":2.35,"temperature":24,"linkquality":107,"state":"ON"}'
zigbee2mqtt:info  2020-01-22 19:39:56: MQTT publish: topic 'zigbee2mqtt/Light 1', payload '{"state":"ON"}'

Does anyone have any idea why this is happening?

Thanks!

Edit: If anyone has the same problem, see: https://github.com/Koenkk/zigbee2mqtt/issues/2772

I don’t think it’s related to zigbee2mqtt. I had something similar with a aqara opple 6 button remote and osram+ smart plugs… without any configuration 1 button switched off the relay while another button switched it on…
Guessing they are somehow clustered or linked to a group and by coincidence that matches

I agree, when I turn off zigbee2mqtt it still happens. How did you manage to fix it with the aqara and osram?

I didn’t :slight_smile:
Have a ton of other switches and it didn’t work entirely with zha anyway. Will pick it up again in the future

It was a zigbee2mqtt issue, check out the github link in my original post.

I’m having exactly the same issue with the Ikea remote and the Xiaomi plugs. Only I’m using ZHA. Any idea how I could fix this? I read through the Github ticket, but that only covers the solution for zigbee2mqtt