Skip to content
Chris Jackson edited this page Dec 31, 2013 · 4 revisions

The rule editor allows editing of rule files. This provides a powerful editor to directly modify openHAB rules to use the full power of the system.

A list of rules is provided in the list on the left, and clicking on any of these rules will load the editor in the right side of the window.

The rule editor provides a nice syntax highlighted editor, complete with code folding, for editing the openHAB rules, along with functions to ease the adding of content to the rules.

Rule Editor Screen

The editor provides the following toolbar buttons to facilitate editing rules.

  • Revert the rule file to the original - ie don't save changes
  • Save changes
  • Undo the last changes
  • Redo the last undo
  • Increase the font size
  • Decrease the font size
  • Insert an openHAB rule template. This inserts "Rule...when...then...end" at the current position.
  • Insert an item name. This opens a dialog box with a list of all item names and inserts the selected name at the cursor location.
  • Insert a CRON timer rule. This opens a dialog box and presents a number of options for CRON rules. The rule will be inserted at the current cursor location.