Jump to content

Geofence variable values


Dale T

Recommended Posts

Posted

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

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...