Last active
April 23, 2022 14:49
-
-
Save 877dev/6e4bdb3258ab86023e775b9bcc26672d to your computer and use it in GitHub Desktop.
Docker Compose instructions for adding new unsupported devices to Zigbee2mqtt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Docker Compose | |
To setup a local copy of zigbee-herdsman-converters so that you can modify e.g. `devices.js` and from`Zigbee.js`; use the following instructions: | |
`cd /opt` | |
`git clone https://github.com/Koenkk/zigbee-herdsman-converters.git` | |
Now add the volumes to your `docker-compose.yml ` | |
Example: | |
``` | |
zigbee2mqtt: | |
container_name: zigbee2mqtt | |
image: koenkk/zigbee2mqtt:latest-dev | |
volumes: | |
- ./volumes/zigbee2mqtt/data:/app/data | |
- /opt/zigbee-herdsman-converters/index.js:/app/node_modules/zigbee-herdsman-converters/index.js | |
- /opt/zigbee-herdsman-converters/devices.js:/app/node_modules/zigbee-herdsman-converters/devices.js | |
- /opt/zigbee-herdsman-converters/converters:/app/node_modules/zigbee-herdsman-converters/converters | |
- /opt/zigbee-herdsman-converters/lib:/app/node_modules/zigbee-herdsman-converters/lib | |
devices: | |
#- /dev/ttyAMA0:/dev/ttyACM0 | |
- /dev/ttyACM0:/dev/ttyACM0 | |
restart: unless-stopped | |
network_mode: host | |
``` | |
To remove local changes simply remove/comment out the four `/opt/zigbee-herdsman-converters/......` lines from your docker-compose. | |
Don't forget to run `docker-compose up -d ` after making changes to `docker-compose.yml`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment