Jump to content

using Geofence Status Variable CHANGE as a trigger


klebel

Recommended Posts

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')

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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


×
×
  • Create New...