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>.scriptwhere<lang>is the language being used (graaljsfor JS Scripting and I thinkjsfor Nashorn,dslfor Rules DSL), and<filename>.scriptis 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
openhabuser 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).