Aqara Display Switch V1 (WS-K02D): Zigbee2MQTT & Home Assistant Setup
The Aqara Display Switch V1 EU (WS-K02D) combines two relay channels, four configurable buttons, and an LCD. It can be used with Home Assistant through an Aqara Matter bridge, or directly through Zigbee2MQTT with a community external converter. The direct route offers local relay control, button actions, and display settings, but it needs more care than a natively supported switch.
As checked on 3 November 2026, the released Zigbee2MQTT 2.14.3 device definitions do not include WS-K02D. The active development record is issue #26407. Its converter revisions add weather and indoor temperature/humidity display control, while the discussion also documents compatibility fixes, clock timezone workarounds, and button delays. This guide uses that record and its revision 23 with the July clock fix; it does not assume every firmware and converter combination behaves identically.
If you are choosing a Zigbee stack, the ZHA and Zigbee2MQTT comparison covers the wider decision.
What is the Aqara Display Switch V1 (WS-K02D)?
The official WS-K02D manual identifies a with-neutral, two-channel wall switch with four configurable buttons. The two left buttons control the wired loads by default; the other two are wireless controls. Its radios are Zigbee and Bluetooth. Bluetooth supports some Aqara app functions; it is not a Wi-Fi wall panel.
The EU model measures 86 × 86 × 42.2 mm and is rated for 200–240 VAC, 50/60 Hz, up to 8 A resistive load. It needs live, neutral, and the appropriate load connections. Installation must follow its manual and local electrical requirements, with power isolated at the breaker and the work performed by a qualified professional. An 86 mm faceplate does not establish that an existing box has enough depth or suitable wiring.
The device information posted in #26407 identifies it as a Zigbee router and reports lumi.switch.aeu001. That fingerprint also appears in Aqara’s developer device list. Do not replace it with a similar-looking identifier to make a converter match.
Check the label rather than the product family name. WS-K01D is the separate H1 20A single-rocker switch without this display. In Chinese references, 绿米 (Lümi) names the manufacturer, while 妙控开关 V1 refers to a mainland product family; those words alone do not identify the EU WS-K02D. Aqara’s developer list distinguishes the Display Switch V1 EU from the Smart Magic Switch V1 models.
Two paths to Home Assistant — and their cloud dependencies
Path A: an Aqara hub acting as a Matter bridge. The manual advertises Matter over Bridge. The switch joins a compatible Aqara Zigbee hub, and the hub presents supported functions to Home Assistant’s Matter integration. Use Aqara Home to commission and configure the device, and check the exact hub’s current child-device and bridge support. A bridge does not automatically expose every display setting or proprietary function. The Matter bridge guide explains the arrangement.
The hub remains part of local operation. Account setup, downloads, and weather services can have internet dependencies even though Matter communication between Home Assistant and the bridge is local. Do not equate an Aqara account used during setup with every later command travelling through the cloud.
Path B: direct Zigbee through Zigbee2MQTT. The switch joins your coordinator, with Zigbee2MQTT and an MQTT broker connecting it to Home Assistant. This does not require an Aqara hub or account for the supported Zigbee functions. Home Assistant can publish display values locally; the source of those values may still use a cloud service. For example, an internet weather integration remains dependent on its provider even when the final MQTT and Zigbee hops are local.
The practical choice is between Aqara’s supported hub features and a community integration you maintain. If the display or fast scene control is the reason for buying the switch, read the current converter reports before committing to several units.
Installing the external converter in Zigbee2MQTT
Use the files attached by the developers in #26407, with their change history. The July 2 attachment revision 23 with a clock fix is a specific reference, not a promise of compatibility with future releases. Keep a copy of the working converter and note your Zigbee2MQTT and switch firmware versions before changing either.
SmartHomeScene’s display-switch walkthrough provides another converter implementation and setup explanation. Use one complete converter and its matching property names; do not mix its code or examples with revision 23.
- Back up the Zigbee2MQTT data folder. Create
external_convertersbesideconfiguration.yaml. For a standalone Linux installation, the directory command looks like this; use your actual data path:
mkdir -p /path/to/zigbee2mqtt-data/external_converters
- Save the complete developer attachment in that directory, for example as
aqara_display_switch_v1_eu-rev23-timeFix.js. Do not combine fragments from different revisions. In the time-fix file, inspectDEVICE_TIMEZONE: its fallback isEurope/Madrid. Set the process timezone or adjust that constant to your own IANA timezone, such asAsia/Singapore. - Check
advanced.enable_external_js. Current external-converter documentation says new installations from 2.11.0 disable external JavaScript by default. Enable it only for converter code you trust, then restart Zigbee2MQTT. Merge this setting into the existingadvancedsection:
advanced: enable_external_js: true
- Read the startup log for loading or import errors. The definition must match
lumi.switch.aeu001. A device that joins but remains unsupported has not gained the converter’s functions merely by joining.
The current loader can load external converters from that directory; an old top-level external_converters: list is not needed. Native support, if added later, should be checked against the release notes before removing your external file.
Pairing the WS-K02D
- Open Permit join in Zigbee2MQTT. A device can belong to only one Zigbee network, so moving from an Aqara hub requires joining the new network.
- Follow the official reset sequence: quickly double-click a button, then long-press for 5 seconds to restore factory settings.
- Wait for Zigbee2MQTT to complete the interview. Confirm the model identifier, applied external definition, and exposed controls before closing Permit join and assigning a friendly name.
Enable Home Assistant discovery in Zigbee2MQTT and connect Home Assistant’s MQTT integration to the same broker. Generated entity IDs depend on naming and discovery settings; the MQTT properties below are more reliable identifiers than guessed switch. or sensor. names.
What entities you get in Home Assistant
Revision 23 declares the following controls and measurements. Check the installed converter’s Exposes tab because revisions can rename fields.
| Function | Converter properties | Use |
|---|---|---|
| Relays | state_switch_1, state_switch_2 |
Independent ON/OFF control of the two wired channels |
| Metering | power, energy, voltage, current |
Device measurements; not a promise of separate meters for each channel |
| Button actions | action |
Single-press events for configured virtual buttons |
| Display | lcd_brightness, standby_lcd_brightness, screen_saver_style |
Brightness and clock/weather/indoor-environment screens |
| Labels and assignment | button_1_layout through button_4_layout, button and switch name/icon fields |
Choose which function each physical button represents |
There is no universal select.time_zone inherited automatically from Home Assistant. The clock uses Zigbee time handling, and the linked July fix addresses reports that the screen showed UTC despite a configured local timezone.
Configuring the display and button behavior
Button assignment. Each physical position can be empty, assigned to switch_1 or switch_2, or assigned to one of button_1 through button_4. The first two values represent relays; the latter values represent virtual buttons. To use the upper-left position for a scene, for example, set button_1_layout to button_1 rather than switch_1, then handle its action in Home Assistant. Configurable names and icons belong to the function you assigned.
Gestures. The developer reports single-click actions, not general double-click and hold support. The double_tap_override setting is a separate relay override; it does not create a general double-press scene event. The August follow-up gives no basis to promise those extra actions through a Matter bridge either.
Screen savers. The exact screen_saver_style choices are digital_clock, weather_conditions, and indoor_environment. Weather uses weather_condition and weather_temperature. The indoor screen accepts sensor_temperature and sensor_humidity; the developer reports that the most recently updated value is displayed. These are numeric temperature/humidity fields, not an arbitrary text or CO2 dashboard. Weather humidity is declared by the converter but described there as not displayed by the device.
Pushing a sensor value. Select indoor_environment in Exposes first. This automation then sends a Celsius temperature whenever the sensor changes and every ten minutes. Replace the topic and entity with your own. It skips unavailable readings instead of sending a false zero:
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: Push indoor temperature to Display Switch
triggers:
- trigger: state
entity_id: sensor.indoor_temperature
- trigger: time_pattern
minutes: "/10"
conditions:
- condition: template
value_template: "{{ is_number(states('sensor.indoor_temperature')) }}"
actions:
- action: mqtt.publish
data:
topic: zigbee2mqtt/display_switch/set
payload: >-
{{ {'sensor_temperature': states('sensor.indoor_temperature') | float | round(1)} | to_json }}
retain: false
mode: queued
For humidity, use a percentage sensor and sensor_humidity. If sending both, remember the last update determines the visible value. For outdoor weather, select weather_conditions and publish the converter’s actual condition vocabulary, such as sunny, partly_cloudy, or moderate_rain. Home Assistant weather states need mapping; sending partlycloudy unchanged will not match partly_cloudy. Temperature fields are Celsius, so convert a Fahrenheit source before publishing.
Using button actions in automations
Watch the device’s JSON MQTT state while pressing each configured virtual button. The revision 23 action mapping with the current converter helpers produces names such as single_button_1; use the literal value your installed revision emits. A direct MQTT trigger avoids dependence on a legacy action sensor or the discovery of every gesture:
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: Display button 1 runs evening scene
triggers:
- trigger: mqtt
topic: zigbee2mqtt/display_switch
value_template: "{{ value_json.action | default('') }}"
payload: "single_button_1"
actions:
- action: scene.turn_on
target:
entity_id: scene.evening
mode: single
Zigbee2MQTT also supports Home Assistant MQTT device triggers. Perform an action once before expecting its trigger to appear. Event entities are optional and experimental; sensor.action is not an event entity and is not created by default in current Zigbee2MQTT.
Limitations to know before you buy
Community support needs maintenance. The discussion records an UNSUPPORTED_CLUSTER regression with Zigbee2MQTT 2.9.2, a compatibility patch, later button fixes in revision 23, and confirmation that indoor sensor display resumed working. Those reports explain why using the entire correct revision matters. They do not prove every current installation is broken or fixed.
Button latency remains a consideration. June and September 2026 comments report roughly a one-second delay for virtual buttons. The developer describes the possible cause as a hypothesis, so treat it as a reported limitation to evaluate on your own firmware. Do not buy it on an assumption of instant scene response.
OTA depends on an available matching image. An external converter is not inherently unable to update firmware: the cited file declares ota: true. That flag does not guarantee that an update image is published for your installed firmware. Check the device’s OTA result and the developer notes; use Aqara’s supported hub route when a needed update is available only there. Moving networks requires re-pairing.
Some features stay in Aqara’s app. The contributor identifies language selection, extra theme downloads, and proprietary MARS behavior as outside this converter’s implemented Zigbee path. Proximity activation has settings, but that does not make the proximity sensor a general Home Assistant presence sensor.
Does it work offline after setup?
For the implemented direct Zigbee functions, the control path is switch → coordinator → Zigbee2MQTT → MQTT → Home Assistant, without an Aqara cloud service. Local relays and local automations do not need internet access, but the automation chain still needs its coordinator, broker, and Home Assistant services running. Display values stay dependent on whichever sensor or weather provider you use.
The switch has no IP address to block at a router firewall. If you restrict internet access, apply rules to the actual IP hosts or Aqara hub involved in your chosen setup. Blocking the coordinator host’s required local MQTT traffic would break the integration rather than isolate the wall switch.
Quick FAQ
Does it work without an Aqara hub?
Yes, supported functions can use the community Zigbee2MQTT converter and your own coordinator. Check the converter/version combination before relying on it.
Can Home Assistant put any sensor on the screen?
The cited converter implements specific temperature and humidity fields. It is not a general arbitrary-sensor or free-text display.
Will a Matter bridge expose all of those settings?
Do not assume so. Matter bridging exposes supported device functions; Aqara app configuration and proprietary features are separate.
Is WS-K01D the same switch?
No. WS-K01D is the H1 20A single-rocker model. Match WS-K02D and lumi.switch.aeu001 for this guide.
For a different physical control style, the Aqara Rotary Knob H1 guide covers a related controller. For this display switch, keep the complete development thread, the manufacturer manual, and Zigbee2MQTT’s Home Assistant documentation alongside the installation notes. The configuration here is checked against documentation and released source, without a physical-device test.
