[Résolu] Zigbee2MQTT, problème d'installation sur Rpi3

Bonjour,
Je tourne en rond depuis quelques jours sur l’installation de Zigbee2Mqtt sur Rpi3.
Mon ancienne installation sur Jeedom ayant crashé, j’ai décidé d’installer HA .
Avec Zigbee Home Automation, pas de problème, mes différents capteurs sont bien détectés, mais certains avec des actions restreintes.
J’essaie donc d’inastaller Mqtt que j’avais sur Jeedom.

J’ai essayé plusieurs fois une installation neuve à partir du tuto de Domoblog, ou celui d’Hacf, toujours le même problème :
Erreur dans Zigbee2MQTT :
[2024-05-19 07:46:54] error: z2m: Error while starting zigbee-herdsman

Voici quelques logs :

Home Assistant
• Core2024.5.4
• Supervisor2024.05.1
• Operating System12.3
• Interface utilisateur20240501.1

Rasperry PI 3 V1.2
Clef Conbee II

Mosquitto broker
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[07:46:33] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
s6-rc: info: service legacy-services successfully started
[07:46:39] INFO: Starting NGINX for authentication handling…
[07:46:40] INFO: Starting mosquitto MQTT broker…
2024-05-19 07:46:40: Warning: Mosquitto should not be run as root/administrator.
2024-05-19 07:46:40: mosquitto version 2.0.18 starting
2024-05-19 07:46:40: Config loaded from /etc/mosquitto/mosquitto.conf.
2024-05-19 07:46:40: Loading plugin: /usr/share/mosquitto/go-auth.so
2024-05-19 07:46:40: ├── Username/password checking enabled.
2024-05-19 07:46:40: ├── TLS-PSK checking enabled.
2024-05-19 07:46:40: └── Extended authentication not enabled.
2024-05-19 07:46:40: Opening ipv4 listen socket on port 1883.
2024-05-19 07:46:40: Opening ipv6 listen socket on port 1883.
2024-05-19 07:46:40: Opening websockets listen socket on port 1884.
2024-05-19 07:46:40: mosquitto version 2.0.18 running
2024-05-19 07:46:42: New connection from 127.0.0.1:42472 on port 1883.
2024-05-19 07:46:42: Client disconnected due to protocol error.
[07:46:48] INFO: Successfully send discovery information to Home Assistant.
[07:46:52] INFO: Successfully send service information to the Supervisor.
2024-05-19 07:47:11: New connection from 172.30.32.2:44910 on port 1883.
2024-05-19 07:47:11: Client closed its connection.
2024-05-19 07:49:11: New connection from 172.30.32.2:56472 on port 1883.
2024-05-19 07:49:11: Client closed its connection.
2024-05-19 07:51:11: New connection from 172.30.32.2:46984 on port 1883.
2024-05-19 07:51:11: Client closed its connection.

Zigbee2MQTT
[07:45:55] INFO: Preparing to start…
[07:45:57] INFO: Socat not enabled
[07:46:06] INFO: Starting Zigbee2MQTT…
[2024-05-19 07:46:31] info: z2m: Logging to console, file (filename: log.log)
[2024-05-19 07:46:32] info: z2m: Starting Zigbee2MQTT version 1.37.1 (commit #unknown)
[2024-05-19 07:46:32] info: z2m: Starting zigbee-herdsman (0.46.6)
[2024-05-19 07:46:34] info: zh:zstack:znp: Opening SerialPort with {« path »:« /dev/ttyACM0 »,« baudRate »:115200,« rtscts »:false,« autoOpen »:false}
[2024-05-19 07:46:34] info: zh:zstack:znp: Serialport opened
[2024-05-19 07:46:34] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-05-19 07:46:35] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-05-19 07:46:54] error: z2m: Error while starting zigbee-herdsman
[2024-05-19 07:46:54] error: z2m: Failed to start zigbee
[2024-05-19 07:46:54] error: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
[2024-05-19 07:46:54] error: z2m: Exiting…
[2024-05-19 07:46:55] error: z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:101:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
at Zigbee.start (/app/lib/zigbee.ts:62:27)
at Controller.start (/app/lib/controller.ts:109:27)
at start (/app/index.js:107:5)

Bonne fin de journée à tous.

bonsoir,
ta cl semble encore utilsée par ZHA, il faut désinstaller ZHA et l’ignorer

Bonjour,
En effet j’ai réinstallé ZHA pour vérifier que la clé Conbee II fonctionnait bien.
Je viens de désinstaller ZHA, mais le problème reste le même.
Mosquitto broker
2024-05-20 06:52:22: New client connected from 172.30.32.1:56601 as 5M059JFoV9smbd9nZA0Qyh (p2, c1, k60, u’homeassistant’).
2024-05-20 06:53:35: New connection from 172.30.32.2:60990 on port 1883.
2024-05-20 06:53:35: Client closed its connection.
2024-05-20 06:53:54: Client 7fRBLFAcJpHBvADpB7LZ71 has exceeded timeout, disconnecting.
2024-05-20 06:55:35: New connection from 172.30.32.2:39376 on port 1883.
2024-05-20 06:55:35: Client closed its connection.

Zigbee2MQTT

[06:57:12] INFO: Preparing to start…
[06:57:15] INFO: Socat not enabled
[06:57:23] INFO: Starting Zigbee2MQTT…
[2024-05-20 06:57:47] info: z2m: Logging to console, file (filename: log.log)
[2024-05-20 06:57:48] info: z2m: Starting Zigbee2MQTT version 1.37.1 (commit #unknown)
[2024-05-20 06:57:48] info: z2m: Starting zigbee-herdsman (0.46.6)
[2024-05-20 06:57:50] info: zh:zstack:znp: Opening SerialPort with {« path »:« /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2684544-if00 »,« baudRate »:115200,« rtscts »:false,« autoOpen »:false}
[2024-05-20 06:57:50] info: zh:zstack:znp: Serialport opened
[2024-05-20 06:57:50] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-05-20 06:57:51] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-05-20 06:58:10] error: z2m: Error while starting zigbee-herdsman
[2024-05-20 06:58:10] error: z2m: Failed to start zigbee
[2024-05-20 06:58:10] error: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
[2024-05-20 06:58:10] error: z2m: Exiting…
[2024-05-20 06:58:10] error: z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:101:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:124:29)
at Zigbee.start (/app/lib/zigbee.ts:62:27)
at Controller.start (/app/lib/controller.ts:109:27)
at start (/app/index.js:107:5)
[06:58:14] INFO: Preparing to start…
[06:58:17] INFO: Socat not enabled
[06:58:25] INFO: Starting Zigbee2MQTT…

Bonjour,
vous avez mis adapter: deconz dans la parti serial ?

Bonjour,
Oui.

Regarde si c’est bien sauvegarder dans le fichier configuration.yaml dans le dossier /config/zigbee2mqtt.

Quand tu désintaller ZHA, faut redémarrer HA.
ZHA va te re-détecter la clé, faut faire ignorer pour ZHA, sinon le port de la clé est toujours utiliser par ZHA.

Je réinstalle tout et je vous recontacte.

Re-bonjour,
Je crois que j’ai trouvé.
J’ai réinstallé HAios mais sans la clé usb Conbee II.
Je l’ai branchée après l’installation et configuration de ZigbeeMqtt.
Je n’ai plus l’erreur.
Bonne journée à tous.

1 « J'aime »