Zigbee for domoticz error Topic is solved

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

Moderator: leecollings

User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Zigbee for domoticz error

Post by jacobsentertainment »

Hi all,

Can someone help me out with this error from the zigbee log;

Code: Select all

"Issue in request 018002001aff000104020101010298080200008c03, dumping stack: Traceback (most recent call last): File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 41, in forwarder_thread forward_message(self, message) File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/instrumentation.py", line 31, in f_out result = f_in(self, message) File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 57, in forward_message self.F_out(message) File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 853, in processFrame ZigateRead(self, Devices, Data) File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 187, in ZigateRead _decoding(self, Devices, MsgData, MsgLQI) File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 796, in Decode8002 (default_response,GlobalCommand,Sqn,ManufacturerCode,Command,Data,) = retreive_cmd_payload_from_8002(MsgPayload) File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/tools.py", line 1050, in retreive_cmd_payload_from_8002 zbee_zcl_ddr = disable_default_response(fcf) File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/tools.py", line 1078, in disable_default_response return (int(fcf,16) & 0x10) >> 4 ValueError: invalid literal for int() with base 16: '' "
And from the domoticz log;

Code: Select all

2023-09-27 09:47:44.125 Error: zigbee: forwarder_thread - Error while receiving a Coordinator command
2023-09-27 09:47:44.148 Error: zigbee: Issue in request 018002001aff000104020101010298080200008c03, dumping stack: Traceback (most recent call last):
2023-09-27 09:47:44.148 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 41, in forwarder_thread
2023-09-27 09:47:44.148 forward_message(self, message)
2023-09-27 09:47:44.148 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/instrumentation.py", line 31, in f_out
2023-09-27 09:47:44.148 result = f_in(self, message)
2023-09-27 09:47:44.148 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 57, in forward_message
2023-09-27 09:47:44.148 self.F_out(message)
2023-09-27 09:47:44.148 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 853, in processFrame
2023-09-27 09:47:44.148 ZigateRead(self, Devices, Data)
2023-09-27 09:47:44.148 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 187, in ZigateRead
2023-09-27 09:47:44.148 _decoding(self, Devices, MsgData, MsgLQI)
2023-09-27 09:47:44.148 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 796, in Decode8002
2023-09-27 09:47:44.148 (default_response,GlobalCommand,Sqn,ManufacturerCode,Command,Data,) = retreive_cmd_payload_from_8002(MsgPayload)
2023-09-27 09:47:44.148 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/tools.py", line 1050, in retreive_cmd_payload_from_8002
2023-09-27 09:47:44.148 zbee_zcl_ddr = disable_default_response(fcf)
2023-09-27 09:47:44.148 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/tools.py", line 1078, in disable_default_response
2023-09-27 09:47:44.148 return (int(fcf,16) & 0x10) >> 4
2023-09-27 09:47:44.148 ValueError: invalid literal for int() with base 16: '' 
To me looks like something internal in zigbee but don't have a idea what..
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigbee for domoticz error

Post by pipiche »

yep, that sound a Z4D issue. Is that a systematic one, or is that time to time ?

I'm currently planning a fix for that one, would come in the October release
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: Zigbee for domoticz error

Post by jacobsentertainment »

pipiche wrote: Wednesday 27 September 2023 12:25 yep, that sound a Z4D issue. Is that a systematic one, or is that time to time ?

I'm currently planning a fix for that one, would come in the October release
This one came out of nowhere,

This one is now daily

Code: Select all

2023-09-27 11:48:03.729 Error: zigbee: 9808/01 0001 0021 . value out of ranges : 255 -> ['00', 'fe']
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigbee for domoticz error

Post by pipiche »

can you tell me what device is the device with short Id (Short NwkId) 0x9808 ?
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigbee for domoticz error

Post by pipiche »

I do confirm the last point should be fixed in the Oct. release
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: Zigbee for domoticz error

Post by jacobsentertainment »

pipiche wrote: Wednesday 27 September 2023 13:30 can you tell me what device is the device with short Id (Short NwkId) 0x9808 ?
I was on my bike riding, but that an thermostat device from eurotronic " hal_ThermoSetpoinz
SPZB0001"
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Zigbee for domoticz error

Post by manjh »

I upgraded to the latest version of the Domoticz-Zigbee plugin, but upon start I get these errors in the Domoticz log:

Code: Select all

2023-10-01 16:18:30.224 Error: ZigbeeConbee: (Zigate) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-Zigbee/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2023-10-01 16:18:30.233 Error: ZigbeeConbee: Traceback (most recent call last):
2023-10-01 16:18:30.233 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 99, in <module>
2023-10-01 16:18:30.233 Error: ZigbeeConbee: from importlib.metadata import version as import_version
2023-10-01 16:18:30.233 Error: ZigbeeConbee: ModuleNotFoundError: No module named 'importlib.metadata'
I followed the instructions to the letter. What am I doing wrong?
Hans
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigbee for domoticz error

Post by pipiche »

Did you install the python module ? and are you on bullseye with a python3.8 (at minimum) ?

From the home directory of the plugin, make sure to go through this command :

Code: Select all

sudo python3 -m pip install -r requirements.txt --upgrade
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Zigbee for domoticz error

Post by manjh »

pipiche wrote: Sunday 01 October 2023 19:23 Did you install the python module ? and are you on bullseye with a python3.8 (at minimum) ?

From the home directory of the plugin, make sure to go through this command :

Code: Select all

sudo python3 -m pip install -r requirements.txt --upgrade
Looks suspicious...

Code: Select all

sudo python3 -m pip install -r requirements.txt --upgrade
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

Code: Select all

sudo python --version
Python 3.11.4
Hans
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigbee for domoticz error

Post by pipiche »

Make sure to be in plugin home directory

Code: Select all

cd /home/pi/domoticz/plugins/Domoticz-Zigbee
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Zigbee for domoticz error

Post by manjh »

Code: Select all

sudo python3 -m pip install -r requirements.txt --upgrade

Code: Select all

,,,,,,,

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects
Hans
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Zigbee for domoticz error

Post by manjh »

After restart of Domoticz, I get:

Code: Select all

2023-10-02 09:38:28.467 Error: ZigbeeConbee: ** Please do consider upgrading to a more recent python3 version 3.7 is not supported anymore **
2023-10-02 09:38:54.140 Error: ZigbeeConbee: You are running stable6-{'stable7': '7.1.002', 'beta7': '7.0.011'}, a NOT SUPPORTED version. Please refer to https://zigbeefordomoticz.github.io/wiki/en-eng/#upgrading-to-release-7 to get the latest informations

Code: Select all

pi@Utrecht:~/domoticz/plugins/Domoticz-Zigbee $ python --version
Python 3.11.4
Hans
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Zigbee for domoticz error

Post by manjh »

The weird part is the fact that the plugin keeps complaining about python version:

Code: Select all

50: Object {"0":{"Time":"02/10/2023 10:04:10","Module":"Plugin","nwkid":"None","PluginHealth":"Startup","message":"** Please do consider upgrading to a more recent python3 version 3.7 is not supported anymore **","PermitToJoin":{"Duration":0,"Starttime":1696233866},"Thread":"MainThread"},"LastLog":0,"StartTime":"02/10/2023 10:04:10","FirmwareVersion":"0x26700700","FirmwareMajorVersion":"40","PluginVersion":["stable6-6.3.015"]}
LastLog: 50

Code: Select all

pi@Utrecht:~/domoticz/plugins/Domoticz-Zigbee $ python --version
Python 3.11.4
Hans
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigbee for domoticz error

Post by pipiche »

As mentioned earlier if you are on buster this doesn’t work. You must be on bullseye or above


Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Zigbee for domoticz error

Post by manjh »

pipiche wrote: Monday 02 October 2023 10:17 As mentioned earlier if you are on buster this doesn’t work. You must be on bullseye or above


Envoyé de mon iPhone en utilisant Tapatalk
You are correct. This is my prod machine, and it is still on Buster... :oops:
is there any option here to upgrade in a different way?

Meanwhile, I found that there is a way to upgrade to Bullseye, without doing a clean install (which I tried, and had problems getting everything working again).
Tomorrow I'll make a full clone copy of my disk, and try the upgrade:
https://www.tomshardware.com/how-to/upg ... er%20items
Hans
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Zigbee for domoticz error

