zigbee-clusters 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -2
- package/lib/Cluster.js +1 -1
- package/lib/clusters/pressureMeasurement.js +3 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -69,14 +69,16 @@ type ZCLNodeCluster = EventEmitter & {
|
|
|
69
69
|
* Note: do not mix regular and manufacturer specific attributes.
|
|
70
70
|
* @param {string[]} attributeNames
|
|
71
71
|
* @param {{timeout: number}} [opts=]
|
|
72
|
-
* @returns {Promise<
|
|
72
|
+
* @returns {Promise<Object.<string, unknown>>} - Object with values (e.g. `{ onOff: true }`)
|
|
73
73
|
*/
|
|
74
74
|
readAttributes(
|
|
75
75
|
attributeNames: string[],
|
|
76
76
|
opts?: {
|
|
77
77
|
timeout: number;
|
|
78
78
|
}
|
|
79
|
-
): Promise<{
|
|
79
|
+
): Promise<{
|
|
80
|
+
[x: string]: unknown;
|
|
81
|
+
}>;
|
|
80
82
|
/**
|
|
81
83
|
* Command which writes a given set of attribute key-value pairs to the remote cluster.
|
|
82
84
|
* Note: do not mix regular and manufacturer specific attributes.
|
package/lib/Cluster.js
CHANGED
|
@@ -401,7 +401,7 @@ class Cluster extends EventEmitter {
|
|
|
401
401
|
* Note: do not mix regular and manufacturer specific attributes.
|
|
402
402
|
* @param {string[]} attributeNames
|
|
403
403
|
* @param {{timeout: number}} [opts=]
|
|
404
|
-
* @returns {Promise<
|
|
404
|
+
* @returns {Promise<Object.<string, unknown>>} - Object with values (e.g. `{ onOff: true }`)
|
|
405
405
|
*/
|
|
406
406
|
async readAttributes(attributeNames, opts) {
|
|
407
407
|
if (attributeNames instanceof Array === false) {
|
|
@@ -4,9 +4,9 @@ const Cluster = require('../Cluster');
|
|
|
4
4
|
const { ZCLDataTypes } = require('../zclTypes');
|
|
5
5
|
|
|
6
6
|
const ATTRIBUTES = {
|
|
7
|
-
measuredValue: { id: 0, type: ZCLDataTypes.
|
|
8
|
-
minMeasuredValue: { id: 1, type: ZCLDataTypes.
|
|
9
|
-
maxMeasuredValue: { id: 2, type: ZCLDataTypes.
|
|
7
|
+
measuredValue: { id: 0, type: ZCLDataTypes.int16 },
|
|
8
|
+
minMeasuredValue: { id: 1, type: ZCLDataTypes.int16 },
|
|
9
|
+
maxMeasuredValue: { id: 2, type: ZCLDataTypes.int16 },
|
|
10
10
|
tolerance: { id: 3, type: ZCLDataTypes.uint16 },
|
|
11
11
|
scaledValue: { id: 16, type: ZCLDataTypes.int16 },
|
|
12
12
|
minScaledValue: { id: 17, type: ZCLDataTypes.int16 },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zigbee-clusters",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Zigbee Cluster Library for Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"watch": "^1.0.2"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@athombv/data-types": "^1.
|
|
45
|
+
"@athombv/data-types": "^1.1.3",
|
|
46
46
|
"debug": "^4.1.1"
|
|
47
47
|
}
|
|
48
48
|
}
|