RULES

Each event associated with the device's resources (channels) can be used as a TRIGGER that activates the execution of a RULE.


Within each rule, you can define up to 5 CONDITIONS that will be checked every time the rule is activated.


If all conditions are verified, the device will perform up to 5 ACTIONS.


An action contains one or more COMMANDS  


Actions are queued and executed as soon as the required resource becomes available. Consequently, a hardware resource (such as a relay output) is activated immediately, while an outgoing communication task (such as a phone call) may be postponed until the channel is free.


TECHNICAL NOTE


Up to 500 rules can be defined, stored in the R unit which is divided in subfolders, each of which contains the rules associated with a specific event.


Each rule is assigned a unique number which also represents the file name.


For more details:

File system > Unit R


The rules can be defined using the Avior.Suite software.


In addition to the simplified provisioning tool, a dedicated software tool accessible directly online allows you to perform the complete configuration of the device.

https://contriveiot.eu/2905/suite/


Advanced users can also enter rules directly with a command as shown

here


This example demonstrates how to configure a rule where multiple conditions must be satisfied before activating an output and a local audio alert:



DIGITAL INPUT 1

◄ TRIGGER EVENT

INPUT 1 STATUS = 1

◄ CONDITION 1

BATTERY AVERAGE > 3600

◄ CONDITION 2


◄ CONDITION 3


◄ CONDITION 4


◄ CONDITION 5

out1=1,3

◄ ACTION 1

AT#WAIT=5

◄ ACTION 2

out2=1,3

◄ ACTION 3


◄ ACTION 4


◄ ACTION 5

trigger A change of state on digital input 1.

CONDITION 1 Digital input 1 must be in the logical state 1 (closed).

CONDITION 2 The average internal battery voltage must be higher than 3600 mV.

ACTION 1 Execute the command to activate digital output 1 for a duration of 3 seconds.

ACTION 2 wait for 5 seconds.

ACTION 3 Execute the command to activate digital output 2 for a duration of 3 seconds.