To contribute to this page, edit the following file

Xiaomi QBKG25LM #

Model QBKG25LM
Vendor Xiaomi
Description Aqara D1 3 gang smart wall switch (no neutral wire)
Supports on/off, action
Picture Xiaomi QBKG25LM

Notes #

Pairing #

Press and hold the button on the device for +- 10 seconds (until the blue light starts blinking and stops blinking), release and wait.

You may have to unpair the switch from an existing coordinator before the pairing process will start.

Decoupled mode #

Decoupled mode allows to turn wired switch into wireless button with separately controlled relay. This might be useful to assign some custom actions to buttons and control relay remotely. This command also allows to redefine which button controls which relay for the double switch (not supported for QBKG25LM).

Topic zigbee2mqtt/[FRIENDLY_NAME]/system/set should be used to modify operation mode.

NOTE: For QBKG25LM instead of system use left, center or right and leave out the button property in the payload.

Payload:

{
  "operation_mode": {
    "button": "single"|"left"|"right", // Always use single for a single switch
    "state": "VALUE"
  }
}
Values Description
control_relay Button directly controls relay (for single switch and QBKG25LM)
control_left_relay Button directly controls left relay (for double switch, not supported for QBKG25LM)
control_right_relay Button directly controls right relay (for double switch, not supported for QBKG25LM)
decoupled Button doesn’t control any relay

zigbee2mqtt/[FRIENDLY_NAME]/system/get to read current mode.

Payload:

{
  "operation_mode": {
    "button": "single"|"left"|"right" // Always use single for a single switch
  }
}

Response will be sent to zigbee2mqtt/[FRIENDLY_NAME], example: {"operation_mode_right":"control_right_relay"}

Power outage memory #

This option allows the device to restore the last on/off state when it’s reconnected to power. To set this option publish to zigbee2mqtt/[FRIENDLY_NAME]/set payload {"power_outage_memory": true} (or false). Now toggle the plug/switch once with the button on it, from now on it will restore its state when reconnecting to power.

Do not disturb mode #

This option allows to turn off the indicator lights between 21:00 and 09:00. To set this option publish to zigbee2mqtt/[FRIENDLY_NAME]/set payload {"do_not_disturb": true} (or false).

Manual Home Assistant configuration #

Although Home Assistant integration through MQTT discovery is preferred, manual integration is possible with the following configuration:

switch:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_off: "OFF"
    payload_on: "ON"
    value_template: "{{ value_json.state_left }}"
    command_topic: "zigbee2mqtt/<FRIENDLY_NAME>/left/set"

switch:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_off: "OFF"
    payload_on: "ON"
    value_template: "{{ value_json.state_center }}"
    command_topic: "zigbee2mqtt/<FRIENDLY_NAME>/center/set"

switch:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_off: "OFF"
    payload_on: "ON"
    value_template: "{{ value_json.state_right }}"
    command_topic: "zigbee2mqtt/<FRIENDLY_NAME>/right/set"

sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    icon: "mdi:gesture-double-tap"
    value_template: "{{ value_json.action }}"

sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    icon: "mdi:signal"
    unit_of_measurement: "lqi"
    value_template: "{{ value_json.linkquality }}"