> For the complete documentation index, see [llms.txt](https://docs.buildings.ability.abb/collection/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildings.ability.abb/collection/german/verpflichtende-basis/platform-core/connect-hub/edge-app-marketplace-for-plug-ins-and-extentions/apps/localino/geofencing-function-in-the-localino-system.md).

# Geofencing-Funktion im Localino-System

### **1. Einleitung**

Geofencing ermöglicht die Überwachung von Trackern (z. B. Tags) innerhalb vordefinierter Zonen. Ein Alarm wird ausgelöst, wenn ein Tracker eine Zone verlässt.

#### **Voraussetzungen**

* **Integration:** Die Localino-App muss korrekt in BuildingPro Suites integriert werden.
* **Zonendefinition:** Geofencing-Zonen müssen in Localino definiert werden.
* **Action-WebSocket:** In Localino muss ein Action-WebSocket eingerichtet werden.
* **Action-Port:** Der Action-Port muss in der Localino-Datenbank eingegeben werden (Schema `localino`, Tabelle `config`).
* **Tracker-Zuweisung:** Der zu überwachende Tag muss einem Asset zugewiesen werden, auf dem die automatische Regel erstellt werden soll.

{% hint style="warning" %}
Die wichtigste Information, die über das `/actionwebsocket` gesendet werden muss, ist die **id** (hardwareid) des Tags und idealerweise das **ts** (timestamp).
{% endhint %}

#### **Weitere Informationen, die in Zukunft eine Rolle spielen könnten:**

Zusätzlich zu `id` als auch `ts`, könnten die folgenden Informationen in Zukunft wichtig sein:

* **Aktionsname** (`actionname`): Der Name der Aktion, die den Alarm auslöst.
* **Gruppe** (`hardwaregroup`): Die Gruppe oder Kategorie des Geräts.
* **Name** (`hardwarename`): Der Name des Trackers oder der Hardware.
* **Zone** (`zone`): Die definierte Zone, die verlassen oder betreten wird.
* **Aktionsauslöser** (`trigger`): Der konkrete Auslöser der Aktion, z. B. "ZoneLeave" oder "ZoneEnter".
* **CrossDirection** (`crossdirection`): Informationen über die Bewegungsrichtung, falls relevant.

Diese zusätzlichen Daten könnten für erweiterte Benachrichtigungen oder zukünftige Funktionen nützlich sein, z. B. detailliertere Alarmmeldungen oder die Integration mit anderen Systemen.

***

### **2. Geofencing-Alarmprozess**

Wenn alles korrekt eingerichtet ist, wird automatisch eine Regel erstellt und ein Alarm ausgelöst, wenn ein ZoneLeave-Ereignis auftritt.

#### **2.1 Verlassen einer Zone (ZoneLeave)**

* Ein **"ZoneLeave"** -Auslöser setzt das **`geofencing_alarm`** -Attribut im zugewiesenen Asset auf **1**.
* Eine Alarmmeldung wird automatisch ausgelöst:

  ```arduino
  "{{asset.name}} befindet sich außerhalb der erlaubten Zone"
  ```

#### **2.2 Betreten einer Zone (ZoneEnter)**

* Ein **"ZoneEnter"** -Auslöser setzt das **`geofencing_alarm`** Attribut auf **0**.
* Der Alarm wird zurückgesetzt und es wird eine Nachricht gesendet, die die Rückkehr in die erlaubte Zone bestätigt:

  ```arduino
  "{{asset.name}} befindet sich wieder innerhalb der erlaubten Zone"
  ```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.buildings.ability.abb/collection/german/verpflichtende-basis/platform-core/connect-hub/edge-app-marketplace-for-plug-ins-and-extentions/apps/localino/geofencing-function-in-the-localino-system.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
