1) Give a description of the problem
Trying to implement a piston where if someone knocks on the door which has ST multi sensor, then a command is sent to speaker. Right now I have a setup where if doorbell is pressed, then speaker plays a dog barking mp3. Want to do the same when someone knocks on the door. ST has a door knocker app but it wont let me turn on/off a virtual switch so creating a virtual switch is not an option. Any suggestions?
Knock on door and speaker
I don’t see an option for vibration. Do you mean acceleration? I am using ST multi open/close sensor on the door.
waited for a while and finally decided to pull plug on Fabriq.
Don’t want to wait anymore for GH to start pushing out notifications.
Did not work. Plus every time when the door opens, it registers the acceleration which does not help.
Any further on this?
I’m trying to introduce a ‘heightened’ sense of awareness for security purposes. i.e. if I’m away on Holiday or it really is the middle of the night any vibration on the front or rear door becomes more noticed, triggers lights to come on after a simulated ‘walk down stairs’
For what it’s worth, if I place the sensor on a desk and knock on the underside of it, in the Smartthings IDE I can see
Date Source Type Name Value User Displayed Text Changed
2018-01-05 8:49:29.813 AM GMT
moments ago DEVICE threeAxis -1568,27,41 Backdoor threeAxis is -1568,27,41 true
so perhaps testing the x, y and x axis together for changed might work?
I’m going to test it, will report back.
So what will grab you some movement is:
on events from
SENSOR’s threeAxis
do
//something
What I want to do then is wait thirty seconds and turn a light on. As Timer is a top level object and do/while seems not quite right I’m still looking but in any case, that will grab a bit of movement. You could combine it with no change in the open/closed status to save detecting if the door has actually been opened so something like AND IF SENSOR status is closed in the last n seconds
Cheers,
BDB