Zigbee2MQTT
official documentation:
https://www.zigbee2mqtt.io/guide/getting-started/
Insert the zigbee dongle on the usb port
ls /dev/serial/by-id/
create a docker-compose.yml
touch docker-compose.yml
version: '3.8'
services:
zigbee2mqtt:
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt
restart: unless-stopped
ports:
- 8080:8080 # Web UI opcional
volumes:
- ./data:/app/data
environment:
- TZ=Europe/Madrid
devices:
- "/dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_[ID_UNICO]-if00-port0:/dev/ttyUSB0"
change the part /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_[ID_UNICO]-if00-port0
for the resulting part of executing this command ls /dev/serial/by-id/
setup grants
sudo chmod 666 /dev/serial/by-id/[DISPOSITIVO]
or
sudo usermod -aG dialout $USER && reboot
run the docker-compose.yml
docker-compose up -d
open a browser on the http://localhost:8080/
url