dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 502 forks source link

Joining of new Remote Controls and Motion sensors not working with .54 <edited> #1112

Closed tubalainen closed 5 years ago

tubalainen commented 5 years ago

Hello!

Long story short, I have had quite some issues with my IKEA Trådfri setup. So I decided to reset all and start fresh. Oh my what an endeavor to undertake.

I have just updated to .54 after having problems joining IKEA Trådfri lights to deconz. All lights are now joined and works fine. (Thanks for the fixes in the code!)

Now I am trying to add my remaining "normal round" IKEA remote controls and my IKEA motion sensors to the system with no luck. They were very easy to join in previous versions.

This is what I get in the log:

19:17:14:255 Current channel 15
19:17:17:188 send permit join, duration: 0
19:17:18:188 send permit join, duration: 59
19:17:22:188 send permit join, duration: 0
19:17:24:188 send permit join, duration: 59
19:17:27:187 send permit join, duration: 0
19:17:28:188 send permit join, duration: 59
19:17:31:716 0xAA24 nwk changed to 0x7E79
19:17:31:716 device announce 0xD0CF5EFFFE0809FD (0x7E79) mac capabilities 0x80
19:17:31:716 set fast probe address to 0xD0CF5EFFFE0809FD (0x7E79)
19:17:31:716 device announce 0xD0CF5EFFFE0809FD (0x7E79) mac capabilities 0x80
19:17:31:716 set fast probe address to 0xD0CF5EFFFE0809FD (0x7E79)
19:17:31:811 [1] get node descriptor for 0xd0cf5efffe0809fd
19:17:32:188 send permit join, duration: 0
19:17:33:941 ZCL attribute report 0x90FD9FFFFE0F12AA for cluster 0x0006, ep 0x01
19:17:34:188 send permit join, duration: 59
19:17:34:789 ZCL attribute report 0x000B57FFFEE838C0 for cluster 0x0006, ep 0x01
19:17:36:966 DB save zll database items 0x00000800
19:17:36:976 DB saved in 10 ms
19:17:36:976 don't close database yet, keep open for 900 seconds

image

tubalainen commented 5 years ago

After stepping back to .50 there were no problems at all to join both remote controls and motion sensors. Here is the log file from me joining one IKEA remote control.

