Now in 2024 I had some days of holiday, and so I tried again. I have found and read several threads on the Interwebz about this topic, but I find it difficult toe see the tree in the forrest.
https://www.zigbee2mqtt.io/guide/instal ... ocker.html
https://docs.docker.com/engine/install/ ... repository
https://blog.smarterhome.my/how-to-inst ... portainer/
https://mannema.nl/howto-docker.html
The first "problem". is the choice for Docker, Docker Compose or Docker-Compose. After trying several installs (ad give up again)
Today I followed the installation of this link https://mannema.nl/howto-docker.html and this brought me very far.
I mannaged to get Portainer running (the easy part) and then I got Mosquitto and Domoticz running, but I get stuck on getting Zigbee2MQTT working (following the descriptions in the link).
Over time there are several Links explaining how to install with docker, docker compose, docker-compose. But they are not updated to the latest versions and between each other not completely compatible.
I got Zigbee2MQTT to install in docker, but according to Portainer there is something wrong in the configuration and ik keeps on re-starting.
Error report from Portainer:
Using '/app/data' as data directory
/app/node_modules/js-yaml/lib/loader.js:183
return new YAMLException(message, mark);
^
YAMLException: duplicated mapping key (6:1)
3 | mqtt:
4 | base_topic: zigbee2mqtt
5 | server: mqtt://172.18.0.2
6 | frontend:
-----^
7 | port: 9080
8 | serial:
at generateError (/app/node_modules/js-yaml/lib/loader.js:183:10)
at throwError (/app/node_modules/js-yaml/lib/loader.js:187:9)
at storeMappingPair (/app/node_modules/js-yaml/lib/loader.js:358:7)
at readBlockMapping (/app/node_modules/js-yaml/lib/loader.js
at composeNode (/app/node_modules/js-yaml/lib/loader.js
at readDocument (/app/node_modules/js-yaml/lib/loader.js
at loadDocuments (/app/node_modules/js-yaml/lib/loader.js
at Object.load (/app/node_modules/js-yaml/lib/loader.js
at Object.read (/app/lib/util/yaml.ts:7:29)
at read (/app/lib/util/settings.ts:333:20)
This is the docker-compose.yaml file:
version: "3.8"
services:
zigbee2mqtt:
container_name: Zigbee2MQTT
image: koenkk/zigbee2mqtt:latest
restart: always
volumes:
- /var/mydata/zigbee2mqtt/data:/app/data
- /run/udev:/run/udev:ro
ports:
# Frontend port
- 9080:9080
environment:
- TZ=Europe/Amsterdam
devices:
# - /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0:/dev/ttyACM0
- /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_21_CC_37_E9-if00-port0:/dev/ttyUSB0
configuration file: /var/mydata/zigbee2mqtt/data/configuration.yaml
homeassistant: false
frontend: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://172.18.0.2
frontend:
port: 9080
serial:
port: /dev/ttyUSB0
advanced:
network_key: GENERATE
Any Help is much appreciated