Post by manjh »

OK, I upgraded to Bullseye. Upon the start of Domoticz, I see this in the log:

Code: Select all

2023-10-04 17:24:30.010 Status: ZigbeeConbee: Initialized version 6.3, author 'pipiche38'
2023-10-04 17:24:30.019 Status: ZigbeeConbee: Zigbee for Domoticz plugin started!
2023-10-04 17:24:30.019 Status: ZigbeeConbee: Python3 requires 3.8 or above and you are running 3.7
2023-10-04 17:24:30.019 Status: ZigbeeConbee: Checking Python modules /home/pi/domoticz/plugins/Domoticz-Zigbee/requirements.txt
2023-10-04 17:24:30.636 Status: ZigbeeConbee: Checking Python modules /home/pi/domoticz/plugins/Domoticz-Zigbee/requirements.txt
2023-10-04 17:24:30.757 Status: ZigbeeConbee: enablegroupmanagement set to 1
2023-10-04 17:24:30.757 Status: ZigbeeConbee: PluginAnalytics set to 1
2023-10-04 17:24:30.757 Status: ZigbeeConbee: channel set to 11
2023-10-04 17:24:30.757 Status: ZigbeeConbee: filename set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Conf/PluginConf-24.json
2023-10-04 17:24:30.757 Status: ZigbeeConbee: pluginHome set to /home/pi/domoticz/plugins/Domoticz-Zigbee/
2023-10-04 17:24:30.757 Status: ZigbeeConbee: homedirectory set to /home/pi/domoticz/plugins/Domoticz-Zigbee/
2023-10-04 17:24:30.757 Status: ZigbeeConbee: pluginData set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Data/
2023-10-04 17:24:30.757 Status: ZigbeeConbee: pluginConfig set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Conf/
2023-10-04 17:24:30.757 Status: ZigbeeConbee: pluginOTAFirmware set to /home/pi/domoticz/plugins/Domoticz-Zigbee/OTAFirmware/
2023-10-04 17:24:30.757 Status: ZigbeeConbee: pluginReports set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Reports/
2023-10-04 17:24:30.758 Status: ZigbeeConbee: pluginWWW set to /home/pi/domoticz/plugins/Domoticz-Zigbee/www/
2023-10-04 17:24:30.758 Status: ZigbeeConbee: pluginLogs set to /home/pi/domoticz/plugins/Domoticz-Zigbee/Logs/
2023-10-04 17:24:30.758 Status: ZigbeeConbee: ControllerInRawMode set to True
2023-10-04 17:24:30.761 Status: ZigbeeConbee: Please watch plugin log into /home/pi/domoticz/plugins/Domoticz-Zigbee/Logs//PluginZigbee_24.log
2023-10-04 17:24:30.772 Status: ZigbeeConbee: Zigbee for Domoticz (z4d) plugin stable6-6.3.015 started
Looks like it thinks I have Python 3.7.
But when I check, I see this:

Code: Select all

python --version
Python 3.11.4
pi@Utrecht:~/domoticz/plugins/Domoticz-Zigbee $ python3 --version
Python 3.10.12
pi@Utrecht:~/domoticz/plugins/Domoticz-Zigbee $
What is wrong?
Hans
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Zigbee for domoticz error

Post by manjh »

More info: when I run (in Tools)

Code: Select all

sudo plugin-auto-upgrade.sh

I get a lot of output. Here's the last bit:

Code: Select all

Fetching submodule external/bellows
Fetching submodule external/zigpy
Fetching submodule external/zigpy-deconz
Fetching submodule external/zigpy-zigate
Fetching submodule external/zigpy-znp
Already up to date.

(3) update python3 modules if needed

ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
ERROR while running command 'sudo python3 -m pip --ignore-requires-python --no-input install -r requirements.txt'.
Is sudo available for this user without password ?
Weird, when I look in the Domoticz "about" screen, I see:

Code: Select all

Version: 2022.2
Build Hash: eea9db734
Compile Date: 2022-11-05 13:05:35
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Jun 29 2023, 18:03:57) [GCC 8.3.0]
Where is this python 3.7.3 coming from?
Hans
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: Zigbee for domoticz error

Post by jacobsentertainment »

Not sure what you have done, but I tried instead of flashing a bullseye version also to update the rasbian. This updates most items but not actually to Bullseye so my python also stayed at 3,7. Only after going totally new from scratch I went to full bullseye and was able to get everything working.

I only have my domoticz and associated stuff on there so couple of backups and fresh install is about an good hour to be back up and running.
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Zigbee for domoticz error

Post by manjh »

jacobsentertainment wrote: Wednesday 04 October 2023 21:03 Not sure what you have done, but I tried instead of flashing a bullseye version also to update the rasbian. This updates most items but not actually to Bullseye so my python also stayed at 3,7. Only after going totally new from scratch I went to full bullseye and was able to get everything working.

I only have my domoticz and associated stuff on there so couple of backups and fresh install is about an good hour to be back up and running.
Yes, that is probably better. I tried that initially, but had a terrible time getting everything working. I finally gave up because I saw the article about the upgrade... perhaps I should go back and try again.
Hans
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: Zigbee for domoticz error

Post by jacobsentertainment »

And more errors are piling up.

Code: Select all

 2023-10-12 03:31:25.551 Error: zigbee: 9808/01 0001 0021 . value out of ranges : 255 -> ['00', 'fe']
2023-10-12 05:31:55.422 Error: zigbee: 9808/01 0001 0021 . value out of ranges : 255 -> ['00', 'fe']
2023-10-12 07:32:25.089 Error: zigbee: 9808/01 0001 0021 . value out of ranges : 255 -> ['00', 'fe']
2023-10-12 09:32:54.453 Error: zigbee: 9808/01 0001 0021 . value out of ranges : 255 -> ['00', 'fe']
2023-10-12 11:33:23.414 Error: zigbee: 9808/01 0001 0021 . value out of ranges : 255 -> ['00', 'fe']
2023-10-12 15:19:24.640 Error: zigbee: 9808/01 0001 0021 . value out of ranges : 255 -> ['00', 'fe']
2023-10-12 17:19:49.428 Error: zigbee: 9808/01 0001 0021 . value out of ranges : 255 -> ['00', 'fe']
2023-10-12 18:50:31.235 Error: zigbee: forwarder_thread - Error while receiving a Coordinator command
2023-10-12 18:50:31.260 Error: zigbee: Issue in request 018002001aff000104020101010298080200006003, dumping stack: Traceback (most recent call last):
2023-10-12 18:50:31.260 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 41, in forwarder_thread
2023-10-12 18:50:31.260 forward_message(self, message)
2023-10-12 18:50:31.260 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/instrumentation.py", line 31, in f_out
2023-10-12 18:50:31.260 result = f_in(self, message)
2023-10-12 18:50:31.260 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Classes/ZigpyTransport/forwarderThread.py", line 57, in forward_message
2023-10-12 18:50:31.260 self.F_out(message)
2023-10-12 18:50:31.260 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 853, in processFrame
2023-10-12 18:50:31.260 ZigateRead(self, Devices, Data)
2023-10-12 18:50:31.260 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 187, in ZigateRead
2023-10-12 18:50:31.260 _decoding(self, Devices, MsgData, MsgLQI)
2023-10-12 18:50:31.260 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/input.py", line 796, in Decode8002
2023-10-12 18:50:31.260 (default_response,GlobalCommand,Sqn,ManufacturerCode,Command,Data,) = retreive_cmd_payload_from_8002(MsgPayload)
2023-10-12 18:50:31.260 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/tools.py", line 1050, in retreive_cmd_payload_from_8002
2023-10-12 18:50:31.260 zbee_zcl_ddr = disable_default_response(fcf)
2023-10-12 18:50:31.260 File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/tools.py", line 1078, in disable_default_response
2023-10-12 18:50:31.260 return (int(fcf,16) & 0x10) >> 4
2023-10-12 18:50:31.260 ValueError: invalid literal for int() with base 16: ''
2023-10-12 18:50:31.260 
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest