Xiaomi WXKG01LM - dresden-elektronik/deconz-rest-plugin GitHub Wiki

Xiaomi Mijia round single key wireless battery powered switch.

Model: WXKG01LM

Joining

  1. Start sensor search in Phoscon App
  2. With a needle, press and hold the small button in the hole located on the back of the button for around 5 seconds until LED blinks

REST-API

GET /sensors/<id>
{
    "manufacturername": "LUMI",
    "modelid": "lumi.sensor_switch",
    "type": "ZHASwitch",
    "uniqueid": "00:15:8d:00:01:64:48:bf-01-0006",
    "swversion": "20150424",
    "state":
    {
        "buttonevent": 1000,
        "lastupdated": "2018-11-02T23:29:12"
    },
    "config":
    {
        "battery": 100,
        "on": true,
        "reachable": true
    }
}

Button events

Event Button Action
1000 One initial press
1001 One single hold
1002 One single short release
1003 One single hold release
1004 One double short press
1005 One triple short press
1006 One quad short press
1010 One five+ short press