Skip to content

Rule Designer: Building Blocks

Chris Jackson edited this page Apr 28, 2014 · 3 revisions

Note that this is preliminary and these definitions could change during the initial development phase. If the blocks change, it may mean that a rule design can not be loaded!

Rule

Blocks Description
Rule Designer 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.

Items, Variables and Constants

Blocks Description
Rule Designer Item Access Blocks These blocks allow you to set, get, command, or get an historic state from a persistence store for an openHAB item.
Rule Designer Variable Blocks These blocks allow access to local variables that can be used to store information within the rule.
Rule Designer 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.

Logic Blocks

Math Blocks

Timer Blocks