Aqara wireless switch not working (WXKG17LM) (WXKG16LM)

What am I doing wrong here? Someone please help me. Thanks

Can you see/control the device via Z2M directly, for example via the Z2M Front-end?
And can you prive more information about what is not working exactly?

There are no button clicks here even though it has 2 buttons. Unlike the wall version

Also what is a z2m front-end? sorry I’m a noob here.


This is the wall version compared to the 1st picture which is the wireless one. This has controls for the buttons.

Zigbee2MQTT (the bridge u are using) has a front-end. You can reach it via the add-on page or the IP of the server and the correct network port.

Have you already pressed the buttons of the device? It could be that the buttons are not synced yet to Home Assistant. I’m not familiar with the device specifics. Also, for the first device you have showed, it looks like the button presses are comming in like a command (see action under sensors). It could be that there will be no switches at all.

Can’t control it on front-end
image

This is for the normal switch


As you can see the wireless device does not have a STATE.
I found some topic while searching the web that you can modify devices through mqtt discovery but I have no idea how to do that. Can’t follow the instructions at all. literally I have zero knowledge about coding or programming. If it’s not on youtube I’ll rarely get it lol.

posted a clip and the link for you to see. Maybe you can understand it and teach me the step by step lol. Thanks for responding

This device has a state named “Action”.
That will show what button is pressed, for example: single_left or held_left. So, there will be no switches, only a string with the action that has been performed on your device.

All the actions for this device can be found on the Zigbee2MQTT website.

In HomeAsisstant you need to make an automation to handle a state change of that action instead of the switch. For example with the Hue dimmer switch, it will look like this:

The options will appear once they have been used once on the device. Zigbee2MQTT will then send them to HomeAsisstant. No need to add them yourself.

Thanks. I can now see the triggers but still missing some functions like the double tap and hold function.

Can you try and use the double tap/hold functions on the device while it is connected to Z2M (and HomeAssistant)? The functions should appear after first use.

You don’t need to write the automations yourself. There’s a few ready made blueprints for aqara wireless switches.

Have a look through there for your model.