Page 1 of 1

Zigbee2mqtt-plugin update error

Posted: Tuesday 01 February 2022 23:09
by THBR
Hello,

I (beginner) did the plugin update (to be sure to check that I have the latest version) as described:
• cd domoticz/plugins/zigbee2mqtt
• git pull

Works fine but at the end I get this error
“error: The following untracked working tree files would be overwritten by merge:
github/ISSUE_TEMPLATE/new-device-feature-support.md
api/plugin.py
bridge.py
configuration.py
frontend/libs/ace_json_mode.js
frontend/libs/ace_worker_json.js
frontend/plugin_config.js
Please move or remove them before you merge.
Aborting”

I also tried “git stash” and then “git pull” without result.

My configuration:
RaspberryPi 3b
Domoticz Version: 2021.1
Python Version: 3.7.3
Plugin Version 3.0.0.
Zigbee2mqtt v.1.22.2 (zStack12 20190608)

What can be the cause and the solution without losing all settings and devices?

Thanks in advance !

Regards, Theo (NL).

Re: Zigbee2mqtt-plugin update error

Posted: Wednesday 02 February 2022 9:00
by HansOtten
You will need just released Domoticz 2022.1 for the latest zigbee2mqtt plugin, see the github issues.

Or fallback to an older version of the plugin if you do not want to upgrade Domoticz.

To avoid the errors you have now, stop Domoticz, remove the whole plugin folder, do a fresh plugin installation and restart.
Setings are in the database.

Re: Zigbee2mqtt-plugin update error

Posted: Thursday 03 February 2022 20:46
by THBR
@HansOtten

Thanks for responding!

I updated now to Domoticz 2022.1, also updated Zigbee2mqtt. Everything works still fine, no errors or whatever.

To solve my still existing problem with updating the plugin:
- stop Domoticz
- delete the whole plugin folder > in home/pi/domoticz/plugins/zigbee2mqtt
- saving all settings/devices/etc > temporary secure by moving (or copy ?) the whole zigbee2mqtt folder > /opt/zigbee2mqtt to another temporary folder
- reinstalling the plugin by
cd domoticz/plugins
git clone https://github.com/stas-demydiuk/domoti ... plugin.git zigbee2mqtt
- set plugin settings again
- remove / replace the /opt/zigbee2mqtt folder

is this the right way to keep all settings and data as well ?

Re: Zigbee2mqtt-plugin update error SOLVED!

Posted: Monday 14 February 2022 20:19
by THBR
Problem plugin updating error SOLVED !:

I deleted the files (at first I stopped Domoticz):
.github/ISSUE_TEMPLATE/new-device-feature-support.md
api/plugin.py
bridge.py
configuration.py
frontend/libs/ace_json_mode.js
frontend/libs/ace_worker_json.js
frontend/plugin_config.js

Then git pull and everything updated to v.3.1.0-beta and new files were created.

Theo.