08:10:55:187 send permit join, duration: 0
08:10:56:725 ZCL attribute report 0x90FD9FFFFE137D43 for cluster 0x0008, ep 0x01
08:10:57:188 send permit join, duration: 59
08:10:58:188 poll node 00:0b:57:ff:fe:d6:ca:64-01
08:10:58:462 0x000B57FFFED6CA64 onOff 1 --> 0
08:10:58:566 APS-DATA.confirm id: 79 status: transaction expired (8 seconds)
08:10:59:470 Beacon src: 0x2C44 ch: 15 updateId: 0
08:10:59:478 Beacon src: 0x16B4 ch: 15 updateId: 0
08:10:59:478 Beacon src: 0xD010 ch: 15 updateId: 0
08:10:59:510 Beacon src: 0xDA05 ch: 15 updateId: 0
08:10:59:614 Beacon src: 0x16B4 ch: 15 updateId: 0
08:10:59:646 Beacon src: 0xD010 ch: 15 updateId: 0
08:10:59:647 Beacon src: 0x0F3C ch: 15 updateId: 0
08:10:59:686 Beacon src: 0xDA05 ch: 15 updateId: 0
08:10:59:718 Beacon src: 0xA6B3 ch: 15 updateId: 0
08:10:59:951 Incr. ZDP retry count 2 on item 7
08:11:00:007 device announce 0x90FD9FFFFED99F4E (0x3282) mac capabilities 0x80
08:11:00:007 set fast probe address to 0x90FD9FFFFED99F4E (0x3282)
08:11:00:007 device announce 0x90FD9FFFFED99F4E (0x3282) mac capabilities 0x80
08:11:00:007 set fast probe address to 0x90FD9FFFFED99F4E (0x3282)
08:11:00:103 ZCL attribute report 0x90FD9FFFFE0F12AA for cluster 0x0008, ep 0x01
08:11:00:103 0x90FD9FFFFE0F12AA level 12 --> 45
08:11:00:303 DB save zll database items 0x00000801
08:11:00:313 DB saved in 10 ms
08:11:01:056 [3] get simple descriptor 0x01 for 0x90fd9ffffed99f4e
08:11:02:100 don't close database yet, keep open for 900 seconds
08:11:02:188 send permit join, duration: 0
08:11:02:188 [4] get basic cluster attr 0x0004 for 0x90fd9ffffed99f4e
08:11:02:480 ZCL attribute report 0x000B57FFFED8D813 for cluster 0x0008, ep 0x01
08:11:02:480 0x000B57FFFED8D813 level 51 --> 76
08:11:03:188 send permit join, duration: 59
08:11:04:040 verified group capacity: 255 and group count: 0 of LightNode 0x000b57fffed6ca64
08:11:05:171 [2] get active endpoints for 0x90fd9ffffed99f4e
08:11:06:188 send permit join, duration: 0
08:11:06:257 Current channel 15
08:11:06:289 [4] get basic cluster attr 0x0005 for 0x90fd9ffffed99f4e
08:11:06:289 Device TTL 701 s
08:11:08:188 send permit join, duration: 59
08:11:08:243 don't close database yet, keep open for 900 seconds
08:11:08:243 SensorNode 5: TRADFRI remote control  added
08:11:08:244 discard double entry in binding queue (size: 1) for for 0x90FD9FFFFED99F4E, cluster 0x0001
08:11:09:192 [2] get active endpoints for 0x90fd9ffffed99f4e
08:11:09:235 [4] get basic cluster attr 0x4000 for 0x90fd9ffffed99f4e
08:11:10:188 send permit join, duration: 0
08:11:12:189 CTRL db store gui node 00:21:2e:ff:ff:02:2c:cc
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:8b:f8:af
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:20:bf:49
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:a1:c2:bb
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:b1:c8:ee
08:11:12:189 CTRL db store gui node 90:fd:9f:ff:fe:19:d7:eb
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:96:b8:78
08:11:12:189 CTRL db store gui node 90:fd:9f:ff:fe:13:7d:43
08:11:12:189 CTRL db store gui node 90:fd:9f:ff:fe:8e:f0:a9
08:11:12:189 CTRL db store gui node 90:fd:9f:ff:fe:f7:fb:f3
08:11:12:189 CTRL db store gui node 00:17:88:01:10:48:ab:4a
08:11:12:189 CTRL db store gui node 00:17:88:01:02:7b:4a:41
08:11:12:189 CTRL db store gui node 00:17:88:01:02:04:b8:08
08:11:12:189 CTRL db store gui node 90:fd:9f:ff:fe:89:75:a9
08:11:12:189 CTRL db store gui node d0:cf:5e:ff:fe:13:6f:ac
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:d8:d8:13
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:d6:ca:64
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:e8:38:c0
08:11:12:189 CTRL db store gui node 90:fd:9f:ff:fe:0f:12:aa
08:11:12:189 CTRL db store gui node 90:fd:9f:ff:fe:0e:f9:fb
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:dd:3d:4c
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:0e:ca:4b
08:11:12:189 CTRL db store gui node 00:0b:57:ff:fe:93:62:f6
08:11:12:189 CTRL db store gui node d0:cf:5e:ff:fe:05:a5:0c
08:11:12:190 CTRL db store gui node 00:0b:57:ff:fe:f4:ea:52
08:11:12:190 CTRL db store gui node 00:0b:57:ff:fe:9b:67:25
08:11:12:190 CTRL db store gui node d0:cf:5e:ff:fe:08:09:fd
08:11:12:190 CTRL db store gui node 90:fd:9f:ff:fe:d9:9f:4e
08:11:12:256 saved node state in 1 ms
08:11:12:266 sync() in 9 ms
08:11:12:356 Bind response success for 0x90fd9ffffed99f4e cluster 0x0001
08:11:13:188 DB save zll database items 0x00000881
08:11:13:198 DB saved in 10 ms
08:11:13:198 don't close database yet, keep open for 900 seconds
08:11:15:966 button 1002 Toggle
08:11:15:971 discard sensor state push for 5: state/lastupdated (already pushed)
08:11:16:478 ZCL configure reporting rsp seq: 101 0x90FD9FFFFED99F4E for cluster 0x0001 attr 0x0021 status 0x00
08:11:18:975 no button handler for: TRADFRI remote control ep: 0x01 cl: 0x0005 cmd: 0x09 pl[0]: 000
08:11:19:487 no button handler for: TRADFRI remote control ep: 0x01 cl: 0x0008 cmd: 0x04 pl[0]: 0FE
08:11:19:991 button 1001 Setup 10s
08:11:19:995 discard sensor state push for 5: state/lastupdated (already pushed)
08:11:20:504 no button handler for: TRADFRI remote control ep: 0x01 cl: 0x0000 cmd: 0x00 pl[0]: 001
08:11:21:188 DB save zll database items 0x00000082
08:11:21:253 DB saved in 65 ms
08:11:21:254 don't close database yet, keep open for 900 seconds
08:11:23:121 ZCL attribute report 0x000B57FFFEDD3D4C for cluster 0x0300, ep 0x01
tubalainen commented 5 years ago

