Common Rules errors and their solutions

 Great topic, Rich, Here's more cryptic error messages...

An error occured during the script execution: index=1, size=1
Seems to indicate that something OpenHAB expects was omitted:
like a matching bracket, a keyword, or a leading zero (like .05 instead of 0.05)

Maybe the above narrows what one is searching for to correct the error.

To help find missing brackets, paste offending rules into an editor such as Notepad++. When the cursor is near one bracket, such editors highlight what it sees as the matching bracket.


“cannot be resolved to an item or type” somehow violates using items or types
If we try to relate two things, they must match in type. The error can result when …
We omit the tag .state after an item name.
We use a string type where a number type is expected or vice versa.
We try to compare two things without making sure their types (String, Decimal, etc) match

Rich, your post here gives a useful tutorial on types.

1 Like