Jump to content

Mobilinc Pro & ISY geo-fence programming challenge


cnovickTX

Recommended Posts

Posted

1. Purchased and love Mobilinc Pro [keep up the great work!]

2. Geo-fencing is working well with my ISY [state is updating correctly]

3. Only want some lights to turn on when I arrive home after a certain hour

4. Programming trouble causes lights to turn on when I am already at home at set hour.

5. Requesting help to figure out how to turn lights on after being away and then traveling home instead of turning on while already at home.

Posted

Hi cnovickTX,

 

Thanks for the question.

 

Here's an example for when you come home the lights turn on only between sunset and sunrise.

 

We'll need two programs: Geofence and Lights

 

Geofence Program:

If $iPhone_Home is 1

Then Run Program Lights (If)

 

$iPhone_Home is the geofence variable that MobiLinc/iOS created on your ISY when setting up your region. Replace with your own variable.

 

Lights:

If

From Sunset

To Sunrise (next day)

Then Set Scene 'House Lights' ON

 

Replace 'House Lights' with your scene or devices you want to come on.

 

The trick with getting this to work correctly is to mark the "Lights" program as Disabled. That way the ISY doesn't automatically evaluate the IF statement of the Lights program. Other programs can still call the IF statement to have the ISY instantly evaluate the condition.

 

Save the programs and test by setting the geofence variable to a 1 and 0 before and after sunset to check the logic.

 

Wes

  • 4 weeks later...

Archived

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

×
×
  • Create New...