zigbee-herdsman-converters 14.0.469 → 14.0.472

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.
@@ -3820,7 +3820,7 @@ const converters = {
3820
3820
  return {deadzone_temperature: value};
3821
3821
  case tuya.dataPoints.moesLocalTemp:
3822
3822
  temperature = value & 1<<15 ? value - (1<<16) + 1 : value;
3823
- if (meta.device.manufacturerName === '_TZE200_ye5jkfsb') {
3823
+ if (meta.device.manufacturerName !== '_TZE200_ye5jkfsb') {
3824
3824
  // https://github.com/Koenkk/zigbee2mqtt/issues/11980
3825
3825
  temperature = temperature / 10;
3826
3826
  }
@@ -4220,7 +4220,7 @@ const converters = {
4220
4220
  }
4221
4221
  case tuya.dataPoints.tuyaSabVOC:
4222
4222
  return {voc: calibrateAndPrecisionRoundOptions(value, options, 'voc')};
4223
- case tuya.dataPoints.tuyaSahkCH2O:
4223
+ case tuya.dataPoints.tuyaSahkFormaldehyd:
4224
4224
  return {formaldehyd: calibrateAndPrecisionRoundOptions(value, options, 'formaldehyd')};
4225
4225
  default:
4226
4226
  meta.logger.warn(`zigbee-herdsman-converters:TuyaSmartAirBox: Unrecognized DP #${
@@ -5976,13 +5976,6 @@ const converters = {
5976
5976
  return result;
5977
5977
  },
5978
5978
  },
5979
- scenes_recall_scene_65029: {
5980
- cluster: 65029,
5981
- type: ['raw'],
5982
- convert: (model, msg, publish, options, meta) => {
5983
- return {action: `scene_${msg.data[msg.data.length - 1]}`};
5984
- },
5985
- },
5986
5979
  scenes_recall_scene_65024: {
5987
5980
  cluster: 65024,
5988
5981
  type: ['raw'],
@@ -1,9 +1,38 @@
1
1
  const reporting = require('../lib/reporting');
2
2
  const extend = require('../lib/extend');
3
3
  const exposes = require('../lib/exposes');
4
+ const utils = require('../lib/utils');
4
5
  const e = exposes.presets;
5
6
 
7
+ const fzLocal = {
8
+ led_trading_9133: {
9
+ cluster: 'greenPower',
10
+ type: ['commandNotification', 'commandCommisioningNotification'],
11
+ convert: (model, msg, publish, options, meta) => {
12
+ const commandID = msg.data.commandID;
13
+ if (utils.hasAlreadyProcessedMessage(msg, msg.data.frameCounter, `${msg.device.ieeeAddr}_${commandID}`)) return;
14
+ if (commandID === 224) return;
15
+ const lookup = {0x13: 'press_1', 0x14: 'press_2', 0x15: 'press_3', 0x16: 'press_4',
16
+ 0x1B: 'hold_1', 0x1C: 'hold_2', 0x1D: 'hold_3', 0x1E: 'hold_4'};
17
+ if (!lookup.hasOwnProperty(commandID)) {
18
+ meta.logger.error(`led_trading_9133: missing command '${commandID}'`);
19
+ } else {
20
+ return {action: lookup[commandID]};
21
+ }
22
+ },
23
+ },
24
+ };
25
+
6
26
  module.exports = [
27
+ {
28
+ fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x00000000427.....$/}],
29
+ model: '9133',
30
+ vendor: 'Led Trading',
31
+ description: 'Pushbutton transmitter module',
32
+ fromZigbee: [fzLocal.led_trading_9133],
33
+ toZigbee: [],
34
+ exposes: [e.action(['press_1', 'hold_1', 'press_2', 'hold_2', 'press_3', 'hold_3', 'press_4', 'hold_4'])],
35
+ },
7
36
  {
8
37
  zigbeeModel: ['HK-LN-DIM-A'],
9
38
  model: 'HK-LN-DIM-A',
@@ -2786,6 +2786,15 @@ module.exports = [
2786
2786
  extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [222, 454]}),
2787
2787
  ota: ota.zigbeeOTA,
2788
2788
  },
2789
+ {
2790
+ zigbeeModel: ['LWE006'],
2791
+ model: '929002294102',
2792
+ vendor: 'Philips',
2793
+ description: 'Hue white candle bulb E14 bluetooth',
2794
+ meta: {turnsOffAtBrightness1: true},
2795
+ extend: hueExtend.light_onoff_brightness(),
2796
+ ota: ota.zigbeeOTA,
2797
+ },
2789
2798
  {
2790
2799
  zigbeeModel: ['LWE007'],
2791
2800
  model: '9290030211',
@@ -2821,6 +2830,14 @@ module.exports = [
2821
2830
  extend: hueExtend.light_onoff_brightness(),
2822
2831
  ota: ota.zigbeeOTA,
2823
2832
  },
2833
+ {
2834
+ zigbeeModel: ['915005998201'],
2835
+ model: '915005998201',
2836
+ vendor: 'Philips',
2837
+ description: 'Hue Bluetooth white & color ambiance ceiling lamp Infuse',
2838
+ extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
2839
+ ota: ota.zigbeeOTA,
2840
+ },
2824
2841
  {
2825
2842
  zigbeeModel: ['915005997301', '915005997201'],
2826
2843
  model: '915005997301',
package/devices/tuya.js CHANGED
@@ -44,6 +44,14 @@ const tzLocal = {
44
44
  };
45
45
 
46
46
  const fzLocal = {
47
+ scenes_recall_scene_65029: {
48
+ cluster: 65029,
49
+ type: ['raw', 'attributeReport'],
50
+ convert: (model, msg, publish, options, meta) => {
51
+ const id = meta.device.modelID === '005f0c3b' ? msg.data[0] : msg.data[msg.data.length - 1];
52
+ return {action: `scene_${id}`};
53
+ },
54
+ },
47
55
  TS0201_battery: {
48
56
  cluster: 'genPowerCfg',
49
57
  type: ['attributeReport', 'readResponse'],
@@ -1713,7 +1721,7 @@ module.exports = [
1713
1721
  model: 'U86KCJ-ZP',
1714
1722
  vendor: 'TuYa',
1715
1723
  description: 'Smart 6 key scene wall switch',
1716
- fromZigbee: [fz.scenes_recall_scene_65029],
1724
+ fromZigbee: [fzLocal.scenes_recall_scene_65029],
1717
1725
  exposes: [e.action(['scene_1', 'scene_2', 'scene_3', 'scene_4', 'scene_5', 'scene_6'])],
1718
1726
  toZigbee: [],
1719
1727
  },
@@ -1884,7 +1892,7 @@ module.exports = [
1884
1892
  exposes: [e.battery(), e.vibration(), exposes.enum('sensitivity', exposes.access.STATE_SET, ['low', 'medium', 'high'])],
1885
1893
  },
1886
1894
  {
1887
- fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_8bxrzyxz'}],
1895
+ fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_8bxrzyxz'}, {modelID: 'TS011F', manufacturerName: '_TZ3000_ky0fq4ho'}],
1888
1896
  model: 'TS011F_din_smart_relay',
1889
1897
  description: 'Din smart relay (with power monitoring)',
1890
1898
  vendor: 'TuYa',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.469",
3
+ "version": "14.0.472",
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.0",
40
40
  "tar-stream": "^2.2.0",
41
- "zigbee-herdsman": "^0.14.21"
41
+ "zigbee-herdsman": "^0.14.22"
42
42
  },
43
43
  "devDependencies": {
44
44
  "eslint": "*",