zigbee-herdsman-converters 15.0.99 → 15.0.100

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.
@@ -362,6 +362,30 @@ module.exports = [
362
362
  return {default: 2};
363
363
  },
364
364
  },
365
+ {
366
+ zigbeeModel: ['SPLZB-137'],
367
+ model: 'SPLZB-137',
368
+ vendor: 'Develco',
369
+ description: 'Power plug',
370
+ fromZigbee: [fz.on_off, develco.fz.electrical_measurement, develco.fz.metering],
371
+ toZigbee: [tz.on_off],
372
+ exposes: [e.switch(), e.power(), e.current(), e.voltage(), e.energy(), e.ac_frequency()],
373
+ configure: async (device, coordinatorEndpoint, logger) => {
374
+ const endpoint = device.getEndpoint(2);
375
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
376
+ await reporting.onOff(endpoint);
377
+ await reporting.readEletricalMeasurementMultiplierDivisors(endpoint, true);
378
+ await reporting.activePower(endpoint);
379
+ await reporting.rmsCurrent(endpoint);
380
+ await reporting.rmsVoltage(endpoint);
381
+ await reporting.readMeteringMultiplierDivisor(endpoint);
382
+ await reporting.currentSummDelivered(endpoint);
383
+ await reporting.acFrequency(endpoint);
384
+ },
385
+ endpoint: (device) => {
386
+ return {default: 2};
387
+ },
388
+ },
365
389
  {
366
390
  zigbeeModel: ['SMRZB-143'],
367
391
  model: 'SMRZB-143',
package/devices/tuya.js CHANGED
@@ -1036,6 +1036,27 @@ module.exports = [
1036
1036
  return exps;
1037
1037
  },
1038
1038
  },
1039
+ {
1040
+ fingerprint: tuya.fingerprint('TS0601', ['_TZE200_nvups4nh']),
1041
+ model: 'TS0601_contact_temperature_humidity_sensor',
1042
+ vendor: 'TuYa',
1043
+ description: 'Contact, temperature and humidity sensor',
1044
+ fromZigbee: [tuya.fz.datapoints, tuya.fz.gateway_connection_status],
1045
+ toZigbee: [tuya.tz.datapoints],
1046
+ configure: tuya.configureMagicPacket,
1047
+ exposes: [e.contact(), e.temperature(), e.humidity(), e.battery()],
1048
+ meta: {
1049
+ tuyaDatapoints: [
1050
+ [1, 'contact', tuya.valueConverter.trueFalseInvert],
1051
+ [2, 'battery', tuya.valueConverter.raw],
1052
+ [7, 'temperature', tuya.valueConverter.divideBy10],
1053
+ [8, 'humidity', tuya.valueConverter.raw],
1054
+ ],
1055
+ },
1056
+ whiteLabel: [
1057
+ tuya.whitelabel('Aubess', '1005005194831629', 'Contact, temperature and humidity sensor', ['_TZE200_nvups4nh']),
1058
+ ],
1059
+ },
1039
1060
  {
1040
1061
  fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_vzqtvljm'}],
1041
1062
  model: 'TS0601_illuminance_temperature_humidity_sensor',
@@ -2491,6 +2512,7 @@ module.exports = [
2491
2512
  {modelID: 'TS0601', manufacturerName: '_TZE200_3ylew7b4'},
2492
2513
  {modelID: 'TS0601', manufacturerName: '_TZE200_llm0epxg'},
2493
2514
  {modelID: 'TS0601', manufacturerName: '_TZE200_n1aauwb4'},
2515
+ {modelID: 'TS0601', manufacturerName: '_TZE200_xu4a5rhj'},
2494
2516
  ],
2495
2517
  model: 'TS0601_cover_1',
2496
2518
  vendor: 'TuYa',
package/lib/tuya.js CHANGED
@@ -1239,6 +1239,10 @@ const valueConverterBasic = {
1239
1239
  const valueConverter = {
1240
1240
  trueFalse0: valueConverterBasic.trueFalse(0),
1241
1241
  trueFalse1: valueConverterBasic.trueFalse(1),
1242
+ trueFalseInvert: {
1243
+ to: (v) => !v,
1244
+ from: (v) => !v,
1245
+ },
1242
1246
  trueFalseEnum0: valueConverterBasic.trueFalse(new Enum(0)),
1243
1247
  onOff: valueConverterBasic.lookup({'ON': true, 'OFF': false}),
1244
1248
  powerOnBehavior: valueConverterBasic.lookup({'off': 0, 'on': 1, 'previous': 2}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "15.0.99",
3
+ "version": "15.0.100",
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.1",
40
40
  "tar-stream": "^3.0.0",
41
- "zigbee-herdsman": "^0.14.110"
41
+ "zigbee-herdsman": "^0.14.111"
42
42
  },
43
43
  "devDependencies": {
44
44
  "eslint": "*",