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
number 0

Longitude of the circle center (-180 to 180 deg) sensor.geofence.item.lon

Type Default
number 0

Radius (m) sensor.geofence.item.radius

Radius of the circle (m)

Type Default
integer 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.

../../../_images/geofence.svg

Four fences (1-4) and 3 positions (A, B, C)

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