Home » Zigbee2mqtt » Update Zigbee2mqtt

Update Zigbee2mqtt

zigbee2mqtt

Stop Zigbee2mqtt

sudo systemctl stop zigbee2mqtt

Go to the Zigbee2mqtt folder.

cd /opt/zigbee2mqtt

Backup zigbee2mqtt config.

cp -R data data-backup

Zigbee2mqtt update

git checkout HEAD -- npm-shrinkwrap.json
git pull
npm ci

Restore configuration

cp -R data-backup/* data

Remove back-up

rm -rf data-backup

Start Zigbee2mqtt

sudo systemctl start zigbee2mqtt

Leave a Reply