@zwave-js/cc 11.14.0 → 12.0.0-beta.1
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/build/cc/AlarmSensorCC.js +19 -7
- package/build/cc/AlarmSensorCC.js.map +1 -1
- package/build/cc/AssociationCC.js +29 -11
- package/build/cc/AssociationCC.js.map +1 -1
- package/build/cc/AssociationGroupInfoCC.js +32 -11
- package/build/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/cc/BarrierOperatorCC.js +107 -92
- package/build/cc/BarrierOperatorCC.js.map +1 -1
- package/build/cc/BasicCC.js +63 -58
- package/build/cc/BasicCC.js.map +1 -1
- package/build/cc/BatteryCC.js +26 -7
- package/build/cc/BatteryCC.js.map +1 -1
- package/build/cc/BinarySensorCC.js +16 -6
- package/build/cc/BinarySensorCC.js.map +1 -1
- package/build/cc/BinarySwitchCC.js +56 -50
- package/build/cc/BinarySwitchCC.js.map +1 -1
- package/build/cc/CRC16CC.js +9 -5
- package/build/cc/CRC16CC.js.map +1 -1
- package/build/cc/CentralSceneCC.js +27 -10
- package/build/cc/CentralSceneCC.js.map +1 -1
- package/build/cc/ClimateControlScheduleCC.js +31 -11
- package/build/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/cc/ClockCC.js +16 -5
- package/build/cc/ClockCC.js.map +1 -1
- package/build/cc/ColorSwitchCC.js +33 -10
- package/build/cc/ColorSwitchCC.js.map +1 -1
- package/build/cc/ConfigurationCC.js +84 -24
- package/build/cc/ConfigurationCC.js.map +1 -1
- package/build/cc/DeviceResetLocallyCC.js +6 -3
- package/build/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/cc/DoorLockCC.js +63 -12
- package/build/cc/DoorLockCC.js.map +1 -1
- package/build/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/cc/DoorLockLoggingCC.js +17 -7
- package/build/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/cc/EnergyProductionCC.js +13 -5
- package/build/cc/EnergyProductionCC.js.map +1 -1
- package/build/cc/EntryControlCC.d.ts.map +1 -1
- package/build/cc/EntryControlCC.js +39 -14
- package/build/cc/EntryControlCC.js.map +1 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +69 -14
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/cc/HailCC.js +2 -1
- package/build/cc/HailCC.js.map +1 -1
- package/build/cc/HumidityControlModeCC.js +17 -7
- package/build/cc/HumidityControlModeCC.js.map +1 -1
- package/build/cc/HumidityControlOperatingStateCC.js +9 -4
- package/build/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/cc/HumidityControlSetpointCC.js +41 -14
- package/build/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/cc/InclusionControllerCC.js +12 -4
- package/build/cc/InclusionControllerCC.js.map +1 -1
- package/build/cc/IndicatorCC.js +32 -11
- package/build/cc/IndicatorCC.js.map +1 -1
- package/build/cc/IrrigationCC.js +112 -27
- package/build/cc/IrrigationCC.js.map +1 -1
- package/build/cc/LanguageCC.js +14 -5
- package/build/cc/LanguageCC.js.map +1 -1
- package/build/cc/LockCC.js +12 -5
- package/build/cc/LockCC.js.map +1 -1
- package/build/cc/ManufacturerProprietaryCC.js +12 -3
- package/build/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/cc/ManufacturerSpecificCC.js +19 -7
- package/build/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/cc/MeterCC.js +31 -10
- package/build/cc/MeterCC.js.map +1 -1
- package/build/cc/MultiChannelAssociationCC.js +30 -9
- package/build/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/cc/MultiChannelCC.js +61 -22
- package/build/cc/MultiChannelCC.js.map +1 -1
- package/build/cc/MultiCommandCC.js +8 -4
- package/build/cc/MultiCommandCC.js.map +1 -1
- package/build/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/cc/MultilevelSensorCC.js +27 -9
- package/build/cc/MultilevelSensorCC.js.map +1 -1
- package/build/cc/MultilevelSwitchCC.js +111 -95
- package/build/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/cc/NoOperationCC.js +4 -2
- package/build/cc/NoOperationCC.js.map +1 -1
- package/build/cc/NodeNamingCC.js +22 -10
- package/build/cc/NodeNamingCC.js.map +1 -1
- package/build/cc/NotificationCC.d.ts.map +1 -1
- package/build/cc/NotificationCC.js +43 -13
- package/build/cc/NotificationCC.js.map +1 -1
- package/build/cc/PowerlevelCC.js +26 -8
- package/build/cc/PowerlevelCC.js.map +1 -1
- package/build/cc/ProtectionCC.js +41 -16
- package/build/cc/ProtectionCC.js.map +1 -1
- package/build/cc/SceneActivationCC.js +8 -3
- package/build/cc/SceneActivationCC.js.map +1 -1
- package/build/cc/SceneActuatorConfigurationCC.js +17 -5
- package/build/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.js +17 -5
- package/build/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/cc/ScheduleEntryLockCC.js +109 -20
- package/build/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/cc/Security2CC.js +84 -32
- package/build/cc/Security2CC.js.map +1 -1
- package/build/cc/SecurityCC.js +47 -21
- package/build/cc/SecurityCC.js.map +1 -1
- package/build/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/cc/SoundSwitchCC.js +38 -13
- package/build/cc/SoundSwitchCC.js.map +1 -1
- package/build/cc/SupervisionCC.js +18 -6
- package/build/cc/SupervisionCC.js.map +1 -1
- package/build/cc/ThermostatFanModeCC.js +19 -7
- package/build/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/cc/ThermostatFanStateCC.js +9 -4
- package/build/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/cc/ThermostatModeCC.js +22 -10
- package/build/cc/ThermostatModeCC.js.map +1 -1
- package/build/cc/ThermostatOperatingStateCC.js +9 -4
- package/build/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/cc/ThermostatSetbackCC.js +15 -5
- package/build/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/cc/ThermostatSetpointCC.js +36 -13
- package/build/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/cc/TimeCC.js +32 -9
- package/build/cc/TimeCC.js.map +1 -1
- package/build/cc/TimeParametersCC.js +13 -5
- package/build/cc/TimeParametersCC.js.map +1 -1
- package/build/cc/TransportServiceCC.js +37 -15
- package/build/cc/TransportServiceCC.js.map +1 -1
- package/build/cc/UserCodeCC.d.ts.map +1 -1
- package/build/cc/UserCodeCC.js +77 -31
- package/build/cc/UserCodeCC.js.map +1 -1
- package/build/cc/VersionCC.js +41 -14
- package/build/cc/VersionCC.js.map +1 -1
- package/build/cc/WakeUpCC.js +27 -9
- package/build/cc/WakeUpCC.js.map +1 -1
- package/build/cc/WindowCoveringCC.js +114 -97
- package/build/cc/WindowCoveringCC.js.map +1 -1
- package/build/cc/ZWavePlusCC.js +13 -4
- package/build/cc/ZWavePlusCC.js.map +1 -1
- package/build/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/cc/ZWaveProtocolCC.js +173 -48
- package/build/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +19 -7
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/lib/API.js +10 -3
- package/build/lib/API.js.map +1 -1
- package/build/lib/CommandClass.js +28 -7
- package/build/lib/CommandClass.js.map +1 -1
- package/build/lib/Security2/Extension.js +18 -6
- package/build/lib/Security2/Extension.js.map +1 -1
- package/package.json +33 -31
|
@@ -417,6 +417,9 @@ function configValueToString(value) {
|
|
|
417
417
|
return [...value].join(", ");
|
|
418
418
|
}
|
|
419
419
|
class ConfigurationCCError extends safe_1.ZWaveError {
|
|
420
|
+
message;
|
|
421
|
+
code;
|
|
422
|
+
argument;
|
|
420
423
|
constructor(message, code, argument) {
|
|
421
424
|
super(message, code);
|
|
422
425
|
this.message = message;
|
|
@@ -537,7 +540,7 @@ function getParamInformationFromConfigFile(applHost, nodeId, endpointIndex) {
|
|
|
537
540
|
return deviceConfig?.endpoints?.get(endpointIndex)?.paramInformation;
|
|
538
541
|
}
|
|
539
542
|
}
|
|
540
|
-
let ConfigurationCCAPI =
|
|
543
|
+
let ConfigurationCCAPI = class ConfigurationCCAPI extends API_1.CCAPI {
|
|
541
544
|
supportsCommand(cmd) {
|
|
542
545
|
switch (cmd) {
|
|
543
546
|
case _Types_1.ConfigurationCommand.Get:
|
|
@@ -1019,10 +1022,11 @@ let ConfigurationCCAPI = exports.ConfigurationCCAPI = class ConfigurationCCAPI e
|
|
|
1019
1022
|
}
|
|
1020
1023
|
}
|
|
1021
1024
|
};
|
|
1025
|
+
exports.ConfigurationCCAPI = ConfigurationCCAPI;
|
|
1022
1026
|
exports.ConfigurationCCAPI = ConfigurationCCAPI = __decorate([
|
|
1023
1027
|
(0, CommandClassDecorators_1.API)(safe_1.CommandClasses.Configuration)
|
|
1024
1028
|
], ConfigurationCCAPI);
|
|
1025
|
-
let ConfigurationCC =
|
|
1029
|
+
let ConfigurationCC = class ConfigurationCC extends CommandClass_1.CommandClass {
|
|
1026
1030
|
async interview(applHost) {
|
|
1027
1031
|
const node = this.getNode(applHost);
|
|
1028
1032
|
const endpoint = this.getEndpoint(applHost);
|
|
@@ -1402,12 +1406,13 @@ alters capabilities: ${!!properties.altersCapabilities}`;
|
|
|
1402
1406
|
return super.translateProperty(applHost, property, propertyKey);
|
|
1403
1407
|
}
|
|
1404
1408
|
};
|
|
1409
|
+
exports.ConfigurationCC = ConfigurationCC;
|
|
1405
1410
|
exports.ConfigurationCC = ConfigurationCC = __decorate([
|
|
1406
1411
|
(0, CommandClassDecorators_1.commandClass)(safe_1.CommandClasses.Configuration),
|
|
1407
1412
|
(0, CommandClassDecorators_1.implementedVersion)(4),
|
|
1408
1413
|
(0, CommandClassDecorators_1.ccValues)(exports.ConfigurationCCValues)
|
|
1409
1414
|
], ConfigurationCC);
|
|
1410
|
-
let ConfigurationCCReport =
|
|
1415
|
+
let ConfigurationCCReport = class ConfigurationCCReport extends ConfigurationCC {
|
|
1411
1416
|
constructor(host, options) {
|
|
1412
1417
|
super(host, options);
|
|
1413
1418
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1419,7 +1424,7 @@ let ConfigurationCCReport = exports.ConfigurationCCReport = class ConfigurationC
|
|
|
1419
1424
|
(0, safe_1.validatePayload)(this.valueSize >= 1, this.valueSize <= 4, this.payload.length >= 2 + this.valueSize);
|
|
1420
1425
|
// Default to parsing the value as SignedInteger, like the specs say.
|
|
1421
1426
|
// We try to re-interpret the value in persistValues()
|
|
1422
|
-
this.value = parseValue(this.payload.
|
|
1427
|
+
this.value = parseValue(this.payload.subarray(2), this.valueSize, safe_1.ConfigValueFormat.SignedInteger);
|
|
1423
1428
|
}
|
|
1424
1429
|
else {
|
|
1425
1430
|
this.parameter = options.parameter;
|
|
@@ -1428,6 +1433,10 @@ let ConfigurationCCReport = exports.ConfigurationCCReport = class ConfigurationC
|
|
|
1428
1433
|
this.valueFormat = options.valueFormat;
|
|
1429
1434
|
}
|
|
1430
1435
|
}
|
|
1436
|
+
parameter;
|
|
1437
|
+
value;
|
|
1438
|
+
valueSize;
|
|
1439
|
+
valueFormat; // only used for serialization
|
|
1431
1440
|
persistValues(applHost) {
|
|
1432
1441
|
if (!super.persistValues(applHost))
|
|
1433
1442
|
return false;
|
|
@@ -1499,6 +1508,7 @@ let ConfigurationCCReport = exports.ConfigurationCCReport = class ConfigurationC
|
|
|
1499
1508
|
};
|
|
1500
1509
|
}
|
|
1501
1510
|
};
|
|
1511
|
+
exports.ConfigurationCCReport = ConfigurationCCReport;
|
|
1502
1512
|
exports.ConfigurationCCReport = ConfigurationCCReport = __decorate([
|
|
1503
1513
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.Report)
|
|
1504
1514
|
], ConfigurationCCReport);
|
|
@@ -1506,7 +1516,7 @@ function testResponseForConfigurationGet(sent, received) {
|
|
|
1506
1516
|
// We expect a Configuration Report that matches the requested parameter
|
|
1507
1517
|
return (sent.parameter === received.parameter || sent.allowUnexpectedResponse);
|
|
1508
1518
|
}
|
|
1509
|
-
let ConfigurationCCGet =
|
|
1519
|
+
let ConfigurationCCGet = class ConfigurationCCGet extends ConfigurationCC {
|
|
1510
1520
|
constructor(host, options) {
|
|
1511
1521
|
super(host, options);
|
|
1512
1522
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1520,6 +1530,8 @@ let ConfigurationCCGet = exports.ConfigurationCCGet = class ConfigurationCCGet e
|
|
|
1520
1530
|
?? false;
|
|
1521
1531
|
}
|
|
1522
1532
|
}
|
|
1533
|
+
parameter;
|
|
1534
|
+
allowUnexpectedResponse;
|
|
1523
1535
|
serialize() {
|
|
1524
1536
|
this.payload = Buffer.from([this.parameter]);
|
|
1525
1537
|
return super.serialize();
|
|
@@ -1531,11 +1543,12 @@ let ConfigurationCCGet = exports.ConfigurationCCGet = class ConfigurationCCGet e
|
|
|
1531
1543
|
};
|
|
1532
1544
|
}
|
|
1533
1545
|
};
|
|
1546
|
+
exports.ConfigurationCCGet = ConfigurationCCGet;
|
|
1534
1547
|
exports.ConfigurationCCGet = ConfigurationCCGet = __decorate([
|
|
1535
1548
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.Get),
|
|
1536
1549
|
(0, CommandClassDecorators_1.expectedCCResponse)(ConfigurationCCReport, testResponseForConfigurationGet)
|
|
1537
1550
|
], ConfigurationCCGet);
|
|
1538
|
-
let ConfigurationCCSet =
|
|
1551
|
+
let ConfigurationCCSet = class ConfigurationCCSet extends ConfigurationCC {
|
|
1539
1552
|
constructor(host, options) {
|
|
1540
1553
|
super(host, options);
|
|
1541
1554
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1546,7 +1559,7 @@ let ConfigurationCCSet = exports.ConfigurationCCSet = class ConfigurationCCSet e
|
|
|
1546
1559
|
// Ensure we received a valid report
|
|
1547
1560
|
(0, safe_1.validatePayload)(this.valueSize >= 1, this.valueSize <= 4, this.payload.length >= 2 + this.valueSize);
|
|
1548
1561
|
// Parse the value as signed integer. We don't know the format here.
|
|
1549
|
-
this.value = parseValue(this.payload.
|
|
1562
|
+
this.value = parseValue(this.payload.subarray(2), this.valueSize, safe_1.ConfigValueFormat.SignedInteger);
|
|
1550
1563
|
}
|
|
1551
1564
|
else {
|
|
1552
1565
|
this.parameter = options.parameter;
|
|
@@ -1567,6 +1580,11 @@ let ConfigurationCCSet = exports.ConfigurationCCSet = class ConfigurationCCSet e
|
|
|
1567
1580
|
}
|
|
1568
1581
|
}
|
|
1569
1582
|
}
|
|
1583
|
+
resetToDefault;
|
|
1584
|
+
parameter;
|
|
1585
|
+
valueSize;
|
|
1586
|
+
valueFormat;
|
|
1587
|
+
value;
|
|
1570
1588
|
serialize() {
|
|
1571
1589
|
const valueSize = this.resetToDefault ? 1 : this.valueSize;
|
|
1572
1590
|
const payloadLength = 2 + valueSize;
|
|
@@ -1610,6 +1628,7 @@ let ConfigurationCCSet = exports.ConfigurationCCSet = class ConfigurationCCSet e
|
|
|
1610
1628
|
};
|
|
1611
1629
|
}
|
|
1612
1630
|
};
|
|
1631
|
+
exports.ConfigurationCCSet = ConfigurationCCSet;
|
|
1613
1632
|
exports.ConfigurationCCSet = ConfigurationCCSet = __decorate([
|
|
1614
1633
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.Set),
|
|
1615
1634
|
(0, CommandClassDecorators_1.useSupervision)()
|
|
@@ -1617,7 +1636,7 @@ exports.ConfigurationCCSet = ConfigurationCCSet = __decorate([
|
|
|
1617
1636
|
function getResponseForBulkSet(cc) {
|
|
1618
1637
|
return cc.handshake ? ConfigurationCCBulkReport : undefined;
|
|
1619
1638
|
}
|
|
1620
|
-
let ConfigurationCCBulkSet =
|
|
1639
|
+
let ConfigurationCCBulkSet = class ConfigurationCCBulkSet extends ConfigurationCC {
|
|
1621
1640
|
constructor(host, options) {
|
|
1622
1641
|
super(host, options);
|
|
1623
1642
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1647,21 +1666,27 @@ let ConfigurationCCBulkSet = exports.ConfigurationCCBulkSet = class Configuratio
|
|
|
1647
1666
|
}
|
|
1648
1667
|
}
|
|
1649
1668
|
}
|
|
1669
|
+
_parameters;
|
|
1650
1670
|
get parameters() {
|
|
1651
1671
|
return this._parameters;
|
|
1652
1672
|
}
|
|
1673
|
+
_resetToDefault;
|
|
1653
1674
|
get resetToDefault() {
|
|
1654
1675
|
return this._resetToDefault;
|
|
1655
1676
|
}
|
|
1677
|
+
_valueSize;
|
|
1656
1678
|
get valueSize() {
|
|
1657
1679
|
return this._valueSize;
|
|
1658
1680
|
}
|
|
1681
|
+
_valueFormat;
|
|
1659
1682
|
get valueFormat() {
|
|
1660
1683
|
return this._valueFormat;
|
|
1661
1684
|
}
|
|
1685
|
+
_values;
|
|
1662
1686
|
get values() {
|
|
1663
1687
|
return this._values;
|
|
1664
1688
|
}
|
|
1689
|
+
_handshake;
|
|
1665
1690
|
get handshake() {
|
|
1666
1691
|
return this._handshake;
|
|
1667
1692
|
}
|
|
@@ -1710,15 +1735,15 @@ let ConfigurationCCBulkSet = exports.ConfigurationCCBulkSet = class Configuratio
|
|
|
1710
1735
|
};
|
|
1711
1736
|
}
|
|
1712
1737
|
};
|
|
1738
|
+
exports.ConfigurationCCBulkSet = ConfigurationCCBulkSet;
|
|
1713
1739
|
exports.ConfigurationCCBulkSet = ConfigurationCCBulkSet = __decorate([
|
|
1714
1740
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.BulkSet),
|
|
1715
1741
|
(0, CommandClassDecorators_1.expectedCCResponse)(getResponseForBulkSet),
|
|
1716
1742
|
(0, CommandClassDecorators_1.useSupervision)()
|
|
1717
1743
|
], ConfigurationCCBulkSet);
|
|
1718
|
-
let ConfigurationCCBulkReport =
|
|
1744
|
+
let ConfigurationCCBulkReport = class ConfigurationCCBulkReport extends ConfigurationCC {
|
|
1719
1745
|
constructor(host, options) {
|
|
1720
1746
|
super(host, options);
|
|
1721
|
-
this._values = new Map();
|
|
1722
1747
|
// Ensure we received enough bytes for the preamble
|
|
1723
1748
|
(0, safe_1.validatePayload)(this.payload.length >= 5);
|
|
1724
1749
|
const firstParameter = this.payload.readUInt16BE(0);
|
|
@@ -1734,7 +1759,7 @@ let ConfigurationCCBulkReport = exports.ConfigurationCCBulkReport = class Config
|
|
|
1734
1759
|
this._values.set(param,
|
|
1735
1760
|
// Default to parsing the value as SignedInteger, like the specs say.
|
|
1736
1761
|
// We try to re-interpret the value in persistValues()
|
|
1737
|
-
parseValue(this.payload.
|
|
1762
|
+
parseValue(this.payload.subarray(5 + i * this.valueSize), this.valueSize, safe_1.ConfigValueFormat.SignedInteger));
|
|
1738
1763
|
}
|
|
1739
1764
|
}
|
|
1740
1765
|
persistValues(applHost) {
|
|
@@ -1756,6 +1781,7 @@ let ConfigurationCCBulkReport = exports.ConfigurationCCBulkReport = class Config
|
|
|
1756
1781
|
}
|
|
1757
1782
|
return true;
|
|
1758
1783
|
}
|
|
1784
|
+
_reportsToFollow;
|
|
1759
1785
|
get reportsToFollow() {
|
|
1760
1786
|
return this._reportsToFollow;
|
|
1761
1787
|
}
|
|
@@ -1766,15 +1792,19 @@ let ConfigurationCCBulkReport = exports.ConfigurationCCBulkReport = class Config
|
|
|
1766
1792
|
expectMoreMessages() {
|
|
1767
1793
|
return this._reportsToFollow > 0;
|
|
1768
1794
|
}
|
|
1795
|
+
_defaultValues;
|
|
1769
1796
|
get defaultValues() {
|
|
1770
1797
|
return this._defaultValues;
|
|
1771
1798
|
}
|
|
1799
|
+
_isHandshakeResponse;
|
|
1772
1800
|
get isHandshakeResponse() {
|
|
1773
1801
|
return this._isHandshakeResponse;
|
|
1774
1802
|
}
|
|
1803
|
+
_valueSize;
|
|
1775
1804
|
get valueSize() {
|
|
1776
1805
|
return this._valueSize;
|
|
1777
1806
|
}
|
|
1807
|
+
_values = new Map();
|
|
1778
1808
|
get values() {
|
|
1779
1809
|
return this._values;
|
|
1780
1810
|
}
|
|
@@ -1797,10 +1827,11 @@ let ConfigurationCCBulkReport = exports.ConfigurationCCBulkReport = class Config
|
|
|
1797
1827
|
};
|
|
1798
1828
|
}
|
|
1799
1829
|
};
|
|
1830
|
+
exports.ConfigurationCCBulkReport = ConfigurationCCBulkReport;
|
|
1800
1831
|
exports.ConfigurationCCBulkReport = ConfigurationCCBulkReport = __decorate([
|
|
1801
1832
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.BulkReport)
|
|
1802
1833
|
], ConfigurationCCBulkReport);
|
|
1803
|
-
let ConfigurationCCBulkGet =
|
|
1834
|
+
let ConfigurationCCBulkGet = class ConfigurationCCBulkGet extends ConfigurationCC {
|
|
1804
1835
|
constructor(host, options) {
|
|
1805
1836
|
super(host, options);
|
|
1806
1837
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1814,6 +1845,7 @@ let ConfigurationCCBulkGet = exports.ConfigurationCCBulkGet = class Configuratio
|
|
|
1814
1845
|
}
|
|
1815
1846
|
}
|
|
1816
1847
|
}
|
|
1848
|
+
_parameters;
|
|
1817
1849
|
get parameters() {
|
|
1818
1850
|
return this._parameters;
|
|
1819
1851
|
}
|
|
@@ -1830,11 +1862,12 @@ let ConfigurationCCBulkGet = exports.ConfigurationCCBulkGet = class Configuratio
|
|
|
1830
1862
|
};
|
|
1831
1863
|
}
|
|
1832
1864
|
};
|
|
1865
|
+
exports.ConfigurationCCBulkGet = ConfigurationCCBulkGet;
|
|
1833
1866
|
exports.ConfigurationCCBulkGet = ConfigurationCCBulkGet = __decorate([
|
|
1834
1867
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.BulkGet),
|
|
1835
1868
|
(0, CommandClassDecorators_1.expectedCCResponse)(ConfigurationCCBulkReport)
|
|
1836
1869
|
], ConfigurationCCBulkGet);
|
|
1837
|
-
let ConfigurationCCNameReport =
|
|
1870
|
+
let ConfigurationCCNameReport = class ConfigurationCCNameReport extends ConfigurationCC {
|
|
1838
1871
|
constructor(host, options) {
|
|
1839
1872
|
super(host, options);
|
|
1840
1873
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1846,7 +1879,7 @@ let ConfigurationCCNameReport = exports.ConfigurationCCNameReport = class Config
|
|
|
1846
1879
|
// If more reports follow, the info must at least be one byte
|
|
1847
1880
|
(0, safe_1.validatePayload)(this.payload.length >= 4);
|
|
1848
1881
|
}
|
|
1849
|
-
this.name = this.payload.
|
|
1882
|
+
this.name = this.payload.subarray(3).toString("utf8");
|
|
1850
1883
|
}
|
|
1851
1884
|
else {
|
|
1852
1885
|
this.parameter = options.parameter;
|
|
@@ -1854,6 +1887,9 @@ let ConfigurationCCNameReport = exports.ConfigurationCCNameReport = class Config
|
|
|
1854
1887
|
this.reportsToFollow = options.reportsToFollow;
|
|
1855
1888
|
}
|
|
1856
1889
|
}
|
|
1890
|
+
parameter;
|
|
1891
|
+
name;
|
|
1892
|
+
reportsToFollow;
|
|
1857
1893
|
persistValues(applHost) {
|
|
1858
1894
|
if (!super.persistValues(applHost))
|
|
1859
1895
|
return false;
|
|
@@ -1916,10 +1952,11 @@ let ConfigurationCCNameReport = exports.ConfigurationCCNameReport = class Config
|
|
|
1916
1952
|
};
|
|
1917
1953
|
}
|
|
1918
1954
|
};
|
|
1955
|
+
exports.ConfigurationCCNameReport = ConfigurationCCNameReport;
|
|
1919
1956
|
exports.ConfigurationCCNameReport = ConfigurationCCNameReport = __decorate([
|
|
1920
1957
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.NameReport)
|
|
1921
1958
|
], ConfigurationCCNameReport);
|
|
1922
|
-
let ConfigurationCCNameGet =
|
|
1959
|
+
let ConfigurationCCNameGet = class ConfigurationCCNameGet extends ConfigurationCC {
|
|
1923
1960
|
constructor(host, options) {
|
|
1924
1961
|
super(host, options);
|
|
1925
1962
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1930,6 +1967,7 @@ let ConfigurationCCNameGet = exports.ConfigurationCCNameGet = class Configuratio
|
|
|
1930
1967
|
this.parameter = options.parameter;
|
|
1931
1968
|
}
|
|
1932
1969
|
}
|
|
1970
|
+
parameter;
|
|
1933
1971
|
serialize() {
|
|
1934
1972
|
this.payload = Buffer.allocUnsafe(2);
|
|
1935
1973
|
this.payload.writeUInt16BE(this.parameter, 0);
|
|
@@ -1942,11 +1980,12 @@ let ConfigurationCCNameGet = exports.ConfigurationCCNameGet = class Configuratio
|
|
|
1942
1980
|
};
|
|
1943
1981
|
}
|
|
1944
1982
|
};
|
|
1983
|
+
exports.ConfigurationCCNameGet = ConfigurationCCNameGet;
|
|
1945
1984
|
exports.ConfigurationCCNameGet = ConfigurationCCNameGet = __decorate([
|
|
1946
1985
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.NameGet),
|
|
1947
1986
|
(0, CommandClassDecorators_1.expectedCCResponse)(ConfigurationCCNameReport)
|
|
1948
1987
|
], ConfigurationCCNameGet);
|
|
1949
|
-
let ConfigurationCCInfoReport =
|
|
1988
|
+
let ConfigurationCCInfoReport = class ConfigurationCCInfoReport extends ConfigurationCC {
|
|
1950
1989
|
constructor(host, options) {
|
|
1951
1990
|
super(host, options);
|
|
1952
1991
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -1958,7 +1997,7 @@ let ConfigurationCCInfoReport = exports.ConfigurationCCInfoReport = class Config
|
|
|
1958
1997
|
// If more reports follow, the info must at least be one byte
|
|
1959
1998
|
(0, safe_1.validatePayload)(this.payload.length >= 4);
|
|
1960
1999
|
}
|
|
1961
|
-
this.info = this.payload.
|
|
2000
|
+
this.info = this.payload.subarray(3).toString("utf8");
|
|
1962
2001
|
}
|
|
1963
2002
|
else {
|
|
1964
2003
|
this.parameter = options.parameter;
|
|
@@ -1966,6 +2005,9 @@ let ConfigurationCCInfoReport = exports.ConfigurationCCInfoReport = class Config
|
|
|
1966
2005
|
this.reportsToFollow = options.reportsToFollow;
|
|
1967
2006
|
}
|
|
1968
2007
|
}
|
|
2008
|
+
parameter;
|
|
2009
|
+
info;
|
|
2010
|
+
reportsToFollow;
|
|
1969
2011
|
persistValues(applHost) {
|
|
1970
2012
|
if (!super.persistValues(applHost))
|
|
1971
2013
|
return false;
|
|
@@ -2035,10 +2077,11 @@ let ConfigurationCCInfoReport = exports.ConfigurationCCInfoReport = class Config
|
|
|
2035
2077
|
};
|
|
2036
2078
|
}
|
|
2037
2079
|
};
|
|
2080
|
+
exports.ConfigurationCCInfoReport = ConfigurationCCInfoReport;
|
|
2038
2081
|
exports.ConfigurationCCInfoReport = ConfigurationCCInfoReport = __decorate([
|
|
2039
2082
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.InfoReport)
|
|
2040
2083
|
], ConfigurationCCInfoReport);
|
|
2041
|
-
let ConfigurationCCInfoGet =
|
|
2084
|
+
let ConfigurationCCInfoGet = class ConfigurationCCInfoGet extends ConfigurationCC {
|
|
2042
2085
|
constructor(host, options) {
|
|
2043
2086
|
super(host, options);
|
|
2044
2087
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -2049,6 +2092,7 @@ let ConfigurationCCInfoGet = exports.ConfigurationCCInfoGet = class Configuratio
|
|
|
2049
2092
|
this.parameter = options.parameter;
|
|
2050
2093
|
}
|
|
2051
2094
|
}
|
|
2095
|
+
parameter;
|
|
2052
2096
|
serialize() {
|
|
2053
2097
|
this.payload = Buffer.allocUnsafe(2);
|
|
2054
2098
|
this.payload.writeUInt16BE(this.parameter, 0);
|
|
@@ -2061,11 +2105,12 @@ let ConfigurationCCInfoGet = exports.ConfigurationCCInfoGet = class Configuratio
|
|
|
2061
2105
|
};
|
|
2062
2106
|
}
|
|
2063
2107
|
};
|
|
2108
|
+
exports.ConfigurationCCInfoGet = ConfigurationCCInfoGet;
|
|
2064
2109
|
exports.ConfigurationCCInfoGet = ConfigurationCCInfoGet = __decorate([
|
|
2065
2110
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.InfoGet),
|
|
2066
2111
|
(0, CommandClassDecorators_1.expectedCCResponse)(ConfigurationCCInfoReport)
|
|
2067
2112
|
], ConfigurationCCInfoGet);
|
|
2068
|
-
let ConfigurationCCPropertiesReport =
|
|
2113
|
+
let ConfigurationCCPropertiesReport = class ConfigurationCCPropertiesReport extends ConfigurationCC {
|
|
2069
2114
|
constructor(host, options) {
|
|
2070
2115
|
super(host, options);
|
|
2071
2116
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -2087,10 +2132,10 @@ let ConfigurationCCPropertiesReport = exports.ConfigurationCCPropertiesReport =
|
|
|
2087
2132
|
this.minValue = 0;
|
|
2088
2133
|
}
|
|
2089
2134
|
else {
|
|
2090
|
-
this.minValue = parseValue(this.payload.
|
|
2135
|
+
this.minValue = parseValue(this.payload.subarray(3), this.valueSize, this.valueFormat);
|
|
2091
2136
|
}
|
|
2092
|
-
this.maxValue = parseValue(this.payload.
|
|
2093
|
-
this.defaultValue = parseValue(this.payload.
|
|
2137
|
+
this.maxValue = parseValue(this.payload.subarray(3 + this.valueSize), this.valueSize, this.valueFormat);
|
|
2138
|
+
this.defaultValue = parseValue(this.payload.subarray(3 + 2 * this.valueSize), this.valueSize, this.valueFormat);
|
|
2094
2139
|
}
|
|
2095
2140
|
if (this.version < 4) {
|
|
2096
2141
|
// Read the last 2 bytes to work around nodes not omitting min/max value when their size is 0
|
|
@@ -2188,6 +2233,17 @@ let ConfigurationCCPropertiesReport = exports.ConfigurationCCPropertiesReport =
|
|
|
2188
2233
|
}
|
|
2189
2234
|
return true;
|
|
2190
2235
|
}
|
|
2236
|
+
parameter;
|
|
2237
|
+
valueSize;
|
|
2238
|
+
valueFormat;
|
|
2239
|
+
minValue;
|
|
2240
|
+
maxValue;
|
|
2241
|
+
defaultValue;
|
|
2242
|
+
nextParameter;
|
|
2243
|
+
altersCapabilities;
|
|
2244
|
+
isReadonly;
|
|
2245
|
+
isAdvanced;
|
|
2246
|
+
noBulkSupport;
|
|
2191
2247
|
serialize() {
|
|
2192
2248
|
this.payload = Buffer.allocUnsafe(3 // preamble
|
|
2193
2249
|
+ 3 * this.valueSize // min, max, default value
|
|
@@ -2252,10 +2308,11 @@ let ConfigurationCCPropertiesReport = exports.ConfigurationCCPropertiesReport =
|
|
|
2252
2308
|
};
|
|
2253
2309
|
}
|
|
2254
2310
|
};
|
|
2311
|
+
exports.ConfigurationCCPropertiesReport = ConfigurationCCPropertiesReport;
|
|
2255
2312
|
exports.ConfigurationCCPropertiesReport = ConfigurationCCPropertiesReport = __decorate([
|
|
2256
2313
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.PropertiesReport)
|
|
2257
2314
|
], ConfigurationCCPropertiesReport);
|
|
2258
|
-
let ConfigurationCCPropertiesGet =
|
|
2315
|
+
let ConfigurationCCPropertiesGet = class ConfigurationCCPropertiesGet extends ConfigurationCC {
|
|
2259
2316
|
constructor(host, options) {
|
|
2260
2317
|
super(host, options);
|
|
2261
2318
|
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
@@ -2266,6 +2323,7 @@ let ConfigurationCCPropertiesGet = exports.ConfigurationCCPropertiesGet = class
|
|
|
2266
2323
|
this.parameter = options.parameter;
|
|
2267
2324
|
}
|
|
2268
2325
|
}
|
|
2326
|
+
parameter;
|
|
2269
2327
|
serialize() {
|
|
2270
2328
|
this.payload = Buffer.allocUnsafe(2);
|
|
2271
2329
|
this.payload.writeUInt16BE(this.parameter, 0);
|
|
@@ -2278,12 +2336,14 @@ let ConfigurationCCPropertiesGet = exports.ConfigurationCCPropertiesGet = class
|
|
|
2278
2336
|
};
|
|
2279
2337
|
}
|
|
2280
2338
|
};
|
|
2339
|
+
exports.ConfigurationCCPropertiesGet = ConfigurationCCPropertiesGet;
|
|
2281
2340
|
exports.ConfigurationCCPropertiesGet = ConfigurationCCPropertiesGet = __decorate([
|
|
2282
2341
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.PropertiesGet),
|
|
2283
2342
|
(0, CommandClassDecorators_1.expectedCCResponse)(ConfigurationCCPropertiesReport)
|
|
2284
2343
|
], ConfigurationCCPropertiesGet);
|
|
2285
|
-
let ConfigurationCCDefaultReset =
|
|
2344
|
+
let ConfigurationCCDefaultReset = class ConfigurationCCDefaultReset extends ConfigurationCC {
|
|
2286
2345
|
};
|
|
2346
|
+
exports.ConfigurationCCDefaultReset = ConfigurationCCDefaultReset;
|
|
2287
2347
|
exports.ConfigurationCCDefaultReset = ConfigurationCCDefaultReset = __decorate([
|
|
2288
2348
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.ConfigurationCommand.DefaultReset)
|
|
2289
2349
|
], ConfigurationCCDefaultReset);
|