I tried to join the zigbee network created with ZHA but it fails to finish adding the button, even it the console log shows it. I even followed the instructions of keep pushing it to keep it awake. Still, the final result is the button is not added as a device.
Did you get this to work at all? I am trying to pair round buttons with zha via conbeeII and getting same response. Buttons pair with Deconz and ConbeeII no problem.
EDIT: Deleted Deconz, Deleted ZHA, restarted hass, restarted server running hass, add ZHA try to pair for 45 mins… success. Pressing buttons seems to help.
Xiaomi round buttons can and do eventually pair via ZHA.
I just managed to get this added to HA using ZHA. Can you please tell me if you battery sensor works for this button?
Also I can’t seem to get the long press/ hold event to work. It only seem to report single, double and triple click events.
Has anyone had any success getting these buttons (WXKG11LM) to work using ZHA?
It’s paired to to the stick and shows up in HA as “lumi.remote.b1acn01” but I don’t see anything happening when I press the button. No zha_events are generated or the state never changes from unknown.
But does it create ant “entities”? does it create anything with an entity_id? Does it generate any events?
Mine creates an entity_id in the states list of “sensor.unk_manufacturer_lumi_remote_b1acn01_23079002_multistate_input”.
But I don’t have any idea how HA is supposed to interact with it.
When I have the zigbee stick in pairing mode (with the button already paired) by going to the “configuration->zigbee home automation” and clicking on “add devices” when I push the button using either a single-click or double-click I can see the events being generated in the bottom window for the button presses.
However I don’t see anywhere else that I can read and react to those same events outside of that screen.
I expected the device to create a “zha_event” that I could interact with but it doesn’t seem that it does anything like that.
Did some more investigation but the only entity created (and visible in the Development Tools section under States) is the sensor.lumi_lumi_sensor_switch_f1234567_power entity. Subscribing to the zha_event returns events on (multiple) button clicks. In automations you can only use the button using the device trigger type.
While trying to pair I also clicked the button numerous times and saw events (and errors) being generated. But that didn’t pair it. Only using the mentioned work-around, pressing the reset button several times during pairing mode (after 5s reset), did the trick for my button.
I ended up using the zigbee2mqtt dongle I had laying around from some testing I did last year and got it paired immediately and then after setting up the mqtt sensors in HA it works perfectly now.
Dragging up an old thread here… Has any one been able to get the WXKG01LM buttons to work with ZHA? I have a heap of them connected to HA via the Xiaomi Gateway but was wanting to migrate them over to my Conbee 2 stick. I tried a brand new button yesterday but it didn’t seem to link to ZHA properly. I got the device show up but it seemed like many device details were not retrieved by HA so I couldn’t do anything with it. It was then a nightmare trying to remove it from HA so I could try again (had to dive into the storage files)… and subsequently seemed to have broken HA (not starting up now )
Could you please provide some information on how you managed to get your buttons working?
I got 2 WXKG12LM buttons but can’t seem to make the work. I am trying with ZHA and a Sonoff CC2531 coordinator but as you said I am only getting a battery entity which is also unknown (no data retrieved).
While the Aqaras are some nice looking buttons, I still prefer my Sonoff SNZB-02 ones which where very easy to install and operate.
The problem was not a technical issue. I assumed that I’d see the button-functions (=triggers) already during the pairing phase - which wasn’t the case. However it was already correctly set up and I could use the triggers in the automations.
I had the issue with the unknown power state as well - re-adding (if necessary multiple times) the device to the zigbee network fixed it for me.
Thank you for your reply. Indeed, after trying to add the button several times, it showed up with all its functions. The battery percentage is showing up and the button shows up all its triggers capabilities in automations (single, double press, hold and shake).
A rather hectic procedure to add it correctly to ZHA but as long as it is working now I am rather happy.
Thank you for this link! I was going mad trying to pair my WXKG01LM switch. After first holding the reset button for 3 sec until the light starts flashing, the key to success was to keep pressing the same reset button repeatedly. Previously I was trying to push the switch itself, which wasn’t working. The first time I tried pushing the reset button, it worked!
Does anyone know if I can have a WXKG11LM paired with zigbee2mqtt controller as well as being paired with xaiomi hub (which is only acting as doorbell sounder)? Or do they have to be exclusively bound?