Be sure to not miss Heating Boilerplate - A Universal Temperature Control Solution with Modes
While the examples are Rules DSL, the concepts will still be useful.
I’d be interested to know what problems you faced.
I take this to mean that you are seeing “Hello world” or somesuch in openhab.log proving that your scripts are being successfully loaded and executed and your main problem is with libraries, correct?
So the openhab module is Steve’s library. You cannot access it without first installing his library.
How did you add them? I’ve not gone as far as downloading his libraries yet. I’ve only played around with the RAW ESH API and even that minimally. However, reading the instructions here indicates that the library needs to go in the lib directory and your scripts need to go in the scripts directory.