zigbee-herdsman-converters 14.0.397 → 14.0.398

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.
@@ -1076,7 +1076,6 @@ const converters = {
1076
1076
  cluster: 'ssIasAce',
1077
1077
  type: 'commandArm',
1078
1078
  convert: (model, msg, publish, options, meta) => {
1079
- if ((!model.meta || !model.meta.handleDuplicateTransaction) && hasAlreadyProcessedMessage(msg)) return;
1080
1079
  const payload = converters.command_arm.convert(model, msg, publish, options, meta);
1081
1080
  if (!payload) return;
1082
1081
  payload.action_transaction = msg.meta.zclTransactionSequenceNumber;
@@ -353,4 +353,26 @@ module.exports = [
353
353
  },
354
354
  exposes: [e.soil_moisture(), e.battery(), e.illuminance(), e.temperature(), e.humidity()],
355
355
  },
356
+ {
357
+ zigbeeModel: ['EFEKTA_eON29wz'],
358
+ model: 'EFEKTA_eON29wz',
359
+ vendor: 'Custom devices (DiY)',
360
+ description: '[Mini weather station, barometer, forecast, charts, temperature, humidity, light](http://efektalab.com/eON290wz)',
361
+ fromZigbee: [fz.temperature, fz.humidity, fz.pressure, fz.illuminance, fz.battery],
362
+ toZigbee: [tz.factory_reset],
363
+ configure: async (device, coordinatorEndpoint, logger) => {
364
+ const endpoint = device.getEndpoint(1);
365
+ await reporting.bind(endpoint, coordinatorEndpoint, [
366
+ 'genPowerCfg', 'msTemperatureMeasurement', 'msRelativeHumidity', 'msPressureMeasurement', 'msIlluminanceMeasurement']);
367
+ const overides = {min: 0, max: 21600, change: 0};
368
+ await reporting.batteryVoltage(endpoint, overides);
369
+ await reporting.batteryPercentageRemaining(endpoint, overides);
370
+ await reporting.temperature(endpoint, overides);
371
+ await reporting.humidity(endpoint, overides);
372
+ await reporting.illuminance(endpoint, overides);
373
+ await reporting.pressureExtended(endpoint, overides);
374
+ await endpoint.read('msPressureMeasurement', ['scale']);
375
+ },
376
+ exposes: [e.battery(), e.illuminance(), e.temperature(), e.humidity(), e.pressure()],
377
+ },
356
378
  ];
@@ -563,6 +563,15 @@ module.exports = [
563
563
  extend: hueExtend.light_onoff_brightness(),
564
564
  ota: ota.zigbeeOTA,
565
565
  },
566
+ {
567
+ zigbeeModel: ['LWO002'],
568
+ model: '9290022415',
569
+ vendor: 'Philips',
570
+ description: 'Hue White G25 E26 Edison Filament Globe Bluetooth',
571
+ meta: {turnsOffAtBrightness1: true},
572
+ extend: hueExtend.light_onoff_brightness(),
573
+ ota: ota.zigbeeOTA,
574
+ },
566
575
  {
567
576
  zigbeeModel: ['LWA004'],
568
577
  model: '8718699688820',
package/devices/sprut.js CHANGED
@@ -55,6 +55,13 @@ const fzLocal = {
55
55
  }
56
56
  },
57
57
  },
58
+ occupancy_timeout: {
59
+ cluster: 'msOccupancySensing',
60
+ type: ['readResponse', 'attributeReport'],
61
+ convert: (model, msg, publish, options, meta) => {
62
+ return {occupancy_timeout: msg.data.pirOToUDelay};
63
+ },
64
+ },
58
65
  noise_timeout: {
59
66
  cluster: 'sprutNoise',
60
67
  type: ['readResponse', 'attributeReport'],
@@ -89,6 +96,19 @@ const tzLocal = {
89
96
  }
90
97
  },
91
98
  },
