VYROX Wiki vyrox.com

AiServa and AIKuari

AiKuari Automation Rules and Control

Updated · 453 words · 3 min read

An Automation Rule in AiKuari IoT watches a reading, a status, a schedule or an alarm, checks your conditions and then runs actions for you, such as raising an alarm, sending an email or switching a relay. Rules are used by plant managers and engineers at quarries and asphalt plants who want the platform to react without waiting for a person.

What It Does

  • Starts from a trigger: a reading arrives, a status changes, a schedule (every 1 to 10080 minutes, or cron), an alert changes, or a manual start.
  • Checks up to 20 conditions, grouped as All of These or Any of These, with hold time and hysteresis so a flicker does not fire it.
  • Runs up to 10 actions in order, each with an optional delay of up to 24 hours.
  • Keeps a version history you can restore, and a run history.
  • A Rule that can loop (it writes, sets variables, calls webhooks, runs other Rules or opens work orders) switches itself off if it exceeds its runs per hour.

Conditions and Actions

ConditionsActions
Is Above, Is BetweenRaise Alert
Has Changed, Changes Faster ThanSend Email, Show Popup
Has No New Data For, Has Bad QualityNotify via Channel
Is Within Time WindowWrite Control Point, Call Webhook
Set Variable, Create Work Order
Run Another Rule, Escalation

Build a Rule

  1. Open the Rules area and add a new Rule.
  2. Choose the trigger and add your conditions, with a hold time.
  3. Add the actions in the order you want them to run.
  4. Press Test and choose a Test Mode: Current Values, Replay Last 24 Hours, Replay Last 7 Days or Simulate.
  5. Turn it on once the result is what you expect.

Example: when a bitumen tank stays above its temperature setpoint for 5 minutes, raise a Major alert, email the plant manager, show a popup and switch the pump and fan relays on, then off again after 30 minutes.

Control and Relays

Control writes a value to a device, such as a relay channel on the VYROX Controller8 8-channel relay board.

  • Actions include All On, All Off, Test All, Pulse and timed actions.
  • Control is off until it is enabled for a Node.
  • Values stay inside set limits, and every command is confirmed by reading the device back.
  • A platform emergency stop is available.
  • It can be started from the platform, a Rule or the AI chat.

Frequently Asked Questions

Do Rules Still Work if the Internet Drops?

Local Rules run on the site gateway with no internet. They use hysteresis, hold time, time windows and fail-safe limits, and the gateway buffers readings until the link returns.

Can a Rule Open a Work Order?

Yes. Create Work Order is one of the ten action types.

How Do I Undo a Bad Change?

Open the Rule's version history and restore an earlier version.