zigbee-herdsman-converters 20.2.0 → 20.3.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 (45) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/converters/toZigbee.d.ts +340 -340
  3. package/devices/ctm.d.ts.map +1 -1
  4. package/devices/ctm.js +41 -0
  5. package/devices/ctm.js.map +1 -1
  6. package/devices/elko.js +2 -2
  7. package/devices/gledopto.d.ts.map +1 -1
  8. package/devices/gledopto.js +14 -6
  9. package/devices/gledopto.js.map +1 -1
  10. package/devices/ikea.d.ts.map +1 -1
  11. package/devices/ikea.js +3 -1
  12. package/devices/ikea.js.map +1 -1
  13. package/devices/lumi.d.ts.map +1 -1
  14. package/devices/lumi.js +1 -2
  15. package/devices/lumi.js.map +1 -1
  16. package/devices/osram.d.ts.map +1 -1
  17. package/devices/osram.js +7 -0
  18. package/devices/osram.js.map +1 -1
  19. package/devices/philips.d.ts.map +1 -1
  20. package/devices/philips.js +14 -0
  21. package/devices/philips.js.map +1 -1
  22. package/devices/robb.d.ts.map +1 -1
  23. package/devices/robb.js +16 -0
  24. package/devices/robb.js.map +1 -1
  25. package/devices/tuya.d.ts.map +1 -1
  26. package/devices/tuya.js +21 -4
  27. package/devices/tuya.js.map +1 -1
  28. package/devices/vimar.js +1 -1
  29. package/devices/vimar.js.map +1 -1
  30. package/lib/generateDefinition.js +0 -1
  31. package/lib/generateDefinition.js.map +1 -1
  32. package/lib/ledvance.d.ts +1 -1
  33. package/lib/legacy.d.ts +123 -123
  34. package/lib/legrand.d.ts +6 -6
  35. package/lib/lumi.d.ts +88 -89
  36. package/lib/lumi.d.ts.map +1 -1
  37. package/lib/lumi.js +7 -18
  38. package/lib/lumi.js.map +1 -1
  39. package/lib/philips.d.ts +10 -10
  40. package/lib/tuya.d.ts +22 -19
  41. package/lib/tuya.d.ts.map +1 -1
  42. package/lib/tuya.js +14 -1
  43. package/lib/tuya.js.map +1 -1
  44. package/lib/zosung.d.ts +2 -2
  45. package/package.json +7 -7
package/lib/lumi.js CHANGED
@@ -1452,8 +1452,8 @@ exports.lumiModernExtend = {
1452
1452
  }),
1453
1453
  lumiCurtainManualOpenClose: (args) => modernExtend.binary({
1454
1454
  name: 'manual_open_close',
1455
- valueOn: ['ON', true],
1456
- valueOff: ['OFF', false],
1455
+ valueOn: ['ON', 1],
1456
+ valueOff: ['OFF', 0],
1457
1457
  cluster: 'manuSpecificLumi',
1458
1458
  attribute: 'curtainHandOpen',
1459
1459
  description: 'Gently pull to open/close the curtain automatically',
@@ -1476,8 +1476,8 @@ exports.lumiModernExtend = {
1476
1476
  }),
1477
1477
  lumiCurtainManualStop: (args) => modernExtend.binary({
1478
1478
  name: 'manual_stop',
1479
- valueOn: ['ON', true],
1480
- valueOff: ['OFF', false],
1479
+ valueOn: ['ON', 1],
1480
+ valueOff: ['OFF', 0],
1481
1481
  cluster: 'manuSpecificLumi',
1482
1482
  attribute: { ID: 0x043a, type: 0x10 },
1483
1483
  description: 'Manually pulling the curtain during operation stops the motor',
@@ -1499,7 +1499,7 @@ exports.lumiModernExtend = {
1499
1499
  }),
1500
1500
  lumiCurtainStatus: (args) => modernExtend.enumLookup({
1501
1501
  name: 'status',
1502
- lookup: { 0: 'closing', 1: 'opening', 2: 'stopped', 3: 'blocked' },
1502
+ lookup: { closing: 0, opening: 1, stopped: 2, blocked: 3 },
1503
1503
  cluster: 'manuSpecificLumi',
1504
1504
  attribute: { ID: 0x0421, type: 0x20 },
1505
1505
  description: 'Current status of the curtain (Opening, Closing, Stopped, Blocked)',
@@ -1510,7 +1510,7 @@ exports.lumiModernExtend = {
1510
1510
  }),
1511
1511
  lumiCurtainLastManualOperation: (args) => modernExtend.enumLookup({
1512
1512
  name: 'last_manual_operation',
1513
- lookup: { 1: 'open', 2: 'close', 3: 'stop' },
1513
+ lookup: { open: 1, close: 2, stop: 3 },
1514
1514
  cluster: 'manuSpecificLumi',
1515
1515
  attribute: { ID: 0x0425, type: 0x20 },
1516
1516
  description: 'Last triggered manual operation',
@@ -1545,7 +1545,7 @@ exports.lumiModernExtend = {
1545
1545
  }),
1546
1546
  lumiCurtainCalibrationStatus: (args) => modernExtend.enumLookup({
1547
1547
  name: 'calibration_status',
1548
- lookup: { 0: 'not_calibrated', 1: 'half_calibrated', 2: 'fully_calibrated' },
1548
+ lookup: { not_calibrated: 0, half_calibrated: 1, fully_calibrated: 2 },
1549
1549
  cluster: 'manuSpecificLumi',
1550
1550
  attribute: { ID: 0x0426, type: 0x20 },
1551
1551
  description: 'Calibration status of the curtain (Not calibrated, Half calibrated, Fully calibrated)',
@@ -1566,17 +1566,6 @@ exports.lumiModernExtend = {
1566
1566
  entityCategory: 'diagnostic',
1567
1567
  ...args,
1568
1568
  }),
1569
- lumiCurtainControlManuSpecific: (args) => modernExtend.enumLookup({
1570
- name: 'control',
1571
- lookup: { toggle: 3, open: 7, close: 8 },
1572
- cluster: 'manuSpecificLumi',
1573
- attribute: { ID: 0x0420, type: 0x20 },
1574
- description: 'manuSpecific curtain control',
1575
- zigbeeCommandOptions: { manufacturerCode: exports.manufacturerCode },
1576
- access: 'ALL',
1577
- entityCategory: 'config',
1578
- ...args,
1579
- }),
1580
1569
  lumiCurtainIdentifyBeep: (args) => modernExtend.enumLookup({
1581
1570
  name: 'identify_beep',
1582
1571
  lookup: { short: 0, '1_sec': 1, '2_sec': 2 },