zigbee-herdsman-converters 14.0.331 → 14.0.332

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.
@@ -3610,7 +3610,7 @@ const converters = {
3610
3610
  case tuya.dataPoints.tvFrostDetection:
3611
3611
  return {frost_protection: value ? 'ON' : 'OFF'};
3612
3612
  case tuya.dataPoints.tvWindowDetection:
3613
- return {window_detection: value ? 'ON' : 'OFF'};
3613
+ return {open_window: value ? 'ON' : 'OFF'};
3614
3614
  case tuya.dataPoints.tvHeatingStop:
3615
3615
  return {heating_stop: value ? 'ON' : 'OFF'};
3616
3616
  case tuya.dataPoints.tvLocalTemp:
@@ -2810,11 +2810,10 @@ const converters = {
2810
2810
  },
2811
2811
  tvtwo_thermostat: {
2812
2812
  key: [
2813
- 'window_detection', 'frost_protection', 'child_lock',
2814
- 'current_heating_setpoint', 'local_temperature_calibration',
2815
- 'holiday_temperature', 'comfort_temperature', 'eco_temperature',
2816
- 'open_window_temperature', 'heating_stop', 'preset', 'boost_timeset_countdown',
2817
- 'holiday_mode_date', 'working_day', 'week_schedule', 'week', 'online',
2813
+ 'child_lock', 'open_window', 'open_window_temperature', 'frost_protection', 'heating_stop',
2814
+ 'current_heating_setpoint', 'local_temperature_calibration', 'preset', 'boost_timeset_countdown',
2815
+ 'holiday_mode_date', 'holiday_temperature', 'comfort_temperature', 'eco_temperature',
2816
+ 'working_day', 'week_schedule', 'week', 'online',
2818
2817
  ],
2819
2818
  convertSet: async (entity, key, value, meta) => {
2820
2819
  switch (key) {
@@ -2838,7 +2837,7 @@ const converters = {
2838
2837
  await tuya.sendDataPointEnum(entity, tuya.dataPoints.tvMode, 1 /* manual */);
2839
2838
  }
2840
2839
  break;
2841
- case 'window_detection':
2840
+ case 'open_window':
2842
2841
  await tuya.sendDataPointBool(entity, tuya.dataPoints.tvWindowDetection, value === 'ON');
2843
2842
  break;
2844
2843
  case 'child_lock':
@@ -2851,6 +2850,7 @@ const converters = {
2851
2850
  break;
2852
2851
  case 'current_heating_setpoint':
2853
2852
  await tuya.sendDataPointValue(entity, tuya.dataPoints.tvHeatingSetpoint, value * 10);
2853
+ await tuya.sendDataPointEnum(entity, tuya.dataPoints.tvMode, 1 /* manual */);
2854
2854
  break;
2855
2855
  case 'holiday_temperature':
2856
2856
  await tuya.sendDataPointValue(entity, tuya.dataPoints.tvHolidayTemp, value * 10);
package/devices/tuya.js CHANGED
@@ -804,8 +804,8 @@ module.exports = [
804
804
  toZigbee: [tz.tvtwo_thermostat],
805
805
  onEvent: tuya.onEventSetLocalTime,
806
806
  exposes: [
807
- e.battery_low(), e.window_detection(), e.child_lock(), e.comfort_temperature(), e.eco_temperature(),
808
- e.open_window_temperature(), e.holiday_temperature(),
807
+ e.battery_low(), e.child_lock(), e.open_window(), e.open_window_temperature(), e.holiday_temperature(),
808
+ e.comfort_temperature(), e.eco_temperature(),
809
809
  exposes.climate().withPreset(['auto', 'manual', 'holiday']).withLocalTemperatureCalibration(-20, 20, 1, ea.STATE_SET)
810
810
  .withLocalTemperature(ea.STATE).withSetpoint('current_heating_setpoint', 0, 30, 0.5, ea.STATE_SET),
811
811
  exposes.numeric('boost_timeset_countdown', ea.STATE_SET).withUnit('second').withDescription('Setting '+
package/lib/exposes.js CHANGED
@@ -561,6 +561,7 @@ module.exports = {
561
561
  max_temperature_limit: () => new Numeric('max_temperature_limit', access.STATE_SET).withUnit('°C').withDescription('Maximum temperature limit'),
562
562
  min_temperature: () => new Numeric('min_temperature', access.STATE_SET).withUnit('°C').withDescription('Minimum temperature'),
563
563
  occupancy: () => new Binary('occupancy', access.STATE, true, false).withDescription('Indicates whether the device detected occupancy'),
564
+ open_window: () => new Binary('open_window', access.STATE_SET, 'ON', 'OFF').withDescription('Enables/disables the status on the device'),
564
565
  open_window_temperature: () => new Numeric('open_window_temperature', access.STATE_SET).withUnit('°C').withDescription('Open window temperature'),
565
566
  pm10: () => new Numeric('pm10', access.STATE).withUnit('µg/m³').withDescription('Measured PM10 (particulate matter) concentration'),
566
567
  pm25: () => new Numeric('pm25', access.STATE).withUnit('µg/m³').withDescription('Measured PM2.5 (particulate matter) concentration'),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.331",
3
+ "version": "14.0.332",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.331",
3
+ "version": "14.0.332",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [