Random binding of Sonoff buttons to wired Aqara devices

I have some Sonoff buttons: WB01 by eWeLink (Quirk: zhaquirks.sonoff.button.SonoffButton)

Some of them just bind to Aqara wired devices through which it is routing messages. Even after I delete/re-pair those buttons, they would still bind to the same device:

lumi.switch.n2aeu1 (Quirk: zhaquirks.xiaomi.aqara.opple_switch.XiaomiOpple2ButtonSwitchFace2)

or

lumi.plug.maeu01 (Quirk: zhaquirks.xiaomi.aqara.plug_eu.PlugMAEU01)

This is very strange behaviour and I can’t think of on how to fix it. This is the zha_event that I receive in my office my pushing the Sonoff button to turn on something else:

event_type: state_changed
data:
  entity_id: switch.office_filip
  old_state:
    entity_id: switch.office_filip
    state: "off"
    attributes:
      friendly_name: Office Filip Switch
    last_changed: "2022-11-29T18:20:24.433491+00:00"
    last_updated: "2022-11-29T18:20:24.433491+00:00"
    context:
      id: 01GK29WQZH415YMTZ7CDBBQMZ5
      parent_id: null
      user_id: null
  new_state:
    entity_id: switch.office_filip
    state: "on"
    attributes:
      friendly_name: Office Filip Switch
    last_changed: "2022-11-29T18:20:43.458674+00:00"
    last_updated: "2022-11-29T18:20:43.458674+00:00"
    context:
      id: 01GK29XAJ2MMYY3C066FT1WPEZ
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2022-11-29T18:20:43.458674+00:00"
context:
  id: 01GK29XAJ2MMYY3C066FT1WPEZ
  parent_id: null
  user_id: null

it has no parent_id, and no user_id, so it looks like a random binding issue.

I have ZBDongle-E running with ZHA. But it also happened with Conbee2 stick (running Z2M). So it looks like the issue with Aqara devices.

Sometimes it takes weeks, then the network readjust and some button routes to some wired aqara device and suddenly it behaves like it is bind.

Bind/unbind does not work.

Any suggestions?

1 Like

I have same issue with
zhaquirks.xiaomi.aqara.plug_eu.PlugMAEU01
zhaquirks.sonoff.button.SonoffButton
It seems one of them should end on garbage