zigbee-herdsman-converters 14.0.534 → 14.0.535

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.
@@ -7304,9 +7304,9 @@ const converters = {
7304
7304
  const value = tuya.getDataValue(dpValue);
7305
7305
  switch (dp) {
7306
7306
  case 2:
7307
- return {illuminance_lux: value.toFixed(0)};
7307
+ return {illuminance_lux: value};
7308
7308
  case 4:
7309
- return {battery: value.toFixed(1)};
7309
+ return {battery: value};
7310
7310
  case 1:
7311
7311
  return {battery_low: value.toFixed(1)};
7312
7312
  default:
@@ -88,7 +88,7 @@ module.exports = [
88
88
  'Valve Characteristic Lost'),
89
89
  exposes.binary('adaptation_run_settings', ea.ALL, true, false)
90
90
  .withDescription('Automatic adaptation run enabled (the one during the night)'),
91
- exposes.enum('adaptation_run_control', ea.ALL, ['initate_adaptation', 'cancel_adaptation'])
91
+ exposes.enum('adaptation_run_control', ea.ALL, ['none', 'initiate_adaptation', 'cancel_adaptation'])
92
92
  .withDescription('Adaptation run control: Initiate Adaptation Run or Cancel Adaptation Run'),
93
93
  exposes.numeric('regulation_setpoint_offset', ea.ALL)
94
94
  .withDescription('Regulation SetPoint Offset in range -2.5°C to 2.5°C in steps of 0.1°C. Value 2.5°C = 25.')
@@ -8,7 +8,7 @@ const e = exposes.presets;
8
8
  module.exports = [
9
9
  {
10
10
  zigbeeModel: ['tint-ExtendedColor'],
11
- model: '404036/45327',
11
+ model: '404036/45327/45317',
12
12
  vendor: 'Müller Licht',
13
13
  description: 'Tint LED white+color',
14
14
  extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 556]}),
@@ -207,11 +207,12 @@ module.exports = [
207
207
  description: 'Door sensor',
208
208
  fromZigbee: [fz.ias_contact_alarm_1, fz.battery, fz.ignore_basic_report, fz.ias_contact_alarm_1_report],
209
209
  toZigbee: [],
210
- exposes: [e.contact(), e.battery()],
210
+ exposes: [e.contact(), e.battery(), e.battery_voltage()],
211
211
  configure: async (device, coordinatorEndpoint, logger) => {
212
212
  const endpoint = device.getEndpoint(1);
213
213
  await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
214
214
  await reporting.batteryPercentageRemaining(endpoint);
215
+ await reporting.batteryVoltage(endpoint);
215
216
  },
216
217
  },
217
218
  {
@@ -26,7 +26,7 @@ module.exports = [
26
26
  exposes: [e.cover_position().setAccess('position', ea.STATE_SET)],
27
27
  },
28
28
  {
29
- zigbeeModel: ['sbordckq'],
29
+ fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_sbordckq'}],
30
30
  model: 'SM-1CTW-EU',
31
31
  vendor: 'Somgoms',
32
32
  description: 'Curtain switch',
package/devices/sonoff.js CHANGED
@@ -164,4 +164,16 @@ module.exports = [
164
164
  description: 'Zigbee smart plug',
165
165
  extend: extend.switch(),
166
166
  },
167
+ {
168
+ zigbeeModel: ['S40LITE'],
169
+ model: 'S40ZBTPB',
170
+ vendor: 'SONOFF',
171
+ description: '15A Zigbee smart plug',
172
+ extend: extend.switch(),
173
+ fromZigbee: [fz.on_off_skip_duplicate_transaction],
174
+ configure: async (device, coordinatorEndpoint, logger) => {
175
+ const endpoint = device.getEndpoint(1);
176
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
177
+ },
178
+ },
167
179
  ];
@@ -281,7 +281,8 @@ module.exports = [
281
281
  },
282
282
  },
283
283
  {
284
- fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x00000000010.....$/}],
284
+ fingerprint: [{modelID: 'GreenPower_2', ieeeAddr: /^0x00000000010.....$/},
285
+ {modelID: 'GreenPower_2', ieeeAddr: /^0x0000000001b.....$/}],
285
286
  model: 'SR-ZGP2801K2-DIM',
286
287
  vendor: 'Sunricher',
287
288
  description: 'Pushbutton transmitter module',
@@ -73,7 +73,6 @@ module.exports = [
73
73
  description: 'Wireless motion sensor',
74
74
  fromZigbee: [fz.ias_occupancy_alarm_1, fz.battery],
75
75
  toZigbee: [],
76
- meta: {battery: {dontDividePercentage: true}},
77
76
  exposes: [e.occupancy(), e.battery_low(), e.battery(), e.battery_voltage()],
78
77
  configure: async (device, coordinatorEndpoint, logger) => {
79
78
  device.powerSource = 'Battery';
package/devices/tuya.js CHANGED
@@ -14,7 +14,7 @@ const TS011Fplugs = ['_TZ3000_5f43h46b', '_TZ3000_cphmq0q7', '_TZ3000_dpo1ysak',
14
14
  '_TZ3000_jvzvulen', '_TZ3000_mraovvmm', '_TZ3000_nfnmi125', '_TZ3000_ps3dmato', '_TZ3000_w0qqde0g', '_TZ3000_u5u4cakc',
15
15
  '_TZ3000_rdtixbnu', '_TZ3000_typdpbpg', '_TZ3000_kx0pris5', '_TZ3000_amdymr7l', '_TZ3000_z1pnpsdo', '_TZ3000_ksw8qtmt',
16
16
  '_TZ3000_nzkqcvvs', '_TZ3000_1h2x4akh', '_TZ3000_9vo5icau', '_TZ3000_cehuw1lw', '_TZ3000_ko6v90pg', '_TZ3000_f1bapcit',
17
- '_TZ3000_cjrngdr3', '_TZ3000_zloso4jk', '_TZ3000_v4mevirn'];
17
+ '_TZ3000_cjrngdr3', '_TZ3000_zloso4jk', '_TZ3000_r6buo8ba'];
18
18
 
19
19
  const tzLocal = {
20
20
  TS0504B_color: {
@@ -130,7 +130,7 @@ module.exports = [
130
130
  'button_6_hold', 'button_6_single', 'button_6_double'])],
131
131
  },
132
132
  {
133
- fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_zigisuyh'}],
133
+ fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_zigisuyh'}, {modelID: 'TS011F', manufacturerName: '_TZ3000_v4mevirn'}],
134
134
  model: 'ZIGBEE-B09-UK',
135
135
  vendor: 'Zemismart',
136
136
  description: 'Zigbee smart outlet universal socket with USB port',
package/lib/constants.js CHANGED
@@ -105,7 +105,8 @@ const danfossAdaptionRunStatus= {
105
105
  };
106
106
 
107
107
  const danfossAdaptionRunControl = {
108
- 1: 'initate_adaptation',
108
+ 0: 'none',
109
+ 1: 'initiate_adaptation',
109
110
  2: 'cancel_adaptation',
110
111
  };
111
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.534",
3
+ "version": "14.0.535",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [