📡 Setup openHAB — Vendor-Neutral Home Automation Platform
Deploy openHAB on Ubuntu with Docker — a mature, open-source home automation hub that unifies devices from hundreds of brands and protocols under one local, private roof, on port 8187.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/iot/openhab/openhab-ubuntu.sh
chmod +x openhab-ubuntu.sh
sudo bash openhab-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/iot/openhab/openhab-ubuntu.sh
2 Make it Executable
chmod +x openhab-ubuntu.sh
3 Run the Installer
The script installs Docker if needed and starts openHAB on port 8187, keeping its config, userdata, and add-ons in mounted volumes so your setup survives restarts and updates. No default login exists; you create the admin in the setup wizard.
sudo bash openhab-ubuntu.sh
4 Open the Web UI and Complete Setup
Open openHAB in your browser and complete the setup wizard to create your administrator account, then start adding bindings and things:
http://<your-server-ip>:8187
Ports Used
| Port | Purpose |
|---|---|
| 8187 | Web UI (host → container 8080) |
| setup wizard | No default login — create the admin on first visit |
| conf, userdata, addons | Your entire configuration, persisted to disk |