Jump to content

Geofencing to trigger program "IF"


asbril

Recommended Posts

Posted

I created this program :

image.thumb.png.6416bbbfcde5163d2c48a9cd959982fd.png

When I run THEN it works and the Amps setting goes to 15, but nothing happens when I run IF, even though the Iphone is home. Anyone has a suggestion ?

Posted

@asbril are the "home" and "home/ seno iphone" state variables? 

I don't think the Geofence setup in UD Mobile adds any variables. You would need to trigger a variable in the app. Did you ever run Geofence when you ran Mobilinc? That required the app to set the state variable then you have a program trigger when the state variable changes. 

Where do you have anything for "Home Occupied is True"? 

Posted
2 hours ago, Geddy said:

@asbril are the "home" and "home/ seno iphone" state variables? 

I don't think the Geofence setup in UD Mobile adds any variables. You would need to trigger a variable in the app. Did you ever run Geofence when you ran Mobilinc? That required the app to set the state variable then you have a program trigger when the state variable changes. 

Where do you have anything for "Home Occupied is True"? 

Good points and questions......  I don't have State variables set up in UD Mobile and will have study how to do that. Thanks !!!!

Posted
15 hours ago, asbril said:

Good points and questions......  I don't have State variables set up in UD Mobile and will have study how to do that. Thanks !!!!

Hi @asbril,

Geofencing in iOS is still in Beta and Apple wants some adjustments to the location permission requests before release to production, so it will likely be at least another week before it is live in the app store.

Currently Geofencing on iOS issues a direct commands to any node/variable/program/etc. So there is no Occupied node, but something similar could be setup using a variable.

  • Like 1
  • Thanks 1
Posted

@asbril Since UD Mobile can call on the program directly it is possible that you just make the geofence trigger the "THEN" of your program. 

Since a Geofence can have multiple commands just add another command, select "My Programs" -> "Run Then" 

Otherwise, you could still use the variables and have it set a variable and then trigger any number of programs off that variable. 

I still wonder where your "Occupied is true" portion came from. 

Posted
35 minutes ago, Geddy said:

Otherwise, you could still use the variables and have it set a variable and then trigger any number of programs off that variable. 

That is what I have done and it works

  • Like 1
Guest
This topic is now closed to further replies.

×
×
  • Create New...