Local rules

v2.20.1

A local rule is stored and executed on a single controller - the trigger peripheral, the condition, and the target output all live on the same device. Because the logic is written to the controller itself, a local rule keeps working even when the server is unreachable.

Path: Automation → Local

The rules table

Each row is one rule stored on a controller. Default columns are Status and Name; additional columns (trigger peripheral, condition, target peripheral, device, location) can be shown via Column settings. A rule on a device is identified by its device and a priority - its slot number on the controller.

Creating a local rule

Click New in the toolbar to open the full-screen form.

1

General - name the rule and pick the device

Enter a Name (required, 2–31 characters; duplicate names are rejected) and select the Device from the location tree. Only online devices can be selected.

2

Conditions - define when the rule fires

Add one or more conditions, each with a Type:

TypeHow it works
Equal / Greater than / Smaller thanPick the trigger Peripheral (a sensor on the selected device) and the Trigger state (digital sensors) or Trigger value (analog sensors)
ScheduleA time window with Recurrence: Daily (start/end time), Weekly (chosen week days plus times), or Monthly (chosen day of month). Start and end dates bound the validity period.
3

Action - define what the rule does

Exactly one action of type Peripheral: choose the target output on the same device, the Set state to apply, and the Behavior:

BehaviorEffect
LatchingThe output stays in the set state until changed manually
Non latchingThe output reverts when the condition stops being true
ImpulseThe output pulses briefly

Saving requires at least one condition and the action - the form warns otherwise. On success: “Local rule successfully created”.

Managing local rules

Select a row, then use the toolbar. Each action requires exactly one selected rule.

IconActionDescription
enable disableEnable / DisableOne button that toggles based on the selected rule’s current state
editEditReopens the full-screen form with the rule loaded
deleteDeleteAsks for confirmation, then removes the rule from the controller

See also: Introduction | Global rules | Managing rules