ThingsLink Self-Hosted: Air-gapped Ed25519 Signed License & Pay-As-You-Go Cloud now available→
Docs/Rules & Automation

Alarms & Zero-Code Closed-Loop Automation

Build multi-condition industrial rules, safety guards, downlink RPC commands, and multi-channel notifications with CAS safety.

The IF / GUARD / DO Model

Model resilient field automation in three deterministic stages:

  1. IF (Trigger): Attribute threshold, state transition, offline watchdog, or Cron schedule.
  2. GUARD (Safety Check): Off-peak tariff window, companion sensor health, daily trigger cap, or debounce duration.
  3. DO (Action): Dispatch downlink RPC commands, open/resolve alarms, or route Email/SMS/Webhook notifications.

Example Closed-Loop Rule

{
  "name": "Cooling Tower Conductivity Blowdown",
  "trigger": { "attribute": "conductivity_us", "op": ">", "value": 1800, "durationSec": 60 },
  "guard": { "makeupValveOk": true, "maxTriggersPerDay": 3 },
  "action": { "command": "OPEN_BLOWDOWN_VALVE", "params": { "seconds": 90 } }
}

Concurrency-Safe Updates (Exact CAS)

Rule and action edits use Compare-And-Swap (CAS) version checks so concurrent collaborators never silently overwrite one another’s changes.

Ready to build your IoT solutionwith ThingsLink?

Start free on ThingsLink Cloud or deploy sovereign On-Premises in minutes.