zigbee-herdsman-converters 14.0.557 → 14.0.558

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.
@@ -7273,7 +7273,7 @@ const converters = {
7273
7273
  cluster: 'genOnOff',
7274
7274
  type: ['attributeReport', 'readResponse'],
7275
7275
  convert: (model, msg, publish, options, meta) => {
7276
- const property = 0x8002;
7276
+ const property = 'moesStartUpOnOff';
7277
7277
 
7278
7278
  if (msg.data.hasOwnProperty(property)) {
7279
7279
  const dict = {0x00: 'off', 0x01: 'on', 0x02: 'restore'};
@@ -3577,7 +3577,7 @@ const converters = {
3577
3577
  const lookup = {'off': 0x00, 'on': 0x01, 'restore': 0x02};
3578
3578
  utils.validateValue(value, Object.keys(lookup));
3579
3579
  const payload = lookup[value];
3580
- await entity.write('genOnOff', {0x8002: {value: payload, type: 0x30}});
3580
+ await entity.write('genOnOff', {moesStartUpOnOff: payload});
3581
3581
  return {state: {power_outage_memory: value}};
3582
3582
  },
3583
3583
  },
@@ -0,0 +1,17 @@
1
+ const reporting = require('../lib/reporting');
2
+ const extend = require('../lib/extend');
3
+
4
+ module.exports = [
5
+ {
6
+ zigbeeModel: ['SRB01', 'SRB01A'],
7
+ model: 'SRB01',
8
+ vendor: 'Evvr',
9
+ description: 'In-wall relay switch',
10
+ extend: extend.switch(),
11
+ configure: async (device, coordinatorEndpoint, logger) => {
12
+ const endpoint = device.getEndpoint(1);
13
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
14
+ await reporting.onOff(endpoint);
15
+ },
16
+ },
17
+ ];
package/devices/jasco.js CHANGED
@@ -25,6 +25,7 @@ module.exports = [
25
25
  vendor: 'Jasco',
26
26
  description: 'Zigbee smart outlet',
27
27
  extend: extend.switch(),
28
+ fromZigbee: [...extend.switch().fromZigbee, fz.metering],
28
29
  exposes: [e.switch(), e.power(), e.energy()],
29
30
  configure: async (device, coordinatorEndpoint, logger) => {
30
31
  const endpoint = device.getEndpoint(1);
@@ -32,6 +33,7 @@ module.exports = [
32
33
  await reporting.onOff(endpoint);
33
34
  await reporting.readMeteringMultiplierDivisor(endpoint);
34
35
  await reporting.instantaneousDemand(endpoint);
36
+ await reporting.currentSummDelivered(endpoint);
35
37
  },
36
38
  },
37
39
  {
package/devices/lidl.js CHANGED
@@ -795,7 +795,7 @@ module.exports = [
795
795
  meta: {enhancedHue: false},
796
796
  },
797
797
  {
798
- fingerprint: [{modelID: 'TS0505B', manufactureName: '_TZ3000_bwlvyjwk'}],
798
+ fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3000_bwlvyjwk'}],
799
799
  model: 'HG08383B',
800
800
  vendor: 'Lidl',
801
801
  description: 'Livarno outdoor LED light chain',
@@ -33,7 +33,7 @@ module.exports = [
33
33
  exposes.numeric('calibration_time', ea.STATE).withUnit('S').withDescription('Calibration time')],
34
34
  },
35
35
  {
36
- fingerprint: [{modelID: 'TS130F', manufacturerName: '_TZ3000_j1xl73iw'}],
36
+ fingerprint: [{modelID: 'TS130F', manufacturerName: '_TZ3000_j1xl73iw'}, {modelID: 'TS130F', manufacturerName: '_TZ3000_kmsbwdol'}],
37
37
  model: 'TS130F_dual',
38
38
  vendor: 'Lonsonho',
39
39
  description: 'Dual curtain/blind module',
package/devices/lupus.js CHANGED
@@ -18,7 +18,7 @@ module.exports = [
18
18
  exposes: [e.cover_position().setAccess('state', ea.ALL)],
19
19
  },
20
20
  {
21
- zigbeeModel: ['SCM-3-OTA_00.00.03.16TC', 'SCM-6-OTA_00.00.03.17TC'],
21
+ zigbeeModel: ['SCM-3-OTA_00.00.03.16TC', 'SCM-6-OTA_00.00.03.17TC', 'SCM-6-OTA_00.00.03.18TC'],
22
22
  model: 'LS12128',
23
23
  vendor: 'Lupus',
24
24
  description: 'Roller shutter',
package/devices/moes.js CHANGED
@@ -7,6 +7,10 @@ const reporting = require('../lib/reporting');
7
7
  const extend = require('../lib/extend');
8
8
  const e = exposes.presets;
9
9
  const ea = exposes.access;
10
+ const zosung = require('../lib/zosung');
11
+ const fzZosung = zosung.fzZosung;
12
+ const tzZosung = zosung.tzZosung;
13
+ const ez = zosung.presetsZosung;
10
14
 
11
15
  module.exports = [
12
16
  {
@@ -299,7 +303,8 @@ module.exports = [
299
303
  },
300
304
  },
301
305
  {
302
- fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3000_7hcgjxpc'}],
306
+ fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3000_7hcgjxpc'},
307
+ {modelID: 'TS0505B', manufacturerName: '_TZ3210_rcggc0ys'}],
303
308
  model: 'ZLD-RCW',
304
309
  vendor: 'Moes',
305
310
  description: 'RGB+CCT Zigbee LED Controller',
@@ -308,7 +313,7 @@ module.exports = [
308
313
  ]),
309
314
  meta: {applyRedFix: true, enhancedHue: false},
310
315
  fromZigbee: extend.light_onoff_brightness_colortemp_color().fromZigbee,
311
- exposes: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}).exposes.concat([
316
+ exposes: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500], disableColorTempStartup: true}).exposes.concat([
312
317
  exposes.binary('do_not_disturb', ea.STATE_SET, true, false)
313
318
  .withDescription('Do not disturb mode'),
314
319
  exposes.enum('color_power_on_behavior', ea.STATE_SET, ['initial', 'previous', 'cutomized'])
@@ -336,4 +341,24 @@ module.exports = [
336
341
  exposes: [e.cover_position().setAccess('position', ea.STATE_SET), exposes.enum('backlight', ea.STATE_SET, ['OFF', 'ON']),
337
342
  exposes.enum('calibration', ea.STATE_SET, ['OFF', 'ON']), exposes.enum('motor_reversal', ea.STATE_SET, ['OFF', 'ON'])],
338
343
  },
344
+ {
345
+ fingerprint: [{modelID: 'TS1201', manufacturerName: '_TZ3290_j37rooaxrcdcqo5n'}],
346
+ model: 'UFO-R11',
347
+ vendor: 'Moes',
348
+ description: 'Universal smart IR remote control',
349
+ fromZigbee: [
350
+ fzZosung.zosung_send_ir_code_00, fzZosung.zosung_send_ir_code_01, fzZosung.zosung_send_ir_code_02,
351
+ fzZosung.zosung_send_ir_code_03, fzZosung.zosung_send_ir_code_04, fzZosung.zosung_send_ir_code_05,
352
+ fz.battery,
353
+ ],
354
+ toZigbee: [tzZosung.zosung_ir_code_to_send, tzZosung.zosung_learn_ir_code],
355
+ exposes: [ez.learn_ir_code(), ez.learned_ir_code(), ez.ir_code_to_send(), e.battery(), e.battery_voltage()],
356
+ configure: async (device, coordinatorEndpoint, logger) => {
357
+ const endpoint = device.getEndpoint(1);
358
+ await endpoint.read('genPowerCfg', ['batteryVoltage', 'batteryPercentageRemaining']);
359
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
360
+ await reporting.batteryPercentageRemaining(endpoint);
361
+ await reporting.batteryVoltage(endpoint);
362
+ },
363
+ },
339
364
  ];
package/devices/tuya.js CHANGED
@@ -470,7 +470,6 @@ module.exports = [
470
470
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_qxenlrin'},
471
471
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_iwbaamgh'},
472
472
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_klv2wul0'},
473
- {modelID: 'TS0505B', manufacturerName: '_TZ3210_rcggc0ys'},
474
473
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_s6zec0of'},
475
474
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_y5fjkn7x'},
476
475
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_cuqkfz2q'},
@@ -503,6 +502,7 @@ module.exports = [
503
502
  fingerprint: [{modelID: 'TS0504B', manufacturerName: '_TZ3000_ukuvyhaa'},
504
503
  {modelID: 'TS0504B', manufacturerName: '_TZ3210_bfvybixd'},
505
504
  {modelID: 'TS0504B', manufacturerName: '_TZ3210_i2i0bsnv'},
505
+ {modelID: 'TS0504B', manufacturerName: '_TZ3210_elzv6aia'},
506
506
  {modelID: 'TS0504B', manufacturerName: '_TZ3210_1elppmba'}],
507
507
  model: 'TS0504B',
508
508
  vendor: 'TuYa',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.557",
3
+ "version": "14.0.558",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [