diff --git a/.gitignore b/.gitignore index 68bc17f..8839b2a 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,5 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +log/ \ No newline at end of file diff --git a/README.md b/README.md index 4677d58..c2b00b6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # zigbee-stack Zigbee smarthome stack + +## Mosquitto + +### [Docker Image](https://hub.docker.com/_/eclipse-mosquitto) \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8f562c3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +version: "3" +services: + mqtt: + container_name: mosquitto + image: eclipse-mosquitto + restart: unless-stopped + volumes: + - ./mosquitto/moquitto.conf:/mosquitto/config/mosquitto.conf + + z2m: + container_name: zigbee2mqtt + image: koenkk/zigbee2mqtt + restart: unless-stopped + depends_on: + - mqtt + volumes: + - ./zigbee2mqtt:/app/data + - /run/udev:/run/udev:ro + ports: + - 8080:8080 + devices: + - /dev/ttyUSB0:/dev/ttyUSB0 + privileged: true diff --git a/mosquitto/moquitto.conf b/mosquitto/moquitto.conf new file mode 100644 index 0000000..2f5d23f --- /dev/null +++ b/mosquitto/moquitto.conf @@ -0,0 +1,2 @@ +allow_anonymous true +listener 1883 0.0.0.0 \ No newline at end of file diff --git a/zigbee2mqtt/configuration.yaml b/zigbee2mqtt/configuration.yaml new file mode 100644 index 0000000..f453862 --- /dev/null +++ b/zigbee2mqtt/configuration.yaml @@ -0,0 +1,21 @@ +# Home Assistant integration (MQTT discovery) +homeassistant: true + +# allow new devices to join +permit_join: true + +# MQTT settings +mqtt: + # MQTT base topic for zigbee2mqtt MQTT messages + base_topic: zigbee2mqtt + # MQTT server URL + server: 'mqtt://mqtt.localdomain:1883' + # MQTT server authentication, uncomment if required: + user: homeassistant + password: frb-HNJ-jdq8cjn*ktp + +# Serial settings +serial: + # Location of CC2531 USB sniffer + port: /dev/ttyUSB0 + adapter: ezsp