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 power0.13.85— cost energy8.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.
