@zwave-js/cc 13.10.1 → 14.0.0-beta.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.
- package/build/cc/AlarmSensorCC.d.ts +31 -20
- package/build/cc/AlarmSensorCC.d.ts.map +1 -1
- package/build/cc/AlarmSensorCC.js +106 -87
- package/build/cc/AlarmSensorCC.js.map +1 -1
- package/build/cc/AssociationCC.d.ts +38 -32
- package/build/cc/AssociationCC.d.ts.map +1 -1
- package/build/cc/AssociationCC.js +193 -176
- package/build/cc/AssociationCC.js.map +1 -1
- package/build/cc/AssociationGroupInfoCC.d.ts +42 -36
- package/build/cc/AssociationGroupInfoCC.d.ts.map +1 -1
- package/build/cc/AssociationGroupInfoCC.js +218 -200
- package/build/cc/AssociationGroupInfoCC.js.map +1 -1
- package/build/cc/BarrierOperatorCC.d.ts +41 -24
- package/build/cc/BarrierOperatorCC.d.ts.map +1 -1
- package/build/cc/BarrierOperatorCC.js +143 -109
- package/build/cc/BarrierOperatorCC.js.map +1 -1
- package/build/cc/BasicCC.d.ts +22 -23
- package/build/cc/BasicCC.d.ts.map +1 -1
- package/build/cc/BasicCC.js +83 -77
- package/build/cc/BasicCC.js.map +1 -1
- package/build/cc/BatteryCC.d.ts +22 -14
- package/build/cc/BatteryCC.d.ts.map +1 -1
- package/build/cc/BatteryCC.js +116 -87
- package/build/cc/BatteryCC.js.map +1 -1
- package/build/cc/BinarySensorCC.d.ts +22 -19
- package/build/cc/BinarySensorCC.d.ts.map +1 -1
- package/build/cc/BinarySensorCC.js +103 -93
- package/build/cc/BinarySensorCC.js.map +1 -1
- package/build/cc/BinarySwitchCC.d.ts +20 -20
- package/build/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/cc/BinarySwitchCC.js +71 -59
- package/build/cc/BinarySwitchCC.js.map +1 -1
- package/build/cc/CRC16CC.d.ts +9 -9
- package/build/cc/CRC16CC.d.ts.map +1 -1
- package/build/cc/CRC16CC.js +36 -36
- package/build/cc/CRC16CC.js.map +1 -1
- package/build/cc/CentralSceneCC.d.ts +34 -16
- package/build/cc/CentralSceneCC.d.ts.map +1 -1
- package/build/cc/CentralSceneCC.js +116 -79
- package/build/cc/CentralSceneCC.js.map +1 -1
- package/build/cc/ClimateControlScheduleCC.d.ts +38 -21
- package/build/cc/ClimateControlScheduleCC.d.ts.map +1 -1
- package/build/cc/ClimateControlScheduleCC.js +113 -81
- package/build/cc/ClimateControlScheduleCC.js.map +1 -1
- package/build/cc/ClockCC.d.ts +18 -11
- package/build/cc/ClockCC.d.ts.map +1 -1
- package/build/cc/ClockCC.js +57 -43
- package/build/cc/ClockCC.js.map +1 -1
- package/build/cc/ColorSwitchCC.d.ts +37 -33
- package/build/cc/ColorSwitchCC.d.ts.map +1 -1
- package/build/cc/ColorSwitchCC.js +216 -189
- package/build/cc/ColorSwitchCC.js.map +1 -1
- package/build/cc/ConfigurationCC.d.ts +89 -74
- package/build/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/cc/ConfigurationCC.js +541 -485
- package/build/cc/ConfigurationCC.js.map +1 -1
- package/build/cc/DeviceResetLocallyCC.d.ts +3 -3
- package/build/cc/DeviceResetLocallyCC.d.ts.map +1 -1
- package/build/cc/DeviceResetLocallyCC.js +14 -14
- package/build/cc/DeviceResetLocallyCC.js.map +1 -1
- package/build/cc/DoorLockCC.d.ts +66 -27
- package/build/cc/DoorLockCC.d.ts.map +1 -1
- package/build/cc/DoorLockCC.js +288 -197
- package/build/cc/DoorLockCC.js.map +1 -1
- package/build/cc/DoorLockLoggingCC.d.ts +23 -13
- package/build/cc/DoorLockLoggingCC.d.ts.map +1 -1
- package/build/cc/DoorLockLoggingCC.js +81 -63
- package/build/cc/DoorLockLoggingCC.js.map +1 -1
- package/build/cc/EnergyProductionCC.d.ts +16 -14
- package/build/cc/EnergyProductionCC.d.ts.map +1 -1
- package/build/cc/EnergyProductionCC.js +58 -52
- package/build/cc/EnergyProductionCC.js.map +1 -1
- package/build/cc/EntryControlCC.d.ts +44 -18
- package/build/cc/EntryControlCC.d.ts.map +1 -1
- package/build/cc/EntryControlCC.js +163 -112
- package/build/cc/EntryControlCC.js.map +1 -1
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts +69 -34
- package/build/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
- package/build/cc/FirmwareUpdateMetaDataCC.js +311 -245
- package/build/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
- package/build/cc/HumidityControlModeCC.d.ts +24 -16
- package/build/cc/HumidityControlModeCC.d.ts.map +1 -1
- package/build/cc/HumidityControlModeCC.js +80 -65
- package/build/cc/HumidityControlModeCC.js.map +1 -1
- package/build/cc/HumidityControlOperatingStateCC.d.ts +11 -7
- package/build/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
- package/build/cc/HumidityControlOperatingStateCC.js +31 -22
- package/build/cc/HumidityControlOperatingStateCC.js.map +1 -1
- package/build/cc/HumidityControlSetpointCC.d.ts +68 -49
- package/build/cc/HumidityControlSetpointCC.d.ts.map +1 -1
- package/build/cc/HumidityControlSetpointCC.js +203 -181
- package/build/cc/HumidityControlSetpointCC.js.map +1 -1
- package/build/cc/InclusionControllerCC.d.ts +13 -11
- package/build/cc/InclusionControllerCC.d.ts.map +1 -1
- package/build/cc/InclusionControllerCC.js +49 -42
- package/build/cc/InclusionControllerCC.js.map +1 -1
- package/build/cc/IndicatorCC.d.ts +46 -39
- package/build/cc/IndicatorCC.d.ts.map +1 -1
- package/build/cc/IndicatorCC.js +298 -277
- package/build/cc/IndicatorCC.js.map +1 -1
- package/build/cc/IrrigationCC.d.ts +127 -57
- package/build/cc/IrrigationCC.d.ts.map +1 -1
- package/build/cc/IrrigationCC.js +496 -352
- package/build/cc/IrrigationCC.js.map +1 -1
- package/build/cc/LanguageCC.d.ts +17 -11
- package/build/cc/LanguageCC.d.ts.map +1 -1
- package/build/cc/LanguageCC.js +54 -44
- package/build/cc/LanguageCC.js.map +1 -1
- package/build/cc/LockCC.d.ts +16 -11
- package/build/cc/LockCC.d.ts.map +1 -1
- package/build/cc/LockCC.js +48 -38
- package/build/cc/LockCC.js.map +1 -1
- package/build/cc/ManufacturerProprietaryCC.d.ts +12 -11
- package/build/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
- package/build/cc/ManufacturerProprietaryCC.js +45 -50
- package/build/cc/ManufacturerProprietaryCC.js.map +1 -1
- package/build/cc/ManufacturerSpecificCC.d.ts +20 -13
- package/build/cc/ManufacturerSpecificCC.d.ts.map +1 -1
- package/build/cc/ManufacturerSpecificCC.js +79 -63
- package/build/cc/ManufacturerSpecificCC.js.map +1 -1
- package/build/cc/MeterCC.d.ts +30 -26
- package/build/cc/MeterCC.d.ts.map +1 -1
- package/build/cc/MeterCC.js +236 -204
- package/build/cc/MeterCC.js.map +1 -1
- package/build/cc/MultiChannelAssociationCC.d.ts +31 -26
- package/build/cc/MultiChannelAssociationCC.d.ts.map +1 -1
- package/build/cc/MultiChannelAssociationCC.js +177 -168
- package/build/cc/MultiChannelAssociationCC.js.map +1 -1
- package/build/cc/MultiChannelCC.d.ts +70 -49
- package/build/cc/MultiChannelCC.d.ts.map +1 -1
- package/build/cc/MultiChannelCC.js +377 -318
- package/build/cc/MultiChannelCC.js.map +1 -1
- package/build/cc/MultiCommandCC.d.ts +9 -9
- package/build/cc/MultiCommandCC.d.ts.map +1 -1
- package/build/cc/MultiCommandCC.js +35 -36
- package/build/cc/MultiCommandCC.js.map +1 -1
- package/build/cc/MultilevelSensorCC.d.ts +38 -33
- package/build/cc/MultilevelSensorCC.d.ts.map +1 -1
- package/build/cc/MultilevelSensorCC.js +172 -152
- package/build/cc/MultilevelSensorCC.js.map +1 -1
- package/build/cc/MultilevelSwitchCC.d.ts +29 -25
- package/build/cc/MultilevelSwitchCC.d.ts.map +1 -1
- package/build/cc/MultilevelSwitchCC.js +147 -127
- package/build/cc/MultilevelSwitchCC.js.map +1 -1
- package/build/cc/NoOperationCC.d.ts +0 -8
- package/build/cc/NoOperationCC.d.ts.map +1 -1
- package/build/cc/NoOperationCC.js +2 -11
- package/build/cc/NoOperationCC.js.map +1 -1
- package/build/cc/NodeNamingCC.d.ts +27 -17
- package/build/cc/NodeNamingCC.d.ts.map +1 -1
- package/build/cc/NodeNamingCC.js +86 -69
- package/build/cc/NodeNamingCC.js.map +1 -1
- package/build/cc/NotificationCC.d.ts +46 -43
- package/build/cc/NotificationCC.d.ts.map +1 -1
- package/build/cc/NotificationCC.js +317 -303
- package/build/cc/NotificationCC.js.map +1 -1
- package/build/cc/PowerlevelCC.d.ts +22 -18
- package/build/cc/PowerlevelCC.d.ts.map +1 -1
- package/build/cc/PowerlevelCC.js +125 -95
- package/build/cc/PowerlevelCC.js.map +1 -1
- package/build/cc/ProtectionCC.d.ts +49 -26
- package/build/cc/ProtectionCC.d.ts.map +1 -1
- package/build/cc/ProtectionCC.js +172 -126
- package/build/cc/ProtectionCC.js.map +1 -1
- package/build/cc/SceneActivationCC.d.ts +8 -7
- package/build/cc/SceneActivationCC.d.ts.map +1 -1
- package/build/cc/SceneActivationCC.js +28 -23
- package/build/cc/SceneActivationCC.js.map +1 -1
- package/build/cc/SceneActuatorConfigurationCC.d.ts +23 -15
- package/build/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/cc/SceneActuatorConfigurationCC.js +79 -62
- package/build/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.d.ts +25 -17
- package/build/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.js +92 -78
- package/build/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/cc/ScheduleEntryLockCC.d.ts +86 -72
- package/build/cc/ScheduleEntryLockCC.d.ts.map +1 -1
- package/build/cc/ScheduleEntryLockCC.js +607 -455
- package/build/cc/ScheduleEntryLockCC.js.map +1 -1
- package/build/cc/Security2CC.d.ts +78 -87
- package/build/cc/Security2CC.d.ts.map +1 -1
- package/build/cc/Security2CC.js +798 -765
- package/build/cc/Security2CC.js.map +1 -1
- package/build/cc/SecurityCC.d.ts +47 -42
- package/build/cc/SecurityCC.d.ts.map +1 -1
- package/build/cc/SecurityCC.js +240 -218
- package/build/cc/SecurityCC.js.map +1 -1
- package/build/cc/SoundSwitchCC.d.ts +36 -29
- package/build/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/cc/SoundSwitchCC.js +180 -157
- package/build/cc/SoundSwitchCC.js.map +1 -1
- package/build/cc/SupervisionCC.d.ts +17 -14
- package/build/cc/SupervisionCC.d.ts.map +1 -1
- package/build/cc/SupervisionCC.js +86 -66
- package/build/cc/SupervisionCC.js.map +1 -1
- package/build/cc/ThermostatFanModeCC.d.ts +25 -15
- package/build/cc/ThermostatFanModeCC.d.ts.map +1 -1
- package/build/cc/ThermostatFanModeCC.js +79 -60
- package/build/cc/ThermostatFanModeCC.js.map +1 -1
- package/build/cc/ThermostatFanStateCC.d.ts +11 -7
- package/build/cc/ThermostatFanStateCC.d.ts.map +1 -1
- package/build/cc/ThermostatFanStateCC.js +31 -22
- package/build/cc/ThermostatFanStateCC.js.map +1 -1
- package/build/cc/ThermostatModeCC.d.ts +24 -21
- package/build/cc/ThermostatModeCC.d.ts.map +1 -1
- package/build/cc/ThermostatModeCC.js +106 -90
- package/build/cc/ThermostatModeCC.js.map +1 -1
- package/build/cc/ThermostatOperatingStateCC.d.ts +11 -7
- package/build/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
- package/build/cc/ThermostatOperatingStateCC.js +31 -22
- package/build/cc/ThermostatOperatingStateCC.js.map +1 -1
- package/build/cc/ThermostatSetbackCC.d.ts +14 -13
- package/build/cc/ThermostatSetbackCC.d.ts.map +1 -1
- package/build/cc/ThermostatSetbackCC.js +64 -57
- package/build/cc/ThermostatSetbackCC.js.map +1 -1
- package/build/cc/ThermostatSetpointCC.d.ts +38 -57
- package/build/cc/ThermostatSetpointCC.d.ts.map +1 -1
- package/build/cc/ThermostatSetpointCC.js +200 -264
- package/build/cc/ThermostatSetpointCC.js.map +1 -1
- package/build/cc/TimeCC.d.ts +24 -20
- package/build/cc/TimeCC.d.ts.map +1 -1
- package/build/cc/TimeCC.js +119 -108
- package/build/cc/TimeCC.js.map +1 -1
- package/build/cc/TimeParametersCC.d.ts +18 -14
- package/build/cc/TimeParametersCC.d.ts.map +1 -1
- package/build/cc/TimeParametersCC.js +77 -69
- package/build/cc/TimeParametersCC.js.map +1 -1
- package/build/cc/TransportServiceCC.d.ts +29 -32
- package/build/cc/TransportServiceCC.d.ts.map +1 -1
- package/build/cc/TransportServiceCC.js +159 -161
- package/build/cc/TransportServiceCC.js.map +1 -1
- package/build/cc/UserCodeCC.d.ts +83 -66
- package/build/cc/UserCodeCC.d.ts.map +1 -1
- package/build/cc/UserCodeCC.js +449 -402
- package/build/cc/UserCodeCC.js.map +1 -1
- package/build/cc/VersionCC.d.ts +36 -20
- package/build/cc/VersionCC.d.ts.map +1 -1
- package/build/cc/VersionCC.js +190 -149
- package/build/cc/VersionCC.js.map +1 -1
- package/build/cc/WakeUpCC.d.ts +27 -13
- package/build/cc/WakeUpCC.d.ts.map +1 -1
- package/build/cc/WakeUpCC.js +105 -77
- package/build/cc/WakeUpCC.js.map +1 -1
- package/build/cc/WindowCoveringCC.d.ts +39 -27
- package/build/cc/WindowCoveringCC.d.ts.map +1 -1
- package/build/cc/WindowCoveringCC.js +169 -137
- package/build/cc/WindowCoveringCC.js.map +1 -1
- package/build/cc/ZWavePlusCC.d.ts +8 -7
- package/build/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/cc/ZWavePlusCC.js +44 -37
- package/build/cc/ZWavePlusCC.js.map +1 -1
- package/build/cc/ZWaveProtocolCC.d.ts +111 -84
- package/build/cc/ZWaveProtocolCC.d.ts.map +1 -1
- package/build/cc/ZWaveProtocolCC.js +583 -508
- package/build/cc/ZWaveProtocolCC.js.map +1 -1
- package/build/cc/index.d.ts +37 -34
- package/build/cc/index.d.ts.map +1 -1
- package/build/cc/index.js +6 -7
- package/build/cc/index.js.map +1 -1
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts +29 -24
- package/build/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
- package/build/cc/manufacturerProprietary/FibaroCC.js +109 -112
- package/build/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
- package/build/index.d.ts +0 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/build/lib/API.d.ts +21 -18
- package/build/lib/API.d.ts.map +1 -1
- package/build/lib/API.js +25 -49
- package/build/lib/API.js.map +1 -1
- package/build/lib/CommandClass.d.ts +51 -89
- package/build/lib/CommandClass.d.ts.map +1 -1
- package/build/lib/CommandClass.js +177 -249
- package/build/lib/CommandClass.js.map +1 -1
- package/build/lib/EncapsulatingCommandClass.d.ts +1 -15
- package/build/lib/EncapsulatingCommandClass.d.ts.map +1 -1
- package/build/lib/EncapsulatingCommandClass.js.map +1 -1
- package/build/lib/ICommandClassContainer.d.ts +1 -8
- package/build/lib/ICommandClassContainer.d.ts.map +1 -1
- package/build/lib/ICommandClassContainer.js +0 -8
- package/build/lib/ICommandClassContainer.js.map +1 -1
- package/build/lib/Values.d.ts +3 -3
- package/build/lib/Values.d.ts.map +1 -1
- package/build/lib/_Types.d.ts.map +1 -1
- package/build/lib/_Types.js +1 -0
- package/build/lib/_Types.js.map +1 -1
- package/build/lib/utils.d.ts +14 -13
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +94 -92
- package/build/lib/utils.js.map +1 -1
- package/package.json +4 -5
|
@@ -5,6 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var EnergyProductionCCReport_1, EnergyProductionCCGet_1;
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.EnergyProductionCCGet = exports.EnergyProductionCCReport = exports.EnergyProductionCC = exports.EnergyProductionCCAPI = exports.EnergyProductionCCValues = void 0;
|
|
10
11
|
function __assertType(argName, typeName, boundHasError) {
|
|
@@ -65,12 +66,12 @@ let EnergyProductionCCAPI = class EnergyProductionCCAPI extends API_1.CCAPI {
|
|
|
65
66
|
async get(parameter) {
|
|
66
67
|
__assertType("parameter", "EnergyProductionParameter", __assertType__EnergyProductionParameter.bind(void 0, parameter));
|
|
67
68
|
this.assertSupportsCommand(_Types_1.EnergyProductionCommand, _Types_1.EnergyProductionCommand.Get);
|
|
68
|
-
const cc = new EnergyProductionCCGet(
|
|
69
|
+
const cc = new EnergyProductionCCGet({
|
|
69
70
|
nodeId: this.endpoint.nodeId,
|
|
70
|
-
|
|
71
|
+
endpointIndex: this.endpoint.index,
|
|
71
72
|
parameter,
|
|
72
73
|
});
|
|
73
|
-
const response = await this.
|
|
74
|
+
const response = await this.host.sendCommand(cc, this.commandOptions);
|
|
74
75
|
if (response) {
|
|
75
76
|
return (0, shared_1.pick)(response, ["value", "scale"]);
|
|
76
77
|
}
|
|
@@ -81,22 +82,22 @@ exports.EnergyProductionCCAPI = EnergyProductionCCAPI = __decorate([
|
|
|
81
82
|
(0, CommandClassDecorators_1.API)(core_1.CommandClasses["Energy Production"])
|
|
82
83
|
], EnergyProductionCCAPI);
|
|
83
84
|
let EnergyProductionCC = class EnergyProductionCC extends CommandClass_1.CommandClass {
|
|
84
|
-
async interview(
|
|
85
|
-
const node = this.getNode(
|
|
86
|
-
|
|
85
|
+
async interview(ctx) {
|
|
86
|
+
const node = this.getNode(ctx);
|
|
87
|
+
ctx.logNode(node.id, {
|
|
87
88
|
endpoint: this.endpointIndex,
|
|
88
89
|
message: `Interviewing ${this.ccName}...`,
|
|
89
90
|
direction: "none",
|
|
90
91
|
});
|
|
91
92
|
// Query current values
|
|
92
|
-
await this.refreshValues(
|
|
93
|
+
await this.refreshValues(ctx);
|
|
93
94
|
// Remember that the interview is complete
|
|
94
|
-
this.setInterviewComplete(
|
|
95
|
+
this.setInterviewComplete(ctx, true);
|
|
95
96
|
}
|
|
96
|
-
async refreshValues(
|
|
97
|
-
const node = this.getNode(
|
|
98
|
-
const endpoint = this.getEndpoint(
|
|
99
|
-
const api = API_1.CCAPI.create(core_1.CommandClasses["Energy Production"],
|
|
97
|
+
async refreshValues(ctx) {
|
|
98
|
+
const node = this.getNode(ctx);
|
|
99
|
+
const endpoint = this.getEndpoint(ctx);
|
|
100
|
+
const api = API_1.CCAPI.create(core_1.CommandClasses["Energy Production"], ctx, endpoint).withOptions({
|
|
100
101
|
priority: core_1.MessagePriority.NodeQuery,
|
|
101
102
|
});
|
|
102
103
|
for (const parameter of [
|
|
@@ -105,7 +106,7 @@ let EnergyProductionCC = class EnergyProductionCC extends CommandClass_1.Command
|
|
|
105
106
|
_Types_1.EnergyProductionParameter["Production Today"],
|
|
106
107
|
_Types_1.EnergyProductionParameter["Total Time"],
|
|
107
108
|
]) {
|
|
108
|
-
|
|
109
|
+
ctx.logNode(node.id, {
|
|
109
110
|
endpoint: this.endpointIndex,
|
|
110
111
|
message: `querying energy production (${(0, shared_1.getEnumMemberName)(_Types_1.EnergyProductionParameter, parameter)})...`,
|
|
111
112
|
direction: "outbound",
|
|
@@ -120,30 +121,33 @@ exports.EnergyProductionCC = EnergyProductionCC = __decorate([
|
|
|
120
121
|
(0, CommandClassDecorators_1.implementedVersion)(1),
|
|
121
122
|
(0, CommandClassDecorators_1.ccValues)(exports.EnergyProductionCCValues)
|
|
122
123
|
], EnergyProductionCC);
|
|
123
|
-
let EnergyProductionCCReport = class EnergyProductionCCReport extends EnergyProductionCC {
|
|
124
|
-
constructor(
|
|
125
|
-
super(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
124
|
+
let EnergyProductionCCReport = EnergyProductionCCReport_1 = class EnergyProductionCCReport extends EnergyProductionCC {
|
|
125
|
+
constructor(options) {
|
|
126
|
+
super(options);
|
|
127
|
+
this.parameter = options.parameter;
|
|
128
|
+
this.value = options.value;
|
|
129
|
+
this.scale = options.scale;
|
|
130
|
+
}
|
|
131
|
+
static from(raw, ctx) {
|
|
132
|
+
(0, core_1.validatePayload)(raw.payload.length >= 2);
|
|
133
|
+
const parameter = raw.payload[0];
|
|
134
|
+
const { value, scale: rawScale } = (0, core_1.parseFloatWithScale)(raw.payload.subarray(1));
|
|
135
|
+
const scale = (0, _Types_1.getEnergyProductionScale)(parameter, rawScale);
|
|
136
|
+
return new EnergyProductionCCReport_1({
|
|
137
|
+
nodeId: ctx.sourceNodeId,
|
|
138
|
+
parameter,
|
|
139
|
+
value,
|
|
140
|
+
scale,
|
|
141
|
+
});
|
|
138
142
|
}
|
|
139
143
|
parameter;
|
|
140
144
|
scale;
|
|
141
145
|
value;
|
|
142
|
-
persistValues(
|
|
143
|
-
if (!super.persistValues(
|
|
146
|
+
persistValues(ctx) {
|
|
147
|
+
if (!super.persistValues(ctx))
|
|
144
148
|
return false;
|
|
145
149
|
const valueValue = exports.EnergyProductionCCValues.value(this.parameter);
|
|
146
|
-
this.setMetadata(
|
|
150
|
+
this.setMetadata(ctx, valueValue, {
|
|
147
151
|
...valueValue.meta,
|
|
148
152
|
unit: this.scale.unit,
|
|
149
153
|
ccSpecific: {
|
|
@@ -151,19 +155,19 @@ let EnergyProductionCCReport = class EnergyProductionCCReport extends EnergyProd
|
|
|
151
155
|
scale: this.scale.key,
|
|
152
156
|
},
|
|
153
157
|
});
|
|
154
|
-
this.setValue(
|
|
158
|
+
this.setValue(ctx, valueValue, this.value);
|
|
155
159
|
return true;
|
|
156
160
|
}
|
|
157
|
-
serialize() {
|
|
161
|
+
serialize(ctx) {
|
|
158
162
|
this.payload = Buffer.concat([
|
|
159
163
|
Buffer.from([this.parameter]),
|
|
160
164
|
(0, core_1.encodeFloatWithScale)(this.value, this.scale.key),
|
|
161
165
|
]);
|
|
162
|
-
return super.serialize();
|
|
166
|
+
return super.serialize(ctx);
|
|
163
167
|
}
|
|
164
|
-
toLogEntry(
|
|
168
|
+
toLogEntry(ctx) {
|
|
165
169
|
return {
|
|
166
|
-
...super.toLogEntry(
|
|
170
|
+
...super.toLogEntry(ctx),
|
|
167
171
|
message: {
|
|
168
172
|
[(0, shared_1.getEnumMemberName)(_Types_1.EnergyProductionParameter, this.parameter).toLowerCase()]: `${this.value} ${this.scale.unit}`,
|
|
169
173
|
},
|
|
@@ -171,31 +175,33 @@ let EnergyProductionCCReport = class EnergyProductionCCReport extends EnergyProd
|
|
|
171
175
|
}
|
|
172
176
|
};
|
|
173
177
|
exports.EnergyProductionCCReport = EnergyProductionCCReport;
|
|
174
|
-
exports.EnergyProductionCCReport = EnergyProductionCCReport = __decorate([
|
|
178
|
+
exports.EnergyProductionCCReport = EnergyProductionCCReport = EnergyProductionCCReport_1 = __decorate([
|
|
175
179
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.EnergyProductionCommand.Report)
|
|
176
180
|
], EnergyProductionCCReport);
|
|
177
181
|
function testResponseForEnergyProductionGet(sent, received) {
|
|
178
182
|
return received.parameter === sent.parameter;
|
|
179
183
|
}
|
|
180
|
-
let EnergyProductionCCGet = class EnergyProductionCCGet extends EnergyProductionCC {
|
|
181
|
-
constructor(
|
|
182
|
-
super(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
let EnergyProductionCCGet = EnergyProductionCCGet_1 = class EnergyProductionCCGet extends EnergyProductionCC {
|
|
185
|
+
constructor(options) {
|
|
186
|
+
super(options);
|
|
187
|
+
this.parameter = options.parameter;
|
|
188
|
+
}
|
|
189
|
+
static from(raw, ctx) {
|
|
190
|
+
(0, core_1.validatePayload)(raw.payload.length >= 1);
|
|
191
|
+
const parameter = raw.payload[0];
|
|
192
|
+
return new EnergyProductionCCGet_1({
|
|
193
|
+
nodeId: ctx.sourceNodeId,
|
|
194
|
+
parameter,
|
|
195
|
+
});
|
|
190
196
|
}
|
|
191
197
|
parameter;
|
|
192
|
-
serialize() {
|
|
198
|
+
serialize(ctx) {
|
|
193
199
|
this.payload = Buffer.from([this.parameter]);
|
|
194
|
-
return super.serialize();
|
|
200
|
+
return super.serialize(ctx);
|
|
195
201
|
}
|
|
196
|
-
toLogEntry(
|
|
202
|
+
toLogEntry(ctx) {
|
|
197
203
|
return {
|
|
198
|
-
...super.toLogEntry(
|
|
204
|
+
...super.toLogEntry(ctx),
|
|
199
205
|
message: {
|
|
200
206
|
parameter: (0, shared_1.getEnumMemberName)(_Types_1.EnergyProductionParameter, this.parameter),
|
|
201
207
|
},
|
|
@@ -203,7 +209,7 @@ let EnergyProductionCCGet = class EnergyProductionCCGet extends EnergyProduction
|
|
|
203
209
|
}
|
|
204
210
|
};
|
|
205
211
|
exports.EnergyProductionCCGet = EnergyProductionCCGet;
|
|
206
|
-
exports.EnergyProductionCCGet = EnergyProductionCCGet = __decorate([
|
|
212
|
+
exports.EnergyProductionCCGet = EnergyProductionCCGet = EnergyProductionCCGet_1 = __decorate([
|
|
207
213
|
(0, CommandClassDecorators_1.CCCommand)(_Types_1.EnergyProductionCommand.Get),
|
|
208
214
|
(0, CommandClassDecorators_1.expectedCCResponse)(EnergyProductionCCReport, testResponseForEnergyProductionGet)
|
|
209
215
|
], EnergyProductionCCGet);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnergyProductionCC.js","sourceRoot":"","sources":["../../src/cc/EnergyProductionCC.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnergyProductionCC.js","sourceRoot":"","sources":["../../src/cc/EnergyProductionCC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCASwB;AAOxB,6CAA2D;A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V,GAAqB;QAErB,IAAA,sBAAe,EAAC,GAAG,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;QACzC,MAAM,SAAS,GAA8B,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAE5D,OAAO,IAAI,uBAAqB,CAAC;YAChC,MAAM,EAAE,GAAG,CAAC,YAAY;YACxB,SAAS;SACT,CAAC,CAAC;IACJ,CAAC;IAEM,SAAS,CAA4B;IAErC,SAAS,CAAC,GAAsB;QACtC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;QAC7C,OAAO,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;IAEM,UAAU,CAAC,GAAgB;QACjC,OAAO;YACN,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;YACxB,OAAO,EAAE;gBACR,SAAS,EAAE,IAAA,0BAAiB,EAC3B,kCAAyB,EACzB,IAAI,CAAC,SAAS,CACd;aACD;SACD,CAAC;IACH,CAAC;CACD,CAAA;AAvCY,sDAAqB;gCAArB,qBAAqB;IALjC,IAAA,kCAAS,EAAC,gCAAuB,CAAC,GAAG,CAAC;IACtC,IAAA,2CAAkB,EAClB,wBAAwB,EACxB,kCAAkC,CAClC;GACY,qBAAqB,CAuCjC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommandClasses, type MaybeNotKnown, type MessageOrCCLogEntry, type SupervisionResult } from "@zwave-js/core/safe";
|
|
2
|
-
import type {
|
|
1
|
+
import { CommandClasses, type MaybeNotKnown, type MessageOrCCLogEntry, type SupervisionResult, type WithAddress } from "@zwave-js/core/safe";
|
|
2
|
+
import type { CCEncodingContext, CCParsingContext, GetValueDB } from "@zwave-js/host/safe";
|
|
3
3
|
import { CCAPI, POLL_VALUE, type PollValueImplementation, SET_VALUE, type SetValueImplementation } from "../lib/API";
|
|
4
|
-
import { type
|
|
4
|
+
import { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext } from "../lib/CommandClass";
|
|
5
5
|
import { EntryControlCommand, EntryControlDataTypes, EntryControlEventTypes } from "../lib/_Types";
|
|
6
6
|
export declare const EntryControlCCValues: Readonly<{
|
|
7
7
|
supportedKeys: {
|
|
@@ -151,54 +151,80 @@ export declare class EntryControlCCAPI extends CCAPI {
|
|
|
151
151
|
export declare class EntryControlCC extends CommandClass {
|
|
152
152
|
ccCommand: EntryControlCommand;
|
|
153
153
|
determineRequiredCCInterviews(): readonly CommandClasses[];
|
|
154
|
-
interview(
|
|
155
|
-
refreshValues(
|
|
154
|
+
interview(ctx: InterviewContext): Promise<void>;
|
|
155
|
+
refreshValues(ctx: RefreshValuesContext): Promise<void>;
|
|
156
|
+
}
|
|
157
|
+
export interface EntryControlCCNotificationOptions {
|
|
158
|
+
sequenceNumber: number;
|
|
159
|
+
dataType: EntryControlDataTypes;
|
|
160
|
+
eventType: EntryControlEventTypes;
|
|
161
|
+
eventData?: string | Buffer;
|
|
156
162
|
}
|
|
157
163
|
export declare class EntryControlCCNotification extends EntryControlCC {
|
|
158
|
-
constructor(
|
|
164
|
+
constructor(options: WithAddress<EntryControlCCNotificationOptions>);
|
|
165
|
+
static from(raw: CCRaw, ctx: CCParsingContext): EntryControlCCNotification;
|
|
159
166
|
readonly sequenceNumber: number;
|
|
160
167
|
readonly dataType: EntryControlDataTypes;
|
|
161
168
|
readonly eventType: EntryControlEventTypes;
|
|
162
169
|
readonly eventData?: Buffer | string;
|
|
163
|
-
toLogEntry(
|
|
170
|
+
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
171
|
+
}
|
|
172
|
+
export interface EntryControlCCKeySupportedReportOptions {
|
|
173
|
+
supportedKeys: number[];
|
|
164
174
|
}
|
|
165
175
|
export declare class EntryControlCCKeySupportedReport extends EntryControlCC {
|
|
166
|
-
constructor(
|
|
176
|
+
constructor(options: WithAddress<EntryControlCCKeySupportedReportOptions>);
|
|
177
|
+
static from(raw: CCRaw, ctx: CCParsingContext): EntryControlCCKeySupportedReport;
|
|
167
178
|
readonly supportedKeys: readonly number[];
|
|
168
|
-
toLogEntry(
|
|
179
|
+
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
169
180
|
}
|
|
170
181
|
export declare class EntryControlCCKeySupportedGet extends EntryControlCC {
|
|
171
182
|
}
|
|
183
|
+
export interface EntryControlCCEventSupportedReportOptions {
|
|
184
|
+
supportedDataTypes: EntryControlDataTypes[];
|
|
185
|
+
supportedEventTypes: EntryControlEventTypes[];
|
|
186
|
+
minKeyCacheSize: number;
|
|
187
|
+
maxKeyCacheSize: number;
|
|
188
|
+
minKeyCacheTimeout: number;
|
|
189
|
+
maxKeyCacheTimeout: number;
|
|
190
|
+
}
|
|
172
191
|
export declare class EntryControlCCEventSupportedReport extends EntryControlCC {
|
|
173
|
-
constructor(
|
|
174
|
-
|
|
192
|
+
constructor(options: WithAddress<EntryControlCCEventSupportedReportOptions>);
|
|
193
|
+
static from(raw: CCRaw, ctx: CCParsingContext): EntryControlCCEventSupportedReport;
|
|
194
|
+
persistValues(ctx: PersistValuesContext): boolean;
|
|
175
195
|
readonly supportedDataTypes: readonly EntryControlDataTypes[];
|
|
176
196
|
readonly supportedEventTypes: readonly EntryControlEventTypes[];
|
|
177
197
|
readonly minKeyCacheSize: number;
|
|
178
198
|
readonly maxKeyCacheSize: number;
|
|
179
199
|
readonly minKeyCacheTimeout: number;
|
|
180
200
|
readonly maxKeyCacheTimeout: number;
|
|
181
|
-
toLogEntry(
|
|
201
|
+
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
182
202
|
}
|
|
183
203
|
export declare class EntryControlCCEventSupportedGet extends EntryControlCC {
|
|
184
204
|
}
|
|
205
|
+
export interface EntryControlCCConfigurationReportOptions {
|
|
206
|
+
keyCacheSize: number;
|
|
207
|
+
keyCacheTimeout: number;
|
|
208
|
+
}
|
|
185
209
|
export declare class EntryControlCCConfigurationReport extends EntryControlCC {
|
|
186
|
-
constructor(
|
|
210
|
+
constructor(options: WithAddress<EntryControlCCConfigurationReportOptions>);
|
|
211
|
+
static from(raw: CCRaw, ctx: CCParsingContext): EntryControlCCConfigurationReport;
|
|
187
212
|
readonly keyCacheSize: number;
|
|
188
213
|
readonly keyCacheTimeout: number;
|
|
189
|
-
toLogEntry(
|
|
214
|
+
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
190
215
|
}
|
|
191
216
|
export declare class EntryControlCCConfigurationGet extends EntryControlCC {
|
|
192
217
|
}
|
|
193
|
-
export interface EntryControlCCConfigurationSetOptions
|
|
218
|
+
export interface EntryControlCCConfigurationSetOptions {
|
|
194
219
|
keyCacheSize: number;
|
|
195
220
|
keyCacheTimeout: number;
|
|
196
221
|
}
|
|
197
222
|
export declare class EntryControlCCConfigurationSet extends EntryControlCC {
|
|
198
|
-
constructor(
|
|
223
|
+
constructor(options: WithAddress<EntryControlCCConfigurationSetOptions>);
|
|
224
|
+
static from(_raw: CCRaw, _ctx: CCParsingContext): EntryControlCCConfigurationSet;
|
|
199
225
|
readonly keyCacheSize: number;
|
|
200
226
|
readonly keyCacheTimeout: number;
|
|
201
|
-
serialize(): Buffer;
|
|
202
|
-
toLogEntry(
|
|
227
|
+
serialize(ctx: CCEncodingContext): Buffer;
|
|
228
|
+
toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
|
|
203
229
|
}
|
|
204
230
|
//# sourceMappingURL=EntryControlCC.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntryControlCC.d.ts","sourceRoot":"","sources":["../../src/cc/EntryControlCC.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAGxB,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"EntryControlCC.d.ts","sourceRoot":"","sources":["../../src/cc/EntryControlCC.ts"],"names":[],"mappings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