zigbee-herdsman-converters 14.0.515 → 14.0.516

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/devices/ecodim.js CHANGED
@@ -126,4 +126,11 @@ module.exports = [
126
126
  description: 'Zigbee LED filament light dimmable E27, globe G125, flame 2200K',
127
127
  extend: extend.light_onoff_brightness(),
128
128
  },
129
+ {
130
+ fingerprint: [{modelID: 'CCT Light', manufacturerName: 'ZigBee/CCT', manufacturerID: 4137}],
131
+ model: 'ED-10041',
132
+ vendor: 'EcoDim',
133
+ description: 'Zigbee LED filament light dimmable E27, edison ST64, flame 2200K',
134
+ extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
135
+ },
129
136
  ];
@@ -4,6 +4,16 @@ const extend = require('../lib/extend');
4
4
  const e = exposes.presets;
5
5
 
6
6
  module.exports = [
7
+ {
8
+ zigbeeModel: ['501.34'],
9
+ model: '501.34',
10
+ vendor: 'Paulmann',
11
+ description: 'Smart switch 4 buttons white',
12
+ fromZigbee: [fz.command_on, fz.command_off, fz.battery],
13
+ toZigbee: [],
14
+ exposes: [e.battery(), e.action(['on_1', 'off_1', 'on_2', 'off_2'])],
15
+ meta: {multiEndpoint: true},
16
+ },
7
17
  {
8
18
  zigbeeModel: ['H036-0007'],
9
19
  model: '929.66',
package/devices/tuya.js CHANGED
@@ -629,7 +629,8 @@ module.exports = [
629
629
  },
630
630
  },
631
631
  {
632
- fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_kyfqmmyl'}],
632
+ fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_kyfqmmyl'},
633
+ {modelID: 'TS0601', manufacturerName: '_TZE200_2hf7x9n3'}],
633
634
  model: 'TS0601_switch_3_gang',
634
635
  vendor: 'TuYa',
635
636
  description: '3 gang switch',
package/devices/xiaomi.js CHANGED
@@ -48,7 +48,13 @@ module.exports = [
48
48
  fromZigbee: [fz.ias_contact_alarm_1, fz.aqara_opple, fz.battery],
49
49
  toZigbee: [],
50
50
  meta: {battery: {voltageToPercentage: '3V_2850_3000_log'}},
51
- exposes: [e.contact(), e.battery(), e.battery_low(), e.battery_voltage(), e.tamper()],
51
+ exposes: [e.contact(), e.battery(), e.battery_low(), e.battery_voltage()],
52
+ configure: async (device, coordinatorEndpoint, logger) => {
53
+ const endpoint = device.getEndpoint(1);
54
+ await endpoint.read('genPowerCfg', ['batteryVoltage']);
55
+ },
56
+ // OTA request: "fieldControl":0, "manufacturerCode":4447, "imageType":10635
57
+ ota: ota.zigbeeOTA,
52
58
  },
53
59
  {
54
60
  zigbeeModel: ['lumi.magnet.ac01'],
@@ -636,6 +642,7 @@ module.exports = [
636
642
  'left_single', 'left_double', 'center_single', 'center_double', 'right_single', 'right_double',
637
643
  'single_left_center', 'double_left_center', 'single_left_right', 'double_left_right',
638
644
  'single_center_right', 'double_center_right', 'single_all', 'double_all']),
645
+ e.power_outage_count(),
639
646
  ],
640
647
  onEvent: preventReset,
641
648
  configure: async (device, coordinatorEndpoint, logger) => {
package/lib/xiaomi.js CHANGED
@@ -176,14 +176,18 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
176
176
  payload.switch_type = {1: 'toggle', 2: 'momentary'}[value];
177
177
  break;
178
178
  case '11':
179
- if (!['JT-BZ-01AQ/A'].includes(model.model)) {
179
+ if (['JT-BZ-01AQ/A', 'QBKG25LM'].includes(model.model)) {
180
+ // We don't know what the value means for these devices.
181
+ // https://github.com/Koenkk/zigbee2mqtt/issues/12451
182
+ } else {
180
183
  payload.illuminance = calibrateAndPrecisionRoundOptions(value, options, 'illuminance');
181
184
  // DEPRECATED: remove illuminance_lux here.
182
185
  payload.illuminance_lux = calibrateAndPrecisionRoundOptions(value, options, 'illuminance_lux');
183
186
  }
184
187
  break;
185
188
  case '100':
186
- if (['QBKG20LM', 'QBKG31LM', 'QBKG39LM', 'QBKG41LM', 'QBCZ15LM', 'LLKZMK11LM', 'QBKG12LM', 'QBKG03LM'].includes(model.model)) {
189
+ if (['QBKG20LM', 'QBKG31LM', 'QBKG39LM', 'QBKG41LM', 'QBCZ15LM', 'LLKZMK11LM', 'QBKG12LM', 'QBKG03LM', 'QBKG25LM']
190
+ .includes(model.model)) {
187
191
  let mapping;
188
192
  switch (model.model) {
189
193
  case 'QBCZ15LM':
@@ -212,7 +216,7 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
212
216
  } else if (['RTCGQ11LM'].includes(model.model)) {
213
217
  // It contains the occupancy, but in z2m we use a custom timer to do it, so we ignore it
214
218
  // payload.occupancy = value === 1;
215
- } else if (['MCCGQ11LM'].includes(model.model)) {
219
+ } else if (['MCCGQ11LM', 'MCCGQ14LM'].includes(model.model)) {
216
220
  payload.contact = value === 0;
217
221
  } else if (['SJCGQ11LM'].includes(model.model)) {
218
222
  // Ignore the message. It seems not reliable. See discussion here https://github.com/Koenkk/zigbee2mqtt/issues/12018
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.515",
3
+ "version": "14.0.516",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [