Xiaomi WXKG02LM 2016 - dresden-elektronik/deconz-rest-plugin GitHub Wiki

Xiaomi Aqara double key wireless battery powered rocker switch.

Model: WXKG02LM (Rev.1, 2016)

Joining

  1. Start sensor search in Phoscon App
  2. Press and hold both buttons for more than 5 seconds until LED blinks

REST-API

GET /sensors/<id>
{
    "manufacturername": "LUMI",
    "modelid": "lumi.sensor_86sw2",
    "type": "ZHASwitch",
    "uniqueid": "00:15:8d:00:01:2a:34:44-01-0006",
    "state":
    {
        "buttonevent": 1002,
        "lastupdated": "2017-11-04T19:14:12"
    },
    "config":
    {
        "battery": 100,
        "on": true,
        "reachable": true,
        "temperature": 2300
    }
}

Button events

Event Button Action
1002 One short press
2002 Two short press
3002 Both short press