openHAB 3 script file configuration

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).

I saw some other posts about this. I believe a github issue has been filed. Try searching the forum again if you like to see the post. Maybe someone else will have more info.

1 Like

Just found the post: Scripts in OH3

1 Like

Glad you did! I searched quick but could not
Find it when I responded.