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.

Help with Program

Featured Replies

Posted

I've come across a need for a program and can't figure out how to write the IF statement.

We have a long driveway without a view to the garage door and we ALMOST always close it without thinking about it. I have a tilt sensor on a garage door that is obviously closed most of the time.  I already have a timer that notifies me if it is left open, but I would like to know before we leave the house.  I want to run a program on the transition from open to closed but there is no option in that device for "changes and becomes" to qualify the event.

I'm sure there is a way, but I'm having no luck making it happen.

Ultimately, I am going to flash the driveway lights at the street a couple of times so we have verification the door closed.

Eisy - 5.8.0

2 hours ago, rg65 said:

I've come across a need for a program and can't figure out how to write the IF statement.

We have a long driveway without a view to the garage door and we ALMOST always close it without thinking about it. I have a tilt sensor on a garage door that is obviously closed most of the time.  I already have a timer that notifies me if it is left open, but I would like to know before we leave the house.  I want to run a program on the transition from open to closed but there is no option in that device for "changes and becomes" to qualify the event.

I'm sure there is a way, but I'm having no luck making it happen.

Ultimately, I am going to flash the driveway lights at the street a couple of times so we have verification the door closed.

Eisy - 5.8.0

IF device = closed

THEN flash lights

This will run whenever the device transitions to closed.  There is no need to qualify it any more.  It will not run [THEN] again until the devices changes to something else and back to closed.  (It will run ELSE statements whenever it leaves the closed state)  You may want to add a several seconds WAIT before the flash lights depending on the device.  This will de-bounce any open/close back and forth states during the transition that may start your flash routine several times.

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.