zigbee-herdsman-converters 14.0.529 → 14.0.532

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.
@@ -5702,7 +5702,10 @@ const converters = {
5702
5702
  globalStore.putValue(msg.endpoint, 'occupancy_timer', timer);
5703
5703
  }
5704
5704
 
5705
- const illuminance = msg.data['illuminance'] - 65536;
5705
+ // Sometimes RTCGQ14LM reports high illuminance values in the dark
5706
+ // https://github.com/Koenkk/zigbee2mqtt/issues/12596
5707
+ const illuminance = msg.data['illuminance'] > 130536 ? 0 : msg.data['illuminance'] - 65536;
5708
+
5706
5709
  const payload = {occupancy: true, illuminance: calibrateAndPrecisionRoundOptions(illuminance, options, 'illuminance')};
5707
5710
  utils.noOccupancySince(msg.endpoint, options, publish, 'start');
5708
5711
  return payload;
@@ -130,14 +130,6 @@ module.exports = [
130
130
  maximumReportInterval: constants.repInterval.MAX,
131
131
  reportableChange: 1,
132
132
  }], options);
133
-
134
- await endpoint.configureReporting('hvacThermostat', [{
135
- attribute: 'danfossPreheatStatus',
136
- minimumReportInterval: constants.repInterval.MINUTE,
137
- maximumReportInterval: constants.repInterval.MAX,
138
- reportableChange: 1,
139
- }], options);
140
-
141
133
  await endpoint.configureReporting('hvacThermostat', [{
142
134
  attribute: 'danfossAdaptionRunStatus',
143
135
  minimumReportInterval: constants.repInterval.MINUTE,
@@ -145,6 +137,17 @@ module.exports = [
145
137
  reportableChange: 1,
146
138
  }], options);
147
139
 
140
+ try {
141
+ await endpoint.configureReporting('hvacThermostat', [{
142
+ attribute: 'danfossPreheatStatus',
143
+ minimumReportInterval: constants.repInterval.MINUTE,
144
+ maximumReportInterval: constants.repInterval.MAX,
145
+ reportableChange: 1,
146
+ }], options);
147
+ } catch (e) {
148
+ /* not supported by all */
149
+ }
150
+
148
151
  try {
149
152
  await endpoint.read('hvacThermostat', [
150
153
  'danfossWindowOpenFeatureEnable',
@@ -5,11 +5,18 @@ const e = exposes.presets;
5
5
  const fz = require('../converters/fromZigbee');
6
6
 
7
7
  module.exports = [
8
+ {
9
+ zigbeeModel: ['ZG50CC-CCT-DRIVER'],
10
+ model: 'ZG50CC-CCT-DRIVER',
11
+ vendor: 'Envilar',
12
+ description: 'Zigbee LED driver',
13
+ extend: extend.light_onoff_brightness(),
14
+ },
8
15
  {
9
16
  zigbeeModel: ['ZGR904-S'],
10
17
  model: 'ZGR904-S',
11
18
  vendor: 'Envilar',
12
- description: 'Envilar touchlink remote',
19
+ description: 'Touchlink remote',
13
20
  meta: {battery: {dontDividePercentage: true}},
14
21
  fromZigbee: [fz.command_recall, fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.battery],
15
22
  toZigbee: [],
package/devices/icasa.js CHANGED
@@ -70,7 +70,6 @@ module.exports = [
70
70
  model: 'ICZB-KPD18S',
71
71
  vendor: 'iCasa',
72
72
  description: 'Zigbee 3.0 Keypad Pulse 8S',
73
- meta: {battery: {dontDividePercentage: true}},
74
73
  fromZigbee: [fz.command_recall, fz.legacy.scenes_recall_click, fz.command_on, fz.legacy.genOnOff_cmdOn, fz.command_off,
75
74
  fz.legacy.genOnOff_cmdOff, fz.battery, fz.legacy.cmd_move_with_onoff, fz.legacy.cmd_stop_with_onoff],
76
75
  exposes: [e.battery(), e.action(['on', 'recall_*', 'off', 'brightness_stop', 'brightness_move_up', 'brightness_move_down'])],
@@ -8,9 +8,9 @@ const e = exposes.presets;
8
8
  module.exports = [
9
9
  {
10
10
  zigbeeModel: ['tint-ExtendedColor'],
11
- model: '404036',
11
+ model: '404036/45327',
12
12
  vendor: 'Müller Licht',
13
- description: 'Tint LED-globeform white+color',
13
+ description: 'Tint LED white+color',
14
14
  extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 556]}),
15
15
  toZigbee: extend.light_onoff_brightness_colortemp_color().toZigbee.concat([tz.tint_scene]),
16
16
  },
@@ -164,6 +164,14 @@ module.exports = [
164
164
  extend: extend.light_onoff_brightness_colortemp(),
165
165
  toZigbee: extend.light_onoff_brightness_colortemp().toZigbee.concat([tz.tint_scene]),
166
166
  },
167
+ {
168
+ zigbeeModel: ['tint-ColorTemperature2'],
169
+ model: '404038',
170
+ vendor: 'Müller Licht',
171
+ description: 'Tint retro filament LED-bulb E27, Globe bulb gold, white+ambiance (1800-6500K), dimmable, 5,5W',
172
+ extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 555]}),
173
+ toZigbee: extend.light_onoff_brightness_colortemp().toZigbee.concat([tz.tint_scene]),
174
+ },
167
175
  {
168
176
  fingerprint: [{
169
177
  // Identify through fingerprint as modelID is the same as Sunricher ZG192910-4
@@ -1247,6 +1247,15 @@ module.exports = [
1247
1247
  extend: hueExtend.light_onoff_brightness_colortemp(),
1248
1248
  ota: ota.zigbeeOTA,
1249
1249
  },
1250
+ {
1251
+ zigbeeModel: ['4503748C6'],
1252
+ model: '4503748C6',
1253
+ vendor: 'Philips',
1254
+ description: 'Hue white ambiance Muscari ceiling light',
1255
+ meta: {turnsOffAtBrightness1: true},
1256
+ extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
1257
+ ota: ota.zigbeeOTA,
1258
+ },
1250
1259
  {
1251
1260
  zigbeeModel: ['LTD003'],
1252
1261
  model: '4503848C5',
package/devices/tuya.js CHANGED
@@ -304,7 +304,9 @@ module.exports = [
304
304
  {modelID: 'TS0505B', manufacturerName: '_TZB210_tmi0rihb'},
305
305
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_a4s41wm4'},
306
306
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_qxenlrin'},
307
- {modelID: 'TS0505B', manufacturerName: '_TZ3210_klv2wul0'}],
307
+ {modelID: 'TS0505B', manufacturerName: '_TZ3210_iwbaamgh'},
308
+ {modelID: 'TS0505B', manufacturerName: '_TZ3210_klv2wul0'},
309
+ {modelID: 'TS0505B', manufacturerName: '_TZ3210_rcggc0ys'}],
308
310
  model: 'TS0505B',
309
311
  vendor: 'TuYa',
310
312
  description: 'Zigbee RGB+CCT light',
@@ -313,7 +315,7 @@ module.exports = [
313
315
  {vendor: 'Aldi', model: 'L122CB63H11A9.0W', description: 'LIGHTWAY smart home LED-lamp - bulb'},
314
316
  {vendor: 'Lidl', model: '14153706L', description: 'Livarno smart LED ceiling light'},
315
317
  ],
316
- extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
318
+ extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500], disableColorTempStartup: true}),
317
319
  meta: {applyRedFix: true, enhancedHue: false},
318
320
  },
319
321
  {
package/lib/xiaomi.js CHANGED
@@ -249,7 +249,10 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
249
249
  }
250
250
  payload[`state_${mapping}`] = value === 1 ? 'ON' : 'OFF';
251
251
  } else if (['RTCGQ12LM', 'RTCGQ14LM'].includes(model.model)) {
252
- payload.illuminance = calibrateAndPrecisionRoundOptions(value, options, 'illuminance');
252
+ // Sometimes RTCGQ14LM reports high illuminance values in the dark
253
+ // https://github.com/Koenkk/zigbee2mqtt/issues/12596
254
+ const illuminance = value > 65000 ? 0 : value;
255
+ payload.illuminance = calibrateAndPrecisionRoundOptions(illuminance, options, 'illuminance');
253
256
  } else if (['WSDCGQ01LM', 'WSDCGQ11LM', 'WSDCGQ12LM', 'VOCKQJK11LM'].includes(model.model)) {
254
257
  // https://github.com/Koenkk/zigbee2mqtt/issues/798
255
258
  // Sometimes the sensor publishes non-realistic vales, filter these
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.529",
3
+ "version": "14.0.532",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "buffer-crc32": "^0.2.13",
39
39
  "https-proxy-agent": "^5.0.1",
40
40
  "tar-stream": "^2.2.0",
41
- "zigbee-herdsman": "^0.14.33"
41
+ "zigbee-herdsman": "^0.14.34"
42
42
  },
43
43
  "devDependencies": {
44
44
  "eslint": "*",