# Create an automation rule

> Build a rule that watches for a door event, device or time, then opens doors, waits or sends messages. Try it with a dry run and read its history.

Source: https://thebuilding.cloud/help/automation/create-an-automation-rule
Last updated: 2026-11-17

An automation rule watches for something to happen, such as a door being opened, a device reporting, or a time of day. It then does the steps you chose for you: open a door, wait, send a message or raise an issue. You build and manage rules on the **Automations** page.

## Before you start

- Open **Automation Tools** in the menu, then **Automations Rules**.
- If you see "Automations isn't switched on for your account", your role has no access yet. Ask your organisation's administrator to give your role access.
- The organisation account and Super Admins can build rules. What other roles can do depends on the access they were given: viewing, creating, editing, switching on and off, and deleting are separate.

## Make a rule

1. On the **Automations** page, select **New rule**. Or select **Templates** and pick a ready-made rule to start from.
2. Type a name where it says **Name this rule**.
3. Under **When**, pick what starts the rule. The choices are grouped as **Doors and visitors**, **A device reports something**, and **A time or another system**. Examples are a door being opened, a wrong passcode, a missed call, a visitor registering, or a set time on chosen days (UK time).
4. Under **Only if**, select **Edit** to limit when the rule runs. You can:
   - run it **Only at certain times**, on chosen days between two times;
   - run it **Only when the event matches** a check you add;
   - use **Don't run again for** to stop one busy event from firing again and again.
5. Select **Add a step** for each thing the rule should do. A step can open doors, send a visitor pass, post a notice, report an issue, start or end a lockdown, control a device, send a notification or email, call another system, wait, or decide with an **If**.
6. Check the **This rule** summary on the right. It reads as When, Only if, Then.
7. Select **Create rule**.

If something is missing, a box called **To finish this rule** lists what to fix.

## Steps that decide and wait

- **Wait** pauses the rule for up to 15 minutes. A rule can't end on a wait; it needs a step after it.
- **If** runs some steps only when a check is true. Add **Otherwise** for the steps that run when it isn't.
- A rule can have up to 10 steps. The page shows how many are left.
- Use the arrow buttons to move a step up or down, and the bin to remove it.

## Try it safely

Save the rule first. Then use the buttons on the rule:

- **Dry run** shows what each step would do and changes nothing.
- **Test run** really does the steps with a sample event. Doors may open and messages are sent, so you are asked to confirm.

## Switch on, pause, edit or delete

- On the list, use the switch beside a rule to turn it on or pause it. Paused rules show a **Paused** tag. You can also use the **On** switch inside the rule.
- Select the rule's name, or **Edit** in its three-dot menu, to change it. Select **Save changes**.
- **Version history** inside a rule lets you go back to an earlier version.
- The three-dot menu also has **Duplicate**.
- To remove a rule, choose **Delete** in the three-dot menu and confirm with **Delete rule**. The rule and its run history are deleted and this can't be undone.

## See what happened

The top of the list shows how many rules are on, how many runs there were in the last 24 hours, and how many failed. Each rule shows its last run. Select it, or choose **Run history**, to see every run. You can filter the runs.

Runs are kept for 7 days. A skipped run says why the rule didn't go ahead, for example because it was outside your hours or the cooldown had not passed.

## Questions

### Can operators use my rules?

The organisation account can select the people button on a rule to **Share with operators**.

### Will a rule open doors during a lockdown?

No. During a lockdown no door can be opened, and rules are refused too. See [Lockdown](https://thebuilding.cloud/help/doors/lockdown).

Still stuck? Email help@thebuilding.cloud.
