Zigbee2mqtt-plugin update error

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
THBR
Posts: 37
Joined: Saturday 02 November 2019 21:05
Target OS: -
Domoticz version:
Contact:

Zigbee2mqtt-plugin update error

Post 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).
User avatar
HansOtten
Posts: 50
Joined: Saturday 17 April 2021 9:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Mierlo
Contact:

Re: Zigbee2mqtt-plugin update error

Post 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.
Raspberry Pi 4, SSD, RFlink, P1 Smart Meter. Many Zigbee devices CR2562 USB stick. Bresser via Weather Underground
Switched to Home Assistant!
THBR
Posts: 37
Joined: Saturday 02 November 2019 21:05
Target OS: -
Domoticz version:
Contact:

Re: Zigbee2mqtt-plugin update error

Post 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 ?
THBR
Posts: 37
Joined: Saturday 02 November 2019 21:05
Target OS: -
Domoticz version:
Contact:

Re: Zigbee2mqtt-plugin update error SOLVED!

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest