Controller Rules
This page will explain how to create and manage controller rules.
Last updated
This page will explain how to create and manage controller rules.
Last updated
Controller rules are the backend of the simulation. They allow you to create custom automations which the controller will perform in the simulation.
Note: Controller rules are specific to each layout file, they cannot be copied between files.
In order to create a rule, first select the controller rules button from the home tab on the ribbon.
Once the controller rules panel has opened, you will be presented with a list of existing rules. To add a new rule, go ahead and click the add new rule button at the bottom of the window.
This is the add rule window. The first thing to do is to enter a name for the rule and select the rule type. There are three types of rule:
1 - Timed event: This rule type will be triggered after the entered number of seconds. 2 - Triggered by Device: This rule type will be triggered whenever the selected device is turned on. 3 - Triggered by Temperature: This rule type will be triggered if the simulation temperature matches the equality entered (e.g. temperature > 60° will activate when temperature reaches 61°)
Now that the conditions for the rule being triggered have been set up, on the right-hand side of the window is a list of devices which will be affected when the rule is triggered. To add a device to this list, simply use the dropdowns below the list to select a device and set its state. Then click the Add button. Easy as 1-2-3!
Note: If you need to remove a device from this list, simply select the device in the list and click 'Remove Selected Device' above the list.
Ensure that everything is okay with your rule and it does what you want it to do, then simply click the save rule button at the bottom of the window to add it to the rule list. Don't forget to save your file afterwards or newly added rules will be lost!
Once you've created a few rules, you may wonder how to read the rule list screen. The rules are presented in a list where each rule is a different row.
The first column shows name you gave the rule when creating it.
The second column gives you the type of rule that you selected - the rule types are listed at the top of the window for reference.
The third column shows the value that was entered for the rule to be triggered.
If the rule type is 1 (timed event), this value will be the number of seconds.
If the rule type is 2 (device trigger), this value will be the ID of the device which will trigger it.
If the rule type is 3 (temperature trigger), this value will be the temperature entered.
It is recommended to open the rule using the edit rule button to see its full details, the purpose of these details shown here is to help distinguish rules from each other.
To edit a rule, simply select a rule from the list by clicking on it, then click the 'Edit Selected Rule' button at the bottom of the window. This will automatically show all of the details regarding a specific rule. Changes will only be committed to the rule if save rule is clicked.
To delete a rule, simply select a rule from the list by clicking on it, then click the 'Delete Selected Rule' button at the bottom of the window. This action cannot be reversed.