Announcement

Collapse
No announcement yet.

Xiaomi vibration sensor

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

  • #16
    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.

    Comment


    • #17
      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.
      -- Wim

      Plugins:RFXCOM, HSTouch Server, Squeezebox, BLGData, Restart, Jon00's Perfmon and Network monitor, WeatherXML, BLBackup, TenScripting, BC4, Pushover, PHLocation, JowiHue, Zwave, Sonos
      650 devices ---- 336 events ----- 40 scripts

      Comment


      • #18
        Nice ! Thanks for the update Wim

        Comment


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

          Comment


          • #20
            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

            Comment


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

              Comment


              • #22
                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.

                Comment


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

                  Comment


                  • #24
                    How about a glass break detector?
                    HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

                    Comment


                    • #25
                      They would likely report vibration at various points in the wash cycle. For dryer will depend upon the damping design of the dryer. In both cases the issue is to know when it actually stopped as there is not a "vibration stopped" event reported.

                      Typically the washer is the more difficult because of its various cycles and delays that change based upon settings for type of wash. The approach that I believe will give better result than vibration is power monitoring as the current used at various cycles is more deterministic than vibration.

                      Comment


                      • #26
                        prsmith777 I was hoping for that, but so far no, they are not sensitive enough for that. I have tested them here on the dryer, dishwasher and washing machines without luck.

                        They are good for noticing rougher movements. I have heard from other users that it would notice a person on a chair... but I guess that also depends on the chair movements (heavy/light etc)
                        I am using it for now on the wifes juwelbox
                        -- Wim

                        Plugins:RFXCOM, HSTouch Server, Squeezebox, BLGData, Restart, Jon00's Perfmon and Network monitor, WeatherXML, BLBackup, TenScripting, BC4, Pushover, PHLocation, JowiHue, Zwave, Sonos
                        650 devices ---- 336 events ----- 40 scripts

                        Comment


                        • #27
                          Originally posted by langenet View Post
                          How about a glass break detector?
                          That would work probably, as long a large part of a window breaks...
                          -- Wim

                          Plugins:RFXCOM, HSTouch Server, Squeezebox, BLGData, Restart, Jon00's Perfmon and Network monitor, WeatherXML, BLBackup, TenScripting, BC4, Pushover, PHLocation, JowiHue, Zwave, Sonos
                          650 devices ---- 336 events ----- 40 scripts

                          Comment


                          • #28
                            I did a load of laundry for a test. We use a 2 yr old top loader. Vibration was detected at many cycles with a total of 30 reports over the 50 minutes. The log is shown below. A quick scan shows relatively even spacing of the reports so one would not be able to isolate the particular washing cycle which is good for detecting done. Something like 5 minutes after last report would be a reasonable "done" indication for my case.

                            I have tested them here on the dryer, dishwasher and washing machines without luck.
                            Perhaps changing the sensitivity to high may improve success for your equipment. In my case our dishwasher is so quiet that no vibration would be detectable.



                            Code:
                              zigbee2mqtt:info 2018-12-13 11:22:51 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":6094848,"battery":99,"voltage":3015}'
                              zigbee2mqtt:info 2018-12-13 11:24:04 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":6094848,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:25:05 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":6094848,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:28:04 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":7274496,"battery":99,"voltage":3015}'
                              zigbee2mqtt:info 2018-12-13 11:28:08 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":7274496,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:29:17 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":7274496,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:30:17 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":7274496,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:31:17 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":7274496,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:33:04 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":7,"unknown_data":3080192,"battery":99,"voltage":3015}'
                              zigbee2mqtt:info 2018-12-13 11:34:29 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3080192,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:35:30 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3080192,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:36:30 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3080192,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:37:31 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3080192,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:38:29 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3014656,"battery":99,"voltage":3015}'
                              zigbee2mqtt:info 2018-12-13 11:38:32 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3014656,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:39:55 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":3014656,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:43:10 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3014656,"battery":99,"voltage":3015,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:43:29 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":2752512,"battery":99,"voltage":3015}'
                              zigbee2mqtt:info 2018-12-13 11:43:30 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":2752512,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 11:47:57 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":2752512,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:48:57 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":2752512,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:49:57 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":2752512,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:50:57 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":7,"unknown_data":2752512,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:51:57 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":7,"unknown_data":4653056,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 11:52:57 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":6815744,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 11:53:27 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":6815744,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:54:28 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":6815744,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:55:28 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":6815744,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:57:58 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":5308416,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 11:58:58 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":5308416,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 11:59:58 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":5308416,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:02:58 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3670016,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 12:03:35 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3670016,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:04:35 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":3670016,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:05:35 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3670016,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:06:35 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":3670016,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:07:36 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":3670016,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:07:59 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":5636096,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 12:08:36 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":5636096,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:08:59 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":7,"unknown_data":8060928,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 12:09:36 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":8060928,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:09:59 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":2,"unknown_data":8060928,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 12:10:36 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":7,"unknown_data":8060928,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:10:59 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":8060928,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 12:11:40 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":8060928,"battery":99,"voltage":3005,"action":"vibration"}'
                              zigbee2mqtt:info 2018-12-13 12:11:59 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":5,"unknown_data":8257536,"battery":99,"voltage":3005}'
                              zigbee2mqtt:info 2018-12-13 12:12:46 MQTT publish, topic: 'zigbeeWA/0x00158d0002b23edc', payload: '{"angle_x":4,"angle_y":1,"angle_z":86,"angle_x_absolute":86,"angle_y_absolute":89,"linkquality":0,"unknown_data":8257536,"battery":99,"voltage":3005}'

                            Comment


                            • #29
                              I just received another care package of sensors and switches from Xiaomi. However, I'm having trouble using .54 of deConz. As soon as I hold the small button for 5 seconds, deConz crashes, then comes right back. The sensor added, however, it does not show in JH HS3. Should I go back to .52 and try again?

                              Why wait, I went back to .52 and the sensor appeared as a switch with a battery child. I get reports of shaked, tilted, dropped. I see a sensitivity setting of 0-21. Anyone have any luck with this? I don't see anywhere to put low, medium, high sensitivity.

                              Comment


                              • #30
                                Originally posted by prsmith777 View Post
                                Would these vibration sensors work on a washer and dryer to sense when they are in use?
                                I don't see it as sensitive enough for washer or dryer sensor. However, I did also get delivery of the same size unit as a temp/humidity/pressure sensor. http://bit.ly/2shthKY
                                I'm going to attach it to the dryer hose and try writing an event that picks up on the temperature drop when complete.

                                Comment

                                Working...
                                X