When creating a device template it is possible to add rules that will be created when the template is actualized.
Once the type of device Template Device has been selected, it's possible to add rules to the template by filling the description field and clicking the Add button.
By saving edits, template detail is displayed, with a tag for every added rule. By clicking a tag, rule edit is displayed and it is possible to add variables and the formula.
In the formula of a rule template you can only use real signals as variables or signals of the same device template.
Rule template deletion can be done only in device template edit page, you can't delete a rule template from its edit page.