← Todos os guias
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.
Este guia foi elaborado a partir da documentação oficial do openHAB, ligada acima — verifique sempre lá os nomes exatos dos pacotes/versões antes de executar estes comandos num servidor de produção, uma vez que as versões da distribuição e do projeto mudam com o tempo.
1Create host directories for persistent data
mkdir -p /opt/openhab/conf /opt/openhab/userdata /opt/openhab/addons2Run 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-debianHost networking is required for UPnP/mDNS device discovery. Replace USER_ID/GROUP_ID with IDs matching your host user.
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).