Problème démon JeeZigbee avec clé Sonoff et MAJ de clé

Bonjour,

Suite à ce topic, je me lance dans l’aventure Zigbee.

J’ai installé le plugin JeeZigbee. Je possède MQTT manager et jMQTT depuis déjà quelques années sans souci.

La clé Sonoff est bien visible sous Jeedom que ce soit sur le port USB1 ou via son lien direct.
Que je configure le plugin en auto, en pointant la clé ou le port usb, rien n’y fait le démon passe en NOK.

Les dépendances sont OK :



+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_z2m
+ echo 1
+ echo 2
+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
+ sudo /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh
Launch pre-install of z2m dependancy
+ echo 3
+ php /var/www/html/core/class/../php/jeecli.php plugin install mqtt2
+ echo 4
+ sudo killall apt apt-get unattended-upgr
apt: no process found
apt-get: no process found
+ sudo rm /var/lib/apt/lists/lock
+ sudo rm /var/cache/apt/archives/lock
+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
+ sudo sudo dpkg --configure -a --force-confdef
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [27.2 kB]
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
Get:5 http://security.debian.org/debian-security bullseye-security/main Sources [240 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [350 kB]
Fetched 661 kB in 1s (1176 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
134 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ echo 5
+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
apt-utils is already the newest version (2.2.4).
build-essential is already the newest version (12.9).
lsb-release is already the newest version (11.1.0).
git is already the newest version (1:2.30.2-1+deb11u4).
0 upgraded, 0 newly installed, 0 to remove and 134 not upgraded.
[Check Version NodeJS actuelle : v20.17.0 : [  OK  ]
[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [  OK  ]
Clean npm cache
npm warn using --force Recommended protections disabled.
+ echo 6
+ sudo apt install -o Dpkg::Options::=--force-confdef -y php-yaml
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
php-yaml is already the newest version (2.2.1+2.1.0+2.0.4+1.3.2-2).
0 upgraded, 0 newly installed, 0 to remove and 134 not upgraded.
+ echo 7
+ sudo systemctl restart apache2
+ echo 8
+ sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
+ sudo /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
+ echo Launch post-install of z2m dependancy
Launch post-install of z2m dependancy
+ realpath /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
+ dirname /var/www/html/plugins/z2m/resources/post-install.sh
+ BASEDIR=/var/www/html/plugins/z2m/resources
+ [ -d /var/www/html/plugins/z2m/resources/zigbee2mqtt ]
+ mkdir /var/www/html/plugins/z2m/resources/zigbee2mqtt
+ git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /var/www/html/plugins/z2m/resources/zigbee2mqtt
Cloning into '/var/www/html/plugins/z2m/resources/zigbee2mqtt'...
+ cd /var/www/html/plugins/z2m/resources/zigbee2mqtt
+ [ -f /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version ]
+ cat /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version
+ wanted_z2m_version=1.42.0
+ [ -n 1.42.0 ]
+ echo Need version : 1.42.0
Need version : 1.42.0
+ git fetch --all --tags
Fetching origin
From https://github.com/Koenkk/zigbee2mqtt
* [new tag]           0.1.0      -> 0.1.0
* [new tag]           0.1.1      -> 0.1.1
* [new tag]           0.1.2      -> 0.1.2
* [new tag]           0.1.3      -> 0.1.3
* [new tag]           0.1.4      -> 0.1.4
* [new tag]           0.1.5      -> 0.1.5
* [new tag]           0.1.6      -> 0.1.6
* [new tag]           0.1.7      -> 0.1.7
* [new tag]           0.1.8      -> 0.1.8
* [new tag]           0.2.0      -> 0.2.0
* [new tag]           1.0.0      -> 1.0.0
* [new tag]           1.0.1      -> 1.0.1
* [new tag]           1.1.0      -> 1.1.0
* [new tag]           1.1.1      -> 1.1.1
* [new tag]           1.10.0     -> 1.10.0
* [new tag]           1.11.0     -> 1.11.0
* [new tag]           1.12.0     -> 1.12.0
* [new tag]           1.12.1     -> 1.12.1
* [new tag]           1.12.2     -> 1.12.2
* [new tag]           1.13.0     -> 1.13.0
* [new tag]           1.13.1     -> 1.13.1
* [new tag]           1.14.0     -> 1.14.0
* [new tag]           1.14.1     -> 1.14.1
* [new tag]           1.14.2     -> 1.14.2
* [new tag]           1.14.3     -> 1.14.3
* [new tag]           1.14.4     -> 1.14.4
* [new tag]           1.15.0     -> 1.15.0
* [new tag]           1.16.0     -> 1.16.0
* [new tag]           1.16.1     -> 1.16.1
* [new tag]           1.16.2     -> 1.16.2
* [new tag]           1.17.0     -> 1.17.0
* [new tag]           1.17.1     -> 1.17.1
* [new tag]           1.18.0     -> 1.18.0
* [new tag]           1.18.1     -> 1.18.1
* [new tag]           1.18.2     -> 1.18.2
* [new tag]           1.18.3     -> 1.18.3
* [new tag]           1.19.0     -> 1.19.0
* [new tag]           1.19.1     -> 1.19.1
* [new tag]           1.2.0      -> 1.2.0
* [new tag]           1.2.1      -> 1.2.1
* [new tag]           1.20.0     -> 1.20.0
* [new tag]           1.21.0     -> 1.21.0
* [new tag]           1.21.1     -> 1.21.1
* [new tag]           1.21.2     -> 1.21.2
* [new tag]           1.22.0     -> 1.22.0
* [new tag]           1.22.1     -> 1.22.1
* [new tag]           1.22.2     -> 1.22.2
* [new tag]           1.23.0     -> 1.23.0
* [new tag]           1.24.0     -> 1.24.0
* [new tag]           1.25.0     -> 1.25.0
* [new tag]           1.25.1     -> 1.25.1
* [new tag]           1.25.2     -> 1.25.2
* [new tag]           1.26.0     -> 1.26.0
* [new tag]           1.27.0     -> 1.27.0
* [new tag]           1.27.1     -> 1.27.1
* [new tag]           1.27.2     -> 1.27.2
* [new tag]           1.28.0     -> 1.28.0
* [new tag]           1.28.1     -> 1.28.1
* [new tag]           1.28.2     -> 1.28.2
* [new tag]           1.28.3     -> 1.28.3
* [new tag]           1.28.4     -> 1.28.4
* [new tag]           1.29.0     -> 1.29.0
* [new tag]           1.29.1     -> 1.29.1
* [new tag]           1.29.2     -> 1.29.2
* [new tag]           1.3.0      -> 1.3.0
* [new tag]           1.3.1      -> 1.3.1
* [new tag]           1.30.0     -> 1.30.0
* [new tag]           1.30.1     -> 1.30.1
* [new tag]           1.30.2     -> 1.30.2
* [new tag]           1.30.3     -> 1.30.3
* [new tag]           1.30.4     -> 1.30.4
* [new tag]           1.31.0     -> 1.31.0
* [new tag]           1.31.1     -> 1.31.1
* [new tag]           1.31.2     -> 1.31.2
* [new tag]           1.32.0     -> 1.32.0
* [new tag]           1.32.1     -> 1.32.1
* [new tag]           1.32.2     -> 1.32.2
* [new tag]           1.33.0     -> 1.33.0
* [new tag]           1.33.1     -> 1.33.1
* [new tag]           1.33.2     -> 1.33.2
* [new tag]           1.34.0     -> 1.34.0
* [new tag]           1.35.0     -> 1.35.0
* [new tag]           1.35.1     -> 1.35.1
* [new tag]           1.35.2     -> 1.35.2
* [new tag]           1.35.3     -> 1.35.3
* [new tag]           1.36.0     -> 1.36.0
* [new tag]           1.36.1     -> 1.36.1
* [new tag]           1.37.0     -> 1.37.0
* [new tag]           1.37.1     -> 1.37.1
* [new tag]           1.38.0     -> 1.38.0
* [new tag]           1.39.0     -> 1.39.0
* [new tag]           1.39.1     -> 1.39.1
* [new tag]           1.4.0      -> 1.4.0
* [new tag]           1.40.0     -> 1.40.0
* [new tag]           1.40.1     -> 1.40.1
* [new tag]           1.40.2     -> 1.40.2
* [new tag]           1.41.0     -> 1.41.0
* [new tag]           1.42.0     -> 1.42.0
* [new tag]           1.5.0      -> 1.5.0
* [new tag]           1.5.1      -> 1.5.1
* [new tag]           1.6.0      -> 1.6.0
* [new tag]           1.7.0      -> 1.7.0
* [new tag]           1.7.1      -> 1.7.1
* [new tag]           1.8.0      -> 1.8.0
* [new tag]           1.9.0      -> 1.9.0
* [new tag]           2.0.0      -> 2.0.0
* [new tag]           2.1.0      -> 2.1.0
* [new tag]           2.1.1      -> 2.1.1
* [new tag]           2.1.2      -> 2.1.2
+ git checkout tags/1.42.0
Note: switching to 'tags/1.42.0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 861cba63 chore(dev): release 1.42.0 (#24569)
+ [ -n 1.42.0 ]
+ echo 1.42.0
+ head -c 1
+ [ 1 -lt 2 ]
+ npm ci
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
added 646 packages, and audited 647 packages in 14s
90 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
+ npm run build
> zigbee2mqtt@1.42.0 build
> tsc && node index.js writehash
+ chown www-data:www-data -R /var/www/html/plugins/z2m/resources/zigbee2mqtt
+ echo 9
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end z2m
+ echo 10
+ rm /tmp/jeedom_install_in_progress_z2m
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Le log Z2m est vide.

Le log de Z2md (avec les 3 changements de ports auto, port0 et usb1) :

> zigbee2mqtt@1.42.0 start
> node index.js
Starting Zigbee2MQTT without watchdog.
[2025-03-02 17:35:06] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-03-02 17:35:06] e[31merrore[39m: 	z2m: Failed to start zigbee
[2025-03-02 17:35:06] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2025-03-02 17:35:06] e[31merrore[39m: 	z2m: Exiting...
[2025-03-02 17:35:06] e[31merrore[39m: 	z2m: Error: No path provided and failed to auto detect path
at Function.create (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/adapter.ts:107:23)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:133:24)
at Zigbee.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/zigbee.ts:69:27)
at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/controller.ts:161:27)
at start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:154:5)
> zigbee2mqtt@1.42.0 start
> node index.js
Starting Zigbee2MQTT without watchdog.
[2025-03-02 17:40:03] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-03-02 17:40:03] e[31merrore[39m: 	z2m: Failed to start zigbee
[2025-03-02 17:40:03] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2025-03-02 17:40:03] e[31merrore[39m: 	z2m: Exiting...
[2025-03-02 17:40:03] e[31merrore[39m: 	z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:113:27)
at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
at Zigbee.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/zigbee.ts:69:27)
at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/controller.ts:161:27)
at start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:154:5)
> zigbee2mqtt@1.42.0 start
> node index.js
Starting Zigbee2MQTT without watchdog.
[2025-03-02 17:41:09] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-03-02 17:41:09] e[31merrore[39m: 	z2m: Failed to start zigbee
[2025-03-02 17:41:09] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2025-03-02 17:41:09] e[31merrore[39m: 	z2m: Exiting...
[2025-03-02 17:41:09] e[31merrore[39m: 	z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:113:27)
at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
at Zigbee.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/zigbee.ts:69:27)
at Controller.start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/lib/controller.ts:161:27)
at start (/var/www/html/plugins/z2m/resources/zigbee2mqtt/index.js:154:5)

Côté Jeedom :

Le NOK est bien entendu JeeZigbee :

L’USB1 pointe bien sur la clé Sonoff :

Le plugin MQTT manager voit bien zigbee2mqtt abonné :
image

J’ai relu la doc plusieurs fois, pour configurer (local, le port, la clé est de type ZNP/TI, je ne mets rien pour la partie avancée comme baudrate etc). La version voulue bien que je vois que sur la liste il y a des versions supérieures, je me dis que si de base il propose la 1.42, je ne touche pas.

Une idée ?

Dites moi si j’ai oublié quelque chose dans les informations à fournir.

Merci ! et bonne fin de weekend.

Bonjour,

c’est une ZBDongle-E => type de contrôleur EZSP (ou Ember si firmware 7.4.x).

Port du contrôleur, sélectionner le /dev/serial/by-id/

akenad :slight_smile:

1 « J'aime »

Merci ! Cela parait peut être évident mais j’avais retenu que c’était du TI/ZNP ; je ne sais plus pourquoi.
J’ai changé le type mais visiblement il n’aime toujours pas niveau log :

> node index.js
Starting Zigbee2MQTT without watchdog.
[2025-03-02 17:50:07] e[31merrore[39m: 	zh:zstack:znp: Failed to determine if path is valid: 'Error: ENOENT: no such file or directory, lstat '/dev/ttyUSB1''
[2025-03-02 17:50:07] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-03-02 17:50:07] e[31merrore[39m: 	z2m: Failed to start zigbee
[2025-03-02 17:50:07] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2025-03-02 17:50:07] e[31merrore[39m: 	z2m: Exiting...
[2025-03-02 17:50:07] e[31merrore[39m: 	z2m: Error: Error: No such file or directory, cannot open /dev/ttyUSB1
> zigbee2mqtt@1.42.0 start
> node index.js
Starting Zigbee2MQTT without watchdog.
[2025-03-02 17:55:06] e[31merrore[39m: 	zh:zstack:znp: Failed to determine if path is valid: 'Error: ENOENT: no such file or directory, lstat '/dev/ttyUSB1''
[2025-03-02 17:55:06] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-03-02 17:55:06] e[31merrore[39m: 	z2m: Failed to start zigbee
[2025-03-02 17:55:06] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2025-03-02 17:55:06] e[31merrore[39m: 	z2m: Exiting...
[2025-03-02 17:55:06] e[31merrore[39m: 	z2m: Error: Error: No such file or directory, cannot open /dev/ttyUSB1
> zigbee2mqtt@1.42.0 start
> node index.js
Starting Zigbee2MQTT without watchdog.
[2025-03-02 18:00:10] e[31merrore[39m: 	zh:ezsp:ezsp: Failure to init network

Le log semble rester en OK toutefois.
J’ai tenté de mettre le port sur le p0 avec le nom complet.
Et je n’ai plus rien dans le log (enfin bien moins verbeux) :

> zigbee2mqtt@1.42.0 start
> node index.js
Starting Zigbee2MQTT without watchdog.

J’ai tenté de mettre à jour le firmware en suivant la documentation mais à la commande :

bin/universal-silabs-flasher --device /dev/ttyUSB0 --bootloader-reset sonoff probe

j’ai :

boss@VM-DEB11-JEEDOM:~/flash$ bin/universal-silabs-flasher --device /dev/ttyUSB0 --bootloader-reset sonoff probe
2025-03-02 18:06:38.629 VM-DEB11-JEEDOM universal_silabs_flasher.flash WARNING The 'sonoff' reset target is deprecated. Use '--bootloader-reset rts_dtr' instead.
2025-03-02 18:06:38.629 VM-DEB11-JEEDOM universal_silabs_flasher.flasher INFO Triggering rts_dtr bootloader
2025-03-02 18:06:39.238 VM-DEB11-JEEDOM universal_silabs_flasher.flasher INFO Probing ApplicationType.GECKO_BOOTLOADER at 115200 baud
2025-03-02 18:06:41.244 VM-DEB11-JEEDOM universal_silabs_flasher.flasher INFO Probing ApplicationType.CPC at 460800 baud
2025-03-02 18:06:45.554 VM-DEB11-JEEDOM universal_silabs_flasher.flasher INFO Probing ApplicationType.CPC at 115200 baud
2025-03-02 18:06:49.865 VM-DEB11-JEEDOM universal_silabs_flasher.flasher INFO Probing ApplicationType.CPC at 230400 baud
2025-03-02 18:06:54.177 VM-DEB11-JEEDOM universal_silabs_flasher.flasher INFO Probing ApplicationType.EZSP at 115200 baud
2025-03-02 18:06:59.187 VM-DEB11-JEEDOM universal_silabs_flasher.flasher INFO Probing ApplicationType.SPINEL at 460800 baud
2025-03-02 18:07:03.499 VM-DEB11-JEEDOM universal_silabs_flasher.flasher INFO Probing ApplicationType.ROUTER at 115200 baud
Error: Failed to probe running application type

Bon j’ai pu ajouter mes premières gateways sirènes ; le firmware de la clé ne semble pas un frein.
Si jamais quelqu’un sait pour mettre à jour la clé et que cela est utile…

voir : [RTEX] Box Jeedom Atlas - plugin MQTT Manager (mqtt2) Mode Broker local - avec plugins abonnés Z-Wave JS (zwavejs) et JeeZigbee (z2m)

En résumé : Silabs Firmware Flasher | Web based flasher for ZB-GW04 and ZBDongle-E. MultiPAN RCP firmware enables these devices to be used with Silabs Multiprotocol Addon in Home Assistant. Allow Zigbee and Thread to co-exist on the same dongle. Get ahead of the tech an experiment with Matter!

akenad :slight_smile:

j’ai beau utiliser le site web et le driver version OLD, il ne veut pas flasher la clé… c’est pour cela que j’étais passé sur la version en ligne de commande.