Résolu: Plantage de zigbee2mqtt

Bonjour,

suite à la mise à jour 4.62, j’ai plus rien qui fonctionne :frowning:

La page web zigbee2mqtt n’est plus accessible.

docker images
REPOSITORY               TAG       IMAGE ID       CREATED         SIZE
gladysassistant/gladys   v4        d052f365771b   3 days ago      1.41GB
koenkk/zigbee2mqtt       2.4.0     7706f8947dde   3 months ago    192MB
nodered/node-red         3.1       85c60175d24a   5 months ago    559MB
koenkk/zigbee2mqtt       1.42.0    b9ab0b017b28   9 months ago    120MB
koenkk/zigbee2mqtt       latest    b9ab0b017b28   9 months ago    120MB
containrrr/watchtower    latest    e7dd50d07b86   22 months ago   14.7MB
eclipse-mosquitto        2         97ac6de756a3   2 years ago     13.3MB
eclipse-mosquitto        2.0.15    2b1de2694efa   2 years ago     13.3MB
docker ps
CONTAINER ID   IMAGE                          COMMAND                  CREATED         STATUS                    PORTS      NAMES
914acaeb7a22   gladysassistant/gladys:v4      "docker-entrypoint.s…"   6 hours ago     Up 11 minutes                        gladys
939ff965522a   containrrr/watchtower:latest   "/watchtower --clean…"   22 months ago   Up 11 minutes (healthy)   8080/tcp   watchtower
c61d905371cc   eclipse-mosquitto:2.0.15       "/docker-entrypoint.…"   2 years ago     Up 11 minutes                        eclipse-mosquitto
7ae91e628a97   eclipse-mosquitto:2.0.15       "/docker-entrypoint.…"   2 years ago     Up 11 minutes                        gladys-z2m-mqtt
docker run koenkk/zigbee2mqtt
Using '/app/data' as data directory
Creating configuration file...
Starting Zigbee2MQTT without watchdog.
[2025-09-26 06:56:00] info:     z2m: Logging to console, file (filename: log.log)
[2025-09-26 06:56:00] info:     z2m: Starting Zigbee2MQTT version 1.42.0 (commit #861cba6)
[2025-09-26 06:56:00] info:     z2m: Starting zigbee-herdsman (2.1.9)
[2025-09-26 06:56:00] error:    zh:zstack:znp: Failed to determine if path is valid: 'Error: ENOENT: no such file or directory, lstat '/dev/ttyACM0''
[2025-09-26 06:56:00] info:     zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyACM0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2025-09-26 06:56:00] error:    z2m: Error while starting zigbee-herdsman
[2025-09-26 06:56:00] error:    z2m: Failed to start zigbee
[2025-09-26 06:56:00] error:    z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2025-09-26 06:56:00] error:    z2m: Exiting...
[2025-09-26 06:56:00] error:    z2m: Error: Error: No such file or directory, cannot open /dev/ttyACM0

Et le lien vers la doc est un 404.
Le souci est donc /dev/ttyACM0.
Je modifie le fichier yaml en /dev/ttyUSB0

docker start -ai zigbee2mqtt
Using '/app/data' as data directory
Starting Zigbee2MQTT without watchdog.
[2025-09-26 09:09:00] info:     z2m: Logging to console, file (filename: log.log)
[2025-09-26 09:09:00] info:     z2m: Starting Zigbee2MQTT version 1.42.0 (commit #861cba6)
[2025-09-26 09:09:00] info:     z2m: Starting zigbee-herdsman (2.1.9)
[2025-09-26 09:09:01] info:     zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2025-09-26 09:09:01] info:     zh:zstack:znp: Serialport opened
[2025-09-26 09:09:01] info:     z2m: zigbee-herdsman started (resumed)
[2025-09-26 09:09:01] info:     z2m: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"}'
[2025-09-26 09:09:01] info:     z2m: Currently 0 devices are joined.
[2025-09-26 09:09:01] info:     z2m: Zigbee: disabling joining new devices.
[2025-09-26 09:09:02] info:     z2m: Connecting to MQTT server at mqtt://localhost
[2025-09-26 09:09:02] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:02] error:    z2m: MQTT failed to connect, exiting... (connect ECONNREFUSED ::1:1883)
[2025-09-26 09:09:02] info:     z2m: Stopping zigbee-herdsman...
[2025-09-26 09:09:03] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:04] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:05] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:06] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:07] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:08] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:09] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:10] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:11] error:    z2m: MQTT error: connect ECONNREFUSED ::1:1883
[2025-09-26 09:09:11] info:     zh:controller: Wrote coordinator backup to '/app/data/coordinator_backup.json'
[2025-09-26 09:09:11] info:     zh:zstack:znp: closing
[2025-09-26 09:09:11] info:     zh:zstack:znp: Port closed
[2025-09-26 09:09:11] info:     z2m: Stopped zigbee-herdsman

Je modifie le yaml en remplacant mqtt://localhost par mqtt://mon_ip:1883

docker start -ai zigbee2mqtt
Using '/app/data' as data directory
Starting Zigbee2MQTT without watchdog.
[2025-09-26 11:10:34] info:     z2m: Logging to console, file (filename: log.log)
[2025-09-26 11:10:34] info:     z2m: Starting Zigbee2MQTT version 1.42.0 (commit #861cba6)
[2025-09-26 11:10:34] info:     z2m: Starting zigbee-herdsman (2.1.9)
[2025-09-26 11:10:35] info:     zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2025-09-26 11:10:35] info:     zh:zstack:znp: Serialport opened
[2025-09-26 11:10:35] info:     z2m: zigbee-herdsman started (resumed)
[2025-09-26 11:10:35] info:     z2m: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210120,"transportrev":2},"type":"zStack3x0"}'
[2025-09-26 11:10:35] info:     z2m: Currently 0 devices are joined.
[2025-09-26 11:10:35] info:     z2m: Zigbee: disabling joining new devices.
[2025-09-26 11:10:35] info:     z2m: Connecting to MQTT server at mqtt://x.x.x.x:1883
[2025-09-26 11:10:35] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:35] error:    z2m: MQTT failed to connect, exiting... (Connection refused: Not authorized)
[2025-09-26 11:10:35] info:     z2m: Stopping zigbee-herdsman...
[2025-09-26 11:10:36] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:37] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:38] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:39] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:40] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:41] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:42] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:44] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:45] error:    z2m: MQTT error: Connection refused: Not authorized
[2025-09-26 11:10:45] info:     zh:controller: Wrote coordinator backup to '/app/data/coordinator_backup.json'
[2025-09-26 11:10:45] info:     zh:zstack:znp: closing
[2025-09-26 11:10:45] info:     zh:zstack:znp: Port closed
[2025-09-26 11:10:45] info:     z2m: Stopped zigbee-herdsman

Ca commence à faire beaucoup pour moi là :frowning:

Une idée de comment régler tout ça ?

Merci !

PS, j’ai rebooté plusieurs fois au cas où…

PS la page zigbee2mqtt n’est plus à jour dans la doc

Salut, il ne faut surtout pas faire ça, la configuration était bonne.

Il s’agit d’un mapping du path à l’intérieur du conteneur Docker qui ne change jamais.

Si jamais ta clé USB a changé de port, il faut le changer dans l’intégration Zigbee2mqtt côté Gladys, mais il ne faut jamais toucher aux fichiers sur le disque :smiley:

Je vois que le modèle du dongle Zigbee n’est pas sélectionné dans Gladys, c’est normal ?

Edit: Par ailleurs, je ne comprend pas ce que tu fais avec toutes ces commandes, il ne faut pas faire ça si tu es en installation géré par Gladys… :sweat_smile:

J’ai voulu essayer quelques trucs avant de venir -_-
J’ai tout remis comme c’était.

Oui je ne retrouve pas ma clé dans la liste…

lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:c821 Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 002: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Je reboote et :
bc4b85e98c0e koenkk/zigbee2mqtt:2.6.1 "docker-entrypoint.s…" 30 minutes ago Up Less than a second gladys-z2m-zigbee2mqtt
se recharge toutes les 20-30s

Du coup, pas la peine de chercher plus loin, si ta clé n’apparait pas, Zigbee2mqtt ne pourra pas fonctionner !

Tu peux essayer plusieurs choses: débrancher/rebrancher la clé, redémarrer le mini-PC (même si tu l’as déjà fais apparemment), mais il faut que cette clé apparaisse

Le truc c’est qu’elle est bien détectée par lsusb et que tout était fonctionnel depuis un moment…
et si je ne dis pas de bêtise, gladys ne proposait que les clés qu’elle voyait non ?

le changement de port ne change rien, lsusb le voit toujours mais rien de particulier dans gladys.

Ah pardon on s’est mal compris je pensais que tu ne voyais pas la clé avec lusb.

Tu as lancé Gladys comment ? Avec la commande du site ? Tu n’as pas modifié le docker run ?

Non pas de commande particulière pour ce que je m’en rappelle.

Comment on peut retrouver la commande executée au lancement ?

Ca tombe super mal, je pars pour le week end :frowning:

je t’ai envoyé un mp avec le retour de docker inspect /gladys

Le docker inspect me parait bon, le container a bien accès à /dev:/dev pour voir les ports USB.

Est-ce que tu es disponible rapidement pour un call pour débloquer ça ensemble ?

Si oui, je t’envoie un lien en privée

C’était un probleme de résolution DNS…
Aucun rapport avec Gladys !

Merci beaucoup !

1 « J'aime »

Tant mieux si ça marche maintenant, on a bien fait de s’appeler pour debugger ça ensemble, c’est souvent plus simple ! :grin:

Bon week-end !