zigbee-herdsman-converters 14.0.333 → 14.0.334

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.
package/devices/owon.js CHANGED
@@ -83,4 +83,23 @@ module.exports = [
83
83
  await reporting.thermostatAcLouverPosition(endpoint);
84
84
  },
85
85
  },
86
+ {
87
+ zigbeeModel: ['THS317'],
88
+ model: 'THS317',
89
+ vendor: 'OWON',
90
+ description: 'Temperature and humidity sensor',
91
+ fromZigbee: [fz.temperature, fz.humidity, fz.battery],
92
+ toZigbee: [],
93
+ exposes: [e.battery(), e.temperature(), e.humidity()],
94
+ configure: async (device, coordinatorEndpoint, logger) => {
95
+ const endpoint = device.getEndpoint(2);
96
+ await reporting.bind(endpoint, coordinatorEndpoint, ['msTemperatureMeasurement', 'msRelativeHumidity', 'genPowerCfg']);
97
+ await reporting.temperature(endpoint);
98
+ await reporting.humidity(endpoint);
99
+ await reporting.batteryVoltage(endpoint);
100
+ await reporting.batteryPercentageRemaining(endpoint);
101
+ device.powerSource = 'Battery';
102
+ device.save();
103
+ },
104
+ },
86
105
  ];
package/devices/xiaomi.js CHANGED
@@ -1772,6 +1772,21 @@ module.exports = [
1772
1772
  await endpoint1.write('aqaraOpple', {'mode': 1}, {manufacturerCode: 0x115f, disableResponse: true});
1773
1773
  },
1774
1774
  },
1775
+ {
1776
+ zigbeeModel: ['lumi.remote.acn003'],
1777
+ model: 'WXKG16LM',
1778
+ vendor: 'Xiaomi',
1779
+ description: 'Aqara wireless remote switch E1 (single rocker)',
1780
+ fromZigbee: [fz.xiaomi_multistate_action, fz.aqara_opple],
1781
+ toZigbee: [tz.xiaomi_switch_click_mode],
1782
+ exposes: [e.battery(), e.battery_voltage(), e.action(['single', 'double', 'hold']),
1783
+ exposes.enum('click_mode', ea.SET, ['fast', 'multi'])
1784
+ .withDescription('Click mode, fast: only supports single click which will be send immediately after clicking.' +
1785
+ 'multi: supports more events like double and hold')],
1786
+ configure: async (device, coordinatorEndpoint, logger) => {
1787
+ await device.getEndpoint(1).write('aqaraOpple', {0x0125: {value: 0x02, type: 0x20}}, {manufacturerCode: 0x115f});
1788
+ },
1789
+ },
1775
1790
  {
1776
1791
  zigbeeModel: ['lumi.remote.acn004'],
1777
1792
  model: 'WXKG17LM',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.333",
3
+ "version": "14.0.334",
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.333",
3
+ "version": "14.0.334",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [