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

Aqara T1 Triple Wall Switch (QBKG34LM, With Neutral): Zigbee2MQTT & HA

Set up the Aqara T1 QBKG34LM triple wall switch with neutral in Zigbee2MQTT and Home Assistant. Covers relays, decoupled buttons, energy monitoring and exact model checks.

Aqara T1 Triple Wall Switch (QBKG34LM, With Neutral): Zigbee2MQTT & HA

The QBKG34LM is Aqara’s Smart wall switch T1 (with neutral, triple rocker), identified over Zigbee as lumi.switch.b3n01. Aqara’s device list identifies that fingerprint as T1 and lists the H1 with-neutral triple separately as lumi.switch.n3acn1. Match the label and Zigbee identifier before applying a guide.

This guide covers direct pairing, three relay controls, per-button decoupled mode, energy monitoring and OTA updates. The checked software reference is Zigbee2MQTT 2.14.3 with converters 26.125.0, on 3 November 2026. No Aqara hub or cloud account is needed for the direct Zigbee2MQTT runtime path.


What Is the Aqara Smart Wall Switch T1 Triple Rocker (With Neutral)?

The exact Aqara specification for QBKG34LM names it 智能墙壁开关 T1(零火线版)三键: smart wall switch T1, with live and neutral, three buttons. Its dimensions are 86 × 86 × 39.85 mm, with a 220 V~, 50 Hz rating and a maximum combined load of 2200 W across the three outputs. This is not a claim of certification for every country’s electrical installation.

零火线版 means the live-and-neutral version; 单火线版 means the no-neutral version. Those labels are more useful than an informal retailer title when comparing switches. Check wall-box fit, local certification and load compatibility with your installer. Mains work should be done with the circuit isolated and by a qualified electrician where required.

The three rockers control separate relays. Supplying neutral allows the electronics to remain powered independently of the connected lamps. It also avoids the particular need for a no-neutral switch to draw its operating current through the load; it does not make every LED driver, motor or high-inrush appliance a suitable load.

Check the interviewed device type before counting this switch toward Zigbee coverage. A neutral supply does not itself establish a device’s Router or EndDevice role. If it reports Router, it can relay traffic while powered; if it reports EndDevice, plan separate routing devices. Even adding a router does not force existing devices to change parents immediately.

For another no-neutral triple-switch option, see the H1 no-neutral triple guide, checking the exact model there before buying. The 什么值得买 (SMZDM, “What’s Worth Buying?”) name may appear in Chinese shopping discussions, but model-specific Aqara specifications and integration records are the basis for this setup.


QBKG34LM vs QBKG25LM / QBKG26LM — Key Differences

The two D1 triple models have different wiring. QBKG25LM is no-neutral; QBKG26LM is with-neutral. Do not treat them as interchangeable no-neutral variants.

Feature QBKG34LM T1 QBKG25LM D1 QBKG26LM D1
Neutral required Yes No Yes
Relays Three Three Three
Metering exposed by Zigbee2MQTT Energy, voltage, current No consumption metering Power, voltage, energy
OTA listed by Zigbee2MQTT Yes Yes Yes
Per-button operation mode Yes Yes Yes

The QBKG34LM meter values are device-wide, with no separate per-relay energy channels in the converter. Its released definition exposes current, voltage and accumulated energy; it does not expose an instantaneous power value in watts. The QBKG26LM device page shows why the D1 with-neutral model should not be described as having no power monitoring or OTA.

The D1 triple-switch guide is a related walkthrough; keep the distinction between QBKG25LM and QBKG26LM when applying its instructions.


Pairing the QBKG34LM with Zigbee2MQTT

Start with the switch correctly installed with neutral, a working coordinator and broker, and Home Assistant’s MQTT integration if you want automatic entity discovery.

  1. Enable permit join in Zigbee2MQTT.
  2. Follow the reset/pairing instructions supplied with the switch. The commonly documented pairing gesture is holding a button until its blue indicator blinks.
  3. Wait for the interview and configuration to complete. Confirm QBKG34LM and lumi.switch.b3n01, rather than relying on the friendly name.
  4. Name the device, test the three relay channels, and close permit join.

If the interview stalls, move the coordinator or improve radio range before repeating the reset. The compatibility entry suggests brief button presses during a difficult join, but this is troubleshooting advice, not evidence that a mains-powered switch normally sleeps or must be kept awake. Button presses may operate connected loads.

A router can help extend the network, but allow time for normal network behavior and judge the result by reliable device operation. Do not depend on seeing immediate parent changes in the map.


Entities in Home Assistant After Pairing

The relay endpoints are left, center and right. Home Assistant chooses entity IDs from discovery and naming settings, so examples such as switch.hall_left need replacing with your actual entities.

  • Relay state: state_left, state_center, state_right, each accepting ON, OFF or TOGGLE.
  • Metering: energy in kWh, voltage in V, and current in A.
  • Diagnostics: internal device_temperature and power_outage_count since pairing.
  • Settings: power-outage memory, per-button operation mode, night LED behavior and indicator inversion.

The converter supports single and double actions for individual buttons and button combinations: single_left, single_center, single_right, the corresponding double_* values, and combinations such as single_left_center. Observe the actual MQTT action value and test the selected operation mode before assigning scenes.

Use Home Assistant’s MQTT device triggers where available, or an MQTT automation. A legacy sensor.<device_name>_action entity is not guaranteed to exist in a modern Zigbee2MQTT installation. Whether a press operates a relay is controlled separately by the button’s operation mode.


Enabling Decoupled Mode for Smart Light Control

Each button has an independent operation mode. control_relay couples its press to its relay; decoupled separates the press from that relay, so the press can drive an automation. The relay remains remotely controllable.

Open Exposes and set operation_mode_left, operation_mode_center or operation_mode_right. For example, leave left and right coupled while assigning the center button to a cinema scene.

MQTT command
Topic: zigbee2mqtt/hall_switch/set
Payload: {"operation_mode_center":"decoupled"}

Repeat for other buttons as needed. For a smart lamp behind a decoupled channel, first ensure the relay supplies power; changing the mode does not force the relay on. The button automation then depends on Home Assistant, MQTT and Zigbee2MQTT being available.

This example listens directly to the device’s JSON MQTT state and does not require a legacy action sensor. Add it as a list item in automations.yaml, replacing the topic and scene:

automations.yaml
- alias: "Center switch to cinema scene"
  triggers:
    - trigger: mqtt
      topic: zigbee2mqtt/hall_switch
      value_template: "{{ value_json.action | default('') }}"
      payload: "single_center"
  actions:
    - action: scene.turn_on
      target:
        entity_id: scene.cinema_mode
  mode: single

Use Zigbee2MQTT’s normal non-retained action messages. Confirm one press produces the expected action before enabling an automation with consequential effects. If operation-mode selectors are absent, check the exact model and installed converter, then inspect interview/configuration logs rather than assuming a firmware defect.


Power Monitoring in Home Assistant

The cumulative kWh sensor can be used for individual-device consumption in Home Assistant’s Energy settings when it has the required energy device class, unit and statistics state class. Select the discovered QBKG34LM energy entity under individual-device consumption; voltage and current are diagnostic values, not separate Energy-dashboard consumption inputs.

power_outage_memory selects relay behavior after power returns. It does not document whether the energy counter survives an outage, reset or firmware update. Check long-term statistics after maintenance, and avoid interpreting a changed counter as a new electrical fault without context.

Zigbee2MQTT offers percentage-offset calibration for energy, voltage and current, and precision options for those readings. Apply calibration only against a suitable reference and understand its units: it adjusts reported values, not the physical switch or electrical protection. A switch meter should not replace a billing meter or a protective device.

Stay within the exact switch’s total and load-type ratings. The 2200 W figure is a combined maximum from the product specification, not permission to connect an air conditioner, water heater or motor with unsuitable starting current. Have the load suitability checked before installation.


OTA Firmware Updates via Zigbee2MQTT

The released converter enables Zigbee OTA for QBKG34LM. Check the OTA tab for an image available for your installed hardware and firmware. Converter support does not guarantee that a newer image exists.

Keep the switch powered and the network stable for the update. Duration and behavior depend on the image and network, so do not promise a fixed 15–30 minute window or unchanged relay behavior. Afterward, verify each relay, action and operation mode before relying on automations again.

After maintenance, check the switch against its own instructions and installed load. Correct circuit protection, wiring and load selection remain necessary regardless of whether a firmware update is offered.


Frequently Asked Questions

Can I install QBKG34LM without a neutral?
No. It is the 零火线版, requiring live and neutral. QBKG25LM is a D1 no-neutral triple; QBKG26LM is with-neutral. Check the exact model, circuit and wall box rather than swapping by appearance.

Does it extend the Zigbee mesh?
Check this device’s reported role in Zigbee2MQTT. A reported Router can relay traffic while powered; an EndDevice cannot. Neutral wiring alone is not proof of that role.

Can only the center button be decoupled?
Yes. Set operation_mode_center to decoupled and leave the other two at control_relay. Relay control remains available through MQTT.

How does it compare with D1 triple models?
Compare QBKG25LM and QBKG26LM separately. The former is no-neutral; the latter has neutral, metering and OTA support in Zigbee2MQTT. See the table above and the model-specific pages before choosing.

Can I track each output separately?
The converter exposes one device-wide set of consumption values. Separate per-circuit measurements require suitable metering for each circuit, installed for the circuit and load type.


Using the QBKG34LM with ZHA Instead of Zigbee2MQTT

ZHA and Zigbee2MQTT use different device handlers. Support in one does not establish identical relay, metering or per-button settings in the other. Before migrating, check whether the Home Assistant/ZHA version you plan to use has an exact handler for lumi.switch.b3n01 and which configuration entities it exposes.

The workflow above uses the documented Zigbee2MQTT controls. It does not require manual ZCL writes or a custom ZHA blueprint. Our ZHA versus Zigbee2MQTT comparison discusses the broader choice.


Zigbee2MQTT also documents an “on with timed off” command using on_time and optionally off_wait_time, in seconds. This support depends on device firmware. Confirm that an endpoint-specific timed-off command actually works on your switch before depending on it; use a Home Assistant timer if you need a behavior that your firmware does not implement.

local-firstHome Assistantno-cloud