This add-on includes by default the [openhab-js](https://github.com/openhab/openhab-js/) NPM library and exports it's namespaces onto the global namespace. This allows the use of `items`, `actions`, `cache` and other objects without the need to explicitly import using `require()`. This functionality can be disabled for users who prefer to manage their own imports via the add-on configuration options.
-
+
## UI Based Rules
### Adding Triggers
Using the openHAB UI, first create a new rule and set a trigger condition
-
+
### Adding Actions
Its important this is "Edition 11" or higher, earlier versions will not work.
This will bring up a empty script editor where you can enter your javascript.
-
+
You can now write rules using standard ES6 Javascript along with the included openHAB [standard library](#standard-library).
-
+
For example, turning a light on:
```javascript
After installing this add-on, you will find configuration options in the openHAB portal under _Settings -> Other Services -> openHAB Cloud_:
-
+
Please note, that you should not expose all your items in this settings dialog.
Also note that at present this feature is currently turned off.