[DRIVER] Aqara H2 EU WS-K08E / WS-K08D — Local Zigbee, 2 Relays, 4 Buttons

I’ve published a custom Hubitat driver for the Aqara Light Switch H2 EU, four-button/two-channel version.

It pairs directly with Hubitat over Zigbee and exposes both wired relays as separate child switches, with button events on the parent device.

This is an AI-assisted community driver, tested on one Hubitat C-8 and WS-K08E, wired with neutral. It’s a preview release, and additional testers are welcome.

Supported devices

  • WS-K08E — tested
  • WS-K08D — expected compatibility based on the shared Zigbee model; not physically tested
  • Zigbee model: lumi.switch.agl010

The switch must be in Zigbee mode.

Features

  • Two independently controlled relay child switches
  • Four physical buttons exposed to Button Controller and Rule Machine
  • Single, double, hold, and release events on the lower buttons
  • Independently configurable decoupled mode and relay lock
  • LED enable/disable and inverted indication
  • Power recovery: on, off, previous, or inverted previous state
  • Whole-device power, current, and energy reporting
Physical button Hubitat button
Upper-left 1
Upper-right 2
Lower-left 3
Lower-right 4

Upper buttons have been verified for single presses. Enable the lower buttons’ multiple-click settings for double-press, hold, and release events.

Installation

Hubitat Package Manager: add this custom repository in HPM settings:

https://raw.githubusercontent.com/velkovb/hubitat-drivers/main/repository.json

Then install Aqara H2 EU Wall Switch (WS-K08E).

For manual installation, use the driver source.

After pairing, select Aqara H2 EU 4 Button 2 Relay (WS-K08E) as the device type, save, and click Configure. This creates the two relay children.

Preferences default to Keep device setting, so configuration preserves existing behavior unless you explicitly select a change.

Testing and limitations

Verified on the test device:

  • Independent relay on/off control
  • All four physical single presses
  • Lower-button double-press, hold, and release
  • Decoupled mode on both sides, including continued remote relay control
  • Remote switching blocked by each relay lock, with control restored after unlocking
  • LED on/off and inverted indication, visually confirmed
  • Expected final relay states after power cycles in all four recovery modes

No loads were connected during testing. Metering accuracy and brief output behavior during startup remain unverified. Relay clicks were heard during startup, but clicks alone don’t establish an unwanted output pulse.

No-neutral operation, physical-button behavior while locked, and long-term reliability also remain untested.

Documentation, test results, and source

Thanks to the Zigbee2MQTT contributors, the SmartThings H2 community driver, and the existing Hubitat H2 US driver for technical references.

If you try it, please share your model, firmware, neutral/no-neutral setup, and any relevant redacted logs.

P.S. You should first switch the device from Matter to Zigbee mode based on manufacturer instructions.

1 Like