Commit 179e9a9 1 parent 8e48c8b commit 179e9a9 Copy full SHA for 179e9a9
File tree 1 file changed +7
-0
lines changed
bundles/org.openhab.automation.groovyscripting
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ log:set DEBUG org.openhab.core.automation
21
21
22
22
For more information on the available APIs in scripts see the [ JSR223 Scripting] ( {{base}}/configuration/jsr223.html ) documentation.
23
23
24
+ ## Code reuse
25
+
26
+ One can place * .groovy files with Groovy classes under ` automation/groovy ` configuration directory.
27
+ Those classes can be imported in JSR-223 scripts or the UI rules action with the usual Groovy ` import ` statement.
28
+
29
+ To apply shared code changes, one has to restart the ` openHAB Core :: Bundles :: Automation ` bundle on the Console or an openHAB instance altogether.
30
+
24
31
## Script Examples
25
32
26
33
Groovy scripts provide access to almost all the functionality in an openHAB runtime environment.
You can’t perform that action at this time.
0 commit comments