iobroker.zigbee 1.6.6 → 1.6.8
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/admin/img/R7060.png +0 -0
- package/admin/img/WHD02.png +0 -0
- package/admin/img/ikea_E1812.png +0 -0
- package/admin/index_m.html +43 -0
- package/admin/tab_m.html +31 -0
- package/io-package.json +4 -1
- package/lib/developer.js +6 -2
- package/lib/devices.js +15 -1
- package/lib/exposes.js +791 -789
- package/lib/zigbeecontroller.js +14 -2
- package/package.json +3 -3
package/lib/zigbeecontroller.js
CHANGED
|
@@ -686,7 +686,7 @@ class ZigbeeController extends EventEmitter {
|
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
|
|
689
|
-
async publish(deviceID, cid, cmd, zclData, cfg, ep, type, callback) {
|
|
689
|
+
async publish(deviceID, cid, cmd, zclData, cfg, ep, type, callback, zclSeqNum) {
|
|
690
690
|
const entity = await this.resolveEntity(deviceID, ep);
|
|
691
691
|
const device = entity.device;
|
|
692
692
|
const endpoint = entity.endpoint;
|
|
@@ -727,7 +727,19 @@ class ZigbeeController extends EventEmitter {
|
|
|
727
727
|
result = await endpoint[cmd](cid, zclData, cfg);
|
|
728
728
|
}
|
|
729
729
|
if (callback) callback(undefined, result);
|
|
730
|
-
}
|
|
730
|
+
}
|
|
731
|
+
else if(type === 'functionalResp'){
|
|
732
|
+
if (!zclSeqNum) {
|
|
733
|
+
this.error(
|
|
734
|
+
`Zigbee cannot publish commandResponse message to device because zclSeqNum is not known`
|
|
735
|
+
);
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
cfg.disableDefaultResponse = false;
|
|
739
|
+
const result = await endpoint.commandResponse(cid, cmd, zclData, cfg, zclSeqNum);
|
|
740
|
+
if (callback) callback(undefined, result);
|
|
741
|
+
}
|
|
742
|
+
else {
|
|
731
743
|
cfg.disableDefaultResponse = false;
|
|
732
744
|
const result = await endpoint.command(cid, cmd, zclData, cfg);
|
|
733
745
|
if (callback) callback(undefined, result);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.zigbee",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.8",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Kirov Ilya",
|
|
6
6
|
"email": "kirovilya@gmail.com"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"node": ">=10"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"zigbee-herdsman": "0.13.
|
|
22
|
-
"zigbee-herdsman-converters": "14.0.
|
|
21
|
+
"zigbee-herdsman": "0.13.178",
|
|
22
|
+
"zigbee-herdsman-converters": "14.0.339",
|
|
23
23
|
"@iobroker/adapter-core": "^2.4.0",
|
|
24
24
|
"tar": "^6.0.5",
|
|
25
25
|
"typescript": "^4.0.5"
|