Another update, can confirm that I have got the same issues with joing a Philips Dimmer Switch as well in .54.

08:58:32:188 send permit join, duration: 59
08:58:37:188 send permit join, duration: 0
08:58:38:188 send permit join, duration: 59
08:58:39:329 Beacon src: 0x2C44 ch: 15 updateId: 0
08:58:39:336 Beacon src: 0x16B4 ch: 15 updateId: 0
08:58:39:377 Beacon src: 0x3B97 ch: 15 updateId: 0
08:58:39:393 Beacon src: 0xD010 ch: 15 updateId: 0
08:58:39:408 Beacon src: 0x6AD6 ch: 15 updateId: 0
08:58:40:625 0x92F4 nwk changed to 0x0AB2
08:58:40:625 device announce 0x001788011048AB4A (0x0AB2) mac capabilities 0x80
08:58:40:625 set fast probe address to 0x001788011048AB4A (0x0AB2)
08:58:40:625 device announce 0x001788011048AB4A (0x0AB2) mac capabilities 0x80
08:58:40:625 set fast probe address to 0x001788011048AB4A (0x0AB2)
08:58:40:720 [1] get node descriptor for 0x001788011048ab4a
08:58:42:188 send permit join, duration: 0
08:58:43:250 Current channel 15
08:58:43:282 Device TTL 864 s
08:58:44:188 send permit join, duration: 59

image

manup commented 5 years ago

Hmm strange, thanks for the logs I will do some pairing tests with these to check whats wrong. Might be related to the other issues where not all resources are created in one run.

tubalainen commented 5 years ago

Hmm strange, thanks for the logs I will do some pairing tests with these to check whats wrong. Might be related to the other issues where not all resources are created in one run.

Please tell me if there is anything else I can do to help in the troubleshooting and solution finding! <3

glassbase commented 5 years ago

I cannot add Xiaomi door/window sensor on .54... will attempt downgrade and report back.

Edit - maybe I have another issue. .54 and .52 and .50 could not find sensors.

manup commented 5 years ago

Version 2.05.55 has quite some fixes for this issue, please check if it works now.

https://github.com/dresden-elektronik/deconz-rest-plugin/releases/tag/V2_05_55

eggman0131 commented 5 years ago

I'm having the same issue with xiaomi door sensors, also one I managed to add under a previous version is working but not showing in phoscon. It's updating home assistant just fine.

I'm using 2.05.55

manup commented 5 years ago

Are the other devices displayed and working in the Phoscon App?

eggman0131 commented 5 years ago

Hi - all my lights are but I have an xiaomi motion sensors, an xiaomi door sensor and two trust motion sensors that are working and controlling lights, but not showing in phoscon. I also have a tradfri motion sensor and that is showing.

manup commented 5 years ago

Hmm strange, when you are on the sensors page can you please open the developer console via F12 and reload the page, are there any Javascript errors shown (red color) in the console?

eggman0131 commented 5 years ago

I get this

Uncaught TypeError: Cannot read property 'vendor' of undefined jquery-min.js?0baf29:2 at n.initialize (devices-sensors.js?44d5f2:3) at n.e.View (backbone-min.js?cedae4:1) at new n (backbone-min.js?cedae4:1) at n.addOne (devices-sensors.js?44d5f2:3) at app.sensors.forEach.sensor (devices-sensors.js?44d5f2:3) at Function.m.each.m.forEach (underscore-min.js?2a5156:5) at n.forEach (backbone-min.js?cedae4:1) at n.reload (devices-sensors.js?44d5f2:3) at n.initialize (devices-sensors.js?44d5f2:3) at n.e.View (backbone-min.js?cedae4:1)

manup commented 5 years ago

Good catch, will be fixed in 2.05.57

eggman0131 commented 5 years ago

cheers, any idea why I (and whoever started this) can't pair new sensors?

manup commented 5 years ago

Please try again with latest version 2.05.57

https://github.com/dresden-elektronik/deconz-rest-plugin/releases/tag/V2_05_57

Hope it was the same error.

eggman0131 commented 5 years ago

Hi, thanks. 2.05.57 fixed both issues for me.

manup commented 5 years ago

Cool, thanks closing this issue for now.

tubalainen commented 5 years ago

Oh, sorry. Yes, all works fine! Thanks a million for all your hard work @manup ! <3