Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.08k stars 1.68k forks source link

Touchlink not working wit CC2652P? #5356

Closed olili closed 2 years ago

olili commented 3 years ago

I'm facing problems by scanning for touchlink devices with my CC2652P

What did you expect to happen Philips ambient light bar will be correctly detected as touchlink device Distance between Light bar and CC2562 is less then 10cm; With my old CC2530 this setupp is working without any problem.

What happened

-or error: INFO: Start Touchlink scan ERROR: Request 'zigbee2mqtt/bridge/request/touchlink/scan' failed with error: 'SRSP - AF - interPanCtl after 6000ms' INFO: MQTT publish: topic 'zigbee2mqtt/bridge/response/touchlink/scan', payload '{"data":{},"error":"SRSP - AF - interPanCtl after 6000ms","status":"error"}'

How to reproduce it (minimal and precise)

start touchlink scan in web frontend

Debug info

zigbee2mqtt version 1.16.2 commit: 0514204 coordinator type: CC2652P, zStack3x0, coordinator revision 20201113 frontend version 0.2.100

Any Hints?

famschouenberg commented 2 years ago

I can confirm it is now working :-) Got my Zigstar last week and a Hue bulb to test today. Very lucky to find out the firmware for Touchlink has been fixed, since the bulb was previously connected to a Hue bridge

averter commented 5 months ago

I'm using the SONOFF Zigbee 3.0 USB Dongle with Philips Hue light bulbs. Two bulbs are paired and working and two others that I bought second hand cannot pair no matter what I try (probably have not been factory reset). I'm on version 1.37.1 commit: ea39d86. Below is the log for an attempt to scan touchlink via one of the working bulbs (20 cm from the second hand one).

info 2024-05-26 07:45:10Zigbee: allowing new devices to join via 0x0017880108b853a6.
info 2024-05-26 07:45:16Start Touchlink scan
info 2024-05-26 07:45:16Set InterPAN channel to '11'
warning 2024-05-26 07:45:17Scan request failed or was not answered: 'Error: Timeout - null - 254 - null - 4096 - 1 after 500ms'
info 2024-05-26 07:45:17Set InterPAN channel to '15'
warning 2024-05-26 07:45:17Scan request failed or was not answered: 'Error: Timeout - null - 254 - null - 4096 - 1 after 500ms'
info 2024-05-26 07:45:17Set InterPAN channel to '20'
warning 2024-05-26 07:45:18Scan request failed or was not answered: 'Error: Timeout - null - 254 - null - 4096 - 1 after 500ms'
info 2024-05-26 07:45:18Set InterPAN channel to '25'
warning 2024-05-26 07:45:18Scan request failed or was not answered: 'Error: Timeout - null - 254 - null - 4096 - 1 after 500ms'
info 2024-05-26 07:45:18Set InterPAN channel to '12'
warning 2024-05-26 07:45:19Scan request failed or was not answered: 'Error: Timeout - null - 254 - null - 4096 - 1 after 500ms'
info 2024-05-26 07:45:19Set InterPAN channel to '13'
warning 2024-05-26 07:45:19Scan request failed or was not answered: 'Error: Timeout - null - 254 - null - 4096 - 1 after 500ms'
info 2024-05-26 07:45:19Set InterPAN channel to '14'
info 2024-05-26 07:45:25Restore InterPAN channel
error 2024-05-26 07:45:31Request 'zigbee2mqtt/bridge/request/touchlink/scan' failed with error: 'SRSP - AF - interPanCtl after 6000ms'
error 2024-05-26 07:48:30Failed to keep permit join alive: Error: Cannot execute command, in Inter-PAN mode
SerhiiAksiutin commented 5 months ago

@averter did you try to power off/on the light right before triggering reset. it works every time. Also make sure dongle is really close the bulb

cmd I used:

mosquitto_pub  -d -t zigbee2mqtt/bridge/request/touchlink/factory_reset -m ""
mosquitto_pub  -d -t zigbee2mqtt/bridge/request/touchlink/scan -m ""
averter commented 5 months ago

@SerhiiAksiutin yes I did, and it either outputs the above, or that touchlink is already in progress. I'll try to get the bulb close to the dongle and see if that helps, but in theory, it should be able to also pair via the other bulbs which are working (not just the coordinator) right?

averter commented 4 months ago

I've managed to do a small progress. The two faulty bulbs are of a different kind: philips hue LUX. I'm able to connect to their bridge using the gen1 philips app and control them. However I cannot, for the life of me, find a factory reset button and touchlink on zigbee2mqtt still outputs Scan request failed or was not answered: 'Error: Timeout - null - 254 - null - 4096 - 1 after 500ms'. These lamps are supported and quite old, so I don't get it why touchlink does not work...

averter commented 4 months ago

@averter did you try to power off/on the light right before triggering reset. it works every time. Also make sure dongle is really close the bulb

cmd I used:

mosquitto_pub  -d -t zigbee2mqtt/bridge/request/touchlink/factory_reset -m ""
mosquitto_pub  -d -t zigbee2mqtt/bridge/request/touchlink/scan -m ""

Amazing. Only today I was able to get a lamp to physically put the light bulb near the dongle, and it immediately worked. Thank you very much!