MirrorNest
← Tous les guides

openHAB

openHAB is a vendor-neutral, technology-agnostic home automation platform that ties together diverse smart-home devices and protocols; its officially maintained Docker image is the most portable way to run it.

Système : Any Docker hostHome AutomationSite officiel ↗Documentation officielle ↗
Ce guide est élaboré à partir de la documentation officielle de openHAB, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
  1. 1Create host directories for persistent data

    mkdir -p /opt/openhab/conf /opt/openhab/userdata /opt/openhab/addons
  2. 2Run the openHAB container

    docker run --name openhab --net=host -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro -v /opt/openhab/conf:/openhab/conf -v /opt/openhab/userdata:/openhab/userdata -v /opt/openhab/addons:/openhab/addons -d -e USER_ID=1000 -e GROUP_ID=1000 -e CRYPTO_POLICY=unlimited --restart=always openhab/openhab:5.0.0-debian

    Host networking is required for UPnP/mDNS device discovery. Replace USER_ID/GROUP_ID with IDs matching your host user.

  3. 3First login

    Open the web UI to run the setup wizard and choose your package profile (Simple, Standard, or Expert).

    Default ports: 8080 (HTTP) and 8443 (HTTPS).