Announcement

Collapse
No announcement yet.

Xiaomi vibration sensor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • prsmith777
    replied
    Would these vibration sensors work on a washer and dryer to sense when they are in use?

    Leave a comment:


  • Michael McSharry
    replied
    I tested the Xiaomi sensor vibration sensitivity based upon the three available low, medium and high settings. Low is really low and hard to get it to report vibration. High still needs a deliberate degree of motion so this sensor is not useful for detecting subtle movements. In general it employs a low pass filter so does not report immediate changes in any given direction, but once a new position is established it will report it. Looks to be a design to maximize battery life.

    Leave a comment:


  • racerfern
    replied
    MattLau Thanks, when I searched on both gearbest and aliexpress nothing was returned on either. Now it works perfectly, of course.

    Leave a comment:


  • MattL0
    replied
    Originally posted by racerfern View Post
    Can someone please provide a link for this vibration sensor? I can't find it on gearbest or aliexpress.
    https://www.aliexpress.com/item/Xiao...d-3e7376992486

    https://www.aliexpress.com/wholesale...rbation+sensor

    Leave a comment:


  • racerfern
    replied
    Can someone please provide a link for this vibration sensor? I can't find it on gearbest or aliexpress.

    Leave a comment:


  • MattL0
    replied
    Nice ! Thanks for the update Wim

    Leave a comment:


  • w.vuyk
    replied
    Matt,

    It was hard for the developr to get to write to the vibration sensor, so it could not be done through the rest api. But it seems that he found a way just now.

    https://github.com/dresden-elektroni...in/issues/1017

    The Xiaomi sensors are very quite, there are only two ways to query data (ZDP, ZCL)
    • Within 500 milliseconds after the hourly special report is received
    • Read a single attribute in cluster info, and quickly press the button on the sensor once
    • For switches it seems to be possible to 5 times press a button to trigger a parent/mac poll request

    Just added some code to automatically read the datecode of Xiaomi end-devices (after hourly report) if it works we can use this to queue pending tasks like the vibration sensor configuration in this manner.

    Leave a comment:


  • MattL0
    replied
    Originally posted by fresnoboy View Post
    This is great!

    Can you program the sensitivity levels? You are supposed to be able to set the sensitivity of the sensor to low, medium and high.

    thx
    mike
    Seems to be added to 2.05.50 but if I understand correctly, not available on the rest api?

    https://github.com/dresden-elektroni...gin/issues/748

    @manup can you please send me the general.xml file with the line for setting the sensitivity?
    It's part of deCONZ 2.05.50, but it doesn't work without hacking the database since the node descriptor has the wrong manufacturer code.

    Leave a comment:


  • w.vuyk
    replied
    Mike,

    No, not yet as it is not implemented in the REST API. The developers are still looking into it, but it might not be possible. It seems to be complicated so far. But if they are going to support it, I will implement it in the plugin as wel.

    Wim

    Leave a comment:


  • fresnoboy
    replied
    This is great!

    Can you program the sensitivity levels? You are supposed to be able to set the sensitivity of the sensor to low, medium and high.

    thx
    mike

    Leave a comment:


  • w.vuyk
    replied
    Great!! Thanks!

    Leave a comment:


  • mk1 black limited
    replied
    Seems to work
    Click image for larger version

Name:	Screenshot 2018-11-11 at 15.04.14.png
Views:	159
Size:	45.8 KB
ID:	1258618

    Leave a comment:


  • mk1 black limited
    replied
    Will try.

    Leave a comment:


  • w.vuyk
    replied
    Thanks!

    Attached is an updated JowiHueImports.xml. Place this file in the \Config directory of your HS3 installation. Then check the log, within 30 minutes the plugin should see the file and import it. Once this is done, go to the parent device of the vibration sensor and opn properties. On the JowiHue tab, press the button "Rebuild device values". From there the status of the device should show with logical description?

    Wim
    Attached Files

    Leave a comment:


  • mk1 black limited
    replied
    1007 Shake
    1008 Drop
    1009 Tilt

    See: https://github.com/dresden-elektroni...gin/issues/748

    Leave a comment:

Working...
X