Difference between revisions of "Constraint: Geofence"

Line 1: Line 1:
<span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span>
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether the device is inside or outside a geofence.</pre>
  
This constraint can be used to allow/prevent functionality based on the user's location (if they are inside or outside a defined location area).
+
''' Options '''
 +
 
 +
* '''Inside/Outside''' - Check if the device is within the selected zone
 +
* '''Zone''' - Choose the geofence zone to check
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Enable Wi-Fi at 18:00 but only when you are at home''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Time of Day - 18:00</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Wifi Configure (Enable)</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Geofence (Location) - Inside (Home)</pre>
 +
 
 +
''' Note '''
  
 
Due to the background location update rate, there may be some lag between entering/exiting an area and the constraint returning the correct value.
 
Due to the background location update rate, there may be some lag between entering/exiting an area and the constraint returning the correct value.
 +
 +
''' See Also '''
 +
 +
* [[Trigger: Geofence Trigger|Geofence Trigger Trigger]]

Revision as of 11:31, 9 January 2026

This constraint allows or prevents a macro/feature from running based on whether the device is inside or outside a geofence.

Options

  • Inside/Outside - Check if the device is within the selected zone
  • Zone - Choose the geofence zone to check

Example

Example 1: Enable Wi-Fi at 18:00 but only when you are at home

Triggers

Time of Day - 18:00
Actions

Wifi Configure (Enable)
Constraints

Geofence (Location) - Inside (Home)

Note

Due to the background location update rate, there may be some lag between entering/exiting an area and the constraint returning the correct value.

See Also