I am encountering difficulties pairing the Legrand Wireless Remote Switch (model 067773) with my Homey Pro. The device works perfectly on Zigbee2MQTT and Zigbee Home Assistant, but on Homey, the pairing process consistently fails with a timeout and no logs are generated.
My guess is that this is related to the NUL characters (which are typically used as end-of-string markers in C/C++, so I’m thinking that one of the Zigbee drivers might be truncating the strings, or the backend is simply unable to handle the NUL’s).
The only thing you can try is to enable Zigbee debugging, which is explained here: Zigbee | Homey Apps SDK
There are not other logfiles available, if the debugging doesn’t yield a solution (which it probably won’t) you’ll have to contact Athom (you can try the #developers channel on Slack: https://slack.athom.com/ although my experience is that most bugs posted there end up being lost somewhere).
I’ve used Zigbee2MQTT before, but I aim to develop a direct integration without relying on Zigbee2MQTT. I’ve tested a direct link with Philips Hue, but the response time has a latency of 1 to 2 seconds, which makes it far from smooth and responsive
These devices seem to require some specific responses to be sent back from the controller during the pairing process, and if it doesn’t receive such a response (or an incorrect one), the device will remove itself from the network (and, hence, can’t be paired). See this code.
I don’t think it’s possible for Homey apps to implement these types of specific responses. The Aqara app also required something similar (or at least that’s how I understood how it worked at the time) and it required changes to Homey’s core Zigbee handling to be able to make it work. Homey doesn’t have a full Zigbee implementation, nor does it allow apps to do low-level things, as opposed to z2m.
I’ve already tried enabling Zigbee debugging, but unfortunately, no logs were generated. From my understanding, Homey typically uses a generic driver if it doesn’t find a specific one. However, in this case, I’m experiencing a timeout, and the switch isn’t added. The issue seems related to managing the PollControl cluster, as the switch is battery-powered. Here’s a related GitHub issue dating back to 2021: GitHub Issue #196
See my previous post, your device is probably disconnecting from the network itself because it’s not getting the correct response on a particular request.
Thank you for your help! the issue is that the call needs to happen during the pairing process. the onPair method hasn’t been called yet when adding the button, which prevents the correct response from being sent at the right time
Yes, that’s what it sounds like. Like I said, it’s not possible for Homey apps to implement this, it has to be done on a lower level. The reason this was done for Aqara is because that is/was a popular brand amongst Homey users, and not implementing the Aqara-specific pairing code meant that the newer Aqara devices wouldn’t be able to pair with Homey.
The SDK is not open source, which is very disappointing to me. It limits the ability for the community to contribute fixes or improvements for cases like this. It’s frustrating that we can’t address these issues directly, especially when they impact device compatibility. Thank you very much!