zigbee-herdsman-converters 14.0.339 → 14.0.340

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.
@@ -2735,7 +2735,7 @@ const converters = {
2735
2735
  const currentTime = new Date().getTime();
2736
2736
  const utcTime = Math.round((currentTime - OneJanuary2000) / 1000);
2737
2737
  const localTime = Math.round(currentTime / 1000) - (new Date()).getTimezoneOffset() * 60;
2738
- const endpoint = msg.device.getEndpoint(1);
2738
+ const endpoint = msg.endpoint;
2739
2739
  const payload = {
2740
2740
  payloadSize: 8,
2741
2741
  payload: [
@@ -4927,6 +4927,11 @@ const converters = {
4927
4927
  value = data.readUInt32LE(i+2);
4928
4928
  i += 5;
4929
4929
  break;
4930
+ case 36:
4931
+ // 0x24 Zcl40BitUint
4932
+ value = [data.readUInt32LE(i+2), data.readUInt8(i+6)];
4933
+ i += 6;
4934
+ break;
4930
4935
  case 39:
4931
4936
  // 0x27 Zcl64BitUint
4932
4937
  value = data.readBigUInt64BE(i+2);
package/devices/ikea.js CHANGED
@@ -302,10 +302,10 @@ module.exports = [
302
302
  extend: tradfriExtend.light_onoff_brightness_colortemp(),
303
303
  },
304
304
  {
305
- zigbeeModel: ['TRADFRI bulb E14 WS 470lm', 'TRADFRI bulb E12 WS 450lm'],
305
+ zigbeeModel: ['TRADFRI bulb E14 WS 470lm', 'TRADFRI bulb E12 WS 450lm', 'TRADFRI bulb E17 WS 440lm'],
306
306
  model: 'LED1903C5/LED1835C6',
307
307
  vendor: 'IKEA',
308
- description: 'TRADFRI bulb E12/E14 WS 450/470 lumen, dimmable, white spectrum, opal white',
308
+ description: 'TRADFRI bulb E12/E14/E17 WS 450/470/440 lumen, dimmable, white spectrum, opal white',
309
309
  extend: tradfriExtend.light_onoff_brightness_colortemp(),
310
310
  },
311
311
  {
package/devices/namron.js CHANGED
@@ -184,6 +184,13 @@ module.exports = [
184
184
  return {l1: 1, l2: 2, l3: 3, l4: 4};
185
185
  },
186
186
  },
187
+ {
188
+ zigbeeModel: ['3802961'],
189
+ model: '3802961',
190
+ vendor: 'Namron',
191
+ description: 'LED 9W CCT E27',
192
+ extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
193
+ },
187
194
  {
188
195
  zigbeeModel: ['3802962'],
189
196
  model: '3802962',
package/devices/tuya.js CHANGED
@@ -80,12 +80,16 @@ module.exports = [
80
80
  },
81
81
  {
82
82
  fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_mvn6jl7x'},
83
- {modelID: 'TS011F', manufacturerName: '_TZ3000_raviyuvk'}, {modelID: 'TS011F', manufacturerName: '_TYZB01_hlla45kx'}],
83
+ {modelID: 'TS011F', manufacturerName: '_TZ3000_raviyuvk'}, {modelID: 'TS011F', manufacturerName: '_TYZB01_hlla45kx'},
84
+ {modelID: 'TS011F', manufacturerName: '_TZ3000_92qd4sqa'}],
84
85
  model: 'TS011F_2_gang_wall',
85
86
  vendor: 'TuYa',
86
87
  description: '2 gang wall outlet',
87
- extend: extend.switch(),
88
- exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2')],
88
+ toZigbee: extend.switch().toZigbee.concat([tz.moes_power_on_behavior, tz.tuya_backlight_mode]),
89
+ fromZigbee: extend.switch().fromZigbee.concat([fz.moes_power_on_behavior, fz.tuya_backlight_mode]),
90
+ exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'),
91
+ exposes.enum('power_on_behavior', ea.ALL, ['on', 'off', 'previous']),
92
+ exposes.enum('backlight_mode', ea.ALL, ['LOW', 'MEDIUM', 'HIGH'])],
89
93
  whiteLabel: [{vendor: 'ClickSmart+', model: 'CMA30036'}],
90
94
  endpoint: (device) => {
91
95
  return {'l1': 1, 'l2': 2};
@@ -1226,7 +1230,8 @@ module.exports = [
1226
1230
  },
1227
1231
  },
1228
1232
  {
1229
- fingerprint: [{modelID: 'TS0011', manufacturerName: '_TZ3000_ji4araar'}, {modelID: 'TS0011', manufacturerName: '_TZ3000_qmi1cfuq'}],
1233
+ fingerprint: [{modelID: 'TS0011', manufacturerName: '_TZ3000_ji4araar'}, {modelID: 'TS0011', manufacturerName: '_TZ3000_qmi1cfuq'},
1234
+ {modelID: 'TS0011', manufacturerName: '_TZ3000_txpirhfq'}],
1230
1235
  model: 'TS0011_switch_module',
1231
1236
  vendor: 'TuYa',
1232
1237
  description: '1 gang switch module - (without neutral)',
@@ -1237,7 +1242,7 @@ module.exports = [
1237
1242
  exposes.presets.power_on_behavior(),
1238
1243
  exposes.presets.switch_type_2(),
1239
1244
  ],
1240
- whiteLabel: [{vendor: 'AVATTO', model: '1gang N-ZLWSM01'}],
1245
+ whiteLabel: [{vendor: 'AVATTO', model: '1gang N-ZLWSM01'}, {vendor: 'SMATRUL', model: 'TMZ02L-16A-W'}],
1241
1246
  configure: async (device, coordinatorEndpoint, logger) => {
1242
1247
  await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
1243
1248
  device.powerSource = 'Mains (single phase)';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.339",
3
+ "version": "14.0.340",
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.339",
3
+ "version": "14.0.340",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [