zigbee-herdsman-converters 19.2.0 → 19.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 (83) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/converters/toZigbee.d.ts.map +1 -1
  3. package/converters/toZigbee.js +19 -19
  4. package/converters/toZigbee.js.map +1 -1
  5. package/devices/atlantic.d.ts.map +1 -1
  6. package/devices/atlantic.js +6 -5
  7. package/devices/atlantic.js.map +1 -1
  8. package/devices/bosch.js +1 -1
  9. package/devices/bosch.js.map +1 -1
  10. package/devices/centralite.d.ts.map +1 -1
  11. package/devices/centralite.js +2 -1
  12. package/devices/centralite.js.map +1 -1
  13. package/devices/ctm.d.ts.map +1 -1
  14. package/devices/ctm.js +36 -35
  15. package/devices/ctm.js.map +1 -1
  16. package/devices/danfoss.d.ts.map +1 -1
  17. package/devices/danfoss.js +4 -3
  18. package/devices/danfoss.js.map +1 -1
  19. package/devices/datek.d.ts.map +1 -1
  20. package/devices/datek.js +3 -2
  21. package/devices/datek.js.map +1 -1
  22. package/devices/develco.d.ts.map +1 -1
  23. package/devices/develco.js +2 -1
  24. package/devices/develco.js.map +1 -1
  25. package/devices/eurotronic.d.ts.map +1 -1
  26. package/devices/eurotronic.js +2 -1
  27. package/devices/eurotronic.js.map +1 -1
  28. package/devices/giex.d.ts.map +1 -1
  29. package/devices/giex.js +4 -0
  30. package/devices/giex.js.map +1 -1
  31. package/devices/lumi.js +2 -2
  32. package/devices/lumi.js.map +1 -1
  33. package/devices/meazon.d.ts.map +1 -1
  34. package/devices/meazon.js +3 -2
  35. package/devices/meazon.js.map +1 -1
  36. package/devices/namron.d.ts.map +1 -1
  37. package/devices/namron.js +43 -47
  38. package/devices/namron.js.map +1 -1
  39. package/devices/nodon.d.ts.map +1 -1
  40. package/devices/nodon.js +4 -3
  41. package/devices/nodon.js.map +1 -1
  42. package/devices/philips.d.ts.map +1 -1
  43. package/devices/philips.js +10 -9
  44. package/devices/philips.js.map +1 -1
  45. package/devices/schneider_electric.d.ts.map +1 -1
  46. package/devices/schneider_electric.js +23 -1
  47. package/devices/schneider_electric.js.map +1 -1
  48. package/devices/sinope.d.ts.map +1 -1
  49. package/devices/sinope.js +2 -1
  50. package/devices/sinope.js.map +1 -1
  51. package/devices/smartthings.d.ts.map +1 -1
  52. package/devices/smartthings.js +5 -4
  53. package/devices/smartthings.js.map +1 -1
  54. package/devices/sonoff.d.ts.map +1 -1
  55. package/devices/sonoff.js +4 -3
  56. package/devices/sonoff.js.map +1 -1
  57. package/devices/sunricher.d.ts.map +1 -1
  58. package/devices/sunricher.js +16 -15
  59. package/devices/sunricher.js.map +1 -1
  60. package/devices/tuya.d.ts.map +1 -1
  61. package/devices/tuya.js +3 -1
  62. package/devices/tuya.js.map +1 -1
  63. package/devices/viessmann.d.ts.map +1 -1
  64. package/devices/viessmann.js +2 -1
  65. package/devices/viessmann.js.map +1 -1
  66. package/index.d.ts.map +1 -1
  67. package/index.js +3 -2
  68. package/index.js.map +1 -1
  69. package/lib/generateDefinition.d.ts.map +1 -1
  70. package/lib/generateDefinition.js +53 -35
  71. package/lib/generateDefinition.js.map +1 -1
  72. package/lib/legrand.d.ts +2 -1
  73. package/lib/legrand.d.ts.map +1 -1
  74. package/lib/legrand.js +2 -1
  75. package/lib/legrand.js.map +1 -1
  76. package/lib/lumi.d.ts +2 -0
  77. package/lib/lumi.d.ts.map +1 -1
  78. package/lib/lumi.js +5 -1
  79. package/lib/lumi.js.map +1 -1
  80. package/lib/modernExtend.d.ts.map +1 -1
  81. package/lib/modernExtend.js +21 -6
  82. package/lib/modernExtend.js.map +1 -1
  83. package/package.json +6 -6
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ const zigbee_herdsman_1 = require("zigbee-herdsman");
29
30
  const exposes = __importStar(require("../lib/exposes"));
30
31
  const fromZigbee_1 = __importDefault(require("../converters/fromZigbee"));
31
32
  const legacy = __importStar(require("../lib/legacy"));
@@ -2185,7 +2186,7 @@ const definitions = [
2185
2186
  const endpoint = device.getEndpoint(1);
2186
2187
  await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'genOnOff', 'manuSpecificPhilips']);
2187
2188
  await reporting.batteryPercentageRemaining(endpoint);
2188
- const options = { manufacturerCode: 0x100B, disableDefaultResponse: true };
2189
+ const options = { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.SIGNIFY_NETHERLANDS_B_V, disableDefaultResponse: true };
2189
2190
  await endpoint.write('genBasic', { 0x0034: { value: 0, type: 48 } }, options);
2190
2191
  },
2191
2192
  },
