diff --git a/lib/controller.js b/lib/controller.js index 2861104b1..3451fe88a 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -136,7 +136,7 @@ class Controller { `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.endpoints.length ? ` of endpoint ${message.endpoints[0].epId}` : '') + (message.endpoints && message.endpoints.length ? ` of endpoint ${message.endpoints[0].epId}` : '') ); // Call extensions.