# 14. Routines

![Smartnest routines](/files/-MMjb8MV4BSgqIIyIQst)

You can create custom routines for your devices by clicking on the routines tab on the web application.

### Routines contain conditions and actions.

{% hint style="success" %}
the first condition is considered the trigger of the routine
{% endhint %}

![](/files/-MMjcEfnbH5_QY77dADs)

You can add up to 5 conditions for a single routine, when the routine is triggered by the first condition it will check all the others and if they are true then the routine will run the actions specified.

### There are two types of conditions, **Device and Time.**

**Device:** Triggers when a specific feature of a device is changed, for example when it is turned on or off, when there is motion detected or when a door opens or closes.

**Time:** Triggers at a specific time, it can be set to repeat every day or on specific days of the week

![](/files/-MMje1zdCba2yf8w3JY1)

### There are two types of actions: Device and Notification

**Device**: Sends a directive to the selected device to control one of its features, for example to turn it on or off.

**Notification:** Sends a notification to your account, this will be displayed in the notification section or if you have the Android or iOS App it will be delivered as a [push notification](/notifications.md).

![](/files/-MMjeubHiM_LrJ1qQXVr)


---

# 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://www.docu.smartnest.cz/routines.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.
