Editors - Different Ways to Simplify Your Textual Configuration
Currently there are several existing solutions, that can help you configuring your openHAB instance in a textual way. This documentation page can give you some guidance in choosing the right one for you and setting it up.
- openHAB VS Code Extension
- Eclipse SmartHome Designer
- Other Editor Integrations
openHAB VS Code Extension
openHAB VS Code is an extension for the Visual Studio Code editor.
- Download the latest release from openhab-vscode
- Install the extension with one of the following methods
- Open command line in the same folder you downloaded the extension
Type the following command:
code --install-extension openhab-0.0.2.vsix
- Go to the extensions area and install the extension like showed in the screenshot:
- Open command line in the same folder you downloaded the extension Type the following command:
Currently openhab-vscode isn’t yet listed in Microsoft Visual Studio Marketplace, but the contributors are working on it already.
Eclipse SmartHome Designer
The Eclipse SmartHome Designer is a specialized version of the Eclipse IDE for openHAB. Just like known from other IDEs, the Designer allows to browse and edit the configuration files of your openHAB setup, with the advantage of syntax highlighting, syntax checking and autocompletion.
If your openHAB instance is set up on a different device or a dedicated system, the Designer can be installed and executed on your personal PC or Mac. The Designer needs to be able to access the configuration files on the remote openHAB host.
You have to have a network share set up on the remote host and mounted on your local device. Steps needed to so are specific to the hosts operation system. How to setup and use Samba on a Linux system is described in the Linux article. If you are using openHABian, the needed set of network shares is already configured for you, you just need to mount them locally.
Attention Windows users: Directly accessing network shares (UNC paths) is not supported. Please be sure to mount the network share to a drive letter prior to using the SmartHome Designer.
- Get the latest version from: Eclipse SmartHome Designer Downloads (Note: the “Snapshot” build is currently not recommended for daily use)
.zip archive contains the Designer executable.
- Windows: Extract the archive to a path of your choosing, e.g.
- Linux: Extract the archive to a path of your choosing, e.g.
- Max OSX: Extract the archive to your applications folder
After launching the Designer executable you will see an empty configuration file pane on the top left.
Click on the “Select a configuration folder” icon at the top right of the configuration window and navigate to your openHAB configuration folder (containing
The configuration pane should now list the different configuration folders:
You can now start to create and modify your configuration files. Changes are automatically loaded by the openHAB runtime. More details about the syntax of the different configuration files can be found in the Configuration chapter.
<Ctrl + N> to create a new file.
Other Editor Integrations
The here summarized projects provide syntax highlighting for different text editors, but have no on top functionality like the two tools above.
mcedit is an editor which comes with mc (Midnight Commander). You can find the syntax files and installation instructions on openhab-mcedit.
Notepad++ is a free source code editor for Windows. Version 6.2 or above is required. You can find the syntax files on openhab-samples and install the files like it is described in the editors documentation.
Vim is a text editor in Linux systems. You can find the syntax file and installation instructions on openhab-vim.
Nano is a common editor in Linux systems. You can find the syntax file and installation instructions on openhabnano.
Textwrangler is a text and code editor for MAC OS X. You can find the syntax file and installation instructions on openhab-syntax-textwrangler.