This page is part of archived documentation for openHAB 4.3. Go to the current stable version
# Settings - Scripts
Rules are the heart of home automation. Scripts are special types of rules with only one action and no triggers, so they have to be called from "real" rules or run manually. They can be used to reuse code and logic across multiple other rules, for experimentation to figure something out, create a catalog of examples, or to drive tests for other rules and behaviors.
On this page you can manage all the scripts you have added to your system:
- Add new Scripts
Add scripts using the plus button. - Edit Scripts
Click on any script in the list to edit the action of the script. - Delete Scripts
Select multiple scripts using the top Select button and use the Remove button at the bottom or use the Remove Script button on the individual scripts' pages. - Enable/Disable Scripts
Select multiple scripts using the top Select button and use the Enable or Disable buttons at the bottom or use pause button on the individual scripts' pages. - Manually run Scripts
Use the play button on the individual script pages to have the rule run all actions immediately.
Caught a mistake or want to contribute to the documentation? Edit this page on GitHub (opens new window)