Script execution of rule with UID 'nietThuis-1' failed: 'getToggleState' is not a member of 'org.openhab.core.items.GroupItem'; line 21, column 65, length 33 in nietThuis
Is a GroupItem a different class? In the documentation (above) there seems to be no âchapterâ for it?
You can use whatever you want (and of course what is installedâŠ)
Your code looks like DSL Rule script code (which is the native Script language in openHAB)
There is no reason to have a library for Java since a Java rule is interacting with the raw Java openHAB APIs. But I do think the JRule add-on does provide some things like annotations and such. I donât know if it supports the full openHAB. API yet though.
The âDSLâ in Rules DSL stands for âDomain Specific Languageâ. Itâs a language written for and adopted to openHAB. It is itâs own library.
openhab-js exists to wrap and translate the raw Java openHAB API to make it work using JavaScript idioms and JavaScript Objects and Classes. You donât need to do either for Rules DSL nor JRule.
Furthermore, Rules DSL doesnât support libraries anyway.
Well, thatâs pretty much all of openHAB. The raw Rules API stuff can be found documented at JSR223 Scripting | openHAB. But there really is little reason for you asn an ed user of OH to mess with anything at that low of a level.
You may not like the format but all the same information is there.
jRuby and JS Scripting have the closest to what you are looking for. For JS Scripting in particular notice that there are links in the main docs to the JS equivalent of JavaDocs: items - openHAB JS
Iâd be surprised if jRuby doesnât have something similar.