mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
update zigbee2mqtt
This commit is contained in:
parent
900d7ee8d4
commit
456582ddcb
@ -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
|
||||
```
|
||||
|
||||
|
0
zigbee2mqtt/data/.gitkeep
Normal file
0
zigbee2mqtt/data/.gitkeep
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user