Aqara D1 remote switch, the economical option

This is one of the most economical remote switches you can find in the market. For a price of about £12, the Aqara D1 offers one-rocket or two-rocket remote light switches with Zigbee technology that can be integrated into Home Assistant via Zigbee2MQTT or other compatible Zigbee Gateways.

Aqara D1 vs Aqara H1 switch

The Aqara catalogue has different models of smart switches targeting separate markets. For the EU market, Aqara produces the H1 models whereas D1 models are targeted for Asian markets. Although the H1 models can have a better look and improved quality, it’s still an economical option to purchase the D1 model through an online retail service such as Aliexpress. Below in the section “Where to buy it” you can find links for the D1 and H1 models.

Technical details

  • Zigbee: it uses the Zigbee protocol 1.2 and requires the Aqara Hub or any compatible ZigBee bridge like Zigbee2MQTT (see Home Assistant integration section below)
  • Battery: 2-year battery life using a 2032 battery.
  • 2 buttons with multiple actions: each button supports single press, double press, and hold. There’s also an additional function pressing both buttons at the same time.
  • Different installation options: portable, wall-mounted using adhesive or attached to the wall.
  • Zigbe2MQTT compatible: as the Aqara WXKG06LM (single button) or Aqara WXKG07LM (double button)
  • Dimensions: 86×86×15.2mm
The buttons can withstand 50,000 repeated presses” are the test results of Yitong Testing Laboratory, but there may be slight deviations due to different objective conditions.

Installation methods

Option 1:

Adhesive-free,
place it on a surface directly.

Option 2:

Remove the protective film from the adhesive pad
and attach the device to the desired surface.

Option 3:

Open the back of the Wireless Remote Switch D1
and fix it to the wall box. (You need to drill through the back cover with an awl/electric drill to install the screws)

Home Assistant integration with Zigbee2MQTT

Pairing

To detect the Aqara D1 switch in Zigbee2MQTT you need to set the device in pairing mode. To do that, press and hold both buttons for 10 seconds and the LEDs will flash. In the meantime, click on Permit join (All) in the Zigbee2MQTT screen.

After a few seconds, you should see the device listed in Zigbee2MQTT. Set a friendly name and it should be ready to use in Home Assistant.

According to the Zigbee2MQTT page, the remaining battery in %, can take up to 24 hours before reported. That’s the reason the image above shows a question mark in the battery column.

Zigbee2MQTT configuration (deprecated click event)

It’s recommended to follow the instructions from the Zigbe2MQTT page:

By default this device exposes a deprecated click event. It’s recommended to use the action event instead.

To disable the click event, set legacy: false for this device in zigbee2mqtt/configuration.yaml. Example:

devices:
  '0x12345678':
    friendly_name: my_device
    legacy: false

Blueprint

Creating a Home Assistant automation to set a function for each one of the buttons and 3 modes for each button (7 different configurable actions including pressing both buttons) can be daunting. That’s where a blueprint comes in handy.

I found this blueprint in the community forums which is very easy to install and configure. You just need to go to the Blueprints section in Home Assistant and click on “IMPORT BLUEPRINT”. Then add the URL in the Blueprint address field and save it. Now the blueprint “Z2M – Aqara H1(WRS-R02) – Wireless remote switch(double rocker)” will show up in the list of Blueprints.

Automation

Assigning a function to each button in Home Assistant can be done using an automation. To create one, you need to click on the Blueprint and you’ll see a screen like below where you can assign functions to each button and mode (single press, double press, hold).

Where to buy the Aqara D1 remote switch?

The Aqara D1 sensor is available in AliExpress.

The EU version is also available on Amazon (with a higher price):

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *