openHAB 4.0 Milestone discussion

What specifically are you attempting to do and what is happening to make you think it is not supported?

Some things to consider:

  • Syntax to use SCRIPT in the MQTT and HTTP binding is SCRIPT:<lang>:<filename>.script where <lang> is the language being used (graaljs for JS Scripting and I think js for Nashorn, dsl for Rules DSL), and <filename>.script is the file in the transform folder where the script stored.

  • In OH 4 JS of either variety must be installed separately.

  • Permissions on the .script file need to be such that the openhab user can read it.

  • I may have uncovered a regression where OH needs to be restarted to see new .script files. See Executing the SCRIPT-transformation failed: Could not get script for UID '<filename>.script' (an issue has been filed).