Aqara Mini T1

I replaced my 1.5 year old Sonoff Zigbee switch which died 3 days ago, (sidenote: I’m really disappointed.) with Aqara Mini T1. Beware, because there are at least 2 versions of them which look exactly the same: the one which is recognized as b1acn01 and b1acn02. I got 02 model, the one not yet supported by ZHA, which only reports a battery level for it. To make buttons work, I had to add a custom quirk from a thread on Github. I also applied some comments from the review of pull request which, when merged, will make it official and custom quirk will be unnecessary.

Finding and applying the quirk took me maybe 15 minutes. I guess experience with dealing with non-conformant Zigbee devices pays off…