zigbee-herdsman-converters 20.27.2 → 20.28.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.
@@ -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: {