I’m running openhabian.
My file \\openhabianpi\openHAB-conf\scripts\test.script
only contains:
logInfo(“test”, “Hi”)
The file gets loaded in openHAB:
2020-12-25 18:06:25.709 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘test.script’
When I try to execute the script (like I did with openHAB 2.X) within a rule: callScript(test)
, I get only the following:
2020-12-25 19:10:00.389 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID ‘139c683984’ failed: callScript( ___ test)
The method or field test is undefined; line 1, column 11, length 4
The script is not visible within the new script UI (Administration → Settings → Scripts).