Having had a fairly good look through the Wiki and Github documentation, I still cannot find any details on what methods and attributes a scriptable object, such as an Item, supports. I suppose I am looking for a detailed listing of what functionality is supported by different objects provided by OpenHAB.
For example, today I wanted to print out (in a log or via email action) the preformatted string that comes with my Item definition, just as it would appear in the sitemap, including its nicely readable label and the value of the state. I assumed there must be a property of the Item that prints that, just like Item.state returns just the value. I could not find any info about it, so I went searching for API documentation, but I cannot find it either. Where should I be looking?
In a similar vein, there is little on the scripting language itself beyond a reference that it is a subset of XTEND. So, for example, I see in XTEND documentation that it supports function definitions using “def” but when I try that in a rule, it shows up as an error. Where can I find more documentation on which parts of XTEND are or are not supported by OpenHAB? Or has that never been documented yet?
Apologies for these newby questions, but I’d rather self-help if I knew where to look the next time. I am sure there are others who would benefit from such knowledge. Thank you.