> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyperwisor.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rule Manager

> Manage if-this-then-that automation rules from a dashboard widget.

<Info>
  **Category:** Controls · **Manages:** automation rules · **Reads data:** yes (the rule list)
</Info>

## Mental model

A **Rule Manager is an automation panel.** It lists the **if / then** rules on your
device(s) and lets users add, edit, enable, and run them — automation that reacts
to *conditions*.

## When to use it

* Let users build conditional automation without leaving the dashboard
* Surface and manage a device's rules in the UI

## Settings

### General

* **Widget Title / ID**
* **Max rules to display**

### Style

* **Show description / status** — which columns show
* **Show action buttons** — edit/run controls
* **List layout** · **item spacing / background**
* Button color, text color, border, font

## Related

Rules managed here are the same ones users build in the app's
[Rules](/app/rules) tab (if → then → else). For time-based automation, use the
[Schedule Manager](/dashboard/widgets/schedule).

## Script API example

The same interactions from a [dashboard script](/script/overview):

```js theme={null}
// Only admins see the rule manager
if (context.user?.role !== 'admin') widget.hide('ruleManager');
```

<CardGroup cols={2}>
  <Card title="Rules (app)" icon="bolt" href="/app/rules">
    The if/then/else model in full.
  </Card>

  <Card title="Schedule Manager" icon="calendar" href="/dashboard/widgets/schedule">
    Time-based automation.
  </Card>
</CardGroup>
