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.

using Geofence Status Variable CHANGE as a trigger

Featured Replies

Hey All,

 

I am trying figure out how to use the geofencing to trigger a program based on a CHANGE in the status variable state. For instance if my state for being at home goes from 0 to 1 I want it to open the garage door (I ride a motorcycle). But I am doing something wrong. It looks at my current state, not the change in state. So the garage door is constantly being opened. Can you guys help?

 


If
       $Kerry's_iPhone_Home is 1
   And Status  'Garage Door 3-Sensor' is On

Then
       Set 'Garage Door 3-Relay' On

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

The problem is with the door status test.

 

Break this into 2 programs as follows:

 

Program 1:

If
       $Kerry's_iPhone_Home is 1


Then
       Run Program OpenDoor (If Path)

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

 

Program: OpenDoor (Disabled)

If
      Status  'Garage Door 3-Sensor' is On

Then
       Set 'Garage Door 3-Relay' On

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

 

The first program will trigger when the variable changes and call the second program. The second program is disabled so that it does not self trigger and reopen the door.

 

-Xathros

  • Author

Wow that is perfect. Thank you so much. Now that I understand it I can use it for a ton of different programs I wanted to put together that are all based on variable changes.

Archived

This topic is now archived and is 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.