Close the Garage Door When Motion Stops OR after a period of time with no Morion


#1

1) Give a description of the problem
I have a piston that open the garage door when i arrive. I have a motion sensor in the garage as well. I want the door to close after three minutes after there is no motion. I only want the door to automatically close when this piston is what opened the door. The auto close with no motion is my problem. I also want to to auto close even if there was no motion. For example, I ended up not going in the garage afterall.

I guess what I really need is a 3 minute Garage door countdown timer that starts over every time motion is detected?

2) What is the expected behavior?
Open the door, close the door after 3 minutes, unless there is motion in the garage.

3) What is happening/not happening?
Right now, one of two things. The door opens and then closes right away or sometimes does not even open. pretty sure its my choice of stays inactive for the trigger.

4) Post a Green Snapshot of the pistonimage


#2

I’m going to try answer my own question… Maybe. I missed the “Stays unchanged” trigger. I’ll test tonight, but that seems like it would work right. I’m only working on the bottom part of my piston (unless changes above would improve he bottom)

If I understand “stays unchanged for 3 minutes”, that should work right. You come in and out of garage, motion is active, and then inactive, trigger would not activate unless there was 3 minutes of continuous motion, or 3 minutes of continuous inactivity. but, If I the motion sensor was inactive, and no one activated it, then after 3 minutes the trigger would be true? Or would it be true as soon as it started since it had already been unchanged for hours?


#3

I’m relatively new to webCoRE, so take this feedback accordingly… :slight_smile:

If “stays inactive for 3 minutes” does what one would expect (i.e., triggers after the sensor is seen as active followed by 3 minutes of inactivity), I think it should work as you have it written.

However, are you absolutely sure the motion sensor will always see activity in your scenario? If there’s any chance it might not, (and you’d still want the door to be automatically closed 3 minutes after the piston opens it) then something like this might work better:

There may be a better way to do this, but I tested this using a simulated presence sensor and simulated motion sensor, and it appeared to function as expected.


#4

This is great. It’s exactly what I was looking for. The main issue, which this resolved, was the possibility of no motion. I had been using a similiar version of this for a while without much of an issue. Most of the time, the garage door itself triggers motion, but the other day it did not, and I ended up not going into the garage. Thats when I realized that there was a flaw.

Thanks again