99
+ occupancy_timeout: {
100
+ key: ['occupancy_timeout'],
101
+ convertSet: async (entity, key, value, meta) => {
102
+ value *= 1;
103
+ const endpoint = meta.device.getEndpoint(1);
104
+ await endpoint.write('msOccupancySensing', {pirOToUDelay: value}, getOptions(meta.mapped, entity));
105
+ return {state: {occupancy_timeout: value}};
106
+ },
107
+ convertGet: async (entity, key, meta) => {
108
+ const endpoint = meta.device.getEndpoint(1);
109
+ await endpoint.read('msOccupancySensing', ['pirOToUDelay']);
110
+ },
111
+ },
92
112
  noise_timeout: {
93
113
  key: ['noise_timeout'],
94
114
  convertSet: async (entity, key, value, meta) => {
@@ -111,8 +131,8 @@ module.exports = [
111
131
  vendor: 'Sprut.device',
112
132
  description: 'Wall-mounted Zigbee sensor',
113
133
  fromZigbee: [fzLocal.temperature, fz.illuminance, fz.humidity, fz.occupancy, fzLocal.occupancy, fz.co2, fzLocal.voc,
114
- fzLocal.noise, fzLocal.noise_detected, fz.on_off, fz.occupancy_timeout, fzLocal.noise_timeout],
115
- toZigbee: [tz.on_off, tzLocal.sprut_ir_remote, tz.occupancy_timeout, tzLocal.noise_timeout],
134
+ fzLocal.noise, fzLocal.noise_detected, fz.on_off, fzLocal.occupancy_timeout, fzLocal.noise_timeout],
135
+ toZigbee: [tz.on_off, tzLocal.sprut_ir_remote, tzLocal.occupancy_timeout, tzLocal.noise_timeout],
116
136
  exposes: [ep.temperature(), ep.illuminance(), ep.illuminance_lux(), ep.humidity(),
117
137
  ep.occupancy(), ep.occupancy_level(), ep.co2(), ep.voc(), ep.noise(), ep.noise_detected(ea.STATE_GET),
118
138
  ep.switch().withEndpoint('l1'), ep.switch().withEndpoint('l2'), ep.switch().withEndpoint('default'),
@@ -12,7 +12,7 @@ module.exports = [
12
12
  model: 'XHK1-TC',
13
13
  vendor: 'Technicolor',
14
14
  description: 'Xfinity security keypad',
15
- meta: {handleDuplicateTransaction: true, battery: {voltageToPercentage: '3V_2100'}},
15
+ meta: {battery: {voltageToPercentage: '3V_2100'}},
16
16
  fromZigbee: [fz.command_arm_with_transaction, fz.temperature, fz.battery, fz.ias_occupancy_alarm_1, fz.identify,
17
17
  fz.ias_contact_alarm_1, fz.ias_ace_occupancy_with_timeout],
18
18
  toZigbee: [tz.arm_mode],
package/devices/xiaomi.js CHANGED
@@ -885,6 +885,7 @@ module.exports = [
885
885
  await endpoint.read('genPowerCfg', ['batteryVoltage']);
886
886
  await endpoint.read('aqaraOpple', [0x0102], {manufacturerCode: 0x115f});
887
887
  },
888
+ ota: ota.zigbeeOTA,
888
889
  },
889
890
  {
890
891
  zigbeeModel: ['lumi.motion.agl04'],
@@ -903,6 +904,7 @@ module.exports = [
903
904
  await endpoint.read('aqaraOpple', [0x0102], {manufacturerCode: 0x115f});
904
905
  await endpoint.read('aqaraOpple', [0x010c], {manufacturerCode: 0x115f});
905
906
  },
907
+ ota: ota.zigbeeOTA,
906
908
  },
907
909
  {
908
910
  zigbeeModel: ['lumi.sensor_magnet'],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.397",
3
+ "version": "14.0.398",
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.397",
3
+ "version": "14.0.398",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [