> ## 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.

# Rules

> If-this-then-that automation for your devices.

The **Rules** tab lets you automate your devices with **if / then** logic — when a
condition is met, run an action. No code required.

## How a rule works

A rule has three parts:

<Steps>
  <Step title="Define IF conditions">
    The trigger — a device value crossing a threshold, a state change, or another
    condition (e.g. *temperature > 30°C*).
  </Step>

  <Step title="Define THEN actions">
    What to do when the condition is true — send a command to a device, trigger a
    notification, etc.
  </Step>

  <Step title="Define ELSE actions (optional)">
    What to do when the condition is *not* met — the fallback branch.
  </Step>
</Steps>

## Examples

* *If soil moisture \< 30% → turn the pump ON; else → turn it OFF*
* *If cargo temperature > 8°C → send an alert*
* *If motion detected → turn on the light*

<Note>
  Rules you create here run on your devices. As a manufacturer, you can observe the
  rules your users have built from the Studio's [Rules](/studio/rules) monitor.
</Note>

<Card title="Next: Schedules" icon="arrow-right" href="/app/schedules">
  Time-based automation.
</Card>
