Skip to main content

Routines

Lite-product-icon.png

iRidi lite

Routines is the section of the i3 lite configurator that lists routines triggered under various conditions.

A routine is a logical project component that monitors changes in equipment states and responds according to the specified logic.

There are two types of routines:

  • Panel routine - runs on user panels only while the i3 lite app is running.
  • Server routine - runs on the server even when the app is closed.

Routines_main.png

  • Active - enable/disable the routine.
  • Name - the routine name.
  • Working on all panels - enabled/disabled. Its operation is described below.
    • enabled - the routine runs on all panels that download this project from the cloud;
    • *disabled - the routine runs only on this panel.
  • "WHEN" event - each routine can be assigned one or more WHEN events that trigger an action.
  • DO - you can assign one or more actions to each routine. These execute sequentially when at least one WHEN event occurs.
  • Condition "BUT ONLY IF - a set of conditions that must be true before the routine's actions can start.
Note

You can assign multiple BUT ONLY IF conditions to a routine, or none at all.

How Working on all panels works​

  • Setting enabled

When there is no server at the site, routines run only if the i3 lite project is open on the panel. If the project is closed or the panel is turned off, the routines do not run.

With this property enabled, routines run if the i3 lite project is active on at least one panel. You can therefore configure the project on a panel and, if the site has no server but has a computer that can run i3 lite continuously, download the project to that computer. In this case, the computer acts as a server, and all routines run.

If the site is controlled from several devices, this property can also simplify editing project routines. For example, a routine is configured to turn on the audio system and play music every Saturday at 8:00. You need to change the time from 8:00 to 9:00, but cannot access the panel where the routine was configured. If Working on all panels is enabled, you can edit the routine from any panel running this project. With this setting enabled, the installer can also configure project routines on their own device, without having to configure them again on the user's device later. The user simply downloads the project from the cloud, and all routines run on their device.

  • Setting disabled .

The project is controlled from 2 panels, with a routine configured to:
turn on the control panel's battery power supply at 5% charge and turn it off at 100%. If we enable Working on all panels, then when one panel reaches 100% charge, power is turned off for both panels, regardless of whether the second panel has reached 100%. In this case, creating separate routines for each panel is recommended.

WHEN event type​

when_type.png

The following WHEN event types are available:

  • Device - device-related events (a sensor triggering, etc.);
  • Modes - a mode change;
  • Schedule - events in the project schedule;
  • Battery level - events at a high or low battery level (this item is absent from server routines);
  • "Day & Time' - events triggered at a specified time or by the astronomical timer.

In a server routine, the Day & Time menu provides additional settings:

  • Select time - the exact trigger time.
  • It's sunrise - sunrise time is calculated from the coordinates specified in General.
  • It's noon - noon time is calculated from the coordinates specified in General.
  • It's sunset - sunset time is calculated from the coordinates specified in General.
  • Sun angle is more than - execute when the sun's angle is greater than the specified angle.
  • Sun angle is less than - execute when the sun's angle is less than the specified angle.

Lite_astro.png

First, specify the automation site's location in the regional settings on the configurator's General tab.

Location.png

Action type​

The following action types are available:

  • Device - send a command to a device;
  • System - execute a system function (a delay, opening a browser, etc.);
  • Modes - switch modes;
  • Macro - execute a macro (this item is absent from server routines);
  • Log event - make a log entry (this item is absent from local routines);
  • Routine - change another routine's operation (activate, deactivate, or stop it).

Local routines

local_action.png

Server routines

server_action.png

BUT ONLY IF condition types​

condition_type.png

The Device, Modes, and Schedule condition types perform the same functions as WHEN events.

The Day & Time condition lets you specify not only the time but also the day of the week, and configure routines to run on weekdays or weekends.

condition_day&time.png