zigbee-herdsman-converters 15.0.55 → 15.0.56

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.
@@ -534,6 +534,26 @@ module.exports = [
534
534
  await reporting.batteryVoltage(endpoint38);
535
535
  },
536
536
  },
537
+ {
538
+ zigbeeModel: ['WISZB-138'],
539
+ model: 'WISZB-138',
540
+ vendor: 'Develco',
541
+ description: 'Window sensor',
542
+ fromZigbee: [fz.ias_contact_alarm_1, fz.battery, develco.fz.temperature],
543
+ toZigbee: [],
544
+ exposes: [e.contact(), e.battery(), e.battery_low(), e.temperature()],
545
+ meta: {battery: {voltageToPercentage: '3V_2500'}},
546
+ configure: async (device, coordinatorEndpoint, logger) => {
547
+ const endpoint35 = device.getEndpoint(35);
548
+ const endpoint38 = device.getEndpoint(38);
549
+ await reporting.bind(endpoint35, coordinatorEndpoint, ['genPowerCfg']);
550
+ await reporting.bind(endpoint38, coordinatorEndpoint, ['msTemperatureMeasurement']);
551
+ await reporting.batteryVoltage(endpoint35);
552
+ await reporting.temperature(endpoint38);
553
+
554
+ await develco.configure.read_sw_hw_version(device, logger);
555
+ },
556
+ },
537
557
  {
538
558
  zigbeeModel: ['MOSZB-130'],
539
559
  model: 'MOSZB-130',
package/devices/tuya.js CHANGED
@@ -117,6 +117,22 @@ const tzLocal = {
117
117
  }
118
118
  },
119
119
  },
120
+ TS0224: {
121
+ key: ['light', 'duration', 'volume'],
122
+ convertSet: async (entity, key, value, meta) => {
123
+ if (key === 'light') {
124
+ await entity.command('genOnOff', value.toLowerCase() === 'on' ? 'on' : 'off', {}, utils.getOptions(meta.mapped, entity));
125
+ } else if (key === 'duration') {
126
+ await entity.write('ssIasWd', {'maxDuration': value}, utils.getOptions(meta.mapped, entity));
127
+ } else if (key === 'volume') {
128
+ const lookup = {'mute': 0, 'low': 10, 'medium': 30, 'high': 50};
129
+ value = value.toLowerCase();
130
+ utils.validateValue(value, Object.keys(lookup));
131
+ await entity.write('ssIasWd', {0x0002: {value: lookup[value], type: 0x0a}}, utils.getOptions(meta.mapped, entity));
132
+ }
133
+ return {state: {[key]: value}};
134
+ },
135
+ },
120
136
  power_on_behavior: {
121
137
  key: ['power_on_behavior'],
122
138
  convertSet: async (entity, key, value, meta) => {
@@ -2115,6 +2131,7 @@ module.exports = [
2115
2131
  {modelID: 'TS0601', manufacturerName: '_TZE200_cowvfni3'},
2116
2132
  {modelID: 'TS0601', manufacturerName: '_TZE200_rddyvrci'},
2117
2133
  {modelID: 'TS0601', manufacturerName: '_TZE200_nueqqe6k'},
2134
+ {modelID: 'TS0601', manufacturerName: '_TZE200_bqcqqjpb'},
2118
2135
  {modelID: 'TS0601', manufacturerName: '_TZE200_xaabybja'},
2119
2136
  {modelID: 'TS0601', manufacturerName: '_TZE200_rmymn92d'},
2120
2137
  {modelID: 'TS0601', manufacturerName: '_TZE200_3i3exuay'},
@@ -4142,4 +4159,19 @@ module.exports = [
4142
4159
  {vendor: 'Lerlink', model: 'T2-Z67/T2-W67'},
4143
4160
  ],
4144
4161
  },
4162
+ {
4163
+ zigbeeModel: ['TS0224'],
4164
+ model: 'TS0224',
4165
+ vendor: 'TuYa',
4166
+ description: 'Smart light & sound siren',
4167
+ fromZigbee: [],
4168
+ toZigbee: [tz.warning, tzLocal.TS0224],
4169
+ exposes: [e.warning(),
4170
+ exposes.binary('light', ea.STATE_SET, 'ON', 'OFF').withDescription('Turn the light of the alarm ON/OFF'),
4171
+ exposes.numeric('duration', ea.STATE_SET).withValueMin(60).withValueMax(3600).withValueStep(1).withUnit('s')
4172
+ .withDescription('Duration of the alarm'),
4173
+ exposes.enum('volume', ea.STATE_SET, ['mute', 'low', 'medium', 'high'])
4174
+ .withDescription('Volume of the alarm'),
4175
+ ],
4176
+ },
4145
4177
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "15.0.55",
3
+ "version": "15.0.56",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "homepage": "https://github.com/Koenkk/zigbee-herdsman-converters",
36
36
  "dependencies": {
37
- "axios": "^1.3.3",
37
+ "axios": "^1.3.4",
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.93"
41
+ "zigbee-herdsman": "^0.14.95"
42
42
  },
43
43
  "devDependencies": {
44
44
  "eslint": "*",