error when adding new device

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

Moderator: leecollings

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

error when adding new device

Post by manjh »

After uing a ZIgbee PIR device for a while, it suddenly stopped sending signals when it is triggered.
I checked everything but found nothing wrong.
So I removed the device completely from Domoticz, and then removed it from Zigbee as per the instructions

Code: Select all

https://zigbeefordomoticz.github.io/wiki/en-eng/HowTo_Remove-device.html
After I made sure it was gond from both ZigbeeForDomoticz and Domoticz itself, I reset the device to add it again.
I noticed the following lines on the Domoticz console:

Code: Select all

2023-02-02 22:51:39.121 Status: ZigbeeConbee: [None] NEW OBJECT: e827 None
2023-02-02 22:51:39.675 Status: ZigbeeConbee: [-] NEW OBJECT: e827 Active Endpoint Response Ep: 01 LQI: 255
2023-02-02 22:51:39.529 Error: ZigbeeConbee: process_raw_command device not found destination: 27e8 Profile: 260 Cluster: 1280 sEp: 1 dEp: 1 Seq: 25 Payload: b'\x10\x00\x02\x10\x00\xf0Pg\x07\xff\xff.!\x00'
2023-02-02 22:51:43.085 Status: ZigbeeConbee: [0] NEW OBJECT: e827 Model Name: TS0202
2023-02-02 22:51:43.091 Status: ZigbeeConbee: [0] NEW OBJECT: e827 Manufacturer Name: _TZ3040_6ygjfyll
2023-02-02 22:51:43.097 Status: ZigbeeConbee: [None] NEW OBJECT: e827 Request Node Descriptor
Does this make any sense?
Although the device works again, it makes me wonder what that error is...
Hans
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: error when adding new device

Post by pipiche »

From the log, I beleive you are using the Zigbee for Domoticz plugin.

You need to make sure that the device is not far from the coordinator (Conbee), or you need to make sure that there is proper network mesh to provide capability for the device to reach the coordinator.

https://zigbeefordomoticz.github.io/wik ... twork.html
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: error when adding new device

Post by manjh »

pipiche wrote: Monday 06 February 2023 21:34 From the log, I beleive you are using the Zigbee for Domoticz plugin.

You need to make sure that the device is not far from the coordinator (Conbee), or you need to make sure that there is proper network mesh to provide capability for the device to reach the coordinator.

https://zigbeefordomoticz.github.io/wik ... twork.html
Both conditions are true. Conbee is a few meters away, and the Wifi network is very strong (mesh).
Do the error codes mean anything specific?
Hans
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: error when adding new device

Post by pipiche »

can you provide the Logs/PluginZigbee-xx.log ?
found a bug, which could explain why after a while the device is leaving the network (but not necessarily)
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: error when adding new device

Post by manjh »

pipiche wrote: Tuesday 07 February 2023 11:12 can you provide the Logs/PluginZigbee-xx.log ?
found a bug, which could explain why after a while the device is leaving the network (but not necessarily)
Yes, I can provide the log file! Would be great if you found that bug...
PluginZigbee_24.log.2023-02-02.log
(45.54 KiB) Downloaded 34 times
Hans
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: error when adding new device

Post by pipiche »

well, not much on the log, but I fix an issue.

can you do the following from the home directory of the plugin

Code: Select all

git checkout stable6
git pull
git checkout config-release-6.3.011
then I suggest that you remove from Domoticz all widgets related to this PIR,
restart the plugin

cross§check that there is no more entry in the plugin for this device

then do the pairing again


An let see what is happening.

At that stage you will be on a development branch, which at a point of time will be merged into the stable branch, you will have to do

Code: Select all

git pull
git checkout stable6
git pull
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: error when adding new device

Post by manjh »

after the git pull I see this:

Code: Select all


Updating dd6a1937..e73dbf5f
error: The following untracked working tree files would be overwritten by merge:
        Conf/Certified/Nodon/SIN-4-RS-20.json
        Conf/Certified/Nodon/SIN-4-RS-20_PRO.json
