No Aqara Wireless Switch long_click and double_click support?

Hi guys,

I have a couple of these Xiaomi Aqara Zigbee Wireless switches in my flat (WXKG02LM), and the single click automations work great, but I don’t see any long_click or double_click support in the docs.

Is there a way to get this working?

The round zigbee buttons have the support, why not the switches?

I can see the long_click and double_click events coming through in dev-info, but automations ignore them.

2018-12-01 12:05:46 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Wall Switch_158d0002828973: off>: {‘channel_0’: ‘double_click’}

2018-12-01 12:08:25 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Wall Switch_158d0002828973: off>: {‘channel_0’: ‘long_click’}


1 Like

Only single and both
WXKG02LM click_type single , both

Btw. Did you see that the automation has changed?

from click to

What @totolino says:

## Breaking Changes
* Prefix all xiaomi_aqara events with “xiaomi_aqara”. Please update your automations:  `motion -> xiaomi_aqara.motion` ,  `click ->` ,  `cube_action -> xiaomi_aqara.cube_action`  ([@syssi]( - [#17354]( ([binary_sensor.xiaomi_aqara docs]( (breaking change) 

All working fine here after changing the event names.

I understand zigbee2mqtt supports more click types.

Thanks guys.

I’ve not updated my Home Assistant yet, so everything still works but thanks for the heads up.

I just don’t understand why long click and double click aren’t supported. All the hard work is done by the Aqara gateway, so if the single click push event is supported by Home Assistant, why not the others?

Surely the code to handle it is the same as the single click!