Page 1 of 1

Z4D has error after install

Posted: Friday 19 September 2025 20:47
by jandoedel
Hello,

On a Raspberry 3+ i have install Bookworm
Installed Domoticz Working well
Version: 2025.1 (build 16782)
Build Hash: 3ed178aa4
Compile Date: 2025-09-12 08:38:25
dzVents Version: 3.1.8
Python Version: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0]

I try to install Z4D then i got errors


What do i wrong?

Re: Z4D has error after install

Posted: Friday 19 September 2025 23:06
by waltervl
So below it the issue: Error while starting Radio with bad marshal data (invalid reference).

Code: Select all

2025-09-19 20:22:52.650 Error: Zigbee: Error while starting Radio: znp on port /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3ea0a70bf3bded1188de6b2e38a92db5-if00-port0 with bad marshal data (invalid reference)
2025-09-19 20:22:52.669 Error: Zigbee: Traceback (most recent call last):
2025-09-19 20:22:52.669 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/zigpyThread.py", line 222, in radio_start
2025-09-19 20:22:52.669 import zigpy_znp.config as radio_specific_conf
2025-09-19 20:22:52.669 File "/usr/local/lib/python3.11/dist-packages/zigpy_znp/config.py", line 23, in <module>
2025-09-19 20:22:52.669 from zigpy_znp.commands.util import LEDMode
2025-09-19 20:22:52.669 File "/usr/local/lib/python3.11/dist-packages/zigpy_znp/commands/__init__.py", line 4, in <module>
Did you use the correct settings for your Dongle?
Edit: see alo https://zigbeefordomoticz.github.io/wik ... ot-working

Re: Z4D has error after install

Posted: Saturday 20 September 2025 11:59
by jandoedel
the settings are correct.
i have put my bullseye image back en check it.
Z4D is goed working there.

Re: Z4D has error after install

Posted: Saturday 20 September 2025 13:03
by waltervl
For Bookworm you need to make use of the Python Virtual environment as explained on the Z4D wiki: https://zigbeefordomoticz.github.io/wik ... alEnv.html

Re: Z4D has error after install

Posted: Saturday 20 September 2025 14:50
by Rik60
waltervl wrote: Saturday 20 September 2025 13:03 For Bookworm you need to make use of the Python Virtual environment as explained on the Z4D wiki: https://zigbeefordomoticz.github.io/wik ... alEnv.html
Yes, this is an important step to do. Otherwise Z4D won't work. I upgrated last week from Bullseye to Bookworm, with these steps Z4D wil work. Another tip, if you have a Z4D backup, copy the data and conf to the new installed plugin. You don't have to learn/train the zigbee devices again, this worked for me. See the wiki.

Re: Z4D has error after install

Posted: Saturday 20 September 2025 21:45
by jandoedel
Oke it is working.

Thanks everyone

Re: Z4D has error after install

Posted: Sunday 28 September 2025 21:58
by jandoedel
Zigbee is working good.
But there are errors in the log.

Code: Select all

2025-09-28 21:28:03.596 Error: Zigbee: forwarder_thread - Error while receiving a Coordinator command
2025-09-28 21:28:03.638 Error: Zigbee: Issue in request 0180020032ff000104070201010226d202000018fe0a0000250700000000004203, dumping stack: Traceback (most recent call last):
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 49, in forwarder_thread
2025-09-28 21:28:03.638 forward_message(self, message)
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/instrumentation.py", line 38, in f_out
2025-09-28 21:28:03.638 result = f_in(self, message)
2025-09-28 21:28:03.638 ^^^^^^^^^^^^^^^^^^^
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 65, in forward_message
2025-09-28 21:28:03.638 self.F_out(message)
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 801, in processFrame
2025-09-28 21:28:03.638 zigbee_receive_message(self, Devices, Data)
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 165, in zigbee_receive_message
2025-09-28 21:28:03.638 _decode_message(self, MsgType, Devices, Data, MsgData, MsgLQI)
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 172, in _decode_message
2025-09-28 21:28:03.638 decoding_method(self, Devices, MsgData, MsgLQI)
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Z4D_decoders/z4d_decoder_Read_Report_Attribute_Rsp.py", line 52, in Decode8102
2025-09-28 21:28:03.638 scan_attribute_reponse(self, Devices, MsgSQN, i_sqn, MsgSrcAddr, MsgSrcEp, MsgClusterId, MsgData, '8102')
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Z4D_decoders/z4d_decoder_Read_Report_Attribute_Rsp.py", line 88, in scan_attribute_reponse
2025-09-28 21:28:03.638 read_report_attributes( self, Devices, msgtype, MsgSQN, MsgSrcAddr, MsgSrcEp, MsgClusterId, MsgAttrID, MsgAttStatus, MsgAttType, MsgAttSize, MsgClusterData, )
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Z4D_decoders/z4d_decoder_Read_Report_Attribute_Rsp.py", line 121, in read_report_attributes
2025-09-28 21:28:03.638 ReadCluster( self, Devices, MsgType, MsgSQN, MsgSrcAddr, MsgSrcEp, MsgClusterId, MsgAttrID, MsgAttStatus, MsgAttType, MsgAttSize, MsgClusterData, Source=MsgType, )
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/readClusters.py", line 174, in ReadCluster
2025-09-28 21:28:03.638 process_cluster_attribute_response( self, Devices, MsgSQN, MsgSrcAddr, MsgSrcEp, MsgClusterId, MsgAttrID, MsgAttType, MsgAttSize, MsgClusterData, Source, )
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/readZclClusters.py", line 132, in process_cluster_attribute_response
2025-09-28 21:28:03.638 value = compute_attribute_value( self, MsgSrcAddr, MsgSrcEp, MsgClusterId, MsgAttrID, value, _eval_inputs, _eval_formula, _function)
2025-09-28 21:28:03.638 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/readZclClusters.py", line 471, in compute_attribute_value
2025-09-28 21:28:03.638 return func( self, nwkid, ep, cluster, attribut, value )
2025-09-28 21:28:03.638 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-09-28 21:28:03.638 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/zclClusterHelpers.py", line 452, in compute_metering_conso
2025-09-28 21:28:03.638 conso = round((conso * multiplier) / divisor, 3)
2025-09-28 21:28:03.638 ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
2025-09-28 21:28:03.638 ZeroDivisionError: division by zero
2025-09-28 21:28:03.638
But i don't no where to look.
Plugin: 7.1.023 [6.476]

