Aqara Smart Rotary Knob H1 (Wired, ZNXNKG01LM): Zigbee2MQTT and Home Assistant Setup
The wired Aqara H1 rotary knob combines three switched lighting loads with a press-and-turn controller. It is easy to confuse with the battery-powered ZNXNKG02LM, but the ZNXNKG01LM needs a mains supply and neutral at the wall. This guide covers its wiring requirements, Zigbee2MQTT pairing, three relay endpoints, rotation automations and power monitoring.
Its Chinese name is 智能旋钮开关 H1(零火线版), Zhìnéng Xuánniǔ Kāiguān H1 (Línghuǒxiàn Bǎn): Smart Rotary Knob Switch H1, neutral/live-wire version. Zigbee2MQTT supports the exact model as lumi.switch.rkna01. With your own coordinator, MQTT broker and Home Assistant, normal control stays on your local network without an Aqara hub or account.
What the ZNXNKG01LM Actually Does
The physical control is a 旋钮 (xuánniǔ — rotary knob) that you press and rotate. The left, center and right names in Zigbee2MQTT describe the three relay endpoints; they do not mean there are three separate press-button zones on the face.
Behind the faceplate are five terminals: N for 零线 (língxiàn — neutral), L for 火线 (huǒxiàn — supply live), and L1/L2/L3 for three lighting loads. Each output can be controlled separately through Zigbee2MQTT. For example, a dining-room pendant, kitchen downlights and a hallway light can have separate Home Assistant controls even though the wall has one knob.
Metering reports energy in kWh, voltage in V, current in A and power in W. These are device-wide readings. There are no three separate per-relay energy meters in the current converter, so this arrangement gives a combined consumption total rather than a breakdown for each light.
Wired vs. Wireless: Key Differences
Check the printed model number before buying or installing. A wireless controller cannot replace the wired model’s load switching, and the wired model cannot simply be stuck to a wall without an electrical installation.
| Feature | ZNXNKG01LM (wired) | ZNXNKG02LM (wireless) |
|---|---|---|
| Power | Supply live and neutral | Battery |
| Load control | Three switched outputs | No mains outputs |
| Metering | Combined power, energy, voltage and current | No load metering |
| Installation | Wired into a suitable wall box | Surface-mounted scene controller |
| Zigbee2MQTT | Supported as ZNXNKG01LM | Supported as ZNXNKG02LM |
The ZNXNKG02LM wireless knob suits a desk or a location with no switch wiring. The wired ZNXNKG01LM suits a wall position where three compatible lighting loads and the required conductors are already available.
Check the actual network role in Zigbee2MQTT’s device information and map before relying on any switch to extend coverage. Mains power alone does not prove that every Zigbee product routes traffic, and a map is not a guarantee that a nearby sensor will choose a particular route.
Wiring
Have a qualified electrician isolate and verify the circuit is dead before installation. This China-market switch requires neutral as well as live. Aqara rates it at 220 V AC, 50 Hz, with a maximum total load of 10 A / 2200 W; that is a combined limit, not 2200 W for each output. Suitability also depends on the load type, local electrical rules and the product’s installation instructions.
- N — supply neutral.
- L — supply live.
- L1 — switched live to load 1.
- L2 — switched live to load 2.
- L3 — switched live to load 3.
During 装修 (zhuāngxiū — renovation), confirm the available wall-box depth and wiring rather than assuming a traditional three-gang switch has a neutral. Many conventional switches have only live and switched-live conductors at the box. The loads also need the correct neutral connection in the lighting circuit; do not treat the five terminal labels as a complete installation diagram.
Aqara specifically warns that confusing a load conductor with neutral can damage this switch when a relay operates. After installation, restore power with the faceplate fitted and check each load before building automations.
Pairing with Zigbee2MQTT
- Enable Permit join in the Zigbee2MQTT frontend.
- Press and hold the knob for more than 10 seconds. Aqara describes a red indicator for one second, then white for one second; release and wait for rapid white flashing.
- Allow the device interview to finish. Zigbee2MQTT should identify model
ZNXNKG01LM, with Zigbee modellumi.switch.rkna01. - Give it a friendly name such as
dining_knob, then close Permit join.
Use the long-press sequence above when enrolling this wired model. If joining fails, check the indicator sequence, coordinator logs and radio coverage before repeatedly resetting it. A failed interview and a failed configuration step are different problems; keep the log message when troubleshooting.
Entities in Home Assistant
Enable Zigbee2MQTT’s Home Assistant discovery and configure Home Assistant’s MQTT integration on the same broker. Entity IDs depend on your naming and discovery history; the following MQTT properties are the stable names to check in the device’s Exposes tab.
state_left,state_center,state_right— independent on/off relay states.energy,voltage,current,power— combined electrical readings.device_temperature,power_outage_countandpower_outage_memory— diagnostics and power-restoration behavior.operation_mode—eventorcommand.
For example, send {"state_left":"ON","state_right":"OFF"} to zigbee2mqtt/dining_knob/set to operate two outputs independently. Confirm which actual circuit each endpoint controls and label the Home Assistant switches accordingly.
Button actions are single, double, hold and release. Rotation actions are start_rotating, rotation and stop_rotating. Additional fields include action_rotation_angle, action_rotation_angle_speed, action_rotation_percent, action_rotation_percent_speed, action_rotation_time and action_rotation_button_state (pressed or released).
These arrive in MQTT messages. Home Assistant can discover MQTT device triggers after each action has occurred; experimental event entities need separate enablement. An ordinary sensor entity is not required for the MQTT automation below.
Three-Relay Control and the Aqara App
Aqara’s own support page says a default 单击 (dānjī — single press) switches all three internal relays together. The app can change the action assigned to each relay; 双击 (shuāngjī — double press) controlling the second load is an example of a possible mapping. It is not the universal factory mapping, and 长按 (cháng’àn — long press) should not be assumed to control L3.
With Zigbee2MQTT, the practical benefit is direct access to three named relay states and the knob’s events in the same local system. A dashboard can show “Kitchen,” “Dining” and “Hallway,” while a knob press can run an automation. Decide on a wall-control behavior that other people in the home can understand, then test both the physical control and remote switching.
Using Rotation Events in Automations
Light dimming: listen to the device topic and act only on rotation messages. The released converter forwards the device’s angle field without converting it into a brightness percentage. Use a deliberate scale and clamp the result instead of sending an unbounded raw angle to a percentage service.
alias: Knob dims dining room lights
triggers:
- trigger: mqtt
topic: zigbee2mqtt/dining_knob
conditions:
- condition: template
value_template: >-
{{ trigger.payload_json is defined
and trigger.payload_json.action | default('') == 'rotation'
and is_number(trigger.payload_json.action_rotation_angle | default(none)) }}
actions:
- action: light.turn_on
target:
entity_id: light.dining_room
data:
brightness_step_pct: >-
{% set step = (trigger.payload_json.action_rotation_angle | float(0)) / 10 %}
{{ [[step, -20] | max, 20] | min | round(0) | int }}
mode: queued
max: 20
Replace the topic and light entity. The divisor of 10 is an example response curve, not a documented device-unit conversion. Watch clockwise and anticlockwise messages first; if their sign produces the opposite behavior to the one you want, negate step. Adjust the divisor and cap to suit the reported values and light response. The relay outputs themselves are on/off switches: this automation dims a separate light entity that supports brightness.
Curtain position: cover.set_cover_position expects an absolute position from 0 to 100, so a signed rotation delta cannot be passed straight through. Add a scaled delta to the cover’s current position, clamp it to 0–100, and skip the command if position is unknown. Check the particular cover’s direction and supported features before using that pattern.
Operation mode: select event when Home Assistant processes the knob’s actions. command is intended for Zigbee binding to compatible targets; it does not automatically create a standalone control relationship. Zigbee2MQTT’s converter configures event mode by default, but check the reported setting after pairing.
Troubleshooting
Missing relay controls: first confirm that Zigbee2MQTT exposes all three states. If they exist there but not in Home Assistant, investigate MQTT discovery and disabled entities. If configuration failed, Reconfigure retries the converter’s configuration; it does not repeat the whole device interview.
Unknown model: let the interview finish, confirm lumi.switch.rkna01 in the logs and use a current supported Zigbee2MQTT release. A look-alike wireless model needs its own definition.
No knob actions: verify operation_mode: event, watch raw MQTT while pressing and rotating, then correct the automation’s action filter. rotate is not the current action string.
Intermittent response: check interference, coordinator placement and a network map with link information. Add a known compatible router where coverage requires it rather than assuming a nearby powered product must be carrying the traffic.
Power Monitoring as a Differentiator
A combined energy total is useful when the three outputs serve one room or lighting group. For the dining-room example, you can track that group’s overall kWh without extra hardware. To measure each circuit separately, use separate suitable meters; the three switch states do not create three consumption channels.
Zigbee2MQTT provides calibration and precision options for the electrical readings. Compare a stable load against a trustworthy reference before applying a percentage correction. Precision controls displayed decimal places and does not improve measurement accuracy. Current support also includes OTA, though an update is available only when a matching firmware image is offered.
For a choice between coordinators and integrations, the ZHA and Zigbee2MQTT comparison for Aqara devices provides broader context. For this model, begin with the exact endpoints and action names above rather than a generic three-gang or wireless-knob guide.
Sources and version: checked on 1 November 2026 against Aqara’s H1 wired support page, electrical specifications, the Zigbee2MQTT device reference and released converter implementation. The automation is a configuration example, not a report of a hardware test.
