# Could not get device by ID and multiple onoff Capability - Zigbee

**URL:** https://community.homey.app/t/could-not-get-device-by-id-and-multiple-onoff-capability-zigbee/115129
**Category:** Developers
**Tags:** app, zigbee
**Created:** [August 28, 2024, 2:07pm UTC](https://community.homey.app/t/could-not-get-device-by-id-and-multiple-onoff-capability-zigbee/115129 "2024-08-28T14:07:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ninja](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ninja/32/111829_2.png) [@ninja](https://community.homey.app/u/ninja)
#### Post date: [August 28, 2024, 2:07pm UTC](https://community.homey.app/t/could-not-get-device-by-id-and-multiple-onoff-capability-zigbee/115129/1 "2024-08-28T14:07:32Z")

</div>

Hi,

my code for device.js

```auto
"zigbee": {
    "manufacturerName": [
      "LUMI"
    ],
    "productId": "lumi.switch.l3acn1",

```

Device Interview:

```auto
 "ids": {
    "modelId": "lumi.switch.l3acn1",
    "manufacturerName": "LUMI"
  },

```

From what I’ve been reading, the device interview’s ‘modelId’ is the data field for the code’s ‘productId’.

What am i doing wrong?

Secondly,  
if i have

```auto
"class": "light",
  "capabilities": {
    "onoff.a": {
      "title": {
        "en": "A On/Off"
      }
    },
    "onoff.b": {

    },
    "onoff.c": {

    }
  },

```

How can i get 3 x onoff switches on my app?

TIA.

---

<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: [August 28, 2024, 4:45pm UTC](https://community.homey.app/t/could-not-get-device-by-id-and-multiple-onoff-capability-zigbee/115129/2 "2024-08-28T16:45:38Z")

</div>

The error “could not get device by ID” is unrelated to anything you’re showing, it usually happens when you try to access a device that’s already been deleted.
