Geofence
This page documents the geofence configuration
Configuration file fields
This section is autogenerated from the Rule Schema file.
GEOFENCE sensor.geofence
Geofencing configuration. Define up to four circular geofence areas
Type |
Max items |
---|---|
array |
4 |
Item sensor.geofence.item
Latitude of the circle center (-90 to 90 deg) sensor.geofence.item.lat
Type |
Default |
Minimum |
Maximum |
---|---|---|---|
number |
0 |
-90 |
90 |
Longitude of the circle center (-180 to 180 deg) sensor.geofence.item.lon
Type |
Default |
Minimum |
Maximum |
---|---|---|---|
number |
0 |
-180 |
180 |
Radius (m) sensor.geofence.item.radius
Radius of the circle (m)
Type |
Default |
Minimum |
---|---|---|
integer |
0 |
0 |
Configuration explained
This section contains additional information and examples.
Zero to four circular geofences with configurable radius can be entered in the configuration[1]. The geofence output signal outputs the state (inside / outside) of the current position for each configured fence and also provides a combined state.
Examples
Four geofences are configured as illustrated below.
The geofence state for each of the 3 positions are:
Position \ Fence state |
1 |
2 |
3 |
4 |
Combined |
---|---|---|---|---|---|
A |
Outside |
Inside |
Outside |
Outside |
Inside |
B |
Outside |
Outside |
Outside |
Outside |
Outside |
C |
Outside |
Outside |
Outside |
Inside |
Inside |