private@homelab: ~/latest
Home Assistant · Zigbee2MQTT · local control
private@homelab:~$ cat guides/article.md
·
· ·
8–12 minutes
read

Aqara D1 Double Wall Switch (No Neutral) in Home Assistant via Zigbee2MQTT

Set up the Aqara D1 double rocker QBKG22LM in Home Assistant via Zigbee2MQTT — no Aqara hub needed. Covers pairing, decoupled mode, and LED compatibility.

Aqara D1 Double Wall Switch (No Neutral) in Home Assistant via Zigbee2MQTT

The Aqara D1 QBKG22LM controls two lighting circuits from one double-rocker wall switch without a neutral conductor at the switch. It can join a Zigbee2MQTT coordinator directly and expose separate relay controls and per-button operation modes to Home Assistant, without an Aqara hub. The details that matter are the exact load rating, the action names, and what decoupling does to the relay.

The feature check here uses Zigbee2MQTT 2.14.3 and zigbee-herdsman-converters 26.125.0, checked on 3 November 2026. If you are building the foundation first, start with the guide to Aqara Zigbee devices without an Aqara hub.

This is a mainland China model: Aqara calls it 智能墙壁开关 D1(单火线版)双键, meaning the single-live-wire/no-neutral, double-button version. Its official specifications give 220 V, 50 Hz, 800 W per channel, 1600 W combined maximum, and a 3 W minimum. The page’s sales and service policy limits these mainland products to mainland China. Check regional suitability, load type, and the installation manual before treating an imported unit as a replacement for an existing switch.

Installation involves mains wiring. Isolate the circuit at the breaker, verify it is de-energized, and have a qualified electrician identify the supply and switched conductors. The no-neutral designation does not make work inside the box safe while powered.


What you will get after pairing

The Zigbee2MQTT entry and released definition expose:

  • state_left and state_right: independent relay ON/OFF/TOGGLE controls.
  • operation_mode_left and operation_mode_right: the function of each physical rocker.
  • action: button actions for automations, using the exact names discussed below.

These are MQTT property names. Home Assistant generates entity IDs from your device names and discovery configuration; do not assume literal IDs such as switch.left already exist. The device’s Zigbee model identifier is lumi.switch.b2lacn02. No power or energy metering is exposed, and the released definition does not enable OTA for this model.

The two relays are independent: a normal left-relay command does not operate the right relay. Button assignment is separate, so verify the operation modes if pressing one physical rocker controls an unexpected circuit.


Requirements

  • A coordinator with adapter firmware supported by the current Zigbee2MQTT release.
  • A running Zigbee2MQTT installation and MQTT broker.
  • Home Assistant’s MQTT integration, with Home Assistant discovery enabled in Zigbee2MQTT.
  • A suitable 86-type wall box, correct mains wiring, and compatible conventional lamp loads meeting the manufacturer’s requirements.

An add-on is one installation option; Zigbee2MQTT can also run separately from Home Assistant. There is no need to acquire an Aqara hub for this direct Zigbee path. The hub-free setup guide explains the coordinator arrangement, and the ZHA versus Zigbee2MQTT comparison covers the wider stack choice.

The switch is 86 × 86 × 42.85 mm. Double rocker describes its two circuits within one faceplate; it does not mean it needs two side-by-side wall boxes. Confirm the box depth and wiring space before installation.


Pairing the QBKG22LM with Zigbee2MQTT

  1. Open Permit join in the Zigbee2MQTT frontend.
  2. Press and hold a rocker for approximately ten seconds, until the blue indicator starts and stops blinking, then release and wait. Use the exact unit’s manual if its indication differs.
  3. Wait for the interview to complete and confirm lumi.switch.b2lacn02 / QBKG22LM. Assign a friendly name and close Permit join.
  4. Check both relay controls and operation-mode selectors in Exposes, then confirm discovery in Home Assistant.

A device already joined elsewhere may need to be removed from the old coordinator or reset before it will join the new network. A single blink does not prove it is rejoining, and there is no verified need here for a separate both-buttons reset gesture. If pairing fails, inspect the interview log and radio conditions. Coordinator-specific Permit join is available for troubleshooting awkward router selection.


Configuring per-button operation mode

Both operation_mode_left and operation_mode_right offer these values:

  • control_left_relay: operate the left relay.
  • control_right_relay: operate the right relay.
  • decoupled: send button actions without directly changing either relay.

The selectors are independent. You can map a button to its own relay, the opposite relay, or an automation. This differs from QBKG24LM, whose exposed choices are its own relay or decoupled.

Standard mode

For conventional lighting, assign each button to the appropriate relay. Physical presses then switch the attached load without needing a Home Assistant automation, while Zigbee2MQTT reports the relay states. Check which circuit is connected to which terminal rather than assuming the physical left/right order matches the printed terminal numbers.

Aqara’s D1 support page states that on the no-neutral double, L is live, L1 is the right-button load, and L2 is the left-button load. That mapping is useful when verifying an installation; it is not a substitute for isolating the supply and following the wiring instructions.

Decoupled mode

Setting a button to decoupled stops its presses directly toggling the relay. The relay remains at its current state until something else changes it. This is useful for a scene or for operating a different suitable light through Home Assistant.

Change the selector in Exposes or the corresponding Home Assistant control. For example, send this JSON to zigbee2mqtt/d1_no_neutral/set to decouple the left side while leaving the right in ordinary relay control:

MQTT payload
{"operation_mode_left": "decoupled", "operation_mode_right": "control_right_relay"}

Decoupling does not itself turn a relay on, lock it on, or establish its recovery state after a power cut. An automation or MQTT command can still change the relay. It also does not remove the switch’s power or minimum-load requirements.

If the aim is to keep smart bulbs powered, separate that wiring decision from the software setting. Aqara’s D1 product guidance excludes smart lamps and light strips. Do not put an unsupported lamp behind this switch merely because decoupled mode exists; have a suitable permanent-feed and control arrangement designed for it.


Building automations with action events

The current device page and released definition list these actions:

  • single_left, single_right.
  • double_left, double_right.
  • release_left, release_right, release_both.
  • hold_release_left.

The underlying action converter also processes hold/release sequences, but the advertised list is not a symmetric set of hold_left, hold_right, and both-button gestures. The released source even repeats hold_release_left in its expose list. Observe the actual payloads from your unit before relying on an unlisted action; do not assume a sibling’s complete gesture set applies.

Home Assistant MQTT device triggers are the usual route: perform a gesture at least once, then select the discovered device action in the automation editor. This avoids guessing the internal Home Assistant device ID. A direct JSON MQTT trigger is another complete pattern:

Paste this mapping into a new automation’s YAML editor. For automations.yaml, add it as a list item and indent its fields accordingly.

automations.yaml
alias: D1 no-neutral left button runs evening scene
triggers:
  - trigger: mqtt
    topic: zigbee2mqtt/d1_no_neutral
    value_template: "{{ value_json.action | default('') }}"
    payload: "single_left"
actions:
  - action: scene.turn_on
    target:
      entity_id: scene.evening
mode: single

Replace the topic and scene with your own. The template ignores ordinary state messages without an action property. A legacy sensor.*_action is not enabled by default; optional experimental event entities are separate from MQTT device triggers.

Issue #25560 described missing Home Assistant trigger choices after Zigbee2MQTT 2.0.0 for WXKG02LM_rev2 and WXKG07LM remotes. The reporter confirmed that performing the gestures made the triggers appear, and the maintainer linked the documented discovery behavior. It was not a demonstrated loss of QBKG22LM both-button radio events.

Avoid debounce. The QBKG22LM device page explicitly warns that debounce can suppress single and hold-release actions. Leave it unset while building and checking automations. Its older deprecated click note should not be used as a reason to build new automations on click; use action. The current definition uses the action converter, and current Home Assistant discovery recommends MQTT device triggers.


