[Résolu] Zigbee2MQTT avec dongle SONOFF

Bonsoir,

Pour remplacer ma gateway xiaomi, j’ai voulu installer le dongle sonoff zigbee mais après 2 jours je n’arrive pas à appareiller quoi que se soit dans Z2M.

Voici les log que j’ai

info  2022-04-06 21:27:45: Logging to console and directory: '/config/zigbee2mqtt/log/2022-04-06.21-27-42' filename: log.txt
info  2022-04-06 21:27:45: Starting Zigbee2MQTT version 1.25.0 (commit #unknown)
info  2022-04-06 21:27:45: Starting zigbee-herdsman (0.14.20)
error 2022-04-06 21:28:51: Error while starting zigbee-herdsman
error 2022-04-06 21:28:51: Failed to start zigbee
error 2022-04-06 21:28:51: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
error 2022-04-06 21:28:51: Exiting...
error 2022-04-06 21:28:51: Error: network commissioning timed out - most likely network with the same panId or extendedPanId already exists nearby
    at ZnpAdapterManager.beginCommissioning (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:347:23)
    at ZnpAdapterManager.beginRestore (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:296:9)
    at ZnpAdapterManager.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:80:17)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:100:27)
    at start (/app/index.js:101:5)

Salut.
Juste pour être sur, tu as coupé la gateway ?

oui

j’ai reflashé le dongle et réinstallé Z2M, rien n’y fait pourtant la nouvelle version du firmware apparait dans Z2M.

Voici un nouvel exemple de logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[22:15:43] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:15:46] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.25.0 start
> node index.js
Zigbee2MQTT:info  07-04-2022 22:15:53: Logging to console and directory: '/config/zigbee2mqtt/log/2022-04-07.22-15-50' filename: log.txt
Zigbee2MQTT:info  07-04-2022 22:15:53: Starting Zigbee2MQTT version 1.25.0 (commit #unknown)
Zigbee2MQTT:info  07-04-2022 22:15:53: Starting zigbee-herdsman (0.14.20)
Zigbee2MQTT:error 07-04-2022 22:16:13: Error while starting zigbee-herdsman
Zigbee2MQTT:error 07-04-2022 22:16:13: Failed to start zigbee
Zigbee2MQTT:error 07-04-2022 22:16:13: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 07-04-2022 22:16:13: Exiting...
Zigbee2MQTT:error 07-04-2022 22:16:13: 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:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:100:27)
    at start (/app/index.js:101:5)
[22:16:15] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.25.0 start
> node index.js
Zigbee2MQTT:info  07-04-2022 22:16:22: Logging to console and directory: '/config/zigbee2mqtt/log/2022-04-07.22-16-19' filename: log.txt
Zigbee2MQTT:info  07-04-2022 22:16:22: Starting Zigbee2MQTT version 1.25.0 (commit #unknown)
Zigbee2MQTT:info  07-04-2022 22:16:22: Starting zigbee-herdsman (0.14.20)
Zigbee2MQTT:error 07-04-2022 22:16:42: Error while starting zigbee-herdsman
Zigbee2MQTT:error 07-04-2022 22:16:42: Failed to start zigbee
Zigbee2MQTT:error 07-04-2022 22:16:42: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 07-04-2022 22:16:42: Exiting...
Zigbee2MQTT:error 07-04-2022 22:16:43: 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:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:100:27)
    at start (/app/index.js:101:5)
[22:16:45] INFO: Handing over control to Zigbee2mqtt Core ...
> zigbee2mqtt@1.25.0 start
> node index.js
Zigbee2MQTT:info  07-04-2022 22:16:52: Logging to console and directory: '/config/zigbee2mqtt/log/2022-04-07.22-16-49' filename: log.txt
Zigbee2MQTT:info  07-04-2022 22:16:52: Starting Zigbee2MQTT version 1.25.0 (commit #unknown)
Zigbee2MQTT:info  07-04-2022 22:16:52: Starting zigbee-herdsman (0.14.20)
Zigbee2MQTT:info  07-04-2022 22:16:54: zigbee-herdsman started (resumed)
Zigbee2MQTT:info  07-04-2022 22:16:54: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20220219,"transportrev":2},"type":"zStack3x0"}'
Zigbee2MQTT:info  07-04-2022 22:16:54: Currently 0 devices are joined:
Zigbee2MQTT:info  07-04-2022 22:16:54: Zigbee: disabling joining new devices.
Zigbee2MQTT:info  07-04-2022 22:16:54: Connecting to MQTT server at mqtt://192.168.1.1:1883

Il voit pas ta clé sonoff si ?

Zigbee2MQTT:error 07-04-2022 22:16:43: 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:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:100:27)
    at start (/app/index.js:101:5)

Je t’invite à mettre les infos de ton installation comme demandé lors de la création de ton post pour éviter des questions répétitives stp :wink:

As-tu récupéré le chemin de ta clé ?
Peux-tu partager ta config z2mqtt en enlevant les infos sensibles.
Merci

elle ne démarre pas au premier coup on dirait mais elle est reconnue au bout d’un moment

tu es sous quel type d’installation ?

Si tu es en docker peux-tu forcer la version de z2mqtt en 1.24.0 et réssayer

voici ma config

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false
mqtt:
  server: mqtt://192.xxx.x.x:1883
  user: mqtt
  password: mqtt
serial:
  port: /dev/ttyUSB0
homeassistant: true
frontend:
  port: 8099
  host: 192.xxx.x.x
advanced:
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
  log_syslog:
    app_name: Zigbee2MQTT
    eol: /n
    host: localhost
    localhost: localhost
    path: /dev/log
    pid: process.pid
    port: 123
    protocol: tcp4
    type: '5424'
  timestamp_format: DD-MM-YYYY HH:mm:ss
device_options:
  legacy: false
permit_join: true

je suis passé par les modules complémentaires

Je ne crois pas que l’on puisse choisir la version.

Regarde dans la release note de zigbee2mqtt, il y a une mise jour a faire sur les cles cc2652.

Je l’ai reflashé mais toujours rien

tu as que la cles USB de branché ? tu es sur un Raspberry ?

Non je tourne sur ssd en usb3

avec alimentation supplémentaire ?

Non, je vais virer le ssd demain pour tester

Merci @McFly, la sulution est bien là. Le fait de repasser HA sur mSD à solutionner le pb. Maintenant il me faut trouver un system pour mon SSD.

1 « J'aime »