Skip to content

openhab/openhab-vscode

Repository files navigation

openHAB VS Code Extension

Azure DevOps builds (branch)

Visual Studio Marketplace Downloads) Open VSX Downloads

openHAB is a vendor and techology agnostic open source automation software for your home. This Visual Studio Code extension allows you to work with openHAB configuration files (like *.items, *.rules, *.sitemap and *.script) thanks to the syntax highlighting, code snippets and integrated search.

The extension is designed with openHAB 2.x in mind - most snippets and design patterns will work in openHAB 2.x

Features

  • Syntax highlighting for the openHAB DSL (rules, items, scripts and sitemaps).
  • Code snippets for openHAB, including Design Patterns by Rich Koshak
  • Integrated quick search of openHAB Community
  • Integrated Basic UI browser window (Ctrl + Alt + O or editor title icon)
  • Integrated Paper UI preview for the Items and Things
  • Integration with openHAB REST API
  • List of all Items accessible from the tree view
  • Code completions
  • Language Server Protocol support - syntax validation
  • Dynamic Items creation from Thing's channels
  • Quick openHAB console access
  • Add Items to Sitemap with one click
  • Get live Item states while hovering over item names in the Editor
  • Show human readable Thread::sleep() times while hovering

openHAB2 code snippets

Configuration

Learn more about the configuration options in our documentation on github.

Things Explorer demo

Things Explorer

Sitemap Insert demo

Quick insert Items into Sitemap

Known Issues

Check out existing issues in the repository.

Release Notes

See CHANGELOG.md file for the details.


Contributing

Everyone is invited to improve this extension.

Check out the extension code in our GitHub repository. See Contributing.md file for further technical and formal details for contributing something to the openHAB project.

For More Information

Enjoy!