# Glutz

Glutz is a manufacturer of door and security systems with its headquarters in Switzerland. It is characterized by innovative technologies. The product range includes a wide variety of door fittings, electronic access systems, locking systems, and security solutions for private and commercial applications.

### Installation

The Glutz App is installed via the App Store in BuildingPro Suites.

### Assets

The Glutz App automatically creates all necessary asset templates and Glutz access points (CAC) that are accessible via the configured endpoints. The following asset templates are created:

* **Glutz Device**: An access point (door lock) whose parameters can be read out and which can be opened.

The following attributes are defined:

<table><thead><tr><th width="240">Name</th><th>Description</th></tr></thead><tbody><tr><td><code>battery_level</code></td><td>Battery level</td></tr><tr><td><code>openings</code></td><td>Openings</td></tr><tr><td><code>building</code></td><td>Building</td></tr><tr><td><code>room</code></td><td>Room</td></tr><tr><td><code>access_point</code></td><td>Access point</td></tr><tr><td><code>operating_mode</code></td><td>Operating mode</td></tr><tr><td><code>firmware</code></td><td>Firmware</td></tr><tr><td><code>open</code> (writing)</td><td>Opening from BuildingPro Suites<br><code>1</code> = open access point, time configurable in configuration</td></tr><tr><td><code>openable</code></td><td>State of the access point<br><code>0</code> = Closed<br><code>1</code> = Open<br><code>2</code> = Error</td></tr></tbody></table>

### Dashboards

The Glutz App offers a dashboard with all automatically created access points. This can be automatically created via the BuildingPro Suites Frontend `Copy Dashboard > Glutz` and then customized as desired.

<figure><img src="https://3489494878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9GvUpaatBiReR43XFSMg%2Fuploads%2FTn5jwOn3XWfIcddqsqRy%2FFD96DAD2-B2A8-47BC-8FF7-12044E982675.png?alt=media&#x26;token=8f1f297b-aaf5-41b1-9c72-cbde8d38aced" alt=""><figcaption></figcaption></figure>

### Configuration

{% hint style="info" %}
You can find more information on app configuration [↗ here](https://doc.eliona.io/collection/dokumentation/einstellungen/apps).
{% endhint %}

#### General

The Glutz App is configured by defining one or more Glutz server endpoints. Each endpoint requires the following data:

<table><thead><tr><th width="279">Attribute</th><th>Description</th></tr></thead><tbody><tr><td><code>username</code></td><td>Username for login</td></tr><tr><td><code>password</code></td><td>Password for login</td></tr><tr><td><code>url</code></td><td>URL for the Glutz endpoint</td></tr><tr><td><code>enable</code></td><td>Flag to activate or deactivate the endpoint</td></tr><tr><td><code>requestTimeout</code></td><td>Timeout in seconds for the server</td></tr><tr><td><code>refreshInterval</code></td><td>Interval in seconds for collecting data from the endpoint</td></tr><tr><td><code>defaultOpenableDuration</code></td><td>Interval in seconds for how long an access point can be opened. This option can be overridden per access point with the Glutz property <code>BuildingPro Suites/Openable Duration [s]</code>.</td></tr><tr><td><code>projIds</code></td><td>List of tenant IDs for which access point assets are automatically created (CAC)</td></tr></tbody></table>

The configuration is done via a corresponding JSON structure. For example, the following JSON structure can be used to define an endpoint.

```json
{
  "username": "Username",
  "password": "Password",
  "url": "[https://example.com/glutz](https://example.com/glutz)",
  "enable": true,
  "requestTimeout": 120,
  "refreshInterval": 60,
  "defaultOpenableDuration": 10,
  "projIds": ["1"]
}
```

Endpoints can be created with this structure in BuildingPro Suites under `Apps > Glutz > Setting`. To do this, select the endpoint `/configs` with the method `PUT`.

## Time to Open

Using the `open` asset attribute, an access point can be opened in BuildingPro Suites. For this, the door lock is set to a state for a specific time that allows the access point to be opened. This standard time can be generally set in the endpoint configuration `defaultOpenableDuration`.

For access points, this time can be overridden. For this, the property `BuildingPro Suites/Openable Duration [s]` must be created for access points in the Glutz configuration.

<figure><img src="https://3489494878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9GvUpaatBiReR43XFSMg%2Fuploads%2FiC0eFzHHsPPlvYFyDLN9%2Fimage.png?alt=media&#x26;token=35d16f7f-020c-4e1a-9989-c9f6206fa127" alt=""><figcaption></figcaption></figure>

If this property is set for an access point, it overrides the standard time.

<figure><img src="https://3489494878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9GvUpaatBiReR43XFSMg%2Fuploads%2F977PLZgZnFpJ4yjaXWK9%2Fimage.png?alt=media&#x26;token=676f7b9c-949b-44dd-ac19-d2094105d895" alt=""><figcaption></figcaption></figure>
