# Unable to Pair Legrand Wireless Remote Switch (067773) with Homey Pro

**URL:** https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143
**Category:** Developers
**Created:** [December 8, 2024, 12:06am UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143 "2024-12-08T00:06:32Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Claude\_Khedhiri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/claude_khedhiri/32/120549_2.png) [@Claude\_Khedhiri](https://community.homey.app/u/Claude_Khedhiri)
#### Post date: [December 8, 2024, 12:06am UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/1 "2024-12-08T00:06:32Z")

</div>

Hello everyone,

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.

* * *

## Device Details

Here are the details retrieved via Zigbee2MQTT:

1. **manufacturerName** :

2. **modelId** :

3. **Supported Clusters** :

4. **Endpoint Used** :

* * *

## Current Configuration

### `driver.compose.json`

```json
{
  "id": "wireless_remote_switch",
  "name": {
    "en": "Wireless Remote Switch"
  },
  "class": "sensor",
  "capabilities": [
    "button"
  ],
  "zigbee": {
    "manufacturerName": " Legrand\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
    "modelId": [
      " Remote switch\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
    ],
    "endpoints": {
      "1": {
        "clusters": [
          0,
          6,
          8
        ]
      }
    },
    "learnmode": true
  }
}

```

### `driver.js`

```javascript
'use strict';

const { ZigBeeDevice } = require('homey-zigbeedriver');

class WirelessRemoteSwitch extends ZigBeeDevice {
  async onNodeInit({ zclNode }) {
    this.log('Device initialized');
    
    // Handle ON/OFF commands
    this.registerClusterListener(6, 'on', this._onCommandOn.bind(this));
    this.registerClusterListener(6, 'off', this._onCommandOff.bind(this));
  }

  _onCommandOn() {
    this.log('Command ON received');
  }

  _onCommandOff() {
    this.log('Command OFF received');
  }
}

module.exports = WirelessRemoteSwitch;

```

* * *

## Problem

- **Timeout during pairing** : The device fails to complete the pairing process with Homey and consistently times out.
- **No logs generated** : No logs appear in the CLI (`homey app run`) during the pairing process.
- **Works on other platforms** : The device works perfectly on Zigbee2MQTT and Zigbee Home Assistant, confirming it is fully functional.

* * *

## What I Need

1. Confirmation on whether the fields **`manufacturerName`** and **`modelId`** need to include the exact non-printable characters (`\u0000`).
2. Suggestions on diagnosing why pairing fails on Homey while it works on other Zigbee platforms.
3. Any methods to capture more detailed information about the pairing process in Homey (e.g., logs, debug mode).

Thank you in advance for your help! Any suggestions or advice are greatly appreciated.

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 8, 2024, 5:50am UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/2 "2024-12-08T05:50:38Z")

</div>

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](https://apps.developer.homey.app/wireless/zigbee#debugging)

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/](https://slack.athom.com/) although my experience is that most bugs posted there end up being lost somewhere).

---

<div class="post-metadata">

### Author: ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)
#### Post date: [December 8, 2024, 8:12am UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/3 "2024-12-08T08:12:11Z")

</div>

Are you using the [Zigbee2MQTT App for Homey | Homey](https://homey.app/a/com.gruijter.zigbee2mqtt) app? Would work most likely directly with it.

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 8, 2024, 9:12am UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/4 "2024-12-08T09:12:06Z")

</div>

It looks like they’re trying to develop a Homey app for the device.

---

<div class="post-metadata">

### Author: ![Claude\_Khedhiri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/claude_khedhiri/32/120549_2.png) [@Claude\_Khedhiri](https://community.homey.app/u/Claude_Khedhiri)
#### Post date: [December 8, 2024, 3:39pm UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/5 "2024-12-08T15:39:18Z")

</div>

> [@OH2TH](#):
>
> Are you using the [Zigbee2MQTT App for Homey | Homey](https://homey.app/a/com.gruijter.zigbee2mqtt) app? Would work most likely directly with it.

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

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 8, 2024, 3:40pm UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/6 "2024-12-08T15:40:58Z")

</div>

Some more info here: [Add support to Legrand Netatmo devices · Issue #2399 · Koenkk/zigbee2mqtt · GitHub](https://github.com/Koenkk/zigbee2mqtt/issues/2399#issuecomment-562859323)

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](https://github.com/Koenkk/zigbee-herdsman-converters/pull/829/commits/093844341521d30f5a4882ff8b4a806a9d450d92#diff-5520dd49755e0a353d3857b8963a91cb4b8d87a01b6b8eb7bb6cce1c180eac83R399-R412).

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.

---

<div class="post-metadata">

### Author: ![Claude\_Khedhiri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/claude_khedhiri/32/120549_2.png) [@Claude\_Khedhiri](https://community.homey.app/u/Claude_Khedhiri)
#### Post date: [December 8, 2024, 3:44pm UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/7 "2024-12-08T15:44:44Z")

</div>

![Screenshot 2024-12-08 at 16.20.54](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/2/521700e6c7697955caac5db94f09c121d0aab517.png)

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](https://github.com/athombv/homey-apps-sdk-issues/issues/196)

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 8, 2024, 3:47pm UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/8 "2024-12-08T15:47:47Z")

</div>

> [@Claude\_Khedhiri](#):
>
> However, in this case, I’m experiencing a timeout, and the switch isn’t added

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.

---

<div class="post-metadata">

### Author: ![Claude\_Khedhiri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/claude_khedhiri/32/120549_2.png) [@Claude\_Khedhiri](https://community.homey.app/u/Claude_Khedhiri)
#### Post date: [December 8, 2024, 3:55pm UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/9 "2024-12-08T15:55:10Z")

</div>

> [@robertklep](#):
>
> 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

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [December 8, 2024, 3:58pm UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/10 "2024-12-08T15:58:18Z")

</div>

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.

All you can do is [open an issue on Github about this](https://github.com/athombv/homey-apps-sdk-issues/issues/) (and then probably never get an answer, like with many issues).

---

<div class="post-metadata">

### Author: ![Claude\_Khedhiri](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/claude_khedhiri/32/120549_2.png) [@Claude\_Khedhiri](https://community.homey.app/u/Claude_Khedhiri)
#### Post date: [December 8, 2024, 4:09pm UTC](https://community.homey.app/t/unable-to-pair-legrand-wireless-remote-switch-067773-with-homey-pro/123143/11 "2024-12-08T16:09:11Z")

</div>

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!
