New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device does not pass interview (OpenWRT) #4741
Comments
Please provide the logging again after the following modification to
|
I replaced the specified line (added .stack in log) |
In nodeDescriptorInternal(networkAddress) {
return __awaiter(this, void 0, void 0, function* () {
const response = this.znp.waitFor(Type.AREQ, Subsystem.ZDO, 'nodeDescRsp', { nwkaddr: networkAddress });
console.log('response', response);
const payload = { dstaddr: networkAddress, nwkaddrofinterest: networkAddress };
console.log('payload', payload);
console.log('znp', this.znp);
yield this.znp.request(Subsystem.ZDO, 'nodeDescReq', payload, response.ID);
const descriptor = yield response.start().promise;
let type = 'Unknown';
const logicalType = descriptor.payload.logicaltype_cmplxdescavai_userdescavai & 0x07;
for (const [key, value] of Object.entries(Constants.ZDO.deviceLogicalType)) {
if (value === logicalType) {
if (key === 'COORDINATOR')
type = 'Coordinator';
else if (key === 'ROUTER')
type = 'Router';
else if (key === 'ENDDEVICE')
type = 'EndDevice';
break;
}
}
return { manufacturerCode: descriptor.payload.manufacturercode, type };
});
} I somehow have a feeling it has something to do with nodejs, can you try installing nodejs 14? |
https://pastebin.com/j6d7qP6W line 352 For me, these logs did not provide useful information. I'm not sure if I can install node 14 on the router, but I'll try to think of something. If I can do it, then I will write about it. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Bug Report
What happened
Device does not pass interview
How to reproduce it (minimal and precise)
I started OpenWRT (Entware mipselsf-k3.4 rep) on my internet router (Keenetic Extra II). I installed the node (v12.18.3), npm (6.14.6) and installed z2m. When I try to connect a sensor, I get an error in the log. The device does not pass the interview. I made all recommendations from the documentation. I used different versions of z2m (master and dev).
The important thing is that I ran this stick on my home server with ubuntu and everything worked well there and the devices were connected (motion sensor and smoke sensor). I want to make a router-based setup.
Log: https://pastebin.com/bRTUAaDp
I see an error on the line: 439
zigbee-herdsman:adapter:zStack:adapter Node descriptor request for '14127' failed (TypeError: Cannot convert undefined or null to object), retry +5s
I myself compiled the serialport binding library, but I don't know if it affected the operation of the device.
Debug Info
Zigbee2MQTT version: 1.15.0-dev
Adapter hardware: CC2531
Adapter firmware version: zStack12 (20190608)
The text was updated successfully, but these errors were encountered: