Не запускается zigbee2mqtt. с нуля ставлю
не пойму в чем проблема
root@wirenboard-ALYNHADY:/mnt/data/root/zigbee2mqtt# npm start
> zigbee2mqtt@1.32.2 start
> node index.js
/mnt/data/root/zigbee2mqtt/node_modules/zigbee-herdsman-converters/devices/popp.js:4
extendDevice(require('./danfoss'), '014G2461', {
^
TypeError: extendDevice is not a function
at Object.<anonymous> (/mnt/data/root/zigbee2mqtt/node_modules/zigbee-herdsman-converters/devices/popp.js:4:5)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/mnt/data/root/zigbee2mqtt/node_modules/zigbee-herdsman-converters/index.js:103:30)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
Здравствуйте, очень мало информации, чтобы помочь. Оформите, пожалуйста, тему по рекомендациям. Там про версии контроллера, софта, серийный номер и диагностический архив. Также важно — в каком состоянии был контроллер: новый, уже работал и тп.
Судя по этой ошибке у вас проблема с конвертером danfoss — вы его добавляли отдельно? Есть ли какое-то устройство danfoss в вашей сети? Пришлите, пожалуйста, файл настроек моста.
Сбросил контроллер кнопкой к заводским настройкам.
Залил через веб-интерфейс с расширением раздела образ 202308070212_testing_bullseye_wb7x.fit:
Received good update FIT /mnt/data/.wb-update/202308070212_testing_bullseye_wb7x.fit, starting update
===============================================================================
Mon Aug 14 11:26:03 UTC 2023: started update from /mnt/data/.wb-update/202308070212_testing_bullseye_wb7x.fit
===============================================================================
Description: WirenBoard firmware update
Compatible device: wirenboard,wirenboard-720
Firmware version: 202308070212
Firmware compatible: +single-rootfs +force-repartition
Release name: unstable.latest
Release suite: testing
Release target: wb7/bullseye
Release repo prefix:
Time of creation: Mon Aug 7 02:14:28 UTC 2023
===============================================================================
>>> Checking SHA1 hash of install
>>> SHA1 hash of install ok
>>> Firmware seems to be compatible with this controller
>>> Extracting install script
>>> Running install script
>>> Using flags from /mnt/data/.wb-update/install_update.web.flags: --force-repartition
>>> Checking SHA1 hash of rootfs
>>> SHA1 hash of rootfs ok
>>> rootfs is valid, installing firmware update
>>> Current factory FIT supports single-rootfs feature, keeping it
>>> Flashed U-boot version is too old, updating it before reboot
Das U-Boot installer for Wiren Board
You are about to install U-boot image '/usr/lib/u-boot/sun8i_wirenboard7/u-boot-sunxi-with-spl.bin' on '/dev/mmcblk0' (platform wb7)
Force installation requested
Writing U-boot image '/usr/lib/u-boot/sun8i_wirenboard7/u-boot-sunxi-with-spl.bin' on '/dev/mmcblk0' (options 'bs=1024 seek=8')
448+1 records in
448+1 records out
459612 bytes (460 kB, 449 KiB) copied, 0.122729 s, 3.7 MB/s
Syncing device
>>> Watch logs in the debug console, or in /mnt/data/.wb-update/state/update.log
>>> Rebooting system to install update
>>> Waiting for Wiren Board to boot again...
>>> Reboot system
>>> Installation logs:
%%% Checking SHA1 hash of rootfs
%%% SHA1 hash of rootfs ok
%%% rootfs is valid, installing firmware update
%%% Enlarging first rootfs partition
%%% Checking and repairing filesystem on /dev/mmcblk0p2
%%% Temp toolpath: /tmp/tmp.fEnDzb
%%% Backing up old MBR (and partition table)
%%% Creating a new parition table
%%% New disk dump will be saved in /tmp/tmp.P1ZzEN
%%% Unmounting /mnt/data and saving its mountpoint
%%% Expanding filesystem on this partition
%%% Repartition is done!
%%% rootfs enlarged!
%%% Configuring environment for repartitioned eMMC
%%% Will install to /dev/mmcblk0p2
%%% Debian: -> bullseye
%%% Cleaning up /dev/mmcblk0p2
%%% Cleaning up using rsync
%%% Mounting /dev/mmcblk0p2 at /tmp/tmp.Va5SiM
%%% Extracting files to new rootfs
%%% Recovering device certificates
%%% Mount /dev, /proc and /sys to rootfs
%%% Running post-install scripts
%%% > Processing /tmp/tmp.Va5SiM/usr/lib/wb-image-update/postinst/10update-u-boot
%%% Unmounting /dev, /proc and /sys from rootfs
%%% Switching to new rootfs
%%% Done!
%%% Removing FIT /mnt/data/.wb-update/webupd.fit
%%% Unmounting rootfs
%%% Reboot system
%%% (reboot)
Подключился к консоли и установил zigbee2mqtt, потом изменил порт, у меня /dev/ttyMOD1 и перезапустил сервис:
root@wirenboard-A25NDEMJ:~# apt policy zigbee2mqtt
zigbee2mqtt:
Installed: (none)
Candidate: 1.32.2
Version table:
1.32.2 990
990 http://deb.wirenboard.com/wb7/bullseye testing/main armhf Packages
root@wirenboard-A25NDEMJ:~# apt install zigbee2mqtt
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libatomic1 nodejs wb-zigbee2mqtt
The following NEW packages will be installed:
libatomic1 nodejs wb-zigbee2mqtt zigbee2mqtt
0 upgraded, 4 newly installed, 0 to remove and 12 not upgraded.
Need to get 54.2 MB of archives.
After this operation, 257 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main armhf libatomic1 armhf 10.2.1-6 [6924 B]
Get:2 http://deb.wirenboard.com/wb7/bullseye testing/main armhf nodejs armhf 16.18.1-deb-1nodesource1 [24.2 MB]
Get:3 http://deb.wirenboard.com/wb7/bullseye testing/main armhf wb-zigbee2mqtt all 1.3.2 [2692 B]
Get:4 http://deb.wirenboard.com/wb7/bullseye testing/main armhf zigbee2mqtt armhf 1.32.2 [30.0 MB]
Fetched 54.2 MB in 28s (1960 kB/s)
Selecting previously unselected package libatomic1:armhf.
(Reading database ... 30174 files and directories currently installed.)
Preparing to unpack .../libatomic1_10.2.1-6_armhf.deb ...
Unpacking libatomic1:armhf (10.2.1-6) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_16.18.1-deb-1nodesource1_armhf.deb ...
Unpacking nodejs (16.18.1-deb-1nodesource1) ...
Selecting previously unselected package wb-zigbee2mqtt.
Preparing to unpack .../wb-zigbee2mqtt_1.3.2_all.deb ...
Unpacking wb-zigbee2mqtt (1.3.2) ...
Selecting previously unselected package zigbee2mqtt.
Preparing to unpack .../zigbee2mqtt_1.32.2_armhf.deb ...
Unpacking zigbee2mqtt (1.32.2) ...
Setting up wb-zigbee2mqtt (1.3.2) ...
Setting up libatomic1:armhf (10.2.1-6) ...
Setting up nodejs (16.18.1-deb-1nodesource1) ...
Setting up zigbee2mqtt (1.32.2) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
root@wirenboard-A25NDEMJ:~# nano /mnt/data/root/zigbee2mqtt/data/configuration.yaml
root@wirenboard-A25NDEMJ:~# systemctl restart zigbee2mqtt
root@wirenboard-A25NDEMJ:~# systemctl status zigbee2mqtt
● zigbee2mqtt.service - zigbee2mqtt
Loaded: loaded (/lib/systemd/system/zigbee2mqtt.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2023-08-14 12:25:51 UTC; 6s ago
Main PID: 30653 (npm start)
Tasks: 19 (limit: 4790)
Memory: 44.5M
CPU: 8.491s
CGroup: /system.slice/zigbee2mqtt.service
├─30653 npm start
├─30698 sh -c -- node index.js
└─30699 node index.js
Aug 14 12:25:51 wirenboard-A25NDEMJ systemd[1]: Started zigbee2mqtt.
Aug 14 12:25:55 wirenboard-A25NDEMJ npm[30653]: > zigbee2mqtt@1.32.2 start
Aug 14 12:25:55 wirenboard-A25NDEMJ npm[30653]: > node index.js
Мой файл настроек, я менял только порт, остальное добавилось само при старте zigbee2mqtt:
пробовал я и apt install --reinstall zigbee2mqtt .
переустанавливал я полностью с заливкой новой прошивки. трижды. с разными прошивками.
после заливки он чистый и нет zigbee2mqtt вообще. ставлю с нуля получается. apt update && apt install wb-zigbee2mqtt
ппроблема что он за функцию не признает кусок:
extendDevice(require('./danfoss'), '014G2461', {
^
TypeError: extendDevice is not a function
и далее уже ни до каких файлов настроек не доходит.