Skip to main content
Documentation v2.0
Alarms & Automation/docs/automation

Integrations

Beta

Alarms & Automation

"If … then …" rules per project: notifications, device commands and webhooks when data meets a condition.

On this page6 sections

Overview

Open a project → Alarms & Automation. Rules read like a sentence, for example "If Room temperature is above 35 °C for 5 minutes, then send a Telegram message and turn on the Fan". Ready-made templates are available (temperature too high, device inactive for 10 minutes, dry soil → pump for 30 seconds, garden light 18:00–05:00), plus a Test button that uses the latest value.

Triggers

Trigger Example
Numeric value: >, ≥, <, ≤, =, ≠, outside a range — with a duration and a recovery threshold Temperature > 35 °C for 5 minutes; recovers below 33 °C (no flapping)
ON/OFF value Door turns ON
No data No humidity data for 10 minutes
Device inactive Warehouse ESP32 inactive for 10 minutes
Schedule (WIB) Every day 18:00–05:00: garden light ON

Actions

Action Details
Notification Bell, email and Telegram (connected under Notification channels). Student accounts only get the bell and school email.
Send a command To a Command variable through the same path as the dashboard; a momentary pulse or restored on recovery. Device ACKs are recorded. School-loaned devices only while the control permission is active.
Send a webhook A signed JSON POST to another application (Node-RED, your server, etc.). See Webhooks.

Safeguards

  • A cooldown per rule and merging of consecutive events — 20 messages in a row still give one notification.
  • At most 6 rule commands per minute for each device.
  • Daily message limits per recipient: email 50, Telegram 200.
  • Rule limits: 30 per Personal project, 20 per School project.

Alarm status & history

Alarms move from Active → Acknowledged → Recovered. The event history records the trigger value and time (WIB), the actions that ran, and the status of every channel and webhook (delivered or failed, with the reason).

Example: dry soil → pump for 30 seconds

  1. Open the project → Alarms & Automation → Create rule, or pick the "Dry soil → pump for 30 seconds" template.
  2. Choose the Numeric value trigger: Soil moisture below 30 %.
  3. Add a Send a command action: pump = 1, momentary for 30 seconds.
  4. Optional: tick a webhook created under API & Webhooks so another application is told as well.
  5. Click Test to try it with the latest value, then save.

Documentation feedback

Was this article helpful?

Documentation search

What do you want to learn?

Type at least two characters to search the documentation.
Code copied.