Log endpoint on zigbee message received. #642

This commit is contained in:
Koen Kanters 2019-03-27 17:09:55 +01:00
parent 9a15e8c118
commit e96dac2596

View File

@ -135,7 +135,8 @@ class Controller {
logger.debug(
`Received zigbee message of type '${message.type}' with data '${JSON.stringify(message.data)}'` +
(device ? ` of device '${device.modelId}' (${device.ieeeAddr})` : '') +
(message.groupid ? ` with groupID ${message.groupID}` : '')
(message.groupid ? ` with groupID ${message.groupID}` : '') +
(message.endpoints.length ? ` of endpoint ${message.endpoints[0].epId}` : '')
);
// Call extensions.