almost working
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -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/
|
||||
@@ -1,2 +1,6 @@
|
||||
# zigbee-stack
|
||||
Zigbee smarthome stack
|
||||
|
||||
## Mosquitto
|
||||
|
||||
### [Docker Image](https://hub.docker.com/_/eclipse-mosquitto)
|
||||
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal 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
2
mosquitto/moquitto.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
allow_anonymous true
|
||||
listener 1883 0.0.0.0
|
||||
21
zigbee2mqtt/configuration.yaml
Normal file
21
zigbee2mqtt/configuration.yaml
Normal 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
|
||||
Reference in New Issue
Block a user