Aqara Vibration Sensor test: a compact and efficient ZigBee sensor!

Installation on Home Assistant and Homey

Aqara Vibration Sensor

Aqara - Vibration sensor

Price as of: June 28, 2022 22 h 35 min

When we start home automation, we quickly multiply sensors of all kinds. And, if there is one brand that allows you to equip yourself for three times, it is Aqara. This is why we present to you today the sensor Aqara Vibration Sensor.

We chose to take a closer look at this little one ZigBee sensor, in the Aqara Home application (or Xiaomi Home), and especially in Home Assistant. This sensor will allow us to be warned in the event of vibrations, of course, but also of movements, displacements, inclinations and falls of the object on which it is stuck. This type of sensor can for example be connected to your mailbox in order to notify you when you receive mail or a package, glued to a window or a door to detect shaking, against a staircase to detect steps, under an office chair to trigger a lamp, or even on a washing machine to tell us its cycles ... And much more!

Aqara Vibration Sensor: a sensor full of resources


Le Aqara Vibration Sensor is presented, like its counterparts, in a compact packaging in white and blue colors. It benefits from a neat presentation, and in keeping with the rest of the range.

What surprises is the size. Indeed, this sensor only measures 36 mm x 36 mm for 9 mm d'épaisseur. Considering its size, you won't be surprised to know that it is powered by a CR2032 battery supplied, like many other devices of the brand. a circular sticker allows you to fix it firmly where you want.

In short, as always with the Chinese brand, compactness and aesthetics are essential and this Aqara Vibration Sensor is a great surprise!

Technical specifications

  • Brand : Aqara
  • Model : Aqara Vibration Sensor
  • Reference : DJT11LM
  • Protocol : ZigBee
  • Dimensions : 36 mm x 36 mm x 9 mm
  • Battery : CR2032
  • Operating temperature : -10 ° to + 50 °
  • Frequency used : 2400 MHz - 2483,5 MHz

Aqara - Vibration sensor

Price as of: June 28, 2022 22 h 35 min

Aqara Vibration Sensor: installation and use

Installation on Aqara Home

Install the sensor Aqara Vibration Sensor with the Aqara Home app is a snap. Note that you can also use it with Xiaomi Home. Indeed, an Aqara hub like a Xiaomi gateway will allow you to use it. Here, we added it to an Aqara M2 hub, and therefore via the brand's mobile application. A simple addition of an accessory, a long press on the button on the sensor, and a few seconds of patience will suffice to pair it.

Aqara Hub M2: a complete home automation gateway

Quickly, you access the sensor parameters and see that you can choose the intensity of the vibration detections:

  • High
  • Average
  • Low

It remains to create an automation and the sensor is ready. We recall that Aqara is HomeKit compatible Apple.


Install the Aqara vibration sensor on Home Assistant with deCONZ

We carry out this test, equipped with a Raspberry 4 with SSD, a ConBee2 key as a ZigBee gateway, and the deCONZ addon.

Of course we assume that your installation is fully operational. If this is not the case, you can find our Home Assistant OS installation tutorial.

In your Home Assistant instance:

  1. Go to the deCONZ add-on
  2. Click on Phoscon,
  3. Then go to "Sensors".
  4. Then "Add a new sensor"then " others ".
  5. Press 5 seconds on the sensor button, until the LED flashes.

    deCONZ saw it, mission successful, it is paired!

To know the name of the entity to use for the automations, go back to the Home Assistant sidebar then go to Configuration> Integration, and click Appareils in the CONZ box. Locate your vibration sensor and click on it.

We're not going to lie to each other, the temperature entity is unreliable, and we don't advise you to trust it.

Click on the first entity, you can spot its name. Do not rename it, you might need the identifier for the future ...

You can then start creating automations, either by choosing "entity" or "equipment", as the trigger:

  • If you choose entity, you must write status which will be the trigger.
  • If you choose equipment, states will be proposed as "Begins to detect vibrations".

