AqaraGateway
AqaraGateway copied to clipboard
Support fo Aqara Mini-Switch
Hello, Amazing job creating this project.
Could you please add support for the Aqara Wireless Mini-Switch Model# WXKG11LM? So that automations can be triggered using the single press, double press, and long-press commands?
Currently, this is how it presents:

The switch does trigger events properly like this:
"event_type": "xiaomi_aqara.click",
"data": {
"entity_id": "binary_sensor.0x158d0006d4d79e_switch",
"click_type": "single"
"event_type": "xiaomi_aqara.click",
"data": {
"entity_id": "binary_sensor.0x158d0006d4d79e_switch",
"click_type": "double"
"event_type": "xiaomi_aqara.click",
"data": {
"entity_id": "binary_sensor.0x158d0006d4d79e_switch",
"click_type": "hold"
It would be nice if these were specified actions for the device through your plugin. Thanks!
It was already supported. You can take following example in automation.
platform: state
entity_id: binary_sensor.0x158d00035999fa_switch
to: single
id: single