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.

Geofence variable values

Featured Replies

Hello all,

 

I have a couple simple programs that turn lights on/off when I arrive home and leave. From reading on the Mobilinc website I understand the variable value should be 1 when I am within the geofence and 0 when I am outside of the geofence.

 

When I am inside the geofence area the value is 1, however when I am outside the area the value (per the variables -> state page) is 2 instead of 0. I'm not sure if this is related, but the Init value shows 2 for all geofence variables. 

 

Any thoughts?

 

Thanks

 

Dale

Hi Dale,

 

From reading on the Mobilinc website I understand the variable value should be 1 when I am within the geofence and 0 when I am outside of the geofence.

 

Yes, that's correct. When iOS tells MobiLinc that the iPhone has moved outside of your geofence, MobiLinc will send a "0" to the ISY for that variable.

 

The only time a "2" is sent is for the initial value. When the ISY is rebooted, the variable's current value will be set to a 2 by the ISY's startup sequence since we can't predict the actual state of your location/geofence when the ISY reboots or loses power. To prevent programs from accidentally running, the initial value (and subsequent current value) is purposefully set to a 2 in this scenario until there's a geofence transition.

 

Wes

  • Author

Hello Wes,

 

That makes perfect sense.

 

Thank you.

 

Dale

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.