zcl-id > Zcl.

This commit is contained in:
Koen Kanters
2019-08-11 14:13:44 +02:00
parent 7853f41a0e
commit a60fdd75dc
4 changed files with 15 additions and 6536 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ const utils = require('./util/utils');
const ZigbeeQueue = require('./util/zigbeeQueue');
const cieApp = require('./zapp/cie');
const objectAssignDeep = require('object-assign-deep');
const zclId = require('zigbee-herdsman/dist/zcl-id');
const Zcl = require('zigbee-herdsman/dist/zcl');
const advancedSettings = settings.get().advanced;
@@ -615,8 +615,8 @@ class Zigbee {
report(ep, cluster, attributes) {
const friendlyName = this.getDeviceFriendlyName(ep.device.ieeeAddr);
const cfgArr = attributes.map((attribute) => {
const attrId = zclId.attr(cluster, attribute.attr).value;
const dataType = zclId.attrType(cluster, attribute.attr).value;
const attrId = Zcl.getAttributeLegacy(cluster, attribute.attr).value;
const dataType = Zcl.getAttributeTypeLegacy(cluster, attribute.attr).value;
return {
direction: 0,
attrId,