Update zigbee2mqtt ver 1.32.2 to ver 1.35

Цитат за v1.35.0 от Koenkk (Koen Kanters).
This release contains a quite fundamental change on how Zigbee2MQTT handles unsupported devices. Zigbee2MQTT will now attempt to automatically detect features supported by the device and discover those...
Текуща Zigbee2MQTT версия 1.32.2 на мой Ubuntu 20.04 сървър.

UPDATE Zigbee2MQTT to ver 1.35

# Stop Zigbee2MQTT and go to directory
sudo systemctl stop zigbee2mqtt
cd /opt/zigbee2mqtt
# Backup configuration
cp -R data data-backup
Aко пропуснете командата за Backup configuration последвалата инсталация ще затрие само текущия файл configuration.yaml, като го замени с нов свеж образец.
git stash
git stash drop
git pull
npm ci
# Restore configuration
cp -R data-backup/* data
# Start Zigbee2MQTT
sudo systemctl start zigbee2mqtt
rm -rf data-backup
След старта на новата версия 1.35 ме посрещна съобщение от лога:
journalctl -u zigbee2mqtt.service -f
npm[1848]: > zigbee2mqtt@1.35.0 start
npm[1848]: > node index.js
npm[1870]: Zigbee2MQTT requires node version ^18 || ^20 || ^21, you are running v16.19.1!

UPDATE NODE to ver 20.10.0

Просто копиране на команди от извора - Set up Node.js
# check surrent version
node --version
openhab@msiserver: $ node --version
v16.19.1
sudo systemctl stop zigbee2mqtt
sudo curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install nodejs -y
# Start Zigbee2MQTT
sudo systemctl start zigbee2mqtt
# Verify that the correct nodejs and npm (automatically installed with nodejs)
node --version # Should output V18.x, V20.x, V21.X
npm --version # Should output 9.X or 10.X
openhab@msiserver: $ node --version
v20.10.0

Сходни теми

Install zigbee2mqtt ver1.28.2 from scratch
Zigbee2MQTT клониране
How to unistall zigbee2mqtt
Добавяне ново zigbee устройство в openHAB 2
Премахване на zigbee устройство в Zigbee2MQTT




до нови срещи   ^.^
6 януари 2024 profruit 

Няма коментари:

Публикуване на коментар