Xiaomi Vibration Sensor Use Cases

@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.

Could you elaborate on that? How is it mounted and how are your automation set up?

I have one in the cushion of my sofa, you never sit perfectly still so the changes it picks up are a trigger to turn on the living room lights when the sun is below the horizon.

Have tried to change the sensitivity without much luck I think, not sure how to confirm what it is set to at the moment.

2 Likes

Sensor is placed in a pillow, and any change of state is triggering ‘sleep_time’ scene.
Obv You should consider more variables like: time range etc , cause for an example my cat like to trigger sleep mode at 12am :japanese_ogre:

2 Likes

Hello!! I have the same sensor, there is a way to do only one trigger for each sensor?
Because the sensor have 2 state, vibration or tilt, I have 10 of this sensor so I need to do 20 trigger…
Thanks a lot
Stefano

I had spares laying around and implemented this. Works great so far.