I just want to execute a script from OSGI command console (which you get with ./start.sh), but im getting errors:
openhab send - sends a command for an item
openhab update - sends a status update for an item
openhab status - shows the current status of an item
openhab items  - lists names and types of all items matching the pattern
openhab say - Says a message through TTS on the host machine
openhab > - Executes a script
osgi> openhab > demo
Couldn’t resolve reference to JvmIdentifiableElement ‘demo’.; line 1, column 0, length 4
I also tried setting up xmmp, but that seems overkill for just wanting to execute a script.
Xmmmp connects, but it doesnt receive the messages from the other user. The tutorial says it should work: https://github.com/openhab/openhab/wiki/Scripts (Section: Calling Scripts) But it seems the openhab xmpp user doesnt receive hte messages. But i can see its online status.
This user has a similar question: OSGI Console: Openhab script call