geofence event

The geofence event is triggered when a thing enters or exits a geofence.

Form

Parameters

Name Type Required Description
Geofence event String Yes  Whether this trigger should execute when a thing enters or exits a geofence.
Geofence key String This trigger is limited to a geofence specified by key. Leave blank to not limit this trigger to a specific geofence.
Geofence tags String This trigger is limited to geofence identified by tags. Leave blank to not limit this trigger by tags. This trigger is limited to geofence identified by tags. Leave blank to not limit this trigger by tags. When multiple tags are specified in the trigger event, the geofence must have at least one tag in common for the trigger to execute.
Thing key String This trigger is limited to a thing specified by key. Leave blank to not limit this trigger to a specific thing.
Thing tags String This trigger is limited to things specified by tags. Leave blank to not limit this trigger to things specified by tag.

Event variables

Name Type Description
$(event.geofence.key) String The key of the geofence that the thing interacted with.

$(event.geofence.name)

String The name of the geofence that the thing interacted with.
$(event.location.lat) Float The latitude of the thing that initiated this trigger.
$(event.location.lng) Float The longitude of the thing that initiated this trigger.
$(event.location.ts) String The timestamp when the thing entered/exited the geofence and initiated this trigger.
$(event.thing.key) String The key of the thing that initiated this trigger.
$(event.thing.name) String The name of the thing that initiated this trigger.