zigbee-herdsman-converters 18.24.0 → 18.25.0

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/converters/fromZigbee.d.ts +18 -18
  3. package/converters/fromZigbee.js +22 -22
  4. package/converters/fromZigbee.js.map +1 -1
  5. package/converters/toZigbee.d.ts +34 -34
  6. package/converters/toZigbee.d.ts.map +1 -1
  7. package/converters/toZigbee.js +145 -145
  8. package/converters/toZigbee.js.map +1 -1
  9. package/devices/index.js +2 -2
  10. package/devices/index.js.map +1 -1
  11. package/devices/keen_home.js +1 -1
  12. package/devices/keen_home.js.map +1 -1
  13. package/devices/{xiaomi.d.ts → lumi.d.ts} +1 -1
  14. package/devices/lumi.d.ts.map +1 -0
  15. package/devices/{xiaomi.js → lumi.js} +828 -791
  16. package/devices/lumi.js.map +1 -0
  17. package/devices/tuya.d.ts.map +1 -1
  18. package/devices/tuya.js +22 -1
  19. package/devices/tuya.js.map +1 -1
  20. package/lib/generateDefinition.d.ts.map +1 -1
  21. package/lib/generateDefinition.js +130 -40
  22. package/lib/generateDefinition.js.map +1 -1
  23. package/lib/legacy.d.ts +3 -3
  24. package/lib/legacy.js +7 -7
  25. package/lib/legacy.js.map +1 -1
  26. package/lib/{xiaomi.d.ts → lumi.d.ts} +26 -26
  27. package/lib/lumi.d.ts.map +1 -0
  28. package/lib/{xiaomi.js → lumi.js} +72 -72
  29. package/lib/lumi.js.map +1 -0
  30. package/lib/modernExtend.d.ts +10 -1
  31. package/lib/modernExtend.d.ts.map +1 -1
  32. package/lib/modernExtend.js +67 -23
  33. package/lib/modernExtend.js.map +1 -1
  34. package/lib/ota/zigbeeOTA.js +1 -1
  35. package/lib/ota/zigbeeOTA.js.map +1 -1
  36. package/package.json +3 -3
  37. package/devices/xiaomi.d.ts.map +0 -1
  38. package/devices/xiaomi.js.map +0 -1
  39. package/lib/xiaomi.d.ts.map +0 -1
  40. package/lib/xiaomi.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [18.25.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v18.24.0...v18.25.0) (2024-01-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * **add:** RSH-HS06 https://github.com/Koenkk/zigbee2mqtt/issues/20815 ([f1cdde8](https://github.com/Koenkk/zigbee-herdsman-converters/commit/f1cdde884a835071b775cfc78c0b01f848a88aa7))
9
+ * Support multi endpoint for generate definition ([#6930](https://github.com/Koenkk/zigbee-herdsman-converters/issues/6930)) ([a1b6c28](https://github.com/Koenkk/zigbee-herdsman-converters/commit/a1b6c282e6f98447028bcd912b7a9ac6953e05b2))
10
+ * Update all Lumi (Aqara and Xiaomi) terminology, device `vendor` and `description` ([#6969](https://github.com/Koenkk/zigbee-herdsman-converters/issues/6969)) ([a1ddacd](https://github.com/Koenkk/zigbee-herdsman-converters/commit/a1ddacd2d934af9239edd84960ddefc88bc9eeb4))
11
+
3
12
  ## [18.24.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v18.23.1...v18.24.0) (2024-01-29)
4
13
 
5
14
 
@@ -897,7 +897,7 @@ declare const converters: {
897
897
  battery_low: boolean;
898
898
  };
899
899
  };
900
- xiaomi_lock_report: {
900
+ lumi_lock_report: {
901
901
  cluster: string;
902
902
  type: string[];
903
903
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
@@ -1436,14 +1436,14 @@ declare const converters: {
1436
1436
  action: any;
1437
1437
  };
1438
1438
  };
1439
- xiaomi_power: {
1439
+ lumi_power: {
1440
1440
  cluster: string;
1441
1441
  type: string[];
1442
1442
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
1443
1443
  power: any;
1444
1444
  };
1445
1445
  };
1446
- xiaomi_on_off_action: {
1446
+ lumi_on_off_action: {
1447
1447
  cluster: string;
1448
1448
  type: string[];
1449
1449
  options: exposes.Binary[];
@@ -1451,14 +1451,14 @@ declare const converters: {
1451
1451
  action: string;
1452
1452
  };
1453
1453
  };
1454
- xiaomi_multistate_action: {
1454
+ lumi_multistate_action: {
1455
1455
  cluster: string;
1456
1456
  type: string[];
1457
1457
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
1458
1458
  action: any;
1459
1459
  };
1460
1460
  };
1461
- aqara_occupancy_illuminance: {
1461
+ lumi_occupancy_illuminance: {
1462
1462
  cluster: string;
1463
1463
  type: string[];
1464
1464
  options: (exposes.Numeric | exposes.List)[];
@@ -1475,13 +1475,13 @@ declare const converters: {
1475
1475
  occupancy: boolean;
1476
1476
  };
1477
1477
  };
1478
- xiaomi_WXKG01LM_action: {
1478
+ lumi_WXKG01LM_action: {
1479
1479
  cluster: string;
1480
1480
  type: string[];
1481
1481
  options: exposes.Numeric[];
1482
1482
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: KeyValueAny, meta: Fz.Meta) => void;
1483
1483
  };
1484
- xiaomi_contact: {
1484
+ lumi_contact: {
1485
1485
  cluster: string;
1486
1486
  type: string[];
1487
1487
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
@@ -1495,14 +1495,14 @@ declare const converters: {
1495
1495
  carbon_monoxide: boolean;
1496
1496
  };
1497
1497
  };
1498
- xiaomi_temperature: {
1498
+ lumi_temperature: {
1499
1499
  cluster: string;
1500
1500
  type: string[];
1501
1501
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
1502
1502
  temperature: number;
1503
1503
  };
1504
1504
  };
1505
- xiaomi_WXKG11LM_action: {
1505
+ lumi_WXKG11LM_action: {
1506
1506
  cluster: string;
1507
1507
  type: string[];
1508
1508
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
@@ -1530,7 +1530,7 @@ declare const converters: {
1530
1530
  action: any;
1531
1531
  };
1532
1532
  };
1533
- xiaomi_curtain_position: {
1533
+ lumi_curtain_position: {
1534
1534
  cluster: string;
1535
1535
  type: string[];
1536
1536
  options: exposes.Binary[];
@@ -1538,13 +1538,13 @@ declare const converters: {
1538
1538
  position: number;
1539
1539
  };
1540
1540
  };
1541
- xiaomi_curtain_position_tilt: {
1541
+ lumi_curtain_position_tilt: {
1542
1542
  cluster: string;
1543
1543
  type: string[];
1544
1544
  options: exposes.Binary[];
1545
1545
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => KeyValueAny;
1546
1546
  };
1547
- xiaomi_curtain_hagl04_status: {
1547
+ lumi_curtain_hagl04_status: {
1548
1548
  cluster: string;
1549
1549
  type: string[];
1550
1550
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
@@ -1552,7 +1552,7 @@ declare const converters: {
1552
1552
  running: boolean;
1553
1553
  };
1554
1554
  };
1555
- xiaomi_curtain_hagl07_status: {
1555
+ lumi_curtain_hagl07_status: {
1556
1556
  cluster: string;
1557
1557
  type: string[];
1558
1558
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
@@ -1560,7 +1560,7 @@ declare const converters: {
1560
1560
  running: boolean;
1561
1561
  };
1562
1562
  };
1563
- xiaomi_curtain_acn002_status: {
1563
+ lumi_curtain_acn002_status: {
1564
1564
  cluster: string;
1565
1565
  type: string[];
1566
1566
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
@@ -1568,7 +1568,7 @@ declare const converters: {
1568
1568
  running: boolean;
1569
1569
  };
1570
1570
  };
1571
- xiaomi_operation_mode_basic: {
1571
+ lumi_operation_mode_basic: {
1572
1572
  cluster: string;
1573
1573
  type: string[];
1574
1574
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => KeyValueAny;
@@ -1789,7 +1789,7 @@ declare const converters: {
1789
1789
  requested_brightness_percent: number;
1790
1790
  };
1791
1791
  };
1792
- xiaomi_bulb_interval: {
1792
+ lumi_bulb_interval: {
1793
1793
  cluster: string;
1794
1794
  type: string[];
1795
1795
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
@@ -1923,7 +1923,7 @@ declare const converters: {
1923
1923
  options: exposes.Binary[];
1924
1924
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => KeyValueAny;
1925
1925
  };
1926
- xiaomi_on_off_ignore_endpoint_4_5_6: {
1926
+ lumi_on_off_ignore_endpoint_4_5_6: {
1927
1927
  cluster: string;
1928
1928
  type: string[];
1929
1929
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
@@ -2083,7 +2083,7 @@ declare const converters: {
2083
2083
  battery_low: boolean;
2084
2084
  };
2085
2085
  };
2086
- aqara_knob_rotation: {
2086
+ lumi_knob_rotation: {
2087
2087
  cluster: string;
2088
2088
  type: string[];
2089
2089
  convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
@@ -2015,7 +2015,7 @@ const converters1 = {
2015
2015
  }
2016
2016
  },
2017
2017
  },
2018
- xiaomi_lock_report: {
2018
+ lumi_lock_report: {
2019
2019
  cluster: 'genBasic',
2020
2020
  type: ['attributeReport', 'readResponse'],
2021
2021
  convert: (model, msg, publish, options, meta) => {
@@ -3666,14 +3666,14 @@ const converters1 = {
3666
3666
  }
3667
3667
  },
3668
3668
  },
3669
- xiaomi_power: {
3669
+ lumi_power: {
3670
3670
  cluster: 'genAnalogInput',
3671
3671
  type: ['attributeReport', 'readResponse'],
3672
3672
  convert: (model, msg, publish, options, meta) => {
3673
3673
  return { power: msg.data['presentValue'] };
3674
3674
  },
3675
3675
  },
3676
- xiaomi_on_off_action: {
3676
+ lumi_on_off_action: {
3677
3677
  cluster: 'genOnOff',
3678
3678
  type: ['attributeReport'],
3679
3679
  options: [exposes.options.legacy()],
@@ -3701,7 +3701,7 @@ const converters1 = {
3701
3701
  return { action: `${action}${button}` };
3702
3702
  },
3703
3703
  },
3704
- xiaomi_multistate_action: {
3704
+ lumi_multistate_action: {
3705
3705
  cluster: 'genMultistateInput',
3706
3706
  type: ['attributeReport'],
3707
3707
  convert: (model, msg, publish, options, meta) => {
@@ -3742,11 +3742,11 @@ const converters1 = {
3742
3742
  }
3743
3743
  },
3744
3744
  },
3745
- aqara_occupancy_illuminance: {
3745
+ lumi_occupancy_illuminance: {
3746
3746
  // This is for occupancy sensor that only send a message when motion detected,
3747
3747
  // but do not send a motion stop.
3748
3748
  // Therefore we need to publish the no_motion detected by ourselves.
3749
- cluster: 'aqaraOpple',
3749
+ cluster: 'manuSpecificLumi',
3750
3750
  type: ['attributeReport', 'readResponse'],
3751
3751
  options: [exposes.options.occupancy_timeout_2(), exposes.options.no_occupancy_since_true()],
3752
3752
  convert: (model, msg, publish, options, meta) => {
@@ -3806,7 +3806,7 @@ const converters1 = {
3806
3806
  return payload;
3807
3807
  },
3808
3808
  },
3809
- xiaomi_WXKG01LM_action: {
3809
+ lumi_WXKG01LM_action: {
3810
3810
  cluster: 'genOnOff',
3811
3811
  type: ['attributeReport', 'readResponse'],
3812
3812
  options: [
@@ -3856,7 +3856,7 @@ const converters1 = {
3856
3856
  }
3857
3857
  },
3858
3858
  },
3859
- xiaomi_contact: {
3859
+ lumi_contact: {
3860
3860
  cluster: 'genOnOff',
3861
3861
  type: ['attributeReport', 'readResponse'],
3862
3862
  convert: (model, msg, publish, options, meta) => {
@@ -3873,7 +3873,7 @@ const converters1 = {
3873
3873
  };
3874
3874
  },
3875
3875
  },
3876
- xiaomi_temperature: {
3876
+ lumi_temperature: {
3877
3877
  cluster: 'msTemperatureMeasurement',
3878
3878
  type: ['attributeReport', 'readResponse'],
3879
3879
  convert: (model, msg, publish, options, meta) => {
@@ -3885,7 +3885,7 @@ const converters1 = {
3885
3885
  }
3886
3886
  },
3887
3887
  },
3888
- xiaomi_WXKG11LM_action: {
3888
+ lumi_WXKG11LM_action: {
3889
3889
  cluster: 'genOnOff',
3890
3890
  type: ['attributeReport', 'readResponse'],
3891
3891
  convert: (model, msg, publish, options, meta) => {
@@ -3929,7 +3929,7 @@ const converters1 = {
3929
3929
  return lookup[value] ? { action: lookup[value] } : null;
3930
3930
  },
3931
3931
  },
3932
- xiaomi_curtain_position: {
3932
+ lumi_curtain_position: {
3933
3933
  cluster: 'genAnalogOutput',
3934
3934
  type: ['attributeReport', 'readResponse'],
3935
3935
  options: [exposes.options.invert_cover()],
@@ -3945,7 +3945,7 @@ const converters1 = {
3945
3945
  return { position };
3946
3946
  },
3947
3947
  },
3948
- xiaomi_curtain_position_tilt: {
3948
+ lumi_curtain_position_tilt: {
3949
3949
  cluster: 'closuresWindowCovering',
3950
3950
  type: ['attributeReport', 'readResponse'],
3951
3951
  options: [exposes.options.invert_cover()],
@@ -3966,7 +3966,7 @@ const converters1 = {
3966
3966
  return result;
3967
3967
  },
3968
3968
  },
3969
- xiaomi_curtain_hagl04_status: {
3969
+ lumi_curtain_hagl04_status: {
3970
3970
  cluster: 'genMultistateOutput',
3971
3971
  type: ['attributeReport'],
3972
3972
  convert: (model, msg, publish, options, meta) => {
@@ -3989,7 +3989,7 @@ const converters1 = {
3989
3989
  }
3990
3990
  },
3991
3991
  },
3992
- xiaomi_curtain_hagl07_status: {
3992
+ lumi_curtain_hagl07_status: {
3993
3993
  cluster: 'genMultistateOutput',
3994
3994
  type: ['attributeReport'],
3995
3995
  convert: (model, msg, publish, options, meta) => {
@@ -4012,7 +4012,7 @@ const converters1 = {
4012
4012
  }
4013
4013
  },
4014
4014
  },
4015
- xiaomi_curtain_acn002_status: {
4015
+ lumi_curtain_acn002_status: {
4016
4016
  cluster: 'genMultistateOutput',
4017
4017
  type: ['attributeReport'],
4018
4018
  convert: (model, msg, publish, options, meta) => {
@@ -4036,7 +4036,7 @@ const converters1 = {
4036
4036
  }
4037
4037
  },
4038
4038
  },
4039
- xiaomi_operation_mode_basic: {
4039
+ lumi_operation_mode_basic: {
4040
4040
  cluster: 'genBasic',
4041
4041
  type: ['attributeReport', 'readResponse'],
4042
4042
  convert: (model, msg, publish, options, meta) => {
@@ -4543,7 +4543,7 @@ const converters1 = {
4543
4543
  };
4544
4544
  },
4545
4545
  },
4546
- xiaomi_bulb_interval: {
4546
+ lumi_bulb_interval: {
4547
4547
  cluster: 'genBasic',
4548
4548
  type: ['attributeReport', 'readResponse'],
4549
4549
  convert: (model, msg, publish, options, meta) => {
@@ -4900,11 +4900,11 @@ const converters1 = {
4900
4900
  return payload;
4901
4901
  },
4902
4902
  },
4903
- xiaomi_on_off_ignore_endpoint_4_5_6: {
4903
+ lumi_on_off_ignore_endpoint_4_5_6: {
4904
4904
  cluster: 'genOnOff',
4905
4905
  type: ['attributeReport', 'readResponse'],
4906
4906
  convert: (model, msg, publish, options, meta) => {
4907
- // Xiaomi wall switches use endpoint 4, 5 or 6 to indicate an action on the button so we have to skip that.
4907
+ // Lumi wall switches use endpoint 4, 5 or 6 to indicate an action on the button so we have to skip that.
4908
4908
  if (msg.data.hasOwnProperty('onOff') && ![4, 5, 6].includes(msg.endpoint.ID)) {
4909
4909
  const property = (0, utils_1.postfixWithEndpointName)('state', msg, model, meta);
4910
4910
  return { [property]: msg.data['onOff'] === 1 ? 'ON' : 'OFF' };
@@ -5340,7 +5340,7 @@ const converters1 = {
5340
5340
  },
5341
5341
  },
5342
5342
  ZNCJMB14LM: {
5343
- cluster: 'aqaraOpple',
5343
+ cluster: 'manuSpecificLumi',
5344
5344
  type: ['attributeReport', 'readResponse'],
5345
5345
  convert: (model, msg, publish, options, meta) => {
5346
5346
  const result = {};
@@ -5437,8 +5437,8 @@ const converters1 = {
5437
5437
  };
5438
5438
  },
5439
5439
  },
5440
- aqara_knob_rotation: {
5441
- cluster: 'aqaraOpple',
5440
+ lumi_knob_rotation: {
5441
+ cluster: 'manuSpecificLumi',
5442
5442
  type: ['attributeReport', 'readResponse'],
5443
5443
  convert: (model, msg, publish, options, meta) => {
5444
5444
  if (msg.data.hasOwnProperty(570)) {