Installation Overview (2024)

openHAB is written completely in Java.As such, it only depends on a Java Virtual Machine, which is available for most platforms.openHAB can be run on different versions of macOS and Windows and many different variants of Linux (Ubuntu, Raspbian, etc.).

Please be aware of the fact that openHAB is continuously updated and improved.Therefore, tutorials and help you may find on the Internet for it may be outdated!Always keep this in mind when searching for help and solutions.

# Platform Recommendations

  1. You are new to openHAB and just want to give it a try?

    • Set up openHAB on your local PC or Mac in just a few steps or
    • use a Raspi with openHABian
  2. You've gained some experience and want to use openHAB to seriously control your home?Typical hardware and software requirements are:

    • 24/7 availability: A dedicated system connected by Ethernet and running continuously.
    • Energy and space efficient: A device capable of performing the task at hand without being excessive for your needs.
    • Extendibility: Your system should be capable of running additional software like an MQTT broker or persistence and graphing software.
    • Peripherals: Depending on your home automation hardware, you may need the ability to connect additional peripheral devices such as a WiFi interface or a special USB radio module.

Many devices are suited to host a continuous installation of openHAB.Experiences with different devices and environments can be found in the community forum hardware section (opens new window).

We recommend to get a dedicated Raspberry Pi 4 and to use openHABian for quick setup.openHABian is also available to kickstart your openHAB experience on existing Debian x86 based Linux systems.

# Prerequisites

Make sure that you have an up to date Java 17 JVM platform installed on your host system.We recommended to use the openjdk package that comes with your Linux distro.If in doubt, explicitly install a JVM based on OpenJDK.You could also download Azul Zulu (opens new window) Installation (opens new window) instructions can be found on Azul Systems' Zulu website.Oracle Java is also suitable for most configurations but it's not recommended. Licensing restrictions may apply.

WARNING

Please note that versions of Java higher than 17 are not supported at the moment.

Java Platform Advantages Disadvantages
Azul Zulu (opens new window) Open source, fully certified Java SE compliant build of OpenJDK, embedded version optimized for ARM devices available here (opens new window)
Oracle Java (opens new window) Full openHAB support on all platforms Licensing restrictions (opens new window), manual installation required on many Linux systems: Ubuntu (opens new window), Mint (opens new window), and Debian (opens new window) are some examples
AdoptOpenJDK (opens new window) Open Source JDK backed by many large companies

Please download and install the Java 17 version of the JVM.

The 64-bit version of the JVM is only recommended on platforms using a 64-bit OS and an Intel or AMD processor.

The 32-bit version of the JVM is recommended on ARM platforms such as the Raspberry Pi.The 32-bit JVM performs better on the ARM platform. Some add-ons use libraries that do not work with a 64-bit JVM on ARM.

Check your current Java version by opening a command line console and typing java -version:

openjdk version "17.0.5" 2022-10-18 LTSOpenJDK Runtime Environment Zulu17.38+21-CA (build 17.0.5+8-LTS)OpenJDK 64-Bit Server VM Zulu17.38+21-CA (build 17.0.5+8-LTS, mixed mode, sharing)

# Setup variants

Before you can start, two decisions have to be made:

  1. openHAB is available as a platform independent archive file or through a package repository:

    • Manual setup: Download and extract a platform independent zip archive: macOS, Windows, Linux
    • Package setup: Install from a package repository, using a package manager such as apt or yum.This option is only available for certain Linux distributions such as Debian or Ubuntu derivatives, but allows you to take advantage of automatic updates and is the recommended choice: Linux (apt/deb)
  2. Stable release or cutting edge:

    • Stable: Use the latest official release hosted on Bintray (opens new window) (recommended for new users).
    • Snapshot: Benefit from the latest changes in the daily created snapshot (hosted on openhab.org (opens new window)).

# Installation

Please follow the instructions in the installation article matching your platform (see the menu to the left).

# Getting installation info

For many actions you need to know the pathes where openHAB checks for files, or where you need to install additional packages.To find out where these locations are, e.g. where $OPENHAB_CONF points to, use the console (opens new window):

openhab-cli info

will result in e.g. for an openHABian (opens new window) installation

Version: 4.0.0 (Build)User: openhab (Active Process 7466)User Groups: openhab tty dialout audio bluetooth gpioDirectories: Folder Name | Path | User:Group ----------- | ---- | ---------- OPENHAB_HOME | /usr/share/openhab | openhab:openhab OPENHAB_RUNTIME | /usr/share/openhab/runtime | openhab:openhab OPENHAB_USERDATA | /var/lib/openhab | openhab:openhab OPENHAB_CONF | /etc/openhab | openhab:openhab OPENHAB_LOGDIR | /var/log/openhab | openhab:openhabURLs: http://169.254.63.209:8080 https://169.254.63.209:8443

# Additional Steps

