zigbee-herdsman-converters 14.0.298 → 14.0.302

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.
@@ -1954,7 +1954,7 @@ const converters = {
1954
1954
  convertSet: async (entity, key, value, meta) => {
1955
1955
  if (['ZNCZ04LM', 'QBKG25LM', 'SSM-U01', 'SSM-U02', 'DLKZMK11LM', 'QBKG39LM', 'QBKG41LM', 'ZNCZ15LM',
1956
1956
  'WS-EUK01', 'WS-EUK02', 'WS-EUK03', 'WS-EUK04', 'QBKG31LM', 'QBCZ15LM', 'QBKG20LM', 'QBKG38LM',
1957
- 'QBKG34LM', 'QBCZ14LM'].includes(meta.mapped.model)) {
1957
+ 'QBKG34LM', 'QBCZ14LM', 'QBKG19LM'].includes(meta.mapped.model)) {
1958
1958
  await entity.write('aqaraOpple', {0x0201: {value: value ? 1 : 0, type: 0x10}}, manufacturerOptions.xiaomi);
1959
1959
  } else if (['ZNCZ02LM', 'QBCZ11LM'].includes(meta.mapped.model)) {
1960
1960
  const payload = value ?
@@ -1976,7 +1976,7 @@ const converters = {
1976
1976
  },
1977
1977
  convertGet: async (entity, key, meta) => {
1978
1978
  if (['ZNCZ04LM', 'QBKG25LM', 'SSM-U01', 'SSM-U02', 'DLKZMK11LM', 'QBKG39LM', 'QBKG41LM', 'ZNCZ15LM',
1979
- 'WS-EUK02', 'WS-EUK01', 'QBKG31LM', 'QBCZ15LM', 'QBCZ14LM', 'QBKG20LM', 'QBKG34LM',
1979
+ 'WS-EUK02', 'WS-EUK01', 'QBKG31LM', 'QBCZ15LM', 'QBCZ14LM', 'QBKG20LM', 'QBKG34LM', 'QBKG19LM',
1980
1980
  'QBKG38LM'].includes(meta.mapped.model)) {
1981
1981
  await entity.read('aqaraOpple', [0x0201]);
1982
1982
  } else if (['ZNCZ02LM', 'QBCZ11LM', 'ZNCZ11LM'].includes(meta.mapped.model)) {
@@ -2075,7 +2075,7 @@ const converters = {
2075
2075
  xiaomi_led_disabled_night: {
2076
2076
  key: ['led_disabled_night'],
2077
2077
  convertSet: async (entity, key, value, meta) => {
2078
- if (['ZNCZ04LM', 'ZNCZ15LM', 'QBCZ15LM', 'QBCZ14LM', 'QBKG20LM', 'QBKG25LM',
2078
+ if (['ZNCZ04LM', 'ZNCZ15LM', 'QBCZ15LM', 'QBCZ14LM', 'QBKG20LM', 'QBKG25LM', 'QBKG19LM',
2079
2079
  'QBKG34LM'].includes(meta.mapped.model)) {
2080
2080
  await entity.write('aqaraOpple', {0x0203: {value: value ? 1 : 0, type: 0x10}}, manufacturerOptions.xiaomi);
2081
2081
  } else if (['ZNCZ11LM'].includes(meta.mapped.model)) {
@@ -2090,7 +2090,7 @@ const converters = {
2090
2090
  return {state: {led_disabled_night: value}};
2091
2091
  },
2092
2092
  convertGet: async (entity, key, meta) => {
2093
- if (['ZNCZ04LM', 'ZNCZ15LM', 'QBCZ15LM', 'QBCZ14LM', 'QBKG20LM', 'QBKG25LM',
2093
+ if (['ZNCZ04LM', 'ZNCZ15LM', 'QBCZ15LM', 'QBCZ14LM', 'QBKG20LM', 'QBKG25LM', 'QBKG19LM',
2094
2094
  'QBKG34LM'].includes(meta.mapped.model)) {
2095
2095
  await entity.read('aqaraOpple', [0x0203], manufacturerOptions.xiaomi);
2096
2096
  } else {
@@ -165,6 +165,31 @@ module.exports = [
165
165
  await reporting.fanMode(endpoint);
166
166
  },
167
167
  },
168
+ {
169
+ zigbeeModel: ['3157100-E'],
170
+ model: '3157100-E',
171
+ vendor: 'Centralite',
172
+ description: '3-Series pearl touch thermostat,',
173
+ fromZigbee: [fz.battery, fz.thermostat, fz.fan, fz.ignore_time_read],
174
+ toZigbee: [tz.factory_reset, tz.thermostat_local_temperature, tz.thermostat_local_temperature_calibration,
175
+ tz.thermostat_occupied_heating_setpoint, tz.thermostat_occupied_cooling_setpoint,
176
+ tz.thermostat_setpoint_raise_lower, tz.thermostat_remote_sensing,
177
+ tz.thermostat_control_sequence_of_operation, tz.thermostat_system_mode,
178
+ tz.thermostat_relay_status_log, tz.fan_mode, tz.thermostat_running_state],
179
+ exposes: [e.battery(), exposes.climate().withSetpoint('occupied_heating_setpoint', 10, 30, 1).withLocalTemperature()
180
+ .withSystemMode(['off', 'heat', 'cool', 'emergency_heating'])
181
+ .withRunningState(['idle', 'heat', 'cool', 'fan_only']).withFanMode(['auto', 'on'])
182
+ .withSetpoint('occupied_cooling_setpoint', 10, 30, 1).withLocalTemperatureCalibration()],
183
+ meta: {battery: {voltageToPercentage: '3V_1500_2800'}},
184
+ configure: async (device, coordinatorEndpoint, logger) => {
185
+ const endpoint = device.getEndpoint(1);
186
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'hvacThermostat', 'hvacFanCtrl']);
187
+ await reporting.batteryVoltage(endpoint);
188
+ await reporting.thermostatRunningState(endpoint);
189
+ await reporting.thermostatTemperature(endpoint);
190
+ await reporting.fanMode(endpoint);
191
+ },
192
+ },
168
193
  {
169
194
  zigbeeModel: ['4200-C'],
170
195
  model: '4200-C',
@@ -67,6 +67,7 @@ module.exports = [
67
67
  vendor: 'Gledopto',
68
68
  description: 'Zigbee triac AC dimmer',
69
69
  extend: gledoptoExtend.light_onoff_brightness(),
70
+ meta: {disableDefaultResponse: true},
70
71
  },
71
72
  {
72
73
  zigbeeModel: ['GL-C-006'],
@@ -47,7 +47,7 @@ module.exports = [
47
47
  model: '4058075208414',
48
48
  vendor: 'LEDVANCE',
49
49
  description: 'SMART+ candle E14 tunable white',
50
- extend: extend.ledvance.light_onoff_brightness_colortemp(),
50
+ extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
51
51
  ota: ota.ledvance,
52
52
  },
53
53
  {
package/devices/osram.js CHANGED
@@ -51,7 +51,7 @@ module.exports = [
51
51
  model: 'AC10787',
52
52
  vendor: 'OSRAM',
53
53
  description: 'SMART+ classic E27 TW',
54
- extend: extend.ledvance.light_onoff_brightness_colortemp(),
54
+ extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
55
55
  ota: ota.ledvance,
56
56
  },
57
57
  {
@@ -385,8 +385,12 @@ module.exports = [
385
385
  zigbeeModel: ['Zigbee 3.0 DALI CONV LI'],
386
386
  model: '4062172044776',
387
387
  vendor: 'OSRAM',
388
- description: 'OSRAM Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires',
388
+ description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires',
389
389
  extend: extend.ledvance.light_onoff_brightness(),
390
- ota: ota.ledvance,
390
+ exposes: [e.light_brightness().withEndpoint('l1'), e.light_brightness().withEndpoint('l2')],
391
+ endpoint: (device) => {
392
+ return {'l1': 10, 'l2': 11};
393
+ },
394
+ meta: {multiEndpoint: true},
391
395
  },
392
396
  ];
@@ -530,7 +530,7 @@ module.exports = [
530
530
  },
531
531
  {
532
532
  zigbeeModel: ['LWA017'],
533
- model: '929002469202',
533
+ model: '929002469202',
534
534
  vendor: 'Philips',
535
535
  description: 'Hue white A60 bulb E27 1050lm with Bluetooth',
536
536
  meta: {turnsOffAtBrightness1: true},
package/devices/tuya.js CHANGED
@@ -825,8 +825,8 @@ module.exports = [
825
825
  },
826
826
  {
827
827
  fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_a4bpgplm'}],
828
- model: 'TS0601',
829
- vendor: 'TS0601_thermostat_1',
828
+ model: 'TS0601_thermostat_1',
829
+ vendor: 'TuYa',
830
830
  description: 'Thermostatic radiator valve',
831
831
  onEvent: tuya.onEventSetLocalTime,
832
832
  fromZigbee: [fz.ignore_basic_report, fz.ignore_tuya_set_time, fz.haozee_thermostat],
package/devices/xiaomi.js CHANGED
@@ -688,6 +688,27 @@ module.exports = [
688
688
  onEvent: preventReset,
689
689
  ota: ota.zigbeeOTA,
690
690
  },
691
+ {
692
+ zigbeeModel: ['lumi.switch.b1nacn01'],
693
+ model: 'QBKG19LM',
694
+ vendor: 'Xiaomi',
695
+ description: 'Aqara smart wall switch T1 (with neutral, single rocker)',
696
+ fromZigbee: [fz.on_off, fz.xiaomi_power, fz.xiaomi_multistate_action, fz.xiaomi_switch_opple_basic],
697
+ toZigbee: [tz.on_off, tz.xiaomi_switch_operation_mode_opple, tz.xiaomi_switch_power_outage_memory,
698
+ tz.xiaomi_led_disabled_night],
699
+ exposes: [
700
+ e.switch(), e.action(['single', 'double']), e.power().withAccess(ea.STATE), e.energy(),
701
+ e.voltage().withAccess(ea.STATE), e.temperature().withAccess(ea.STATE),
702
+ e.power_outage_memory(), e.led_disabled_night(),
703
+ exposes.enum('operation_mode', ea.ALL, ['control_relay', 'decoupled'])
704
+ .withDescription('Decoupled mode for left button'),
705
+ ],
706
+ configure: async (device, coordinatorEndpoint, logger) => {
707
+ await device.getEndpoint(1).write('aqaraOpple', {'mode': 1}, {manufacturerCode: 0x115f, disableResponse: true});
708
+ },
709
+ onEvent: preventReset,
710
+ ota: ota.zigbeeOTA,
711
+ },
691
712
  {
692
713
  zigbeeModel: ['lumi.switch.b2nacn01'],
693
714
  model: 'QBKG20LM',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.298",
3
+ "version": "14.0.302",
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.298",
3
+ "version": "14.0.302",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [