Skip to content

Update Zigbee2mqtt to the latest version

zigbee2mqtt

It is important that your zigbee2mqtt is up to date. There are various bug fixes for your current smart devices. But new smart devices are also being added.

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

Your email address will not be published. Required fields are marked *