Эта страница является
переводом страницы
IRidium Lite Routines. Перевод выполнен на 100%.
Routines
"Routines" - it's a section of i3 lite config containing a list of routines that are done in definite conditions.
iRidium lite
A routine is a logical component of a project that keeps track of equipment state and reacts to changes according to the planned logic.
There are two types of routines:
- Local routine - it works on a user's panels only wehn i3 lite is running.
- Server routine - it works on the server even if the app is closed.
- Active - turning on/off a routine.
- Name - the name of a routine.
- Working on all panels - on/off. The principle of work is described a bit later.
- on - a routine worls on all panels that download this project from the cloud;
- ''off - a routine works only on this panel.
- "WHEN" event - each routine has one or several "WHEN" events, when these events happen, a certain action is done.
- Action - each routine can have one or several actions that are done one after another, when at least one of the "WHEN" events happens.
- '"BUT ONLY IF condition' - one or several conditions that must be true to do the set actions.
You can set several "BUT ONLY IF" conditions in one routine, but there also may be no conditions of this type.
Principle of "Working on All Panels" Mode
If there is no server in a project, routines work only if i3 lite is running on a panel. If a project is closed or a panel is turned off, routines do not work.
When this mode is activated, if i3 lite project is active in at least one panel, routines work. So you can set a project on a panel. And if you have no server, but you have a PC where i3 lite can run all the time, you can download a project on a PC. In this case a PC functions as the so-called server and all routines work.
If an object is controlled from several devices. This property makes it easier to edit routines in a project. For example, a project has the following routine: turn on audio system and play music at 8.00 a.m. every Saturday. But the time has to be changed from 8.00 to 9.00 and there is no access to the panel where this routine is set. If Working on all panels is active, the routine can be edited on any panel where this project is running.
If this parameter is active, an installer can set routines on his mobile device only and he does not have to set them on a user's device. A user only has to download a project from the cloid and all routines will work on his device.
When a project is controlled from 2 panels and the following routine is created form them: turn on power supply to the battery of a control panel when the battery level is 5% and turn it off when the battery level is 100%. If "Working on all panels" is on, when the battery of one panel reaches 100%, the power supply is cut off on both panels irrespective of the battery level of the other panel. In this case it's recommended to create separate routines for each panel.
"WHEN" Type of Event
There are the following types of "WHEN" events:
- Device - events connected with devices (sensor activation, etc.);
- Modes - changing a mode;
- Расписание - события, возникающие в расписании проекта;
- Battery level - events connected to the high or low battery level (this item does not exist in sever routines);
- "Date and time' - events that happen at a set time and at a time defined by the astronomical timer.
There are additional parameters in the Settings of "Date and time" in a server routine:
- Time - an exact time for an event to happen.
- Sunrise - the time of sunrise that is calculated on the basis of coordiantes set in the "General" section.
- Noon - time of midday that is calculated on the basis of coordiantes set in the "General" section.
- Sunset - time of sunset that is calculated on the basis of coordiantes set in the "General" section.
- Sun angle is more than - an action is done when the sun angle becomes more than the set one
- Sun angle is less than - an action is done - an action is done when the sun angle becomes less than the set one.
But first set the location of the automation project. It can be done in regional settings of the General tab of the config.
Type of Action
The following types of actions are possible:
- 'Device - to send a command to a device;
- System - to do a system function (a delay, to open a browser, etc.);
- Modes - to change a mode;
- Macros - to do a macro (this item does not exist in server routines);
- Log event - write in the log journal (this item does not exist in local routines);
- Routine - to change the work of another routine (activate, deactivate, stop).
Local routines
Server routines
Types of "BUT ONLY IF" Conditions
"Device", "Modes" and "Schedules types of conditions" do the same functions as "WHEN" events.
In the Day&Time condition you can set time and day of the week. Routines can also be set to work on workdays and in the weekend.