@veeceeoh Have you had the time/desire to work on this? If not, would you know if the sensitivity setting resides on a chip inside the sensor, or Aqara cloud service? In other words, would I be able to pair the sensor with a Xiaomi hub, change the setting, then connect to ST with the new sensitivity setting in place?
Thanks for all the work you’ve done on developing the DTH’s for Xiaomi sensors!
Hi; I’m using your Aqara/Xiaomi Vibration Sensor DTH and it seems to be very reliable. But I have been researching the sensitivity level settings and it seems that it’s always blank. I’ve tried using “changesensitivity” routine in your DTH, which if I read it correctly (I don’t know Java/Groovy ) it should at least reset to the value of “1”. Have you tested this? Or do you suggest I use the bspranger DTH … much obliged
I bought one out of curiosity and never got around to testing it to any great extent. Clearly I never got around to finishing converting the handler to my tastes as the sensitivity stuff was clearly only half done, though I’m not convinced it would ever have worked to set the sensitivity in the first place.
Yeah I’ve been spending a lot of time with this one and it certainly behaves differently than the bspranger’ DTH. In many ways I prefer yours, as it seems to report more information. But I haven’t been logging the differences becasue I wasn’t sure I knew what I was doing anyway. so I’ll try & do that this weekend and get you some feedback.
FWIW: Yeah I’m beginning to think I don’t have a use for this sensor either. It seems to log vibration in ‘activity level’ (the bovious difference with 'bspranger DTH) but there’s no event tied to that so I can’t use it directly. What seems to be the ‘vibration event’ is really an acceleration event (as you know) but it has to be fairly violent (like a physical shake of the sensor). I was trying to detect if my compressor in the shop was left on becasue it doesnt run continuously so if left on it may start running in the middle of the night … very annoying. But if the sensor isnt vibration sensitive enough that becomes a problem.
I’ll let you know if I get anymore info on your DTH.
PS: I’m using all your Aqara/Xiaoma DTHs and they seems to work fine for me on my ST v3
I swapped the mapping of ‘vibration’ and ‘tilt’ from the bspranger DTH. The app presents the acceleration attribute as ‘Vibration’ (no idea why) so it made sense to use that for vibration, meaning tilt is now motion.
I’m not entirely sure what the activity level actually is. It seems to be an indication of recent activity. I can see it decreasing with time when my sensor does nothing. It seems to be displayed on the dashboard tile at the moment. That certainly isn’t intentional. I think it is a side effect of fixing the custom capability presentation.
I remembering staying up way too late messing with it, and I think I forgot all about it when I woke up. The reopening of schools has thrown me out a bit.
I think I concluded that I inherited code that might well set the sensitivity (I take it on trust that those who worked on it previously weren’t making it up) but probably couldn’t read the current setting. I don’t seem to have pushed the latest version yet which I think introduced bugs that weren’t in the ‘bspranger’ version.
So I got a mijia smart hub and connected the vibration sensor. Changed the sensitivity in the mi home app and wow so much more sensitive- just no way to use mijia automations based on when vibration is no longer detected. Shame it isn’t more sensitive in smartthings
Have anyone been successful with sensitivity increase on those sensors; maybe by using samsungs CLI? Standard sensitivity is not good at all… I saw some proposal with other hubs, but on ST it is very quite