This repository has been archived by the owner on May 23, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 91
Rule Designer: Building Blocks
Chris Jackson edited this page May 28, 2015
·
1 revision
Note that this is preliminary and these definitions could change during the development phase. If the blocks change, it may mean that a rule design can not be loaded!
Blocks | Description |
---|---|
Rule Block This is the main block to start a rule. It has two sections - the declaration section where constants can be defined, and a rule section, where the body of the rule is defined. Variables may also be defined in the declaration section if a default value is required - if no default is needed, then the variable can simply be used in the rule and HABmin will automatically define it. |
Blocks | Description |
---|---|
Item Access Blocks These blocks allow you to set, get, command, or get an historic state from a persistence store for an openHAB item. | |
Variable Blocks These blocks allow access to local variables that can be used to store information within the rule. | |
Constant Blocks Constants blocks can only be set in the rule header. After this, the constant can be used within the rule - if you need to update the value, you just change it in one place in the top of the rule. Using constants makes it easier to use a rule template with a different set of values and items. |