SOLVED:My installlation of openHAB : I choose to work with docker

For posterity or maybe more for the failing of my memory, which comes with the processus of aging, I report in this thread what I have done to install openHAB at home.

Installing on Porteus slackware derivative does not work at least for now.

Up to now it works fine on ubuntu latest version. My best guide was this thread:

The systems boot now.

1 Like

Some troubleshooted tips.

Start openhab in cli mode:

# Learn about the current service status
sudo systemctl status openhab.service

# (Re-)Start openHAB (background service)
sudo systemctl restart openhab.service

Find my ip address to open openHAB

fl@Satellite-Z930:~$ ifconfig
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet xx.x.x.xx

Using the above to open the gui interface:
http://xx.x.x.xx:8080/settings/

My favourite method of installation is using docker, with a docker-compose file. It is so nice and easy to upgrade / downgrade, and backup. I also don’t have to worry about java because it’s a part of the docker. I can run any version of java on the bare-metal and it won’t affect my openhab docker installation’s version of java.

I can even have production and dev/testing instances running at the same time, each would listen on different set of ports (http, https, console, lsp ports).

I run mqtt, zigbee2mqtt, tuyamqtt, influxdb, grafana, Frigate, and many others inside docker too.

@jimtng
I will have a look at docker.

But for now trying to install zigbee2mqtt. I get some error messages that I cannot fix.

How do get a fresh install of openhab without uninstalling it^

Thanks.

What’s the problem? Can you post the error messages?

The error came in while I tried to install zigbee2mqtt, see

From what I can glimpse, that isn’t an error in openhab, but rather a problem in installing zigbee2mqtt?

I’m going to write up a tutorial about how to install openhab + mosquitto + zigbee2mqtt using docker on linux to hopefully help new users get set up quickly.

Currently there’s openhabian but it’s mainly focused for an installation on a raspberry pi.

3 Likes

Zigbee2mqtt also runs on docker.
Make your life easier and switch now :slight_smile:

For mosquitto, check this out:

The webui seems very interesting for new users.

@francoislavoie here’s the initial version of my openhab docker guide:

I’d appreciate your feedback - let me know what’s unclear, missing, not working, etc.

2 Likes

I will implement it after lunch.

Thanks so much.

The installation seems to work, I have set up the account inopenhab gui.

I will explore further a little later in the afternoon or tomorrow.

Thanks!

fl@Satellite-Z930:~$ ifconfig
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet xx.x.x.xx

Using the above to open the gui interface:
http://xx.x.x.xx:8080/settings/