Why this switch won’t extend your Zigbee mesh

The released QBKG22LM definition forces the Zigbee device type to EndDevice. It does not route traffic for other devices, even though it is installed on mains wiring. Do not count it as a repeater when planning coverage.

A no-neutral switch obtains its operating supply through the load circuit rather than a dedicated neutral at the switch. That makes load compatibility relevant, but the network role should be taken from the exact model definition rather than inferred from mains power alone. For range gaps, use suitable, continuously powered Zigbee routers. Verify the reported role of each proposed router; neutral wiring by itself is not proof of routing behavior.


Minimum load and LED compatibility

Aqara’s QBKG22LM specification gives a general 3 W minimum, 800 W per channel and 1600 W total at 220 V, 50 Hz. Its D1 support FAQ is more specific: each no-neutral channel needs at least a 3 W energy-saving lamp, a 5 W LED lamp, or a 16 W fluorescent lamp. Use the lamp-type requirement rather than applying the general 3 W figure to every light.

A 5 W LED meets the stated LED minimum but is not automatically a compatible load; a 3 W LED is below that LED-specific minimum, and a 2 W lamp is below even the general specification. Aqara also warns that lamp driver design can cause flicker or abnormal switch behavior. If a lamp flickers, glows while off, or makes the switch unstable, check the load and wiring as well as the Zigbee installation.

Have the installer check the permitted lamp type, driver, circuit, and manufacturer’s advice. Do not add a generic capacitor “inline”; a bypass is a mains component whose suitability and connection must be specified for the exact installation. Decoupling is not a validated workaround for an undersized or unsupported load. If neutral can be provided and the load/region are suitable, a compatible neutral-powered control may be a more appropriate design.


QBKG22LM vs QBKG21LM: which to buy?

The QBKG21LM guide covers the no-neutral single-rocker D1. The same family uses 单火线 for no neutral and 零火线 for neutral plus live, useful terms when reading Chinese listings.

Feature QBKG21LM (single) QBKG22LM (double)
Buttons / relay channels 1 / 1 2 / 2
Faceplate / depth 86 × 86 / 42.85 mm 86 × 86 / 42.85 mm
Neutral Not used Not used
Manufacturer minimum load General specification: 3 W; FAQ per channel: 3 W energy-saving / 5 W LED / 16 W fluorescent General specification: 3 W; FAQ per channel: 3 W energy-saving / 5 W LED / 16 W fluorescent
Power monitoring in Zigbee2MQTT None exposed None exposed
Released Zigbee device role EndDevice EndDevice
Operation mode Own relay or decoupled Either relay or decoupled, per button

Choose by the number of suitable circuits you need to control and the verified wiring, not by a claim that the double needs a two-gang box. Both use the same nominal faceplate size.

The QBKG24LM, Zigbee model lumi.switch.b2nacn02, is the neutral double. Zigbee2MQTT exposes aggregate power and energy for it, not one meter per relay. The neutral single is QBKG23LM, not QBKG21LM.


One alternative if you want the hub route

Aqara’s D1 documentation supports hub-based operation and HomeKit bridging for the single and double versions with a compatible gateway. Verify the exact hub, region, firmware, and child-device support before buying. The Aqara Hub M2 and Home Assistant HomeKit Device guide explains that integration route.

Hub commissioning and Aqara account services are separate from subsequent local HomeKit communication. Direct Zigbee2MQTT avoids the Aqara hub for supported functions, while Home Assistant automations still rely on your coordinator, broker, and Home Assistant being available. Normal coupled physical relay switching does not depend on an HA scene.

Check the current model entry, released converter definition, and Aqara load and wiring guidance when planning the installation. The examples here are checked against documentation and source; they are not a report of physical-device testing.

local-firstHome Assistantno-cloud