Update breaks Z4D

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

Moderator: leecollings

Post Reply
hyeronimo
Posts: 68
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Update breaks Z4D

Post by hyeronimo »

Hi,

After trying to update Z4D from the web interface (first stable 7, then tried rc from de cl), it gives me some errors and it is not starting any more. I tried to create the Virtual environment folder but every time in trying to install the requirements I get an error:

from OpenSSL.crypto import (
File "/usr/local/lib/python3.9/dist-packages/OpenSSL/crypto.py", line 945, in <module>
utils.deprecated(
TypeError: deprecated() got an unexpected keyword argument 'name'

Any idea on what to do? I tried the upgrade on a fresh install and it also broke Z4D. This time with a working UI, but with a message 'Backend error, unknown error'

Best regards,
J
Rik60
Posts: 141
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: The Netherlands
Contact:

Re: Update breaks Z4D

Post by Rik60 »

hyeronimo wrote: Monday 22 September 2025 23:01 Hi,

After trying to update Z4D from the web interface (first stable 7, then tried rc from de cl), it gives me some errors and it is not starting any more. I tried to create the Virtual environment folder but every time in trying to install the requirements I get an error:

from OpenSSL.crypto import (
File "/usr/local/lib/python3.9/dist-packages/OpenSSL/crypto.py", line 945, in <module>
utils.deprecated(
TypeError: deprecated() got an unexpected keyword argument 'name'

Any idea on what to do? I tried the upgrade on a fresh install and it also broke Z4D. This time with a working UI, but with a message 'Backend error, unknown error'

Best regards,
J
Hi J,
What os are you running, Bullseye or Bookworm? I tried a Bullseye to Bookworm upgrade first, that was failing during the requirements. Then i installed Z4D on a fresh Bookworm, following the wiki gave me no problems. Have you editted also the domoticz.sh file if you are using Bookworm, see wiki
hyeronimo
Posts: 68
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Update breaks Z4D

Post by hyeronimo »

Thanks for your reply!
The fresh install was for research purposes only. I have indeed edited the domoticz.sh file
My production system is (was) Version: 2024.4 (build 15910).dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Mar 20 2025, 22:21:41) [GCC 10.2.1 20210110]. I was never able to upgrade to the latest domoticz version.
I currently have 551 devices of which about 30 main devices are from Z4D, including my TRV's ,sockets, human presence senors and temphums.
So it will not be easy to start over again. I am trying but it will be a lot of work I guess.
I believe something is wrong with the Z4D update. maybe it only works with recent linux versions? The fresh install I used was from July.
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Update breaks Z4D

Post by waltervl »

It could be the plugin needs a newer python version now than 3.9 that is mentioned on the plugin wiki.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
hyeronimo
Posts: 68
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Update breaks Z4D

Post by hyeronimo »

Yes, I considered that and am working on moving to a new install from a july image. It has python 3.11.2. It was working (1 device, the coordinator) before I imported my old data. after that Z4D is not working any more, same error. However I still have to try to create the virtual environment.
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Update breaks Z4D

Post by waltervl »

Did you use this procedure to move the plugin data?
https://zigbeefordomoticz.github.io/wik ... ackup.html
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
hyeronimo
Posts: 68
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Update breaks Z4D

Post by hyeronimo »

oh my bad! I just restored the backup files mentioned at the top of the page. Working on it..
hyeronimo
Posts: 68
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Update breaks Z4D

Post by hyeronimo »

hmm. same error. thanks for trying to help!
hyeronimo
Posts: 68
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Update breaks Z4D

Post by hyeronimo »

I have managed to get Z4D working on the fresh install. So far no luck with the devices. Here I seem to have Z4D two instances now, one that is working and one that is not. For the 2024 (bullseye) version, I think the "python3 -m pip install -r requirements.txt --upgrade -t " is not working, because of the depricated /name error.
Rik60
Posts: 141
Joined: Sunday 25 June 2023 21:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: The Netherlands
Contact:

Re: Update breaks Z4D

Post by Rik60 »

hyeronimo wrote: Tuesday 23 September 2025 22:15 I have managed to get Z4D working on the fresh install. So far no luck with the devices. Here I seem to have Z4D two instances now, one that is working and one that is not. For the 2024 (bullseye) version, I think the "python3 -m pip install -r requirements.txt --upgrade -t " is not working, because of the depricated /name error.
If you have a working Z4D on a fresh Bookworm install (Z4D is starting without errors in the logging, but no devices found) you could try to copy, from the backup, the DeviceList-xx.txt in the data folder into the new data folder (rename or remove the existing txt file first). In the Conf folder, replace the DeviceConf.txt and PluginConf-xx.json with the onces from the backup. The files with xx (DeviceList and PluginConf) should have the same numbers.
To copy, move or edit files i use WinScp with root rights.
hyeronimo
Posts: 68
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Update breaks Z4D

Post by hyeronimo »

Hi, yes, tonight I will continue the process, thx!
hyeronimo
Posts: 68
Joined: Saturday 11 March 2023 8:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Update breaks Z4D

Post by hyeronimo »

So I failed repairing the old updated version, even after installing libssl1.1. the Requirements update failed as before. So I decided to move to a new Pi5 with beta installed. after installing libssl and moving python to the separate folder as described in the wiki, Z4D was working. However, I also tried to use a new Zigbee coordinator dongle. Not a good idea. device and coordinator data is linked together in some way. Anyway, the system is working again, even though there is a lot of work in changing stuff linked to changed device id's.
All this makes me wonder... Is domoticz maybe getting a bit too much beginner-unfriendly?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest