New aqara vibration / shock sensor

This is pretty cool and I have this on my garage in lieu of a reed switch. Until there is full support I created proxy sensor by setting up the XiaoMi Home app to flip a zigbee switch on and off depending on the vibration. Then I tie the state to a template sensor to get full garage open or closed. Works well!

Can’t wait until this is fully supported!

I had another idea for this sensor using the tilt feature.
With air conditioners which are controlled via IR, the state (on/off) of the A/C cannot be retrieved. These sensors are small enough to stick to the vane of the A/C head unit. As the vane rotates up/down/left/right then it’s on, and if after a period of time no motion is detected then it is off.
Or maybe, it might be possible to detect certain angles from the sensor. Kind of like the use case of sticking it to a sectional roller door.

Has anyone gotten this to work? It is not added in the release notes for 0.80 or have I missed it?

It’s not developed yet for HA. It doesn’t work in MI Home app and if you are creative you can get it to work (sort of). I’m finding my hack isn’t reliable because MI Home isn’t reliable. Once it is developed then happy days.

A pull requests has been merged. The question is if it made it into 0.80. Xiaomi documentation was updated as supported but code doesn’t seem to have made it into 0.80.

I didn’t realise that. In that case I’ll pull down the changes myself. It’s a cool device.

Did you get it to work? People using zigbe2mqtt and those using deconz seem to get it to work but I havent seen anyone having the new sensor with xiaomi hub / gateway getting it to work (not showing up although it is available in mi home app.).

I manually imported the 2 changed files from above PR to my HA test system and the new vibration binary sensor has shown up in HA.

It seems to be working (last action does, at least), but I’ll need to check further in the coming days.

And you are using the xiaomi gateway? Did you restart the gateway? How can I see on github which release a pull request was added to?

Usually it has a reference to another PR for the release itself, once it appears as merged.

Honestly that seems to be missing from this PR, so I’m not quite sure in which release this will actually be included, that’s why I decided to give it a try by myself.

The documentation has been added since 0.80. That’s why I thought the rest was added as well. But now I am unsure.

So can it detect vibration on a washing machine? I would love to stick one on the machine to detect is the machine still running or not.

While I’ve not tested that use case, I believe it should easily detect washing machine vibrations.

2 Likes

Why not detect it from a power monitor? There is sample code to create a template sensor based on power usage.

1 Like

I wanted to attach it to a washing machine however it would’t pick vibrations up most of the time, my washing machine is too still, I suppose… since I already have sensors for nearly everything and I have ran out of ideas I decided to attach it underneath the fridge door, so whenever it is opened my google home mini tells me random fat jokes

3 Likes

Ha ha ha! Thats one way to use it.

That’s actually brilliant!

Got this today, refreshes very quickly in the deconz-gateway when moving/tilting it, unfortunately the only thing that shows in HA so far is the battery level as a sensor, which is… not very useful for now. Will keep at it obviously…

For me I was hoping to stick it inside the bell of our doorbell to detect when someone rings the door, and trigger a camera - without getting a digital doorbell.

That’s not true, the information is available as events. Take a look at this

1 Like