Request to open Open API resources for lumi.switch.n3acn3 (3-gang wall switch)

Hi @AqaraBot and Aqara Developer Team,

I’m developing a custom dashboard that uses the Aqara Open API to monitor and control my own home devices. Read and write operations work correctly for 1-gang and 2-gang wall switches, but the 3-gang model lumi.switch.n3acn3 has no open resources for my project.

Diagnostic information

Project / region

  • App ID: 10663363983406366721ae0e
  • Region: USA (open-usa.aqara.com)

Comparison with working models

query.resource.info for lumi.switch.b2nacn02 returns 13 resources, including 4.1.85 and 4.2.85 with access=7 (read + write). Writing to these resources via write.resource.device succeeds (code: 0).

query.resource.info for lumi.switch.n3acn3 returns 0 resources.

Write attempt on lumi.switch.n3acn3

Request:

{
  "intent": "write.resource.device",
  "data": [
    {
      "subjectId": "lumi.54ef44100061d49d",
      "resources": [
        { "resourceId": "4.2.85", "value": "1" }
      ]
    }
  ]
}

Response:

{
  "code": 302,
  "message": "Request failed. Please try again.",
  "msgDetails": "all resource not open",
  "requestId": "f070635945da46dd89bebd2f968d7ac0.2753390.17771180544874965"
}

Read attempt on the same device

query.resource.value for the same subjectId and resources also fails with:

{
  "code": 302,
  "msgDetails": "all resource not open"
}

Online Debugging works

Interestingly, the Device Debugging tool inside the Aqara Developer Portal can both Get and Set resource 4.2.85 for this device successfully, which confirms the device and resources work physically. The issue appears to be that these resources are simply not opened for Open API access on my project.

Request

Please open the following resources for lumi.switch.n3acn3 so they can be accessed via the Open API on my project:

  • 4.1.85 — channel 1 switch status (read + write)
  • 4.2.85 — channel 2 switch status (read + write)
  • 4.3.85 — channel 3 switch status (read + write)

Optionally, if available, also:

  • 0.12.85 — load power
  • 0.13.85 — cost energy
  • 8.0.2007 — Zigbee signal strength

Use case

Personal home automation: a self-hosted FastAPI dashboard that lists all switches by room, shows live state via HTTP push notifications, and lets me toggle individual gangs. Already works for lumi.switch.b1nacn02 and lumi.switch.b2nacn02 in the same home; I just need the same level of access for the 3-gang model.

Thanks in advance for your help.

1 Like

@pvhung87dn You seem to be experiencing an issue with the 3-gang wall switch lumi.switch.n3acn3 having no open resources for Open API access, resulting in read and write operation failures. You can contact customer support for assistance. Contact the Aqara Home App Customer Service Team (Profile> Help & Feedback > Customer Service) or scan the QR code:


This will be more efficient. If you do not have an Aqara Home account, “Please click here” to create a ticket.

2 Likes

Hi @AqaraBot, thanks for the response. I will contact the Customer Service team via the in-app channel as suggested.

In the meantime, I’d like to ask the developer community here:

Has anyone successfully accessed lumi.switch.n3acn3 (3-gang wall switch) resources via the Aqara Open API?

If yes, I’d love to hear:

  1. Did you have to apply specifically to get resources 4.1.85, 4.2.85, 4.3.85 opened for your project, or did they work out of the box for you?
  2. How long did it take Aqara to enable those resources after you submitted the request?
  3. Is there a specific channel that worked best for you — Aqara Home App customer service, this developer forum, or direct email to a developer support address?
  4. Did Aqara open the resources on a per-project basis, or per developer account? In other words, if I create another project under the same account, will I have to apply again?
  5. Are there any other 3-gang or multi-gang wall switch models (lumi.switch.l3acn3, newer models, etc.) where the Open API control already works without extra application? I’d happily standardize on a model that is fully supported out of the box.

For context: the Open API already works perfectly for my 1-gang lumi.switch.b1nacn02 and 2-gang lumi.switch.b2nacn02 switches in the same home, same project, same access token. Only lumi.switch.n3acn3 returns:

{ "code": 302, "msgDetails": "all resource not open" }

and query.resource.info returns 0 resources for the model. So this looks like a model-level gating rather than a project/account permission issue.

Any pointers from people who have already gone through this would save me a lot of time. Thanks!

1 Like

@pvhung87dn You seem to be experiencing an issue with accessing the lumi.switch.n3acn3 3-gang wall switch resources via the Aqara Open API. You can contact customer support for assistance. Contact the Aqara Home App Customer Service Team (Profile> Help & Feedback > Customer Service) or scan the QR code:


This will be more efficient. If you do not have an Aqara Home account, “Please click here” to create a ticket.

1 Like

I’ll forward this to our developers.

@pvhung87dn @Caroline_Zzz Hi, this is Open API team,we’ve already open this model’s resource API, pls try to request again, any question pls leave a message.

1 Like