This commit is contained in:
Koen Kanters committed 2019-06-24 20:25:37 +02:00
1 parent f4f297e8a2
commit 0e9931af6c
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -96,18 +96,18 @@ class DeviceBind {
// Bind
clusters.forEach((cluster) => {
logger.debug(`${topic.type}ing cluster '${cluster}' from ${sourceEntity.ID}' to '${targetEntity.ID}'`);
logger.debug(`${topic.type}ing cluster '${cluster}' from '${sourceEntity.ID}' (${source.epId}) to '${targetEntity.ID}'`);
this.zigbee[topic.type](source, cluster, target, (error) => {
if (error) {
logger.error(
`Failed to ${topic.type} cluster '${cluster}' from ${sourceEntity.ID}' to ` +
`Failed to ${topic.type} cluster '${cluster}' from '${sourceEntity.ID}' to ` +
`'${targetEntity.ID}' (${error})`
);
} else {
logger.info(
`Successfully ${topic.type === 'bind' ? 'bound' : 'unbound'} cluster '${cluster}' from ` +
`${sourceEntity.ID}' to '${targetEntity.ID}'`
`'${sourceEntity.ID}' to '${targetEntity.ID}'`
);
this.mqtt.log(
+1 -1
View File
@@ -451,7 +451,7 @@ class Zigbee {
this.queue.push(entityID, (queueCallback) => {
logger.info(
`Zigbee publish to ${entityType} '${friendlyName}', ${cid} - ${cmd} - ` +
`${JSON.stringify(zclData)} - ${JSON.stringify(cfg)} - ${ep}`
`${JSON.stringify(zclData)} - ${JSON.stringify(cfg)} - ${entity.epId}`
);
const callback_ = (error, rsp) => {