Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Garage Door Program - Advanced

Featured Replies

Posted

Hey there guys ! 

I have this program running, it works great so I would like to share with you and ask if there is any other way of writing the code or if you guys know any other idea for the program ! Take Care !

 

Here is my Garage Program:

(I have two garage doors, so this is for mine)

(I also have a motion sensor in the garage because sometimes I'm working there so I don't want every 5 minutes the garage closing and me fighting against the doors... lol)

 

 

T1-Garage Thiago Auto Close - check

(Note the sign += , that keeps adding 1 to the variable every time the program runs)

If
        Status  'Garage Thiago - Sensor' is On
    And Status  'Garage Motion-Sensor' is Off

Then
        Wait  5 minutes and 20 seconds
        $Thiago_Garage += 1

Else
        $Thiago_Garage  = 0

T2-Garage Thiago Auto Close - run

If
        $Thiago_Garage >= 1

Then
        Wait  15 seconds
        Set 'Garage Thiago - Relay' On
        Run Program 'T1-Garage Thiago Auto Close - check' (If)

Else
   - No Actions - (To add one, press 'Action')

T3-Garage Thiago Auto Close - notification

(This is if there is something blocking the sensor so after 5 tries it would send me a message saying that the garage cannot be closed so I have to go check it)

If
        $Thiago_Garage >= 5

Then
        Resource 'NotificationGarageDoorThiago'

Else
   - No Actions - (To add one, press 'Action')

ThiagoRelay - OFF

(This is so i can keep on sending only ON commands)

If
        Status  'Garage Thiago - Relay' is On

Then
        Set 'Garage Thiago - Relay' Off

Else
   - No Actions - (To add one, press 'Action')

Thiago

Edited by snowtech

I decided against an "auto-close" function for safety purposes. There are rare instances where my motion is limited if I am working on a small item and/or working near the corner of the same wall as the MS where the motion sensor might not fire. Perhaps you should consider two motion sensors to ensure coverage. There's a good chance your auto-close function violates local building codes as well.

 

Most building codes require the laser eyes to be 6 in off the ground which means my car of other item can be in the path of the door but not breaking the laser eyes and I wouldn't want the door to close on it. I've considered installing a separate pair connected to an IOLinc to deal with this but haven't done so yet.

 

You can read about my adventures with garage door programs here.  http://forum.universal-devices.com/topic/12693-secondary-garage-door-sensor-and-helpful-programs/

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.