Please move or remove them before you merge.
Aborting

Hans
CarrieSpinks
Posts: 1
Joined: Thursday 09 February 2023 8:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: error when adding new device

Post by CarrieSpinks »

pipiche wrote: Wednesday 08 February 2023 19:10 well, not much on the log, but I fix an issue.

can you do the following from the home directory of the plugin

Code: Select all

git checkout stable6
git pull
git checkout config-release-6 .3 .011
then I suggest that you remove from Domoticz all widgets related to this PIR,
restart the plugin

cross§check that there is no more entry in the plugin for this device

then do the pairing again


An let see what is happening.

At that stage you will be on a development branch, which at a point of time will be merged into the stable branch, you will have to do

Code: Select all

git pull
git checkout stable6
git pull
I will try it and if I face any problem, I will message you.
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: error when adding new device

Post by pipiche »

manjh wrote: Wednesday 08 February 2023 21:51 after the git pull I see this:

Code: Select all


Updating dd6a1937..e73dbf5f
error: The following untracked working tree files would be overwritten by merge:
        Conf/Certified/Nodon/SIN-4-RS-20.json
        Conf/Certified/Nodon/SIN-4-RS-20_PRO.json
Please move or remove them before you merge.
Aborting


can you do

Code: Select all

git reset --hard
git pull
git checkout config-release-6 .3 .011
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: error when adding new device

Post by manjh »

Code: Select all

git reset --hard
HEAD is now at dd6a1937 update date
pi@Utrecht:~/domoticz/plugins/Domoticz-Zigbee $ git pull
Fetching submodule external/bellows
Fetching submodule external/zigpy
Fetching submodule external/zigpy-deconz
Fetching submodule external/zigpy-zigate
Fetching submodule external/zigpy-znp
Updating dd6a1937..e73dbf5f
error: The following untracked working tree files would be overwritten by merge:
        Conf/Certified/Nodon/SIN-4-RS-20.json
        Conf/Certified/Nodon/SIN-4-RS-20_PRO.json
Please move or remove them before you merge.
Aborting

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

Re: error when adding new device

Post by pipiche »

Most likely you have to remove or move this 2 files to an other place
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: error when adding new device

Post by manjh »

pipiche wrote: Thursday 09 February 2023 13:52 Most likely you have to remove or move this 2 files to an other place
I did and updated as asked. Then I get this:

Code: Select all

2023-02-09 20:50:22.081 Error: ZigbeeConbee: Call to function 'onHeartbeat' failed, exception details:
2023-02-09 20:50:22.114 Error: ZigbeeConbee: Traceback (most recent call last):
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1577, in onHeartbeat
2023-02-09 20:50:22.114 Error: ZigbeeConbee: _plugin.onHeartbeat()
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 966, in onHeartbeat
2023-02-09 20:50:22.114 Error: ZigbeeConbee: processListOfDevices(self, Devices)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/heartbeat.py", line 832, in processListOfDevices
2023-02-09 20:50:22.114 Error: ZigbeeConbee: processKnownDevices(self, Devices, NWKID)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/heartbeat.py", line 581, in processKnownDevices
2023-02-09 20:50:22.114 Error: ZigbeeConbee: sanity_check_of_param(self, NWKID)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/paramDevice.py", line 308, in sanity_check_of_param
2023-02-09 20:50:22.114 Error: ZigbeeConbee: func(self, NwkId, value)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/paramDevice.py", line 226, in ias_sensitivity
2023-02-09 20:50:22.114 Error: ZigbeeConbee: ias_sensitivity(self, nwkid, sensitivity)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/paramDevice.py", line 226, in ias_sensitivity
2023-02-09 20:50:22.114 Error: ZigbeeConbee: ias_sensitivity(self, nwkid, sensitivity)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/paramDevice.py", line 226, in ias_sensitivity
2023-02-09 20:50:22.114 Error: ZigbeeConbee: ias_sensitivity(self, nwkid, sensitivity)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: [Previous line repeated 992 more times]
2023-02-09 20:50:22.114 Error: ZigbeeConbee: RecursionError: maximum recursion depth exceeded
2023-02-09 20:50:23.309 ZigbeeConbee: onStop()

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

Re: error when adding new device

Post by pipiche »

ok

do

Code: Select all

git checkout stable6
and then stay with that for the time been
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: error when adding new device

Post by manjh »

manjh wrote: Thursday 09 February 2023 20:51
pipiche wrote: Thursday 09 February 2023 13:52 Most likely you have to remove or move this 2 files to an other place
I did and updated as asked. Then I get this:

Code: Select all

2023-02-09 20:50:22.081 Error: ZigbeeConbee: Call to function 'onHeartbeat' failed, exception details:
2023-02-09 20:50:22.114 Error: ZigbeeConbee: Traceback (most recent call last):
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1577, in onHeartbeat
2023-02-09 20:50:22.114 Error: ZigbeeConbee: _plugin.onHeartbeat()
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 966, in onHeartbeat
2023-02-09 20:50:22.114 Error: ZigbeeConbee: processListOfDevices(self, Devices)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/heartbeat.py", line 832, in processListOfDevices
2023-02-09 20:50:22.114 Error: ZigbeeConbee: processKnownDevices(self, Devices, NWKID)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/heartbeat.py", line 581, in processKnownDevices
2023-02-09 20:50:22.114 Error: ZigbeeConbee: sanity_check_of_param(self, NWKID)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/paramDevice.py", line 308, in sanity_check_of_param
2023-02-09 20:50:22.114 Error: ZigbeeConbee: func(self, NwkId, value)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/paramDevice.py", line 226, in ias_sensitivity
2023-02-09 20:50:22.114 Error: ZigbeeConbee: ias_sensitivity(self, nwkid, sensitivity)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/paramDevice.py", line 226, in ias_sensitivity
2023-02-09 20:50:22.114 Error: ZigbeeConbee: ias_sensitivity(self, nwkid, sensitivity)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: File "/home/pi/domoticz/plugins/Domoticz-Zigbee/Modules/paramDevice.py", line 226, in ias_sensitivity
2023-02-09 20:50:22.114 Error: ZigbeeConbee: ias_sensitivity(self, nwkid, sensitivity)
2023-02-09 20:50:22.114 Error: ZigbeeConbee: [Previous line repeated 992 more times]
2023-02-09 20:50:22.114 Error: ZigbeeConbee: RecursionError: maximum recursion depth exceeded
2023-02-09 20:50:23.309 ZigbeeConbee: onStop()

I moved back to stable6.
Hans
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: error when adding new device

Post by manjh »

Any news on this topic?
Hans
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: error when adding new device

Post by manjh »

Another question. I am planning to re-build my entire Pi installation, current setup is a mess (Python related).
So when I install on a new platform, will all my devices still be there? In other words, where does the plugin store the info? Should i copy it over?
Hans
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: error when adding new device

Post by manjh »

Another question. I am planning to re-build my entire Pi installation, current setup is a mess (Python related).
So when I install on a new platform, will all my devices still be there? In other words, where does the plugin store the info? Should i copy it over?
Hans
manjh
Posts: 748
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: error when adding new device

Post by manjh »

Another question, perhaps unrelated?
I have just now received and paired two Tuya Zigbee temp/hum sensors, TS0201.
Both will give me the values when I press the small button through the hole on the bottom.
But only one of them will periodically send values.
Is there a way to set the interval on these devices?
Hans
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: error when adding new device

Post by waltervl »

manjh wrote: Thursday 28 September 2023 19:00 Another question. I am planning to re-build my entire Pi installation, current setup is a mess (Python related).
So when I install on a new platform, will all my devices still be there? In other words, where does the plugin store the info? Should i copy it over?
If you copy the complete Domoticz folder including the plugins folder and domoticz database it should work well.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest