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.
Files changed (44) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/converters/fromZigbee.d.ts.map +1 -1
  3. package/converters/fromZigbee.js +17 -12
  4. package/converters/fromZigbee.js.map +1 -1
  5. package/converters/toZigbee.d.ts +1 -1
  6. package/converters/toZigbee.d.ts.map +1 -1
  7. package/converters/toZigbee.js +20 -4
  8. package/converters/toZigbee.js.map +1 -1
  9. package/devices/adeo.d.ts.map +1 -1
  10. package/devices/adeo.js +2 -0
  11. package/devices/adeo.js.map +1 -1
  12. package/devices/candeo.d.ts.map +1 -1
  13. package/devices/candeo.js +118 -13
  14. package/devices/candeo.js.map +1 -1
  15. package/devices/frient.d.ts.map +1 -1
  16. package/devices/frient.js +13 -40
  17. package/devices/frient.js.map +1 -1
  18. package/devices/lixee.js +1 -1
  19. package/devices/lixee.js.map +1 -1
  20. package/devices/moes.d.ts.map +1 -1
  21. package/devices/moes.js +2 -1
  22. package/devices/moes.js.map +1 -1
  23. package/devices/third_reality.d.ts.map +1 -1
  24. package/devices/third_reality.js +4 -7
  25. package/devices/third_reality.js.map +1 -1
  26. package/devices/tuya.d.ts.map +1 -1
  27. package/devices/tuya.js +18 -7
  28. package/devices/tuya.js.map +1 -1
  29. package/lib/develco.d.ts +2 -0
  30. package/lib/develco.d.ts.map +1 -1
  31. package/lib/develco.js +20 -0
  32. package/lib/develco.js.map +1 -1
  33. package/lib/ota/index.d.ts +1 -2
  34. package/lib/ota/index.d.ts.map +1 -1
  35. package/lib/ota/index.js +1 -3
  36. package/lib/ota/index.js.map +1 -1
  37. package/lib/tuya.d.ts.map +1 -1
  38. package/lib/tuya.js +1 -0
  39. package/lib/tuya.js.map +1 -1
  40. package/package.json +1 -1
  41. package/lib/ota/lixee.d.ts +0 -11
  42. package/lib/ota/lixee.d.ts.map +0 -1
  43. package/lib/ota/lixee.js +0 -76
  44. package/lib/ota/lixee.js.map +0 -1
@@ -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
- calibration: unknown;
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;AAu6IvD,QAAA,MAAM,UAAU;;QAlKR;;;WAGG;;;;mBA3nG8B,WAAW;;;;;;;;;mBAAX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAX,WAAW;;;;;;;;;;;;;;;QA4C5C;;;;;;;;;;;WAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAm+BS,CAAC;AAEpE,eAAe,UAAU,CAAC"}
@@ -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
- await entity.write('closuresWindowCovering', { tuyaCalibration: calibration });
3833
- return { state: { calibration: value } };
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
- await entity.read('closuresWindowCovering', ['tuyaCalibration']);
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: {