If Garage Open for More Than 30 Minutes Close (Help)

wmcgalrd

New Member
I am trying to write a program that will shut the garage door automatically after it has been open for more than 30 minutes.  I have already created a button that I use to open and close the garage.  I would also like for the program to check the condition of the garage door after 30 minutes before closing it so that it doesn't open again if it was manually closed by someone. 
 
Thanks
 
I didn't follow that last part about not opening again if manually closed.  You want a rule that will disable someone from opening the door with your button?   
 
That sounds a bit dangerous.
 
If you want something to auto-close in 30 minutes (which also sounds a bit dangerous), I would think WHENEVER the zone becomes violated (open) you start an output running for 30 minutes, with it set so it resets the clock on multiple events.  Then when the output turns off AND the door is open, close it.
 
But again, automatically closing a door, or preventing a human from opening it, would both scare me a bit.  
 
If you want to not forget to close it, you could always voice announce "Your door is still open" every 30 minutes that it's open or some such?   
 
WHEN Garage door NOT READY
     THEN Garage door timer ON FOR 30 MINUTES
 
WHEN Garage door timer OFF
AND IF Garage door NOT READY
     THEN Garage Door Relay ON FOR 3 SECONDS
 
To make it perfect I'll add:
 
WHEN Garage door SECURE
     THEN Garage door timer OFF
 
(not sure it will work setting it to OFF, I think you must set the value to 0 so the "WHEN Garage Timer OFF" command won't trigger).
 
So when the door is closed the timer is aborted. If not you could have the door open, then close it instantly, reopen 29 minutes later and the auto-close will trigger. It's a remote possibility I admit, just wanted to point this out in case someone would like to use the code for something else.
 
tigers said:
To make it perfect I'll add:
 
WHEN Garage door SECURE
     THEN Garage door timer OFF
 
(not sure it will work setting it to OFF, I think you must set the value to 0 so the "WHEN Garage Timer OFF" command won't trigger).
 
So when the door is closed the timer is aborted. If not you could have the door open, then close it instantly, reopen 29 minutes later and the auto-close will trigger. It's a remote possibility I admit, just wanted to point this out in case someone would like to use the code for something else.
No need for that block of code
When the timer runs out, the second block above only executes if the door is not ready.
If the door reopens, the timer gets reset to 30 minutes.
Turning the timer off when the door closes is redundant.
 
Desert_AIP said:
No need for that block of code
When the timer runs out, the second block above only executes if the door is not ready.
If the door reopens, the timer gets reset to 30 minutes.
Turning the timer off when the door closes is redundant.
You are right, I didn't think of it restarting.
 
Put a motion detector in your garage and reset the timer every 30 mminutes when not secure. That way if you or kids are mucking about in the garage, the door does not close on you until there has been no movement in the garage for at least 30 consecutive minutes. You can also use that motion to flip your lights on in the garage, I hate tripping over stuff in the dark! And when armed away adds to security of the home.
 
getmp3s said:
Put a motion detector in your garage and reset the timer every 30 mminutes when not secure. That way if you or kids are mucking about in the garage, the door does not close on you until there has been no movement in the garage for at least 30 consecutive minutes. You can also use that motion to flip your lights on in the garage, I hate tripping over stuff in the dark! And when armed away adds to security of the home.
This line of code works very well for me.
I use 30 minutes during the day and 10 minutes at night, when system armed, and after arm delay, it closes the door in 90 seconds.
I also have a notification speaker in garage warning you that the door will close in 10 seconds (using a 15 sec flag).
 
 
24.    WHEN AWAY
        AND IF Garage Door NOT READY
            THEN GarageMotion ON FOR 90 SECONDS
            THEN Front Flag ON FOR 90 SECONDS
25.    WHEN Garage Motion SECURE
        AND IF Garage Door NOT READY
        AND IF AWAY
            THEN Front Flag ON FOR 90 SECONDS
            THEN GarageMotion ON FOR 90 SECONDS
26.    WHEN MotionOutsideFr SECURE
        AND IF Garage Door NOT READY
        AND IF AWAY
            THEN Front Flag ON FOR 90 SECONDS
            THEN GarageMotion ON FOR 90 SECONDS
27.    WHEN Front Flag OFF
        AND IF ARMING AWAY
        AND IF Garage Door NOT READY
        AND IF Garage Flag OFF
        AND IF GarageMotion OFF
            THEN Garage Flag ON FOR 15 SECONDS
            THEN SAY GARAGE DOOR CLOSE IN TEN SECONDS
28.    WHEN Garage Flag OFF
        AND IF ARMING AWAY
        AND IF Garage Door NOT READY
        AND IF Front Flag OFF
        AND IF GarageMotion OFF
            THEN Garage Door ON FOR 1 SECOND
29.    WHEN Garage Door NOT READY
        AND IF TIME CLOCK 3 ENABLED
            THEN Front Flag ON FOR 30 MINUTES
            THEN GarageMotion ON FOR 30 MINUTES
            THEN SAY GARAGE DOOR CLOSE IN THIRTY MINUTES
30.    WHEN Garage Motion SECURE
        AND IF Garage Door NOT READY
        AND IF TIME CLOCK 3 ENABLED
            THEN Front Flag ON FOR 30 MINUTES
            THEN GarageMotion ON FOR 30 MINUTES
31.    WHEN MotionOutsideFr SECURE
        AND IF Garage Door NOT READY
        AND IF TIME CLOCK 3 ENABLED
            THEN Front Flag ON FOR 30 MINUTES
            THEN GarageMotion ON FOR 30 MINUTES
32.    WHEN Front Flag OFF
        AND IF TIME CLOCK 3 ENABLED
        AND IF Garage Door NOT READY
        AND IF Garage Flag OFF
        AND IF GarageMotion OFF
            THEN Garage Flag ON FOR 15 SECONDS
            THEN SAY GARAGE DOOR CLOSE IN TEN SECONDS
33.    WHEN Garage Flag OFF
        AND IF TIME CLOCK 3 ENABLED
        AND IF Garage Door NOT READY
        AND IF Front Flag OFF
        AND IF GarageMotion OFF
            THEN Garage Door ON FOR 1 SECOND
34.    WHEN Garage Door NOT READY
        AND IF DARK
        AND IF TIME IS LESS THAN 6:00 AM
        AND IF TIME IS GREATER THAN 6:00 PM
            THEN Front Flag ON FOR 5 MINUTES
            THEN GarageMotion ON FOR 5 MINUTES
            THEN SAY GARAGE DOOR CLOSE IN FIVE MINUTES
35.    WHEN Garage Motion SECURE
        AND IF Garage Door NOT READY
        AND IF DARK
            THEN Front Flag ON FOR 5 MINUTES
            THEN GarageMotion ON FOR 5 MINUTES
36.    WHEN MotionOutsideFr SECURE
        AND IF Garage Door NOT READY
        AND IF DARK
            THEN Front Flag ON FOR 5 MINUTES
            THEN GarageMotion ON FOR 5 MINUTES
37.    WHEN Front Flag OFF
        AND IF DARK
        AND IF Garage Door NOT READY
        AND IF Garage Flag OFF
        AND IF GarageMotion OFF
        AND IF TIME IS LESS THAN 6:00 AM
        AND IF TIME IS GREATER THAN 6:00 PM
            THEN Garage Flag ON FOR 15 SECONDS
            THEN SAY GARAGE DOOR CLOSE IN TEN SECONDS
38.    WHEN Garage Flag OFF
        AND IF DARK
        AND IF Garage Door NOT READY
        AND IF Front Flag OFF
        AND IF GarageMotion OFF
            THEN Garage Door ON FOR 1 SECOND
39.    WHEN Garage Door ON
            THEN Relay Contro ON FOR 1 SECOND
40.    WHEN Relay Contro OFF
            THEN Garage Door OFF
 
 
I have my system alert me though text.  Then I close it by opening HSTouch, where i have a video feed looking across where the door will close, so I can visually see that there is nothing in the way of the door.
 
Then I activate an event, which first toggles a musical "dinger", while flickering the light up and down.  After doing that for about 30 seconds, then I activate the relay, wired in parallel to the manual push button.
 
I agree about not having it be automatic.
 
--Dan
 
Here too look via an inside facing out IP camera and an outside facing the garage door camera and I manually shut it remotely with a visual confirmation.
 
I did have it configured in an automated sequence thing with the old home / alarm and sensors.  It worked fine except for one day (and I always write this).
 
Wife was on a conference call and pulled into the garage and sat on the phone with the car running.  The timer triggered and the garage door shut.
 
The above noted I did put in my gotcha sensors and over rides but decided best not to play.  I do today though get reminders inside via TTS and outside via mobile phone if I forget using the same stuff as above.
 
jlehnert said:
WHEN Garage door NOT READY
     THEN Garage door timer ON FOR 30 MINUTES
 
WHEN Garage door timer OFF
AND IF Garage door NOT READY
     THEN Garage Door Relay ON FOR 3 SECONDS
 
Would this timer reset if the garage door was closed and opened again within the 30 minutes?
 
Back
Top