Retrieve default ep from mapping. #1662

This commit is contained in:
Koenkk committed 2019-06-25 19:13:59 +02:00
1 parent 362b910e48
commit 5a132ad34b
3 files changed
+63

No files matched your search

+3
View File
@@ -68,6 +68,9 @@ function getEndpointByEntityID(zigbee, entityID, epName) {
logger.error(`Device ${mappedDevice.model} doesn't have ep named '${epName}'`);
return;
}
} else if (mappedDevice.hasOwnProperty('ep')) {
const eps = mappedDevice.ep(device);
epID = eps[''] || null;
}
const endpoint = zigbee.getEndpoint(entityID, epID);