AqaraGateway icon indicating copy to clipboard operation
AqaraGateway copied to clipboard

Support fo Aqara Mini-Switch

Open kv1296 opened this issue 4 years ago • 1 comments

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: Screen Shot 2021-11-23 at 3 34 09 PM

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!

kv1296 avatar Nov 23 '21 22:11 kv1296

It was already supported. You can take following example in automation.

platform: state
entity_id: binary_sensor.0x158d00035999fa_switch
to: single
id: single

niceboygithub avatar Nov 25 '21 13:11 niceboygithub