Skip to content

Commit

Permalink
Added _failed to group operations
Browse files Browse the repository at this point in the history
  • Loading branch information
carldebilly committed Dec 31, 2019
1 parent 7b9d1cb commit fd11a30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/extension/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ class Groups extends BaseExtension {

if (!group || group.type !== 'group') {
logger.error(`Group '${topicMatch[1]}' does not exist`);
this.mqtt.log(`device_group_${type}_failed`, {friendly_name: message, group: topicMatch[1], error: 'group doesn\'t exists'});
return;
}
} else if (topic.match(topicRegexRemoveAll)) {
Expand All @@ -153,6 +154,7 @@ class Groups extends BaseExtension {
const entity = this.zigbee.resolveEntity(message);
if (!entity || !entity.type === 'device') {
logger.error(`Device '${message}' does not exist`);
this.mqtt.log(`device_group_${type}_failed`, {friendly_name: message, group: topicMatch[1], error: 'entity doesn\'t exists'});
return;
}

Expand Down

0 comments on commit fd11a30

Please sign in to comment.