@@ -2205,7 +2206,7 @@ const definitions = [
2205
2206
  const endpoint1 = device.getEndpoint(1);
2206
2207
  await reporting.bind(endpoint1, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
2207
2208
  const endpoint2 = device.getEndpoint(2);
2208
- const options = { manufacturerCode: 0x100B, disableDefaultResponse: true };
2209
+ const options = { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.SIGNIFY_NETHERLANDS_B_V, disableDefaultResponse: true };
2209
2210
  await endpoint2.write('genBasic', { 0x0031: { value: 0x000B, type: 0x19 } }, options);
2210
2211
  await reporting.bind(endpoint2, coordinatorEndpoint, ['manuSpecificPhilips', 'genPowerCfg']);
2211
2212
  await reporting.batteryPercentageRemaining(endpoint2);
@@ -2230,7 +2231,7 @@ const definitions = [
2230
2231
  configure: async (device, coordinatorEndpoint, logger) => {
2231
2232
  const endpoint = device.getEndpoint(1);
2232
2233
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl', 'manuSpecificPhilips', 'genPowerCfg']);
2233
- const options = { manufacturerCode: 0x100B, disableDefaultResponse: true };
2234
+ const options = { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.SIGNIFY_NETHERLANDS_B_V, disableDefaultResponse: true };
2234
2235
  await endpoint.write('genBasic', { 0x0031: { value: 0x000B, type: 0x19 } }, options);
2235
2236
  await reporting.batteryPercentageRemaining(endpoint);
2236
2237
  },
@@ -2247,7 +2248,7 @@ const definitions = [
2247
2248
  configure: async (device, coordinatorEndpoint, logger) => {
2248
2249
  const endpoint = device.getEndpoint(1);
2249
2250
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
2250
- const options = { manufacturerCode: 0x100B, disableDefaultResponse: true };
2251
+ const options = { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.SIGNIFY_NETHERLANDS_B_V, disableDefaultResponse: true };
2251
2252
  await endpoint.write('genBasic', { 0x0031: { value: 0x000B, type: 0x19 } }, options);
2252
2253
  await reporting.bind(endpoint, coordinatorEndpoint, ['manuSpecificPhilips', 'genPowerCfg']);
2253
2254
  await reporting.batteryPercentageRemaining(endpoint);
@@ -2279,7 +2280,7 @@ const definitions = [
2279
2280
  await reporting.illuminance(endpoint);
2280
2281
  // read occupancy_timeout and motion_sensitivity
2281
2282
  await endpoint.read('msOccupancySensing', ['pirOToUDelay']);
2282
- await endpoint.read('msOccupancySensing', [48], { manufacturerCode: 4107 });
2283
+ await endpoint.read('msOccupancySensing', [48], { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.SIGNIFY_NETHERLANDS_B_V });
2283
2284
  },
2284
2285
  ota: ota.zigbeeOTA,
2285
2286
  },
@@ -2308,7 +2309,7 @@ const definitions = [
2308
2309
  await reporting.illuminance(endpoint);
2309
2310
  // read occupancy_timeout and motion_sensitivity
2310
2311
  await endpoint.read('msOccupancySensing', ['pirOToUDelay']);
2311
- await endpoint.read('msOccupancySensing', [48], { manufacturerCode: 4107 });
2312
+ await endpoint.read('msOccupancySensing', [48], { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.SIGNIFY_NETHERLANDS_B_V });
2312
2313
  },
2313
2314
  ota: ota.zigbeeOTA,
2314
2315
  },
@@ -2383,7 +2384,7 @@ const definitions = [
2383
2384
  await reporting.illuminance(endpoint);
2384
2385
  // read occupancy_timeout and motion_sensitivity
2385
2386
  await endpoint.read('msOccupancySensing', ['pirOToUDelay']);
2386
- await endpoint.read('msOccupancySensing', [48], { manufacturerCode: 4107 });
2387
+ await endpoint.read('msOccupancySensing', [48], { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.SIGNIFY_NETHERLANDS_B_V });
2387
2388
  },
2388
2389
  },
2389
2390
  {
@@ -2408,7 +2409,7 @@ const definitions = [
2408
2409
  await reporting.illuminance(endpoint);
2409
2410
  // read occupancy_timeout and motion_sensitivity
2410
2411
  await endpoint.read('msOccupancySensing', ['pirOToUDelay']);
2411
- await endpoint.read('msOccupancySensing', [48], { manufacturerCode: 4107 });
2412
+ await endpoint.read('msOccupancySensing', [48], { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.SIGNIFY_NETHERLANDS_B_V });
2412
2413
  },
2413
2414
  // Temporary disable until OTA is available: https://github.com/Koenkk/zigbee2mqtt/issues/14923
2414
2415
  // ota: ota.zigbeeOTA,
@@ -2932,7 +2933,7 @@ const definitions = [
2932
2933
  configure: async (device, coordinatorEndpoint, logger) => {
2933
2934
  const endpoint = device.getEndpoint(1);
2934
2935
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl', 'manuSpecificPhilips', 'genPowerCfg']);
2935
- const options = { manufacturerCode: 0x100B, disableDefaultResponse: true };
2936
+ const options = { manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.SIGNIFY_NETHERLANDS_B_V, disableDefaultResponse: true };
2936
2937
  await endpoint.write('genBasic', { 0x0031: { value: 0x000B, type: 0x19 } }, options);
2937
2938
  await reporting.batteryPercentageRemaining(endpoint);
2938
2939
  },