mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
zcl-id > Zcl.
This commit is contained in:
+3
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user