Piston to check the state of door lock and door sensor


#1

1) Give a description of the problem
I am wondering if there is a way to poll a device and have the state of that device sent as a PUSH notifiction or an SMS. Thanks for any help.

2) What is the expected behaviour?
Leaving the house, i would like the piston to poll my garage door lock and all door sensors to check their current state. If, unlocked, then lock it. Recheck in 1 minute (or however long), repeat if door didnt lock. After door is confirmed locked, end piston.

3) What is happening/not happening?
(PUT YOUR INFO HERE)

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Here is the piston I use for the same purpose… Hope it helps…
But even then, I find the door remaning unlocked 5% of the time:)))))


#3

And this is the piston locks the door. (the first one I posted for safety check)


#4

Thank you! I will check these out and let you know how it turns out.


#5

I appreciate the piston example. I will get something working from that. What I really need is a way to confirm the lock has actually locked.

Many thanks!


#6

That is not 100% possible because Webcore gets the info from ST app and ST app gets the info from the lock. And ST app is not the greatest app around:) it’s like having 3 friends but one of them randomly lying:))

Or IF it’s possible I honestly don’t know a way.

My way of making sure it’s actually locked is, indoors Wyze camera…


#7

LOL! Thanks for the analogy. I was hoping there may be a way around it. I could do a camera, but I really like automation and figured with all this technology and super bright people here, there would be a way for ST to somehow ask my lock it is, in fact, “locked” and then return that value to me via webcore.

There probably is a way, but its far over my head… lol thanks again


#8

Don’t get me wrong, Webcore and ST hub do what you want but just not 100% reliable that’s all…
my first posted piston checks the lock and if lock is in unknown state or unlocked state, it sends a signal to lock it…
But here is what MAY happen,
Let’s say I left the house at 2.15pm
And somehow it remained UNLOCKED
the other piston gets executed after 15 minutes,
2:30 Webcore sends another LOCK command,
just at that time if there is signal jam, or something, anything, the lock won’t be locked.
And webcore thinks it’s locked.

What you can do is, create a piston that sends LOCK command every minute for 10 times lets say,
one of them for sure will work.


#9

That sounds like a good idea as well. Ill dig in and get back to you. Thank a lot for the help!