Configuration of openHAB

Well, I left off the imports, but they would be used by all rules in the script. Here’s a thread…

Note, ‘System started’ will work after this PR, but I’ll need to make an update first. Actually, I got Jython 2.7.1 working too, which will also require an update to the modules.

It does, but not in ES 5.1, which ships with JDK8. JDK9 has some of ES 6, but it does include support for classes. I recently got OSGI working in a JS script, but we’ll need classes for ScriptExtensions. I’ve been slowly migrating the Jython helper libraries to JS and Groovy, with the intention of putting them all in the OH-Jython-Scripters organization (after a rename)… preparing for the addition of Jython and Groovy to Paper UI from this PR. Hopefully soon, I will have some bundles for the installation of Jython and Groovy… possibly with the core helper libraries.

With Nashorn currently deprecated in JDK11, it’s doubtful we’ll see the @, which arrived in ES7. :slightly_frowning_face: But with GraalVM, there will be many more things supported. :slight_smile: