Skip to content
esseki edited this page Dec 2, 2018 · 4 revisions

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",
    "state":
    {
        "buttonevent": 1000,
        "lastupdated": "2018-11-02T23:29:12"
    },
    "config":
    {
        "battery": 100,
        "on": true,
        "reachable": true,
        "temperature": 0
    }
}

Button events

Event Button Action
1000 One single short press
1002 One single short release
1004 One double short press
1005 One triple short press
1006 One quad short press
Clone this wiki locally