Re: Z4D has error after install

Posted: Monday 29 September 2025 9:29
by pipiche
Strange error, but for sure there is a lack of protection in the code.
This is fixed in the next release 7.1.024

you can have the release candidate by doing a

[code]
git pull
git checkout rc-stable7.1.024
[/code]

Do not the restart the plugin yet, but use WebUI -> Admin -> Plugin -> Plugin Update (to ensure all is correctly updated)

and then restart the plugin

Re: Z4D has error after install

Posted: Monday 29 September 2025 12:45
by jandoedel
What to do?

Code: Select all

pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ git checkout rc-stable7.1.024
error: Your local changes to the following files would be overwritten by checkout:
        Classes/PluginConf.py
        Classes/WebServer/WebServer.py
        Classes/WebServer/dispatcher.py
        Classes/ZigpyTransport/zigpyThread.py
        DevicesModules/custom_Chameleon.py
        Modules/domoMaj.py
        Modules/linky.py
        Modules/readAttributes.py
        Modules/readZclClusters.py
        Modules/zclClusterHelpers.py
        plugin.py
        www/z4d/index.html
Please commit your changes or stash them before you switch branches.
Aborting


Re: Z4D has error after install

Posted: Wednesday 01 October 2025 17:56
by jandoedel

Code: Select all

pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ sudo git switch  rc-stable7.1.024
Already on 'rc-stable7.1.024'
Your branch is up to date with 'origin/rc-stable7.1.024'.
Why is Domoticz-Zigbee not seeing this Branch?

Re: Z4D has error after install

Posted: Thursday 02 October 2025 12:03
by Rik60
jandoedel wrote: Wednesday 01 October 2025 17:56

Code: Select all

pi@raspberrypi:~/domoticz/plugins/Domoticz-Zigbee $ sudo git switch  rc-stable7.1.024
Already on 'rc-stable7.1.024'
Your branch is up to date with 'origin/rc-stable7.1.024'.
Why is Domoticz-Zigbee not seeing this Branch?
Same here.
Version is not updated in the software?
Plugin is running without problems

Edit:
After some time doing nothing, there is an error, see attachment

Re: Z4D has error after install

Posted: Saturday 04 October 2025 21:03
by jandoedel
what can i do to let it work? :roll:

Re: Z4D has error after install

Posted: Sunday 05 October 2025 16:47
by Rik60
I switched back to version stable 7.1.023. Rc stable 7.1.024 was besides the error working. Hopefully Pipiche has a solution for this.
Btw, i am using a Sonoff zigbee 3.0 usb dongle.

Re: Z4D has error after install

Posted: Sunday 05 October 2025 17:00
by waltervl
I still see some changes in RC 7.1.024 this weekend https://github.com/zigbeefordomoticz/Do ... le7.1.024/

Re: Z4D has error after install

Posted: Sunday 05 October 2025 17:00
by jandoedel
how let you Rc stable 7.1.024 working.
I stuck with switching to Rc stable 7.1.024
what commands do jou used?

Re: Z4D has error after install

Posted: Sunday 05 October 2025 22:00
by Rik60
jandoedel wrote: Sunday 05 October 2025 17:00 how let you Rc stable 7.1.024 working.
I stuck with switching to Rc stable 7.1.024
what commands do jou used?
I switched to the rc again (following Pipiche):

Code: Select all


you can have the release candidate by doing a

git pull
git checkout rc-stable7.1.024

Do not the restart the plugin yet, but use WebUI -> Admin -> Plugin -> Plugin Update (to ensure all is correctly updated)

and then restart the plugin

Note that i have put in a chown: sudo chown -R pi:pi . This because of a dubious ownership. You could also use "sudo git pull"
After the git checkout rc-stable 7.1.024 i did a plugin update using the WebUI (WebUI version is still 7.1.023) but checkout is 7.1.024

This version of the plugin is now running without problems

Re: Z4D has error after install

Posted: Tuesday 07 October 2025 11:26
by jandoedel
after yesterday's update: sudo git checkout rc-stable7.1.024
there are now no more errors in the log.

Thanks everybody