zigbee-herdsman-converters 20.27.2 → 20.29.0
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/CHANGELOG.md +34 -0
- package/converters/fromZigbee.d.ts.map +1 -1
- package/converters/fromZigbee.js +17 -12
- package/converters/fromZigbee.js.map +1 -1
- package/converters/toZigbee.d.ts +1 -1
- package/converters/toZigbee.d.ts.map +1 -1
- package/converters/toZigbee.js +20 -4
- package/converters/toZigbee.js.map +1 -1
- package/devices/adeo.d.ts.map +1 -1
- package/devices/adeo.js +2 -0
- package/devices/adeo.js.map +1 -1
- package/devices/candeo.d.ts.map +1 -1
- package/devices/candeo.js +118 -13
- package/devices/candeo.js.map +1 -1
- package/devices/frient.d.ts.map +1 -1
- package/devices/frient.js +13 -40
- package/devices/frient.js.map +1 -1
- package/devices/lixee.js +1 -1
- package/devices/lixee.js.map +1 -1
- package/devices/moes.d.ts.map +1 -1
- package/devices/moes.js +2 -1
- package/devices/moes.js.map +1 -1
- package/devices/third_reality.d.ts.map +1 -1
- package/devices/third_reality.js +4 -7
- package/devices/third_reality.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +18 -7
- package/devices/tuya.js.map +1 -1
- package/lib/develco.d.ts +2 -0
- package/lib/develco.d.ts.map +1 -1
- package/lib/develco.js +20 -0
- package/lib/develco.js.map +1 -1
- package/lib/ota/index.d.ts +1 -2
- package/lib/ota/index.d.ts.map +1 -1
- package/lib/ota/index.js +1 -3
- package/lib/ota/index.js.map +1 -1
- package/lib/tuya.d.ts.map +1 -1
- package/lib/tuya.js +1 -0
- package/lib/tuya.js.map +1 -1
- package/package.json +1 -1
- package/lib/ota/lixee.d.ts +0 -11
- package/lib/ota/lixee.d.ts.map +0 -1
- package/lib/ota/lixee.js +0 -76
- package/lib/ota/lixee.js.map +0 -1
package/converters/toZigbee.d.ts
CHANGED
|
@@ -1318,7 +1318,7 @@ declare const converters: {
|
|
|
1318
1318
|
key: string[];
|
|
1319
1319
|
convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Endpoint | import("zigbee-herdsman/dist/controller/model").Group, key: string, value: unknown, meta: Tz.Meta) => Promise<{
|
|
1320
1320
|
state: {
|
|
1321
|
-
|
|
1321
|
+
[x: string]: unknown;
|
|
1322
1322
|
};
|
|
1323
1323
|
}>;
|
|
1324
1324
|
convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Endpoint | import("zigbee-herdsman/dist/controller/model").Group, key: string, meta: Tz.Meta) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toZigbee.d.ts","sourceRoot":"","sources":["../src/converters/toZigbee.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,OAAO,EAAW,WAAW,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"toZigbee.d.ts","sourceRoot":"","sources":["../src/converters/toZigbee.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,OAAO,EAAW,WAAW,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;AAu7IvD,QAAA,MAAM,UAAU;;QAlKR;;;WAGG;;;;mBA3oG8B,WAAW;;;;;;;;;mBAAX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAX,WAAW;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAm+BS,CAAC;AAEpE,eAAe,UAAU,CAAC"}
|
package/converters/toZigbee.js
CHANGED
|
@@ -3823,17 +3823,33 @@ const converters2 = {
|
|
|
3823
3823
|
},
|
|
3824
3824
|
},
|
|
3825
3825
|
tuya_cover_calibration: {
|
|
3826
|
-
key: ['calibration'],
|
|
3826
|
+
key: ['calibration', 'calibration_up', 'calibration_down'],
|
|
3827
3827
|
convertSet: async (entity, key, value, meta) => {
|
|
3828
3828
|
utils.assertString(value, key);
|
|
3829
3829
|
const lookup = { ON: 0, OFF: 1 };
|
|
3830
3830
|
value = value.toUpperCase();
|
|
3831
3831
|
const calibration = utils.getFromLookup(value, lookup);
|
|
3832
|
-
|
|
3833
|
-
|
|
3832
|
+
switch (key) {
|
|
3833
|
+
case 'calibration':
|
|
3834
|
+
case 'calibration_up':
|
|
3835
|
+
await entity.write('closuresWindowCovering', { tuyaCalibration: calibration });
|
|
3836
|
+
break;
|
|
3837
|
+
case 'calibration_down':
|
|
3838
|
+
await meta.device.getEndpoint(2).write('closuresWindowCovering', { tuyaCalibration: calibration });
|
|
3839
|
+
break;
|
|
3840
|
+
}
|
|
3841
|
+
return { state: { [key]: value } };
|
|
3834
3842
|
},
|
|
3835
3843
|
convertGet: async (entity, key, meta) => {
|
|
3836
|
-
|
|
3844
|
+
switch (key) {
|
|
3845
|
+
case 'calibration':
|
|
3846
|
+
case 'calibration_up':
|
|
3847
|
+
await entity.read('closuresWindowCovering', ['tuyaCalibration']);
|
|
3848
|
+
break;
|
|
3849
|
+
case 'calibration_down':
|
|
3850
|
+
await meta.device.getEndpoint(2).read('closuresWindowCovering', ['tuyaCalibration']);
|
|
3851
|
+
break;
|
|
3852
|
+
}
|
|
3837
3853
|
},
|
|
3838
3854
|
},
|
|
3839
3855
|
tuya_cover_reversal: {
|