From c83b14964c9c658cbec168d0ead14e3d9fea9c20 Mon Sep 17 00:00:00 2001 From: S474N Date: Sun, 5 Jan 2025 10:36:04 +0100 Subject: [PATCH 1/2] Update service.yml To enable the upgrade to 2.0. All these variables are duplicates of what is set directly in the MZ2M configuration.yaml file --- .templates/zigbee2mqtt/service.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.templates/zigbee2mqtt/service.yml b/.templates/zigbee2mqtt/service.yml index b5fefdb6..123d6ad5 100644 --- a/.templates/zigbee2mqtt/service.yml +++ b/.templates/zigbee2mqtt/service.yml @@ -3,9 +3,9 @@ zigbee2mqtt: image: koenkk/zigbee2mqtt:latest environment: - TZ=${TZ:-Etc/UTC} - - ZIGBEE2MQTT_CONFIG_MQTT_SERVER=mqtt://mosquitto:1883 - - ZIGBEE2MQTT_CONFIG_FRONTEND=true - - ZIGBEE2MQTT_CONFIG_ADVANCED_LOG_SYMLINK_CURRENT=true + #- ZIGBEE2MQTT_CONFIG_MQTT_SERVER=mqtt://mosquitto:1883 + #- ZIGBEE2MQTT_CONFIG_FRONTEND=true + #- ZIGBEE2MQTT_CONFIG_ADVANCED_LOG_SYMLINK_CURRENT=true # - DEBUG=zigbee-herdsman* ports: - "8080:8080" From a46ff2cdfa9d9c591fb4612e13be88133c29cade Mon Sep 17 00:00:00 2001 From: S474N Date: Thu, 9 Jan 2025 19:55:41 +0100 Subject: [PATCH 2/2] Update service.yml --- .templates/zigbee2mqtt/service.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.templates/zigbee2mqtt/service.yml b/.templates/zigbee2mqtt/service.yml index 123d6ad5..110b6824 100644 --- a/.templates/zigbee2mqtt/service.yml +++ b/.templates/zigbee2mqtt/service.yml @@ -3,9 +3,13 @@ zigbee2mqtt: image: koenkk/zigbee2mqtt:latest environment: - TZ=${TZ:-Etc/UTC} - #- ZIGBEE2MQTT_CONFIG_MQTT_SERVER=mqtt://mosquitto:1883 - #- ZIGBEE2MQTT_CONFIG_FRONTEND=true - #- ZIGBEE2MQTT_CONFIG_ADVANCED_LOG_SYMLINK_CURRENT=true + - ZIGBEE2MQTT_CONFIG_SERIAL_PORT=/dev/ttyACM0 + - ZIGBEE2MQTT_CONFIG_SERIAL_ADAPTER=zstack + - ZIGBEE2MQTT_CONFIG_MQTT_SERVER=mqtt://mosquitto:1883 + # only enable the next line for Zigbee2MQTT v1 + # - ZIGBEE2MQTT_CONFIG_FRONTEND=true + - ZIGBEE2MQTT_CONFIG_FRONTEND_ENABLED=true + - ZIGBEE2MQTT_CONFIG_ADVANCED_LOG_SYMLINK_CURRENT=true # - DEBUG=zigbee-herdsman* ports: - "8080:8080" @@ -16,4 +20,3 @@ zigbee2mqtt: restart: unless-stopped depends_on: - mosquitto -