JRuby OpenHAB Rules System

No Problem, I can push you in the right direction.

  1. You will find the extension settings in your user-folder:
    USER/.vscode/extensions/openhab.openhab-1.0.0

2.Within this folder you can open the json-file /meta/openhab.tmLanguage.json

3.Here you should add “rb” to the fileTypes part. Then you can study the file and maybe change some other settings.

After saving the file, you have to restart VSCode, i think. And now the coloring of the text in the rb-files should be DSL-Rules like. And you should have access to the value of an item by howering the mouse pointer over it.

2 Likes