Entering and Exiting Geofences

Posted on
Wed Jan 24, 2018 12:35 pm
midd offline
Posts: 363
Joined: Apr 18, 2010

Entering and Exiting Geofences

Glenn,

IS there a way FFM can trigger an action when a device has entered or exited a Geofence like iFindstuff once did:

viewtopic.php?f=181&t=15157


I want to be able to adjust my thermostat(via Jay's Advance Thermostat Script) when none of my 4 devices are home (or have left the geofence). You have that part covered. But as soon as one of them re-enters the geofence, I want to be able to readjust the he thermostat accordingly using the variables.

Indigo 7, Mojave on a 2009 Mac Pro..

Posted on
Thu Jan 25, 2018 3:28 am
GlennNZ offline
Posts: 587
Joined: Dec 07, 2014
Location: Central Coast, Australia

Entering and Exiting Geofences

midd wrote:
Glenn,

IS there a way FFM can trigger an action when a device has entered or exited a Geofence like iFindstuff once did:

viewtopic.php?f=181&t=15157


I want to be able to adjust my thermostat(via Jay's Advance Thermostat Script) when none of my 4 devices are home (or have left the geofence). You have that part covered. But as soon as one of them re-enters the geofence, I want to be able to readjust the he thermostat accordingly using the variables.


Hi

I haven’t set up any triggers within the plugin - but can, have in others — but I am always a bit lost as to triggers versus state changes being the best way to trigger activity. But here it probably makes sense and can have a look a enter, exit trigger options for each iFriend. I have been put off by the obvious time delay involved. Have been making some moderate upgrades including, add travel time to Geofence and total distance to Geofence - using google api matrix. Have finished that now (for Geofence Named home and 2nd named other) so will look at triggers shortly.

Meanwhile, I would think that could do a trigger on numberoffriends within Geofence. Eg. >0 ? Or equals 1. Issue with this is it may trigger again when goes from 1to 2, to 3 etc but presumably that isn’t big issue.

As to immediate location update - as mentioned I use iBeacon plugin and geofency apple iOS app. Set up web hook and immediately triggers arrivals. I believe Geofency also hooks into WiFi on phone (recognizes network) and GPS, so if WiFi connects the immediately updates and recognizes where it is. Is very quick, so quick can open garage door and turn lights on with.

Glenn

Posted on
Thu Jan 25, 2018 7:56 pm
GlennNZ offline
Posts: 587
Joined: Dec 07, 2014
Location: Central Coast, Australia

Entering and Exiting Geofences

See Version 0.4.5 to address this and more.

add Events/Triggers for GeoFence Arrive and GeoFence Leave; selectable by GeoFence and iFriend Device.

Image


- Create trigger/Event which is selectable within Indigo by Friend and Geofence.
- Two selectable, either exit GeoFence or Enter Geofence.

When any change at standard interval update will trigger this event/action.
(is ignored in first 60seconds, to avoid triggered at every startup)

Posted on
Fri Jan 26, 2018 6:46 am
midd offline
Posts: 363
Joined: Apr 18, 2010

Re: Entering and Exiting Geofences

Thanks Glenn! Appreciate all of your work and support.

Indigo 7, Mojave on a 2009 Mac Pro..

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests