Skip to content

Commit ddee903

Browse files
committed
2023-05-16 Zigbee2MQTT adaptation to expected kernel change - old-menu branch - PR 2 of 2
Background: - SensorsIot#690 – Kernel update may remove /dev/ttyAMA0 Changes: 1. Adopts generic syntax for device specification to prompt user to add the relevant key (`ZIGBEE2MQTT_DEVICE_PATH`) and path (eg `/dev/ttyUSB0`) to `.env`. Example: ``` $ echo ZIGBEE2MQTT_DEVICE_PATH=/dev/ttyUSB0 >>~/IOTstack/.env ``` 2. Adopts `TZ=${TZ:-Etc/UTC}` 3. Adds (disabled) environment variable to enable debugging. Signed-off-by: Phill Kelley <[email protected]>
1 parent fea7968 commit ddee903

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.templates/zigbee2mqtt/service.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
container_name: zigbee2mqtt
33
image: koenkk/zigbee2mqtt:latest
44
environment:
5-
- TZ=Etc/UTC
5+
- TZ=${TZ:-Etc/UTC}
66
- ZIGBEE2MQTT_CONFIG_MQTT_SERVER=mqtt://mosquitto:1883
77
- ZIGBEE2MQTT_CONFIG_FRONTEND=true
88
- ZIGBEE2MQTT_CONFIG_ADVANCED_LOG_SYMLINK_CURRENT=true
9+
# - DEBUG=zigbee-herdsman*
910
ports:
1011
- "8080:8080"
1112
volumes:
1213
- ./volumes/zigbee2mqtt/data:/app/data
1314
devices:
14-
- /dev/ttyAMA0:/dev/ttyACM0
15+
- "${ZIGBEE2MQTT_DEVICE_PATH:?eg echo ZIGBEE2MQTT_DEVICE_PATH=/dev/ttyACM0 >>~/IOTstack/.env}:/dev/ttyACM0"
1516
restart: unless-stopped
1617
depends_on:
1718
- mosquitto

0 commit comments

Comments
 (0)