zigbee-herdsman-converters 14.0.454 → 14.0.455

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/tuya.js CHANGED
@@ -238,7 +238,8 @@ module.exports = [
238
238
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_bfwvfyx1'},
239
239
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_leyz4rju'},
240
240
  {modelID: 'TS0505B', manufacturerName: '_TZ3210_jd3z4yig'},
241
- {modelID: 'TS0505B', manufacturerName: '_TZ3210_dgdjiw1c'}],
241
+ {modelID: 'TS0505B', manufacturerName: '_TZ3210_dgdjiw1c'},
242
+ {modelID: 'TS0505B', manufacturerName: '_TZ3210_qxenlrin'}],
242
243
  model: 'TS0505B',
243
244
  vendor: 'TuYa',
244
245
  description: 'Zigbee RGB+CCT light',
@@ -637,6 +638,7 @@ module.exports = [
637
638
  {modelID: 'TS0502B', manufacturerName: '_TZ3000_fzwhym79'},
638
639
  {modelID: 'TS0502B', manufacturerName: '_TZ3210_rm0hthdo'},
639
640
  {modelID: 'TS0502B', manufacturerName: '_TZ3210_zwqnazkb'},
641
+ {modelID: 'TS0502B', manufacturerName: '_TZ3210_ijsj2evj'},
640
642
  ],
641
643
  model: 'TS0502B',
642
644
  vendor: 'TuYa',
@@ -1039,6 +1041,7 @@ module.exports = [
1039
1041
  {modelID: 'TS0601', manufacturerName: '_TZE200_ywdxldoj'},
1040
1042
  {modelID: 'TS0601', manufacturerName: '_TZE200_cwnjrr72'},
1041
1043
  {modelID: 'TS0601', manufacturerName: '_TZE200_pvvbommb'},
1044
+ {modelID: 'TS0601', manufacturerName: '_TZE200_9sfg7gm0'}, // HomeCloud
1042
1045
  {modelID: 'TS0601', manufacturerName: '_TZE200_2atgpdho'}, // HY367
1043
1046
  {modelID: 'TS0601', manufacturerName: '_TZE200_cpmgn2cf'},
1044
1047
  ],
package/lib/xiaomi.js CHANGED
@@ -428,9 +428,12 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
428
428
  }
429
429
  break;
430
430
  case '65282':
431
- // This is a a complete structure with attributes, at this moment we only extract voltage
432
- // Other elements like value[0].elmVal contain the "state" (for example contact for door sensor)
433
- // but it seems to be always 1 for a occupancy sensor, so we ignore them at this moment
431
+ // This is a a complete structure with attributes, like element 0 for state, element 1 for voltage...
432
+ // At this moment we only extract what we are sure, for example, position 0 seems to be always 1 for a
433
+ // occupancy sensor, so we ignore it at this moment
434
+ if (['MCCGQ01LM'].includes(model.model)) {
435
+ payload.contact = value[0].elmVal === 0;
436
+ }
434
437
  payload.voltage = value[1].elmVal;
435
438
  if (model.meta && model.meta.battery && model.meta.battery.voltageToPercentage) {
436
439
  payload.battery = batteryVoltageToPercentage(payload.voltage, model.meta.battery.voltageToPercentage);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.454",
3
+ "version": "14.0.455",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "zigbee-herdsman-converters",
9
- "version": "14.0.454",
9
+ "version": "14.0.455",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "axios": "^0.26.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.454",
3
+ "version": "14.0.455",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [