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 - Issue

Featured Replies

Posted

Hi, I'm working on a Garage Program where :

 

If the Sensor is "On" (Meaning the garage is Open) and the Motion Sensor is Off (No movement) for more than 2 mins so Start the next Program:

 

Next Program is :

 

* Send a message to my cellphone saying the garage is open and it will close automatically (Which i got that working already through Growl)

* Close the garage

* When it closes, send another message saying the garage is Safely Closed

* If it doesnt close for some reason, send me another message saying that "for some reason the garage didnt close, Go Check" and then after 20 seconds, repeat the "Close the garage command" again and keep on trying until the door is closed and I get the message that the door is Safely Closed.

 

The problems Im going through is :

 

If the garage is in the middle of the "Then Path" and the Condition "If" changes, the program stops in the middle and sometimes I get the message that it will close and never closes because the If is "False" now ...

If I have a program that runs only the "then path", because there is no If, It triggers right away ...

I was trying to find a way of Even if the Condition Changes, Make sure the program runs the "then" all the way to the end ...

 

 

I hope I can get a solution for this.

 

Thanks a lot !

Hi snowtech,

 

Wait can be interrupted. This means that if the condition changes while waiting, then statements after wait are NOT executed and the program stops till next time the condition becomes true. On the other hand, if the program keeps becoming true while in wait, the program restarts wait afresh.

 

So, what you want something like this:

If
Status Garage Door is not off
And
(
Control Motion Sensor is Switched On 
And Control Motion Sensor is not Switched Off
)
Then
Wait 2 minutes
Call the other program

 

With kind regards,

Michel

  • Author

Michael, thanks for the reply!

Just one question, why did you use both options for the sensor:

 

Control Motion Sensor is Switched On

And Control Motion Sensor is not Switched Off

 

And also i noticed you used "control" and not "status" would that change anything ?

 

I will try it again and I will let you know.

 

Thanks a lot

  • Author

Thanks Michael. I got it!!!!

I will share the program i did to make it work... If you have any suggestion i will be happy to take it.

 

Thanks a lot

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.