I want adjust my smartthing sensor vibration sensitivity in driver code . kindly provide code for me. how to turn it manually

i want adjust my smartthing sensor vibration sensitivity in driver code . kindly provide code for me. how to turn it manually

Hi @user2272 , welcome to Hubitat Community forum!

There are at least three different versions of Samsung multipurpose sensors, but none of them allows configuration of the sensitivity of the the acceleration sensor.

The Tuya Zigbee Vibration Sensor driver supports also one of the Samsung multipurpose sensor models (although this is not advertized as there is a well working HE inbuilt driver).

You can see the code that handles the Samsung three-axis sensor reports in the driver published in Github. Unfortunately, there is no way to configure or decouple the acceleration binary attribute from the three-axis reporting.

2 Likes

Hubitat Rule Machine is a very powerful tool, if you are trying to avoid random triggering caused by short-time vibrations, you can try the following :

  • create a virtual vibration sensor
  • try to make a RM5.1 rule, which will :
    • activate the virtual vibration sensor only when there are at least 5 seconds of uninterrupted acceleration activity reported by the Samsung physical sensor.
    • deactivate the virtual vibration sensor immediately after the Samsung sensor reports acceleration inactive.

.. something like this. You will need to experiment with the timings to achieve a filtering that suits your case. The price will be delaying the virtual vibration sensor activation with the filtering time value.

2 Likes

This is how I desensitize mine in RM by requiring a specified amount of movement and a 5 min hold between retriggers. Hope this helps.

3 Likes

You can review all the groovy code that the smartthings developers posted to GitHub years ago for yourself.

It is still publicly available even though smartthings has since moved on from using Groovy for their device handlers.

1 Like