I have now tried again to install everything from the beginning. Will lead the steps, maybe i’ll get something wrong in the process of setting it up.
- Download the current image of Raspberry Pi OS Lite
- Write the image to an SD card
-
Add the following two entries to the boot config:
dtoverlay = disable-bt
enable_uart = 1
- Set the following rights for the openhab user:
sudo useradd -r -s / sbin / nologin openhab
usermod -a -G openhab pi
- Create directories and authorize the user openhab:
sudo mkdir -p / opt / openhab / {conf, userdata, addons}
sudo chown -R openhab: openhab / opt / openhab
- Start the Docker Stack with the following configuration:
version: '2.2'
services:
openhab:
image: "openhab/openhab:latest"
container_name: openhab
restart: always
network_mode: host
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
- "/opt/openhab/addons:/openhab/addons"
- "/opt/openhab/conf:/openhab/conf"
- "/opt/openhab/userdata:/openhab/userdata"
devices:
- "/dev/ttyAMA0:/dev/ttyAMA0:rwm"
environment:
OPENHAB_HTTP_PORT: "8080"
OPENHAB_HTTPS_PORT: "8443"
USER_ID: "999"
GROUP_ID: "994"
EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Vienna"
- Install the Z-Wave addon in openHAB
- Add the controller in the GUI under Things