Aqara D1 Double Switch (QBKG24LM) With Neutral in Home Assistant
The Aqara D1 QBKG24LM is the with-neutral, double-rocker switch in the mainland D1 family. Zigbee2MQTT gives it independent left and right relay control, per-button operation modes, actions, and electricity monitoring without an Aqara hub. The metering is for the device as a whole: it does not provide separate power and energy sensors for the two circuits.
This guide covers pairing, relay and decoupled modes, the Energy dashboard, firmware checks, and the limits of historical troubleshooting reports. The current feature check uses Zigbee2MQTT 2.14.3 with zigbee-herdsman-converters 26.125.0, checked on 3 November 2026.
The hub-free Aqara setup guide covers the coordinator and MQTT foundation. Here the focus is the exact QBKG24LM model.
What entities you get in Home Assistant
The official Zigbee2MQTT device entry and released definition expose these MQTT properties. Home Assistant’s generated entity IDs vary with your names and discovery configuration.
state_leftandstate_right: independent ON/OFF/TOGGLE relay controls.power: instantaneous combined load, in watts.energy: accumulated device consumption, in kWh.operation_mode_leftandoperation_mode_right: per-button relay/decoupled selectors.action: the supported button gestures listed below.- OTA capability: Zigbee2MQTT can check for a matching image, subject to its availability.
The released definition explicitly keeps power and energy outside the endpoint suffixes. There are no documented power_left, power_right, energy_left, or energy_right measurements. If two lighting circuits are connected, their combined consumption is useful for a room total, but it cannot tell you which circuit used how much.
Requirements
- A coordinator and adapter firmware supported by your current Zigbee2MQTT release, plus a running MQTT broker.
- Home Assistant’s MQTT integration and Zigbee2MQTT Home Assistant discovery enabled. An Aqara hub is not required for this direct path.
- A suitable 86-type wall box with neutral and the correct supply/load conductors. The two rockers do not mean that two adjacent wall boxes are required.
- A load and installation matching the exact model’s ratings and regional requirements.
Aqara’s mainland specifications identify QBKG24LM as 智能墙壁开关 D1(零火线版)双键: the neutral-and-live, double-button version. Its rating is 220 V, 50 Hz, maximum 10 A and 2200 W across the two channels together. Its dimensions are 86 × 86 × 42.85 mm. The manufacturer’s page limits these mainland products to mainland China; an import needs more than a matching faceplate to establish suitability elsewhere.
A neutral supply avoids relying on load leakage to power the switch, but it does not guarantee that every LED driver or appliance is compatible. Aqara’s D1 product information excludes smart lamps, light strips, and certain high-power appliances. Follow that load guidance rather than treating the wattage maximum as approval for any load. Isolate the circuit before installation and use a qualified electrician.
Pairing the QBKG24LM with Zigbee2MQTT
- Open Permit join in the Zigbee2MQTT frontend.
- Press and hold a rocker for approximately ten seconds, until the blue indicator starts and stops blinking, then release and wait. Follow the unit’s manual if its reset indication differs.
- Wait for a successful interview. The released fingerprint is
lumi.switch.b2nacn02, displayed as QBKG24LM. - Set a friendly name, close Permit join, and check both relay controls. In Home Assistant, confirm MQTT discovery has created the device before configuring automations.
A joined-device message alone does not mean the interview completed. If it remains unsupported or controls do not respond, read the interview log before repeatedly changing configuration.
Interview failures and the “keep it awake” suggestion
Issue #17780 concerns a 2023 QBKG24LM pairing failure with Zigbee2MQTT 1.30.4-1. The maintainer noted that this device did not require a configure routine; pressing Reconfigure could therefore produce a misleading “cannot be configured” message. The later logs showed failed node-descriptor requests, and the maintainer suggested permitting joins through the coordinator specifically.
The reporter subsequently said that repeated button presses, coordinator restarts, and coordinator-only joining did not solve it. The issue closed as stale/not planned, with another similar report afterward. It records an unresolved historical case rather than a confirmed remedy for current installations.
For a current interview failure, check supply and wiring, adapter firmware, logs, and radio conditions. A fresh pairing with Permit join restricted to the coordinator is a documented troubleshooting option, not a guaranteed fix. This with-neutral model should not be treated like a battery sensor that needs to be kept awake.
Configuring operation modes
The two selectors have different supported choices:
operation_mode_left:control_left_relayordecoupled.operation_mode_right:control_right_relayordecoupled.
Standard mode (button controls its relay)
The left button controls the left relay and the right button controls the right relay. Home Assistant sees the resulting relay states. Use this for suitable conventional lamps when physical switching must continue without a Home Assistant automation.
Decoupled mode and scene control
Decoupling separates a button from its relay: pressing it sends an action while the relay retains its existing state. You can change the selector in Zigbee2MQTT’s Exposes tab or the corresponding Home Assistant select entity. Each side is independent, so one can remain in ordinary relay mode while the other runs a scene.
For example, publishing this JSON to zigbee2mqtt/d1_double/set puts only the left rocker in decoupled mode:
{"operation_mode_left": "decoupled"}
Decoupling does not force the relay on, prevent an MQTT command from turning it off, or guarantee its state after a power interruption. It also does not make a prohibited load compatible. If the aim is to control smart bulbs while keeping them powered, have an appropriate permanent-supply and control arrangement designed for those bulbs; Aqara’s D1 load exclusions still apply. A scene that controls lights elsewhere avoids confusing the relay setting with wiring approval.
Power monitoring setup in HA
Look for the single energy sensor in kWh and the single power sensor in W. After normal reports arrive, add the eligible energy sensor under the Energy dashboard’s individual devices configuration. Home Assistant’s individual-device energy guide explains the supported sensor attributes. Use a label such as “study lighting total” if both channels feed that room.
A power threshold can trigger an automation when the total switched load falls or rises, but it cannot identify which circuit changed while both are connected. Do not enter the same aggregate energy sensor twice as if it measured two separate circuits.
The device page does not specify that its energy counter resets on every restart. Inspect the reported values and Home Assistant statistics rather than depending on that behavior. If a counter decreases, how long-term statistics interpret it depends on the entity’s state class and valid readings; the Energy dashboard cannot reconstruct consumption that was never reported.
OTA firmware and the limits of hold/release actions
The QBKG24LM definition enables Zigbee OTA. In the Zigbee2MQTT OTA page, check whether a matching firmware image is available, and follow the OTA documentation before starting. An OTA-capable definition does not establish that a newer image exists, how long an update will take, or which feature it fixes.
Issue #9611 is especially easy to misread. The 2021–2022 discussion confirmed decoupled operation after software updates, but still reported missing hold/release gestures. It ended with a documentation correction, not a firmware release that enabled all hold and release actions. There is no supported basis for promising an OTA update will add them.
The current release advertises hold_left but no hold_right or hold_release_*. Build critical automations around the gestures you actually observe on your unit. For a wider stack comparison, see the ZHA and Zigbee2MQTT guide; OTA availability must be checked for the exact device and image rather than inferred from the stack name.
QBKG24LM vs QBKG22LM: which do you need?
| Feature | QBKG24LM (with neutral) | QBKG22LM (no neutral) |
|---|---|---|
| Neutral conductor | Required | Not used |
| Power monitoring in Zigbee2MQTT | One power and one energy value for the device | None exposed |
| Manufacturer load rating | 2200 W maximum combined, 220 V/50 Hz | 800 W per channel, 1600 W combined; general specification minimum 3 W. The FAQ gives per-channel minima of 3 W energy-saving, 5 W LED, or 16 W fluorescent lamps. |
| LED suitability | Check the exact lamp and Aqara load guidance | Check minimum load and driver compatibility |
| Per-button choices | Own relay or decoupled | Left relay, right relay, or decoupled |
| Released Zigbee2MQTT OTA definition | Enabled, image availability varies | Not enabled in the current definition |
The no-neutral model exposes cross-relay choices for each button; QBKG24LM advertises only its own relay or decoupled. Use the choices in the exact model’s Exposes tab rather than importing controls from its sibling. For lamp selection, use the D1 FAQ’s lamp-type minimum for each no-neutral channel, not the general 3 W specification alone.
The appropriate model follows the verified wiring, permitted region, and load. With neutral available, QBKG24LM adds aggregate metering; it does not add independent circuit meters. The QBKG22LM guide covers the no-neutral double, while QBKG21LM is the no-neutral single. The neutral single is QBKG23LM.
Automations and action events
The released action list is:
single_left,double_left, andhold_left.single_rightanddouble_right.single_bothanddouble_both.
Home Assistant MQTT device triggers are the usual discovery-based path. Perform each gesture once before expecting its trigger to appear in the automation editor. The legacy action sensor is disabled by default, and optional experimental event entities are a different interface. A direct MQTT trigger is also useful:
Paste this mapping into a new automation’s YAML editor. For automations.yaml, add it as a list item and indent its fields accordingly.
alias: D1 left button runs evening scene
triggers:
- trigger: mqtt
topic: zigbee2mqtt/d1_double
value_template: "{{ value_json.action | default('') }}"
payload: "single_left"
actions:
- action: scene.turn_on
target:
entity_id: scene.evening
mode: single
Replace d1_double and scene.evening with your device topic and scene. The template ignores messages without an action. If the left relay should remain unaffected, set the left operation mode to decoupled first. Keep relay control for a suitable conventional load separate from the scene action.
The feature list above is checked against released device definitions, the device documentation, and the complete linked issue histories. It is a documentation and source review, not a physical-device test.
