Xiaomi Vibration Sensor Use Cases

I have had 2 of these Xiaomi Vibration Sensors in my possession collecting dust for the past few months. I had originally thought to use one on my office chair to detect presence at my desk to automate the light but I use a strategically placed motion sensor under the desk which works perfectly. Another idea I had was to use as a bed occupancy sensor however I have deployed a weigh sensor in conjunction with my fitness band to detect bed occupancy for automations.

I am now throwing it out to the community would love to hear how poeple are using these sensors or any ideas are welcome they need a use. p.s. I tried deploying one on top of my shower head but it didnā€™t detect vibration whilst the water was running would have been nice to automate exhaust fan/heater only whilst water is running.

I use one to notify when my cat is using his litter box. Got an automation set, that triggers after 3 visits, so I know when to scoop his poop :slight_smile:

People also use them to notify when the washer is done.

8 Likes

Iā€™m planning to use one for woodpecker detection, just need to find a way to water proof it.

1 Like

I have it stuck on my mailbox.

3 Likes

@LarsNorgaard No turd laying pets but a good idea.
@PrairieSnpr donā€™t have wood peckers here are you wanting to know so you can feed them or remove them? I get kookaburra at my place and have been feeding by hand but was contemplating building a feeding deck for them.


@bbrendon great idea that is one of them used.

3 Likes

@jimpower Not to feed them, although I would gladly feed them if we could come to an agreement. My house has ceder siding and I have a specific woodpecker who likes to cut three inch nesting holes in my house. I repair them when Iā€™m home and within a day or so he will have cut another one. Iā€™m planning on setting up a strobe light so that when I detect pecking I can turn the strobe on and hopefully he will decide to hang out somewhere else.

3 Likes

1 - Smartifying my old washing machine, by using the Vibration sensors to get a ā€œwash completeā€ notification when the vibration stops. I just got the sensors in the mail so I am not finished characterizing the wash cycle to get an ok automation.

2 - Direction of stuff, since the ā€œcoordinationā€ sensor output from the Vibration sensor looks like a 3-axis accelerometer. I put a Vibration sensor inside a 3D-printed cube* and use it as a 6-sided switch:

sensor:
- platform: template
  sensors:
    face_up_xxxx0000000001:
      friendly_name: 'Vibration sensor face up'
      value_template: >-
          {% if states.sensor.coordination_xxxx0000000001.state == 'unknown' %}
            unknown
          {% elif states.sensor.coordination_xxxx0000000001.state.split(',')[0] | int > 700 %}
            1
          {% elif states.sensor.coordination_xxxx0000000001.state.split(',')[0] | int < -700 %}
            2
          {% elif states.sensor.coordination_xxxx0000000001.state.split(',')[1] | int > 700 %}
            3
          {% elif states.sensor.coordination_xxxx0000000001.state.split(',')[1] | int < -700 %}
            4
          {% elif states.sensor.coordination_xxxx0000000001.state.split(',')[2] | int > 900 %}
            5
          {% elif states.sensor.coordination_xxxx0000000001.state.split(',')[2] | int < -400 %}
            6
          {% endif %}

*You may ask yourself ā€œWhy not use the Aqara Cube for this?ā€ Well, using a generic Zigbee dongle will let you extract this info, but I am using the Xiaomi gateway. My research shows this combination does not support showing which face is pointing up on the Aqara Cube at the time being. Someone please tell me I am wrong.

3 Likes

I found the output from the vibration sensor unusable in most cases unless there is a last_seen type event. Washing and Dryer automations I handle with a smart plug power consumption and a xiaomi door sensor to reset. Works everytime ill be interested in how you handle the last vibration received to achieve this.

I have been tossing up getting a 3d printer would be good for printer notifications but I think octoprint can handle this already.

I also have two if these collecting dust. I wish I had seen this post before I ordered them. My intent was to use them to detect vibration on my washer and dryer but quite honestly, no amount of vibration has been able to get it to trigger, unless I bumped it lightly then it would send ā€œvibrateā€.

You can configure the sensitivity using the mi Home app.

My dryer is really quiet but the sensor can detect when itā€™s running, the sensor is glued directly to the door.

Maybe you would have better luck sticking it to the back of your machine?

Iā€™m using a countdown with the ā€œvibrateā€ status to use the vibration sensor.

See here:

1 Like

Is it possible to use these without the Xiaomi bridge? Can I just use Zigbee? If soā€¦ can I change the sensitivity without the bridge?

Thanks!

Iā€™ve seen someone else mention the sensitivity can be adjusted. Iā€™m using a zigbee2mqtt gateway though so I dont believe Iā€™ll be able to use the mi home app.

Iā€™ve no idea if you can change the sensitivity using another way than the xiaomi hub, but thatā€™s totally doable with the Mi App and the Hub.

Thanks for letting me know I never use the app will look at revisiting these sensors still waiting for a decent use case for them at the moment I tried letter box but itā€™s too far from my network

Iā€™ve been thinking of using them for security purposes to detect glass breaks on windows. Havenā€™t tried it yet since i"m still working on a stable zigbee setup but that is the plan.

You can adjust the sensitivity using zigbee2mqtt:

Topic: zigbee2mqtt/[DEVICE_ID]/set
Payload: { "sensitivity": "medium" }

Possible values: ā€˜lowā€™, ā€˜mediumā€™, ā€˜highā€™

7 Likes

Iā€™ve read this in the zigbee2mqtt documentation as well, and every time Iā€™ve tried I receive an error in my ZigBee2MQTT log. I cat remember what it is at this moment unfortunately.

Iā€™ve got a variety of Xiaomi Aqara sensors (motion, vibration, temp/humidity, leak, etc) via HUSBZB-1. Not sure how to change the sensitivity though.

Iā€™m using Vibration sensor for bed occupancy.