From d0eaeee12f3a5a542d5e8fda014d0130f4330215 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Tue, 9 Jun 2020 22:13:03 +0300 Subject: [PATCH] Add experimental zigbee2mqtt_deconz --- zigbee2mqtt_deconz/Dockerfile | 9 +++++++++ zigbee2mqtt_deconz/data/configuration.yaml | 12 ++++++++++++ zigbee2mqtt_deconz/docker-compose.yaml | 15 +++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 zigbee2mqtt_deconz/Dockerfile create mode 100644 zigbee2mqtt_deconz/data/configuration.yaml create mode 100644 zigbee2mqtt_deconz/docker-compose.yaml diff --git a/zigbee2mqtt_deconz/Dockerfile b/zigbee2mqtt_deconz/Dockerfile new file mode 100644 index 0000000..fb7d1ce --- /dev/null +++ b/zigbee2mqtt_deconz/Dockerfile @@ -0,0 +1,9 @@ +FROM koenkk/zigbee2mqtt:latest + +RUN apk add --no-cache \ + git python3 make gcc g++ python linux-headers udev +RUN rm -rf /app/node_modules/zigbee-herdsman/ +RUN git clone https://github.com/Koenkk/zigbee-herdsman.git /app/node_modules/zigbee-herdsman/ +RUN cd /app/node_modules/zigbee-herdsman/ && git checkout deconz +RUN cd /app/node_modules/zigbee-herdsman/ && npm install +RUN cd /app/node_modules/zigbee-herdsman/ && npm run build diff --git a/zigbee2mqtt_deconz/data/configuration.yaml b/zigbee2mqtt_deconz/data/configuration.yaml new file mode 100644 index 0000000..81a2014 --- /dev/null +++ b/zigbee2mqtt_deconz/data/configuration.yaml @@ -0,0 +1,12 @@ +homeassistant: false +permit_join: true +mqtt: + base_topic: zigbee2mqtt + server: 'mqtt://192.168.0.27' + user: '!secret user' + password: '!secret password' +serial: + port: /dev/ttyACM0 +advanced: + channel: 12 + log_level: debug diff --git a/zigbee2mqtt_deconz/docker-compose.yaml b/zigbee2mqtt_deconz/docker-compose.yaml new file mode 100644 index 0000000..76a27e1 --- /dev/null +++ b/zigbee2mqtt_deconz/docker-compose.yaml @@ -0,0 +1,15 @@ + + zigbee2mqtt_deconz: + container_name: zigbee2mqtt_deconz + build: . + dockerfile: Dockerfile + volumes: + - .data:/app/data + - /run/udev:/run/udev:ro + devices: + - /dev/ttyACM0:/dev/ttyACM0 + restart: always + network_mode: host + privileged: true + environment: + - TZ=Europe/Sofia