Zigbee for Domoticz upgrade fails
Moderator: leecollings
-
Rik60
- Posts: 231
- Joined: Sunday 25 June 2023 21:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.3
- Location: The Netherlands
- Contact:
Zigbee for Domoticz upgrade fails
I tried to do an upgrade from 7.1.023 to 7.1.024 but that was failing.
First tried an update via de local webpage, showing that it was a succes but the version was still 7.1.023, also after a domoticz restart
Doing a (sudo) git pull, even with a hard reset, did not help, the plugin was not starting anymore
After deleting the plugin folder and a plugin download the requirements was failing.
Doing the next:
python3 -m pip install -r requirements.txt --upgrade -t /home/pi/Domoticz_Python_Environment
solved the requirements problem, the vitual environment folder was already earlier created. So the installation could be completed
After a domoticz restart the plugin was running now and showing the right version on de webpage
After copying from the backup data and conf files to the new installed plugin everything was ok now
I don't know why the webpage upgrade doesn't work, but this was how to get Z4D working again.
First tried an update via de local webpage, showing that it was a succes but the version was still 7.1.023, also after a domoticz restart
Doing a (sudo) git pull, even with a hard reset, did not help, the plugin was not starting anymore
After deleting the plugin folder and a plugin download the requirements was failing.
Doing the next:
python3 -m pip install -r requirements.txt --upgrade -t /home/pi/Domoticz_Python_Environment
solved the requirements problem, the vitual environment folder was already earlier created. So the installation could be completed
After a domoticz restart the plugin was running now and showing the right version on de webpage
After copying from the backup data and conf files to the new installed plugin everything was ok now
I don't know why the webpage upgrade doesn't work, but this was how to get Z4D working again.
-
janportinga
- Posts: 4
- Joined: Friday 30 December 2022 12:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023-2
- Contact:
Re: Zigbee for Domoticz upgrade fails
This alway works for me. ( got the solution from a friend)
cd /home/pi/domoticz/plugins/Domoticz-Zigbee/
sudo git stash
sudo git pull --recurse-submodules
sudo pip3 install -r requirements.txt --upgrade --break-system-packages
sudo git submodule update --init --recursive
sudo chmod +x plugin.py
sudo chown -R pi:pi .
sudo service domoticz.sh restart
cd /home/pi/domoticz/plugins/Domoticz-Zigbee/
sudo git stash
sudo git pull --recurse-submodules
sudo pip3 install -r requirements.txt --upgrade --break-system-packages
sudo git submodule update --init --recursive
sudo chmod +x plugin.py
sudo chown -R pi:pi .
sudo service domoticz.sh restart
-
Rik60
- Posts: 231
- Joined: Sunday 25 June 2023 21:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.3
- Location: The Netherlands
- Contact:
Re: Zigbee for Domoticz upgrade fails
I had to do that in the past. But now i can do a normaal update via the web ui. I did the 2 last updates via the web ui without problems. Running now 7.1.027, updated from 7.1.026.
Thanks
Thanks
- waltervl
- Posts: 7020
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: Zigbee for Domoticz upgrade fails
I also just update Z4D through web without issues.
Be sure you have installed it correctly with the right access.
On what Python version are you on (according Domoticz about)?
Be sure you have installed it correctly with the right access.
On what Python version are you on (according Domoticz about)?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
hkhk
- Posts: 32
- Joined: Wednesday 15 November 2017 16:42
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Zigbee for Domoticz upgrade fails
I'm stuck at 7.1.021.
Tried the upgrade via management page but failed as above.
Tried pipiche's docs about venv and failed
Tried janportingas method and failed again.
What I now see in domoticz log (domoticz v2026 en Z4D stable8) is:
Error: zigate: Call to function 'onStart' failed, exception details:
Error: zigate: Traceback (most recent call last):
Error: zigate: File "/home/domo/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1774, in onStart
Error: zigate: _plugin.onStart()
Error: zigate: File "/home/domo/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 339, in onStart
Error: zigate: Domoticz.Debugging(int(Parameters["Mode6"]))
Error: zigate: ^^^^^^^^^^^^^^^^^^^^^^^^
Error: zigate: ValueError: invalid literal for int() with base 10: 'null'
Any hints?
Tried the upgrade via management page but failed as above.
Tried pipiche's docs about venv and failed
Tried janportingas method and failed again.
What I now see in domoticz log (domoticz v2026 en Z4D stable8) is:
Error: zigate: Call to function 'onStart' failed, exception details:
Error: zigate: Traceback (most recent call last):
Error: zigate: File "/home/domo/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1774, in onStart
Error: zigate: _plugin.onStart()
Error: zigate: File "/home/domo/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 339, in onStart
Error: zigate: Domoticz.Debugging(int(Parameters["Mode6"]))
Error: zigate: ^^^^^^^^^^^^^^^^^^^^^^^^
Error: zigate: ValueError: invalid literal for int() with base 10: 'null'
Any hints?
-
Rik60
- Posts: 231
- Joined: Sunday 25 June 2023 21:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.3
- Location: The Netherlands
- Contact:
Re: Zigbee for Domoticz upgrade fails
Mode6 is the debug setting in the hardware setup screen. I think is has to be set at None.
-
hkhk
- Posts: 32
- Joined: Wednesday 15 November 2017 16:42
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Zigbee for Domoticz upgrade fails
Do you mean in code in this function ?Rik60 wrote: Tuesday 31 March 2026 16:37 Mode6 is the debug setting in the hardware setup screen. I think is has to be set at None.
Domoticz.Debugging(int(Parameters["Mode6"]))
That would be strange and up to the developer I guess. Others don't seem to have this issue...
-
hkhk
- Posts: 32
- Joined: Wednesday 15 November 2017 16:42
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Zigbee for Domoticz upgrade fails
Pipiche came up with the solution. In z4d Hardware settings there was a debug setting (at the bottom) that was empty (so no value) and should have been set to None
-
l81occitarn
- Posts: 2
- Joined: Wednesday 19 November 2025 8:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.2
- Location: France
- Contact:
Re: Zigbee for Domoticz upgrade fails
Hi,
Should i create a new topic ?
Upgrade my z4d fails from version 8.1.001 to the last current version, whatever from the UI page or by command line.
There is the error displayed when running : sudo python3 -m pip install -r requirements.txt --upgrade -t /home/domoticz/Domoticz_Python_Environment
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
mkdocs 1.4.2 requires markdown<3.4,>=3.2.1, but you have markdown 3.4.1 which is incompatible.
i tried to install markdown 3.3.7 but 3.4.1 is still displayed by a 'pip freeze' command
Should i create a new topic ?
Upgrade my z4d fails from version 8.1.001 to the last current version, whatever from the UI page or by command line.
There is the error displayed when running : sudo python3 -m pip install -r requirements.txt --upgrade -t /home/domoticz/Domoticz_Python_Environment
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
mkdocs 1.4.2 requires markdown<3.4,>=3.2.1, but you have markdown 3.4.1 which is incompatible.
i tried to install markdown 3.3.7 but 3.4.1 is still displayed by a 'pip freeze' command
-
Rik60
- Posts: 231
- Joined: Sunday 25 June 2023 21:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.3
- Location: The Netherlands
- Contact:
Re: Zigbee for Domoticz upgrade fails
When i did the update from 8.1.001 to 8.1.002 i coudn't make it work. Have tried a lot of things without succes. I did the update from7.x.xxx to 8.1.001 a few months ago (8.1.001 was a stable version at that moment).
For me the solution was to delete the plugin folder, also the Domoticz_Python_Environment folder and did a clean install including the Environment. Deleting that folder (Domoticz_Python_Environment) can have an effect on other plugins. After restoring the data in the data and conf files the plugin was running without data loss.
I don't know why a normal update doesn't work. Perhaps Pipiche has a solution.
For me the solution was to delete the plugin folder, also the Domoticz_Python_Environment folder and did a clean install including the Environment. Deleting that folder (Domoticz_Python_Environment) can have an effect on other plugins. After restoring the data in the data and conf files the plugin was running without data loss.
I don't know why a normal update doesn't work. Perhaps Pipiche has a solution.
-
Rik60
- Posts: 231
- Joined: Sunday 25 June 2023 21:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.3
- Location: The Netherlands
- Contact:
Re: Zigbee for Domoticz upgrade fails
A few weeks ago i upgrated from stable8 (8.1.008) to stable9 (9.1.002). Did have some troubles but could manage it and was running 9.1.002. Today i am trying to upgrade to 9.1.004. Started the upgrade true the web ui:
But after a plugin restart (also after a Rpi reboot) the plugin is not running:
Why do i receive this error while stable 9.1.002 was updated succesfully (atlast) and the upgrade to 9.1.004 was succesfull first and the plugin is not starting after a restart, reboot?
Edit: After running the upgrade 2 times after eachother and then a plugin restart there were no erros anymore and verion 9.1.004 is active. Plugin is working normal now.
Code: Select all
Current version : {"branch": "stable9", "version": "9.1.004"}
Latest git commit: 1849ef543fa46481f0a8268ced29706841e3e015 Release stable9.9.1.004
Warning: /home/pi/domoticz/plugins/Domoticz-Zigbee/Tools/check_python_and_branch.py not found. Skipping Python branch check.
Plugin upgrade process completed successfully.
[main] Upgrade script exited with code 0
Code: Select all
2026-08-28 13:25:53.683 Error: Zigbee: Looks like zigpy==2.1.0 Python module is not installed or does not meet the required version. Requires 2.1.0, Installed 1.5.1.Make sure to install the required Python3 module with the correct version.
2026-08-28 13:25:53.683 Error: Zigbee: Use the command:
2026-08-28 13:25:53.683 Error: Zigbee: sudo python3 -m pip install -r requirements.txt --upgrade
Edit: After running the upgrade 2 times after eachother and then a plugin restart there were no erros anymore and verion 9.1.004 is active. Plugin is working normal now.