almost working

This commit is contained in:
root
2023-11-08 22:15:58 -06:00
parent 4898812923
commit 82f1ad6515
5 changed files with 52 additions and 0 deletions

2
.gitignore vendored
View File

@@ -158,3 +158,5 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear # 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. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
log/

View File

@@ -1,2 +1,6 @@
# zigbee-stack # zigbee-stack
Zigbee smarthome stack Zigbee smarthome stack
## Mosquitto
### [Docker Image](https://hub.docker.com/_/eclipse-mosquitto)

23
docker-compose.yml Normal file
View File

@@ -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

2
mosquitto/moquitto.conf Normal file
View File

@@ -0,0 +1,2 @@
allow_anonymous true
listener 1883 0.0.0.0

View File

@@ -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