diff --git a/zigbee2mqtt/README.md b/zigbee2mqtt/README.md index 0bae5e4..61c7c3c 100644 --- a/zigbee2mqtt/README.md +++ b/zigbee2mqtt/README.md @@ -28,6 +28,19 @@ udevadm info -q property -n /dev/ttyUSB0 --property=ID_MODEL ```bash $ docker compose up -d +$ vim data/configuration.yaml +$ docker compose restart +$ tree +├── data +│   ├── configuration.yaml +│   ├── coordinator_backup.json +│   ├── database.db +│   ├── log +│   │   └── 2024-01-03.16-06-42 +│   │   └── log.txt +│   ├── secret.yaml +│   └── state.json +└── docker-compose.yml $ curl 127.0.0.1:8080 ``` diff --git a/zigbee2mqtt/data/.gitkeep b/zigbee2mqtt/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/zigbee2mqtt/data/configuration.yaml b/zigbee2mqtt/data/configuration.yaml deleted file mode 100644 index 806e600..0000000 --- a/zigbee2mqtt/data/configuration.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Home Assistant integration (MQTT discovery) -homeassistant: false - -# allow new devices to join -permit_join: false - -# MQTT settings -mqtt: - # MQTT base topic for zigbee2mqtt MQTT messages - base_topic: zigbee2mqtt - # MQTT server URL - server: 'mqtt://localhost' - # MQTT server authentication, uncomment if required: - # user: my_user - # password: my_password - -# Serial settings -serial: - # Location of CC2531 USB sniffer - port: /dev/ttyACM0 diff --git a/zigbee2mqtt/docker-compose.yml b/zigbee2mqtt/docker-compose.yml index fb472db..d0ad2aa 100644 --- a/zigbee2mqtt/docker-compose.yml +++ b/zigbee2mqtt/docker-compose.yml @@ -1,3 +1,7 @@ +# +# See: https://www.zigbee2mqtt.io/guide/installation/02_docker.html#docker-compose +# + version: "3.8" services: zigbee2mqtt: @@ -11,4 +15,7 @@ services: - TZ=Asia/Shanghai devices: - /dev/serial/by-id/usb-Texas_Instruments_XXXXXX:/dev/ttyACM0 + group_add: + - dialout + user: "1000:1000" restart: unless-stopped