> 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/platform/alarms-rules-and-escalations/rule-chains/conditions/schedule.md). Agents can also search and read this documentation through its [MCP server](https://docs.buildings.ability.abb/collection/~gitbook/mcp).

# Schedule

Check whether a rule chain execution falls within a time period or selected weekdays.

Use **Schedule** to allow a path only during a time period or on selected weekdays. It checks the current time or day whenever the chain executes.

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-0d2e38c770c8dedc1dde6abef60fd66a1b037327%2Frule-chain-schedule-palette.png?alt=media" alt="Schedule entry in the Conditions palette."><figcaption><p>Schedule in the palette</p></figcaption></figure>

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-e0a2875d2505b1e8fc6108d7ff750808a75ea556%2Frule-chain-schedule-node.png?alt=media" alt="Configured Time Schedule node showing 08:00 to 18:00."><figcaption><p>Schedule configured for office hours</p></figcaption></figure>

## Inputs and outputs

* **Inputs:** None.
* **Output:** A blue boolean result. It is `true` inside the configured period or on a selected weekday, and `false` otherwise. Additional output pins carry the same result.

A Schedule condition does not start the chain or schedule a later execution. Use the [Calendar trigger](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/calendar-trigger.md) to start the entire chain at a calendar time.

## Configurable settings

Open the node's gear icon to change its settings.

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-97a12f6d594f1133989947c9ab5246612487132a%2Frule-chain-schedule-settings.png?alt=media" alt="Time Schedule settings for 08:00 to 18:00, with callouts A to G."><figcaption><p>Time Schedule settings</p></figcaption></figure>

| Reference | Setting       | Purpose                                                                                       |
| --------- | ------------- | --------------------------------------------------------------------------------------------- |
| **\[A]**  | Input pins    | Fixed at `0`. This field is disabled.                                                         |
| **\[B]**  | Output pins   | Set `1` to `100` output pins for the same boolean result.                                     |
| **\[C]**  | Schedule type | Choose **Time Schedule** for a time period or **Days Schedule** for weekdays.                 |
| **\[D]**  | Begin time    | Set the start of the period in `hh:mm` format.                                                |
| **\[E]**  | End time      | Set the end in `hh:mm` format. The editor requires it to be after Begin time on the same day. |
| **\[F]**  | Note          | Add an explanation displayed on the node.                                                     |
| **\[G]**  | Save          | Apply the node settings. Save the chain separately in the editor.                             |

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-0ac75d5cec8e5b62b54c4142fdc468276e22f50d%2Frule-chain-schedule-days-node.png?alt=media" alt="Configured Days Schedule node showing Monday to Friday."><figcaption><p>Schedule configured for weekdays</p></figcaption></figure>

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-5d9c12f42996788224fca7e2986907851ff4d777%2Frule-chain-schedule-days-settings.png?alt=media" alt="Days Schedule settings with Monday to Friday selected, with callouts H to M."><figcaption><p>Days Schedule settings</p></figcaption></figure>

| Reference | Setting       | Purpose                                                                  |
| --------- | ------------- | ------------------------------------------------------------------------ |
| **\[H]**  | Input pins    | Fixed at `0`. This field is disabled.                                    |
| **\[I]**  | Output pins   | Set the number of copies of the boolean result.                          |
| **\[J]**  | Schedule type | Select **Days Schedule** to show Active days instead of the time fields. |
| **\[K]**  | Active days   | Select the weekdays that should produce `true`. Choose at least one day. |
| **\[L]**  | Note          | Explain which days the node checks.                                      |
| **\[M]**  | Save          | Apply the node settings.                                                 |

A Time Schedule checks the time every day. A Days Schedule checks the selected days throughout the day. To restrict a path to both weekdays and office hours, connect two Schedule blocks to [And](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/operators/and.md).

## Configure office hours

Before you begin, [open the rule chain editor](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/open-the-configuration-of-an-existing-rule-chain.md). Keep the chain paused while configuring.

1. Select **Cycle** in the editor's **Trigger**.
2. Set the cycle interval to `60` seconds.
3. Drag **Schedule** from **Conditions** onto the workspace.\
   ▷ The settings window opens.
4. Set **Output pins** **\[B]** to `1`.
5. Select **Time Schedule** in **Schedule type** **\[C]**.
6. Enter `08:00` in **Begin time** **\[D]**.
7. Enter `18:00` in **End time** **\[E]**.
8. Enter `Office hours` in **Note** **\[F]**.
9. Click **Save** **\[G]**.\
   ▷ The node shows **Time Schedule** and the configured period.
10. Connect its output to the next block.
11. Set the [execution order](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/configure-rule-chain.md#set-order) so Schedule runs before that block.
12. Click **Save** in the editor.

The output is true when an execution falls inside the office-hours period. It becomes false on an execution outside that period.

### Limit the path to weekdays

1. Drag a second **Schedule** onto the workspace.
2. Set **Output pins** **\[I]** to `1`.
3. Select **Days Schedule** in **Schedule type** **\[J]**.
4. Select **Monday**, **Tuesday**, **Wednesday**, **Thursday**, and **Friday** in **Active days** **\[K]**.
5. Enter `Weekdays` in **Note** **\[L]**.
6. Click **Save** **\[M]**.\
   ▷ The node shows **Days Schedule** and the selected days.
7. Connect both Schedule outputs to an [And block with two inputs](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/operators/and.md#combine-weekdays-and-office-hours).
8. Connect the And output to the next block instead of the Time Schedule output.
9. Set the execution order so both Schedule blocks run before And and the next block runs after it.
10. Click **Save** in the editor.

The combined result is true only during office hours on Monday to Friday.

## Related documentation

* [Calendar Trigger](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/calendar-trigger.md) to start a chain at a specific calendar time.
* [Not](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/operators/not.md) to check outside a period.
* [Time](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/conditions/time.md) to delay a signal instead of checking a schedule.


---

# 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/platform/alarms-rules-and-escalations/rule-chains/conditions/schedule.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.
