Xiaomi Aqara Wireless Wall Switch WXKG03LM 2016

The Philips Hue Dimmer Switch provides four programmable buttons. These can be used in rules which are processed by the gateway.

Each button supports short and long press events which allows uses cases like calling a scene and push dim with just one button.

Top level attributes

Name Value
type ZHASwitch
modelid lumi.sensor_86sw1
manufacturername LUMI
{
    "manufacturername": "LUMI",
    "modelid": "lumi.sensor_86sw1",
    "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
    }
}

The data returned by the Get sensors request contains all attributes for the switch.

Config attributes

Name Type Description
on Bool Whether the switch is operational
reachable Bool read-only True when the switch is reachable in the network
battery Number read-only 0–100 Battery state in percent
temperature1 Number read-only Current temperature in °C
  1. The temperature is multiplied by 100, therefore 2300 is 23.00 °C. Be aware that the temperature value of this device is very coarse and often far from the real temperature.

State attributes

Name Type Description
buttonevent1 Number read-only The last buttonevent, null if no button was pressed yet
lastupdated String read-only Last time the sensor state was updated
  1. The buttonevent attribute can be used to build automations via Rules endpoint in order to trigger arbitrary actions like calling a scene, turn lights on/off and much more.

Button events

Button Event Description
1 One
  • 1002
  • short press

As alternative to rules which are processed by the gateway, button events are also forwarded as push messages from the Websocket interface and therefore allow 3rd party applications to handle the event in realtime without polling.

image/svg+xml