However, we notice a shortcoming when going through deCONZ: the choice of sensitivity is absent, and that's a shame ! While using "Zigbee2MQTT" which we will tell you about very soon, this parameter is present natively.

We have searched, and there is however a solution: use the CONZ REST API. It can be scary, but after testing it ends up being quite simply. However, it is much less practical than clicking a button to change the setting, we grant you that.

The installation ofTerminal & SSH add-on is required.

  1. Open thedeCONZ add-on and click on deCONZ.
  2. Open the 'Plugins' menu and choose 'REST API Plugin'.
  3. Note the port and address.

Open the Terminal add-on, and type this, replacing it with your previously obtained line and do NOT press enter yet!

curl -X POST -d '{"devicetype": "terminal"}'

You must now return to deCONZ, but go in Phoscon this time. Go to the advanced settings of the gateway, like the image below, then click on "Authenticate the application". Once you press this button, you have 60 seconds to return to your HA terminal and now press Enter.

Now, your terminal is registered to interact with the API! You will have received an API key in the returned information, it will be listed as "username" and then a short string of letters and numbers. Write it down, since you will need it next.

For this example, we are: FDAA4762E9

There is one last item that we need to get before we continue, namely your entity ID. This is a two digit number which is assigned to your sensor Aqara Vibration Sensor. You can easily find it in Home Assistant> Configuration> Entities then searching for your binary_sensor.vibration entity. There is a number at the end of the name.

In this example, it is called binary_sensor.vibration_46  so our entity id is 46.

Now we can verify that it is correct using the API.

The structure looks like this:

http://[ip]:[port]/api/[api-key]/sensors/[sensor id]

With us, it therefore looks like this:

curl -X GET

Just replace with your values ​​in the appropriate places.

The change of sensitivity is finally possible with this command, the principle of which is identical, namely replace with your values:

curl -H 'Content-Type: application / json' -X PUT -d '{"sensitivity": 1}'

'1' being the value for the highest sensitivity, and '21' for the lowest.

Other possibilities

Those who have an Aqara or Xiaomi hub, which is associated with Home Assistant, can choose not to be local, not to do without the Cloud, and to pair directly to the hub, the sensor will be returned to Home Assistant by this bias. The advantage is that the sensitivity will be changed much more easily in the Aqara Home app. The downside is, that you will continue to depend on the Aqara Cloud for this ZigBee sensor.

On the Athom Homey box

Users of a Homey box will be able to use the app. Ted Tolboom's Aqara & Xiaomi ZigBee. Pairing is as easy with the ZigBee Homey gateway as with the Aqara Hub M2 bridge and in a few seconds you will find your Aqara and a host of features.

Indeed, Homey Flows allow you to use all sensor settings Aqara Vibration Sensor : the vibrations of course, the fall, the inclination, the movement, but also the battery level (with percentage to be defined).

With voice assistants

There is the cold shower! Unless you are using Nabu Casa on Home Assistant, you will not find the sensor on Alexa or Home Assistant in native language. In other words, Aqara Home does not reassemble this sensor, nor does the Homey box for that matter. However, it is possible for you to create scenes which will be usable in the routines. Alexa, but is it so interesting? You be the judge.

Our opinion on the Aqara Vibration Sensor

Aqara Vibration Sensor is a small ZigBee sensor that can be fixed wherever you want, the only limit being your imagination (washing machine, windows and bay windows, stairs, letterbox, under a chair, a drawer etc…). It reliably detects vibrations, tilt as well as drops. Unfortunately not waterproof, it is best to use indoors, but it had to be found a fault! Small but strong, it really seduced us as it offers so many possibilities of use. Offered at just under € 20 in France, the Aqara vibration sensor is a must-have for all home automation fans, whether via the Aaqra Home application, with deCONZ on Home Assistant or Jeedom and even with the Home Homey box!

Aqara - Vibration sensor

Price as of: June 28, 2022 22 h 35 min
Passionate about technology, I discovered the world of Smart Home with Xiaomi, then Alexa and Les Alexiens led me to become passionate about Home Assistant, which I master better every day!