diff --git a/README.md b/README.md index 9a2ed7e..b588c7f 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,7 @@ Use these environment variables to change the default behaviour of the container |`-e DECONZ_UID=1000`|Set the user id of deCONZ volume| |`-e DECONZ_GID=1000`|Set the group id of deCONZ volume| |`-e DECONZ_START_VERBOSE=0`|Set this option to 0 to disable verbose of start script, set to 1 to enable `set -x` logging| +|`-e DECONZ_BAUDRATE=115200`|Set the baudrate of the conbee stick, for conbee 3 this needs to be set| #### Docker-Compose diff --git a/docker-compose.yml b/docker-compose.yml index 5a8e97c..07d2336 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,6 +28,7 @@ services: - DECONZ_UID=1000 - DECONZ_GID=1000 - DECONZ_START_VERBOSE=0 + - DECONZ_BAUDRATE=115200 logging: driver: "json-file" options: diff --git a/docker/Dockerfile b/docker/Dockerfile index 749a5dd..3c267f6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -31,7 +31,8 @@ ENV DEBIAN_FRONTEND=noninteractive \ DECONZ_UPNP=1 \ DECONZ_UID=1000 \ DECONZ_GID=1000 \ - DECONZ_START_VERBOSE=0 + DECONZ_START_VERBOSE=0 \ + DECONZ_BAUDRATE=0 # Install deCONZ dependencies RUN apt-get update && \ diff --git a/docker/root/start.sh b/docker/root/start.sh index 85d7692..05f8303 100755 --- a/docker/root/start.sh +++ b/docker/root/start.sh @@ -4,6 +4,7 @@ if [ "$DECONZ_START_VERBOSE" = 1 ]; then set -x fi + echo "[deconzcommunity/deconz] Starting deCONZ..." echo "[deconzcommunity/deconz] Current deCONZ version: $DECONZ_VERSION" echo "[deconzcommunity/deconz] Web UI port: $DECONZ_WEB_PORT" @@ -23,6 +24,10 @@ DECONZ_OPTS="--auto-connect=1 \ --http-port=$DECONZ_WEB_PORT \ --ws-port=$DECONZ_WS_PORT" +if [ "$DECONZ_BAUDRATE" != 0 ]; then + DECONZ_OPTS="$DECONZ_OPTS --baudrate=$DECONZ_BAUDRATE" +fi + echo "[deconzcommunity/deconz] Using options" $DECONZ_OPTS echo "[deconzcommunity/deconz] Modifying user and group ID"