zigbee-herdsman-converters 14.0.580 → 14.0.581

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.
@@ -1094,9 +1094,9 @@ const converters = {
1094
1094
  cluster: 'genScenes',
1095
1095
  type: 'commandStore',
1096
1096
  convert: (model, msg, publish, options, meta) => {
1097
- if (utils.hasAlreadyProcessedMessage(msg)) return;
1098
- const payload = {action: utils.postfixWithEndpointName(`store_${msg.data.sceneid}`, msg, model, meta)};
1099
- utils.addActionGroup(payload, msg, model);
1097
+ if (hasAlreadyProcessedMessage(msg)) return;
1098
+ const payload = {action: postfixWithEndpointName(`store_${msg.data.sceneid}`, msg, model, meta)};
1099
+ addActionGroup(payload, msg, model);
1100
1100
  return payload;
1101
1101
  },
1102
1102
  },
package/devices/adeo.js CHANGED
@@ -36,6 +36,13 @@ module.exports = [
36
36
  description: 'ENKI LEXMAN E27 LED white',
37
37
  extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 454]}),
38
38
  },
39
+ {
40
+ zigbeeModel: ['ZBEK-6'],
41
+ model: 'IG-CDZB2AG009RA-MZN-01',
42
+ vendor: 'ADEO',
43
+ description: 'ENKI LEXMAN E27 Led white bulb',
44
+ extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 454]}),
45
+ },
39
46
  {
40
47
  zigbeeModel: ['ZBEK-4'],
41
48
  model: 'IM-CDZDGAAA0005KA_MAN',
@@ -1,8 +1,9 @@
1
1
  const exposes = require('../lib/exposes');
2
- const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
2
+ const fz = require('../converters/fromZigbee');
3
3
  const tz = require('../converters/toZigbee');
4
4
  const reporting = require('../lib/reporting');
5
5
  const e = exposes.presets;
6
+ const ota = require('../lib/ota');
6
7
 
7
8
  module.exports = [
8
9
  {
@@ -11,13 +12,16 @@ module.exports = [
11
12
  vendor: 'Home Control AS',
12
13
  description: 'Heimgard (Wattle) door lock pro',
13
14
  fromZigbee: [fz.lock, fz.battery],
14
- toZigbee: [tz.lock],
15
+ toZigbee: [tz.lock, tz.lock_auto_relock_time, tz.lock_sound_volume],
16
+ ota: ota.zigbeeOTA,
15
17
  configure: async (device, coordinatorEndpoint, logger) => {
16
18
  const endpoint = device.getEndpoint(1);
17
19
  await reporting.bind(endpoint, coordinatorEndpoint, ['closuresDoorLock', 'genPowerCfg']);
18
20
  await reporting.lockState(endpoint);
19
21
  await reporting.batteryPercentageRemaining(endpoint);
22
+ await endpoint.read('closuresDoorLock', ['lockState', 'soundVolume']);
20
23
  },
21
- exposes: [e.lock(), e.battery()],
24
+ exposes: [
25
+ e.lock(), e.battery(), e.auto_relock_time().withValueMin(0).withValueMax(3600), e.sound_volume()],
22
26
  },
23
27
  ];
package/devices/lellki.js CHANGED
@@ -115,6 +115,7 @@ module.exports = [
115
115
  toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory],
116
116
  configure: async (device, coordinatorEndpoint, logger) => {
117
117
  const endpoint = device.getEndpoint(1);
118
+ await endpoint.read('genBasic', ['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
118
119
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
119
120
  endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {acCurrentDivisor: 1000, acCurrentMultiplier: 1});
120
121
  endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1});
package/devices/orvibo.js CHANGED
@@ -5,7 +5,32 @@ const reporting = require('../lib/reporting');
5
5
  const extend = require('../lib/extend');
6
6
  const e = exposes.presets;
7
7
 
8
+ const tzLocal = {
9
+ DD10Z_brightness: {
10
+ key: ['brightness'],
11
+ options: [exposes.options.transition()],
12
+ convertSet: async (entity, key, value, meta) => {
13
+ // Device doesn't support moveToLevelWithOnOff therefore this converter is needed.
14
+ await entity.command('genLevelCtrl', 'moveToLevel', {level: Number(value), transtime: 0}, {disableDefaultResponse: true});
15
+ return {state: {brightness: value}};
16
+ },
17
+ convertGet: async (entity, key, meta) => {
18
+ await entity.read('genLevelCtrl', ['currentLevel']);
19
+ },
20
+ },
21
+ };
22
+
8
23
  module.exports = [
24
+ {
25
+ zigbeeModel: ['ccb9f56837ab41dcad366fb1452096b6'],
26
+ model: 'DD10Z',
27
+ vendor: 'ORVIBO',
28
+ description: 'Smart spotlight',
29
+ // https://github.com/Koenkk/zigbee2mqtt/issues/13123#issuecomment-1198793749
30
+ meta: {disableDefaultResponse: true},
31
+ toZigbee: [tz.on_off, tzLocal.DD10Z_brightness, tz.light_colortemp, tz.effect],
32
+ extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 370], disableColorTempStartup: true}),
33
+ },
9
34
  {
10
35
  zigbeeModel: ['4a33f5ea766a4c96a962b371ffde9943'],
11
36
  model: 'DS20Z07B',
package/devices/tuya.js CHANGED
@@ -438,7 +438,8 @@ module.exports = [
438
438
  {modelID: 'TS0001', manufacturerName: '_TZ3000_rmjr4ufz'},
439
439
  {modelID: 'TS0001', manufacturerName: '_TZ3000_v7gnj3ad'},
440
440
  {modelID: 'TS0001', manufacturerName: '_TZ3000_mx3vgyea'},
441
- {modelID: 'TS0001', manufacturerName: '_TZ3000_qsp2pwtf'}],
441
+ {modelID: 'TS0001', manufacturerName: '_TZ3000_qsp2pwtf'},
442
+ {modelID: 'TS0001', manufacturerName: '_TZ3000_46t1rvdu'}],
442
443
  model: 'WHD02',
443
444
  vendor: 'TuYa',
444
445
  whiteLabel: [{vendor: 'TuYa', model: 'iHSW02'}],
@@ -628,6 +629,7 @@ module.exports = [
628
629
  {modelID: 'TS0202', manufacturerName: '_TZ3000_tiwq83wk'},
629
630
  {modelID: 'TS0202', manufacturerName: '_TZ3000_ykwcwxmz'},
630
631
  {modelID: 'TS0202', manufacturerName: '_TZ3000_hgu1dlak'},
632
+ {modelID: 'TS0202', manufacturerName: '_TZ3000_h4wnrtck'},
631
633
  {modelID: 'WHD02', manufacturerName: '_TZ3000_hktqahrq'}],
632
634
  model: 'TS0202',
633
635
  vendor: 'TuYa',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.580",
3
+ "version": "14.0.581",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [