# Security System

CUBE OS includes a **Security System** feature that lets you use your connected sensors - such as motion detectors, door/window sensors, or other triggers - to monitor your home and trigger alarms or automations.

If your device hardware supports it, the built-in speaker can act as a **siren**, while other systems can trigger alerts or automations through configured actions.

## 1. Security Modes

CUBE OS provides **three pre-defined modes** to match your daily routines:

<table><thead><tr><th width="144.90911865234375">Mode</th><th>Description</th></tr></thead><tbody><tr><td><strong>Home Mode</strong></td><td>When you’re home and only want partial monitoring (e.g., door sensors active).</td></tr><tr><td><strong>Away Mode</strong></td><td>When you’re not home - all selected sensors will trigger alarms.</td></tr><tr><td><strong>Sleep Mode</strong></td><td>When you’re at home but asleep, typically only perimeter sensors remain active.</td></tr></tbody></table>

In this example, we’ll focus on **Away Mode**, which is used when no one is home.

## 2. Configure Away Mode

{% stepper %}
{% step %}
Open the **Security System** from the main menu.
{% endstep %}

{% step %}
Click on the **Away Mode** card to open the configuration panel.

<figure><img src="/files/Wzb6bH8DycELLUyoRjcx" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Set up the following options:

**Siren Type** – choose between built-in or linked siren devices.

**Volume** – adjust the alarm loudness.

**Trigger Sensors** – toggle on the sensors you want to include.
{% endstep %}
{% endstepper %}

Active sensors will appear on the right side of the screen.\
Once enabled, these sensors will automatically trigger the alarm when motion is detected or a door/window is opened.

## 3. What Happens When an Alarm is Triggered

When the system is in **Away Mode**, and any of the selected sensors is activated:

1. The **siren** will sound immediately (if supported).
2. The system can trigger linked **automations** - for example:

* Sending a notification
* Turning on all lights
* Closing blinds
* Recording video via a connected camera


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cube.ewelink.cc/feature-exploration/security-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
