Timed Rules
Trigger rule logic on a fixed interval
Rule Timers are used to trigger rule logic based on a fixed schedule and therefore allow the time-based evaluation of logic.
To add a timer to a rule, Add timer button at the bottom line needs to be selected.
Trigger intervals can be set in minutes or hours. By saving the timer, the rule will be triggered at the given interval. Once a timer is selected, all data sources are changed to not trigger on the uplink, which means that the rule will only be evaluated on the time-based schedule. To still trigger the rule on the uplink, trigger on uplink needs to be enabled again for each required data source (settings icon on the data source).
Using timed rules is only possible for rules that do not use more than one device per data source. Timed rules cannot be used by having tags as a rule input.

Output Templating

Since rules are triggered by a timer and not a device, certain properties are not available for output templating, mainly the {{data.*}} and all other properties related to the current sample. They contain the data and other info related to the uplink. Since, when using a timer, there is no indication which device triggered the rule and therefore all of these properties are not available.
If data from the sample should be necessary for output templating in a timed rule, the {{dataSources.X.*}} property can be used instead. Data sources are always resolved with their latest value. If a device has no data (yet) in the akenza database, the data source will not be resolved.
See the Payload Templating page for more details and all available properties.
Copy link