Bonjour
Je viens d’installer le plugin Z2M
J’ai fais un premier une première inclusion d’un de mes volets profalux. Le plus proche de la clé. Etant donné qu’il font routeur je les inclus en premier.
Donc ce premier volet est bien dans le front end de Zigbee2MQTT mais pas dans le plugin. Par contre il y a un second objet, je pense à sa télécommande qui n’a pas été reconnu.
J’ai essayé de redémarrer le demon mais cela n’a rien changé.
Je suis en version stable du plugin et sous jeedom 4.3.17 avec une clé SONOFF version P sous puce TI.
Le log Z2md
zigbee2mqtt@1.31.2 start
> node index.js
Zigbee2MQTT:error 2023-06-22 07:14:57: Failed to interview '0x20918a0000001685', device has not successfully been paired
Killed
> zigbee2mqtt@1.31.2 start
> node index.js
Killed
> zigbee2mqtt@1.31.2 start
> node index.js
Le log installation des packages
+ 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
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
Hit:4 https://deb.nodesource.com/node_14.x buster InRelease
Get:5 http://security.debian.org/debian-security buster/updates/main Sources [402 kB]
Get:6 http://security.debian.org/debian-security buster/updates/main amd64 Packages [519 kB]
Get:7 http://security.debian.org/debian-security buster/updates/main Translation-en [281 kB]
Fetched 1415 kB in 1s (1773 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
42 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ echo 4
+ 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...
The following NEW packages will be installed:
php-yaml
0 upgraded, 1 newly installed, 0 to remove and 42 not upgraded.
Need to get 20.1 kB of archives.
After this operation, 77.8 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 php-yaml amd64 2.0.2+1.3.1-4 [20.1 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 20.1 kB in 0s (441 kB/s)
Selecting previously unselected package php-yaml.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 78057 files and directories currently installed.)
Preparing to unpack .../php-yaml_2.0.2+1.3.1-4_amd64.deb ...
Unpacking php-yaml (2.0.2+1.3.1-4) ...
Setting up php-yaml (2.0.2+1.3.1-4) ...
+ echo 5
+ sudo systemctl restart apache2
+ echo 6
+ 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
+++ dirname /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh
++ cd /var/www/html/core/class/../../plugins/z2m/resources
++ pwd
+ 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
+ npm ci
> @serialport/bindings-cpp@11.0.1 install /var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/@serialport/bindings-cpp
> node-gyp-build
> unix-dgram@2.0.6 install /var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/unix-dgram
> node-gyp rebuild
make: Entering directory '/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/unix-dgram/build'
CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
In file included from ../../nan/nan.h:60,
from ../src/unix_dgram.cc:5:
/root/.cache/node-gyp/14.21.3/include/node/node.h:793:43: warning: cast between incompatible function types from 'void (*)(v8::Local)' to 'node::addon_register_func' {aka 'void (*)(v8::Local, v8::Local, void*)'} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/root/.cache/node-gyp/14.21.3/include/node/node.h:827:3: note: in expansion of macro 'NODE_MODULE_X'
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/unix_dgram.cc:404:1: note: in expansion of macro 'NODE_MODULE'
NODE_MODULE(unix_dgram, Initialize)
^~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
COPY Release/unix_dgram.node
make: Leaving directory '/var/www/html/plugins/z2m/resources/zigbee2mqtt/node_modules/unix-dgram/build'
added 796 packages in 17.092s
+ npm run build
> zigbee2mqtt@1.31.2 build /var/www/html/plugins/z2m/resources/zigbee2mqtt
> tsc && node index.js writehash
+ chown www-data:www-data -R /var/www/html/plugins/z2m/resources/zigbee2mqtt
+ echo 7
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end z2m
+ rm /tmp/jeedom_install_in_progress_z2m
+ echo '*******************End of package installation******************'
*******************End of package installation******************
Edit un autre log en mode debug
> zigbee2mqtt@1.31.2 start
> node index.js
Zigbee2MQTT:error 2023-06-22 07:14:57: Failed to interview '0x20918a0000001685', device has not successfully been paired
Killed
> zigbee2mqtt@1.31.2 start
> node index.js
Killed
> zigbee2mqtt@1.31.2 start
> node index.js
Killed
> zigbee2mqtt@1.31.2 start
> node index.js
Killed
> zigbee2mqtt@1.31.2 start
> node index.js
Zigbee2MQTT:debug 2023-06-22 09:35:36: Loaded state from file /var/www/html/plugins/z2m/data/state.json
Zigbee2MQTT:info 2023-06-22 09:35:36: Logging to console and directory: '/var/www/html/plugins/z2m/data/log/2023-06-22.09-35-36' filename: log.txt
Zigbee2MQTT:info 2023-06-22 09:35:36: Starting Zigbee2MQTT version 1.31.2 (commit #21f5125)
Zigbee2MQTT:info 2023-06-22 09:35:36: Starting zigbee-herdsman (0.14.117)
Zigbee2MQTT:debug 2023-06-22 09:35:36: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/var/www/html/plugins/z2m/data/coordinator_backup.json","databaseBackupPath":"/var/www/html/plugins/z2m/data/database.db.backup","databasePath":"/var/www/html/plugins/z2m/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyUSB2"}}'
Zigbee2MQTT:info 2023-06-22 09:35:37: zigbee-herdsman started (resumed)
Zigbee2MQTT:info 2023-06-22 09:35:37: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210708,"transportrev":2},"type":"zStack3x0"}'
Zigbee2MQTT:debug 2023-06-22 09:35:37: Zigbee network parameters: {"channel":11,"extendedPanID":"0x00124b0024c0d88a","panID":6754}
Zigbee2MQTT:info 2023-06-22 09:35:37: Currently 2 devices are joined:
Zigbee2MQTT:info 2023-06-22 09:35:37: 0x20918a0000002fed (0x20918a0000002fed): NSAV061 - Profalux Cover (Router)
Zigbee2MQTT:info 2023-06-22 09:35:37: 0x20918a0000001685 (0x20918a0000001685): Not supported (EndDevice)
Zigbee2MQTT:info 2023-06-22 09:35:37: Zigbee: disabling joining new devices.
Zigbee2MQTT:info 2023-06-22 09:35:38: Connecting to MQTT server at mqtt://127.0.0.1:1883
Zigbee2MQTT:debug 2023-06-22 09:35:38: Using MQTT login with username: Jeedom
Zigbee2MQTT:info 2023-06-22 09:35:38: Connected to MQTT server
Zigbee2MQTT:info 2023-06-22 09:35:38: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
Zigbee2MQTT:info 2023-06-22 09:35:38: Started frontend on port 0.0.0.0:8080
Zigbee2MQTT:info 2023-06-22 09:35:38: MQTT publish: topic 'zigbee2mqtt/0x20918a0000002fed', payload '{"device":{"dateCode":"20151006091a090","friendlyName":"0x20918a0000002fed","ieeeAddr":"0x20918a0000002fed","manufacturerID":4368,"model":"NSAV061","networkAddress":19762,"powerSource":"Mains (single phase)","type":"Router","zclVersion":1},"last_seen":"2023-06-22T07:15:15.461Z","linkquality":54,"position":60,"state":"OPEN"}'
Zigbee2MQTT:info 2023-06-22 09:35:38: MQTT publish: topic 'zigbee2mqtt/0x20918a0000001685', payload '{"device":{"friendlyName":"0x20918a0000001685","ieeeAddr":"0x20918a0000001685","manufacturerID":4368,"model":"unknown","networkAddress":47540,"type":"EndDevice"},"last_seen":"2023-06-22T05:14:46.314Z"}'
Zigbee2MQTT:info 2023-06-22 09:35:38: Zigbee2MQTT started!
Je me tiens disponible si besoin de plus d’onformations
Merci de votre aide
Dams