After you get openHAB set up and running, there are a few additional setup steps you should consider:

  • Configure a network share on your openHAB host system using Linux Samba Share for easier remote editing of configuration files.

  • Install Visual Studio Code (opens new window) and the openHAB VS Code Extension on your local machine, to manage your (remote) configuration files.The openHAB VS Code Extension comes with built-in support for the openHAB syntax and elements.

# Getting started

With the openHAB distribution up and running, you should now continue withthe Beginner Tutorialor by working on your own configuration.

# Help

The very active openHAB Community Forum (opens new window) can provide you with many more details, hints, and tips.If you run into any problems, use the search function in the forum or open a new thread with your detailed question.

# Upgrading

In some cases upgrading to a new version of openHAB requires additional steps.For textual based configuration this can usually be done using a text editor or VS Code.UI configuration updates to the JSON database should not be done manually but by using the upgrade tool.

The upgrade tool is a java application and allows performing different steps.Each step can only be executed once (unless you --force the tool to perform them again).Currently the following steps are supported as arguments to --command:

  • itemCopyUnitToMetadata: With openHAB 4 presentation and internal representation of the unit of an item are separated.This step copies the unit set in the state description of an item to the new unit metadata.This is necessary to keep units consistent for data persisted with previous versions of openHAB.
  • linkUpgradeJsProfile: The JS Scripting transformation/profile has been removed because of changing to Java 17.They have been replaced by the generic script transformation/profile which require different configuration options.This step rewrites the profiles to the new format.

The upgrade tool needs to know the path to the openHAB userdata folder (e.g. /var/lib/openhab on most Debian like systems).If the tool is not operated from that folder, it can be specified by using --dir /var/lib/openhab on the commandline.

Example:

java -jar upgradetool.jar --dir /var/lib/openhab --command itemCopyUnitToMetadata

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub (opens new window)

Installation Overview (2024)

FAQs

What is the description of installation? ›

installation noun (MAKING READY TO USE)

the act of putting furniture, a machine, or a piece of equipment into position and making it ready to use : Do you have to pay extra for installation? There have been calls for the installation of cameras at the junction.

How do you explain installation process? ›

Installation typically involves code (program) being copied/generated from the installation files to new files on the local computer for easier access by the operating system, creating necessary directories, registering environment variables, providing a separate program for un-installation etc.

What are the 3 installation types? ›

  • Attended installation.
  • Silent installation.
  • Unattended installation.
  • Headless installation.
  • Scheduled or automated installation.
  • Clean installation.
  • Network installation.

What are the 4 types of installation? ›

There are four approaches of installation; direct, parallel, single-location and phased installation.

What is an example of installation? ›

Installation is frequently used for appliances and machinery, like the installation of a fountain in your yard or the installation of a fan in your attic to help the house stay cool.

What is installation project description? ›

Installation Project
  • Installation Project means a project that includes the construction, assembly, or establishment of materials, supplies, fixtures, machinery or equipment. ...
  • Installation Project means a circ*mstance where an entity is in the process of setting up or establishing machinery or equipment.

What is installation layout? ›

The installation layout contains a 1:1 scale representation of the product including marks for placing the supports, which facilitates the assembling process greatly. It is always included for products that are mounted directly to the wall.

What are the essential steps involved in the system installation process? ›

Before you jump into the installation process, there are a few crucial steps you need to take:
  • Backup Your Data. ...
  • Check Compatibility. ...
  • Gather Necessary Resources. ...
  • System Requirements and Compatibility. ...
  • Creating Installation Media. ...
  • Backing Up Data. ...
  • Booting from Installation Media. ...
  • Installing the Operating System.
Apr 10, 2024

What is the most common type of installation? ›

Attended installation: This is the most common form of installation on Windows systems. It requires user interaction and displays messages or windows during its progress1. Silent installation: This type of installation does not display messages or windows during its progress.

What is installation sequence? ›

The installation sequence is the series of actions that are executed when the installation runs in the default installation mode, such as when an end user double-clicks a new .msi file.

What should an installation checklist contain? ›

Installation Preparation Checklist
  • Assess the equipment foundation.
  • Evaluate anchors needed.
  • Make sure the installation area is level and aligned.
  • Check electrical requirements of the new equipment.
  • Check the time frame of equipment delivery against other orders.
  • Create a delivery plan.
  • Create an installation plan.
Oct 26, 2018

What is the description installation art? ›

Installation Art is characterised by the incorporation of the Site or space of display into the artwork. In some instances the site or location of the work is an intrinsic and non-negotiable element of the work.

What is installation art short description? ›

The term installation art is used to describe large-scale, mixed-media constructions, often designed for a specific place or for a temporary period of time.

What is an example of installation art and description? ›

Most art installations are considered to be time-based media, or art with a duration. Examples of installation art include Étant Donnés by Marcel Duchamp, I Like America and America Likes Me by Joseph Beuys, The Dinner Party by Judy Chicago, and My Bed by Tracey Emin.

Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 5788

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.