@zwave-js/cc 10.14.0 → 10.16.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 +34 -34
- package/build/cc/AssociationCC.d.ts +18 -18
- package/build/cc/AssociationGroupInfoCC.d.ts +27 -27
- package/build/cc/BarrierOperatorCC.d.ts +11 -11
- package/build/cc/BasicCC.d.ts +1 -1
- package/build/cc/BatteryCC.d.ts +10 -10
- package/build/cc/BinarySensorCC.d.ts +9 -9
- package/build/cc/BinarySwitchCC.d.ts +1 -1
- package/build/cc/BinarySwitchCC.d.ts.map +1 -1
- package/build/cc/BinarySwitchCC.js +1 -1
- package/build/cc/BinarySwitchCC.js.map +1 -1
- package/build/cc/CentralSceneCC.d.ts +11 -11
- package/build/cc/ClimateControlScheduleCC.d.ts +10 -10
- package/build/cc/ClimateControlScheduleCC.js +6 -6
- package/build/cc/ClockCC.d.ts +1 -1
- package/build/cc/ColorSwitchCC.d.ts +22 -22
- package/build/cc/ColorSwitchCC.js +5 -5
- package/build/cc/ConfigurationCC.d.ts +21 -18
- package/build/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/cc/ConfigurationCC.js +32 -26
- package/build/cc/ConfigurationCC.js.map +1 -1
- package/build/cc/DoorLockCC.d.ts +8 -8
- package/build/cc/EnergyProductionCC.d.ts +67 -0
- package/build/cc/EnergyProductionCC.d.ts.map +1 -0
- package/build/cc/EnergyProductionCC.js +179 -0
- package/build/cc/EnergyProductionCC.js.map +1 -0
- package/build/cc/HumidityControlSetpointCC.d.ts +22 -22
- package/build/cc/IndicatorCC.d.ts +30 -30
- package/build/cc/IrrigationCC.d.ts +177 -177
- package/build/cc/ManufacturerSpecificCC.d.ts +14 -14
- package/build/cc/MeterCC.d.ts +22 -22
- package/build/cc/MeterCC.d.ts.map +1 -1
- package/build/cc/MeterCC.js +6 -1
- package/build/cc/MeterCC.js.map +1 -1
- package/build/cc/MultiChannelAssociationCC.d.ts +28 -28
- package/build/cc/MultiChannelCC.d.ts +9 -9
- package/build/cc/MultilevelSensorCC.d.ts +18 -18
- package/build/cc/MultilevelSwitchCC.d.ts +19 -19
- package/build/cc/NodeNamingCC.d.ts +2 -2
- package/build/cc/NotificationCC.d.ts +54 -53
- package/build/cc/NotificationCC.d.ts.map +1 -1
- package/build/cc/NotificationCC.js +21 -0
- package/build/cc/NotificationCC.js.map +1 -1
- package/build/cc/ProtectionCC.d.ts +3 -3
- package/build/cc/SceneActivationCC.d.ts +1 -1
- package/build/cc/SceneActuatorConfigurationCC.d.ts +21 -21
- package/build/cc/SceneActuatorConfigurationCC.d.ts.map +1 -1
- package/build/cc/SceneActuatorConfigurationCC.js +1 -2
- package/build/cc/SceneActuatorConfigurationCC.js.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.d.ts +21 -21
- package/build/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
- package/build/cc/SceneControllerConfigurationCC.js +3 -4
- package/build/cc/SceneControllerConfigurationCC.js.map +1 -1
- package/build/cc/Security2CC.d.ts +1 -0
- package/build/cc/Security2CC.d.ts.map +1 -1
- package/build/cc/Security2CC.js +29 -7
- package/build/cc/Security2CC.js.map +1 -1
- package/build/cc/SecurityCC.d.ts +9 -5
- package/build/cc/SecurityCC.d.ts.map +1 -1
- package/build/cc/SecurityCC.js +36 -17
- package/build/cc/SecurityCC.js.map +1 -1
- package/build/cc/SoundSwitchCC.d.ts +1 -1
- package/build/cc/SupervisionCC.d.ts +11 -10
- package/build/cc/SupervisionCC.d.ts.map +1 -1
- package/build/cc/SupervisionCC.js +13 -0
- package/build/cc/SupervisionCC.js.map +1 -1
- package/build/cc/ThermostatFanModeCC.d.ts +2 -2
- package/build/cc/ThermostatSetbackCC.js +3 -3
- package/build/cc/ThermostatSetpointCC.d.ts +20 -20
- package/build/cc/TimeCC.d.ts +1 -1
- package/build/cc/UserCodeCC.d.ts +22 -22
- package/build/cc/VersionCC.d.ts +24 -15
- package/build/cc/VersionCC.d.ts.map +1 -1
- package/build/cc/VersionCC.js +133 -10
- package/build/cc/VersionCC.js.map +1 -1
- package/build/cc/WakeUpCC.d.ts +2 -2
- package/build/cc/WindowCoveringCC.d.ts +347 -0
- package/build/cc/WindowCoveringCC.d.ts.map +1 -0
- package/build/cc/WindowCoveringCC.js +638 -0
- package/build/cc/WindowCoveringCC.js.map +1 -0
- package/build/cc/ZWavePlusCC.d.ts +1 -1
- package/build/cc/ZWavePlusCC.d.ts.map +1 -1
- package/build/cc/ZWavePlusCC.js +34 -0
- package/build/cc/ZWavePlusCC.js.map +1 -1
- package/build/cc/index.d.ts +2 -0
- package/build/cc/index.d.ts.map +1 -1
- package/build/cc/index.js +24 -9
- package/build/cc/index.js.map +1 -1
- package/build/lib/API.d.ts +4 -0
- package/build/lib/API.d.ts.map +1 -1
- package/build/lib/API.js.map +1 -1
- package/build/lib/CommandClass.d.ts.map +1 -1
- package/build/lib/CommandClass.js +17 -4
- package/build/lib/CommandClass.js.map +1 -1
- package/build/lib/EncapsulatingCommandClass.d.ts +1 -0
- package/build/lib/EncapsulatingCommandClass.d.ts.map +1 -1
- package/build/lib/EncapsulatingCommandClass.js +10 -1
- package/build/lib/EncapsulatingCommandClass.js.map +1 -1
- package/build/lib/Security2/Extension.d.ts +2 -0
- package/build/lib/Security2/Extension.d.ts.map +1 -1
- package/build/lib/Security2/Extension.js +9 -1
- package/build/lib/Security2/Extension.js.map +1 -1
- package/build/lib/Values.d.ts +3 -1
- package/build/lib/Values.d.ts.map +1 -1
- package/build/lib/_Types.d.ts +50 -0
- package/build/lib/_Types.d.ts.map +1 -1
- package/build/lib/_Types.js +93 -4
- package/build/lib/_Types.js.map +1 -1
- package/package.json +10 -22
package/build/cc/DoorLockCC.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export declare const DoorLockCCValues: Readonly<{
|
|
|
23
23
|
readonly readable: true;
|
|
24
24
|
};
|
|
25
25
|
readonly options: {
|
|
26
|
-
readonly internal: false;
|
|
27
26
|
readonly stateful: true;
|
|
28
27
|
readonly secret: false;
|
|
28
|
+
readonly internal: false;
|
|
29
29
|
readonly minVersion: 1;
|
|
30
30
|
readonly supportsEndpoints: true;
|
|
31
31
|
readonly autoCreate: (applHost: ZWaveApplicationHost, endpoint: IZWaveEndpoint) => boolean;
|
|
@@ -74,9 +74,9 @@ export declare const DoorLockCCValues: Readonly<{
|
|
|
74
74
|
readonly readable: true;
|
|
75
75
|
};
|
|
76
76
|
readonly options: {
|
|
77
|
-
readonly internal: false;
|
|
78
77
|
readonly stateful: true;
|
|
79
78
|
readonly secret: false;
|
|
79
|
+
readonly internal: false;
|
|
80
80
|
readonly minVersion: 1;
|
|
81
81
|
readonly supportsEndpoints: true;
|
|
82
82
|
readonly autoCreate: (applHost: ZWaveApplicationHost, endpoint: IZWaveEndpoint) => boolean;
|
|
@@ -125,9 +125,9 @@ export declare const DoorLockCCValues: Readonly<{
|
|
|
125
125
|
readonly readable: true;
|
|
126
126
|
};
|
|
127
127
|
readonly options: {
|
|
128
|
-
readonly internal: false;
|
|
129
128
|
readonly stateful: true;
|
|
130
129
|
readonly secret: false;
|
|
130
|
+
readonly internal: false;
|
|
131
131
|
readonly minVersion: 1;
|
|
132
132
|
readonly supportsEndpoints: true;
|
|
133
133
|
readonly autoCreate: (applHost: ZWaveApplicationHost, endpoint: IZWaveEndpoint) => boolean;
|
|
@@ -176,9 +176,9 @@ export declare const DoorLockCCValues: Readonly<{
|
|
|
176
176
|
readonly writeable: true;
|
|
177
177
|
};
|
|
178
178
|
readonly options: {
|
|
179
|
-
readonly internal: false;
|
|
180
179
|
readonly stateful: true;
|
|
181
180
|
readonly secret: false;
|
|
181
|
+
readonly internal: false;
|
|
182
182
|
readonly supportsEndpoints: true;
|
|
183
183
|
readonly autoCreate: true;
|
|
184
184
|
readonly minVersion: 4;
|
|
@@ -227,9 +227,9 @@ export declare const DoorLockCCValues: Readonly<{
|
|
|
227
227
|
readonly writeable: true;
|
|
228
228
|
};
|
|
229
229
|
readonly options: {
|
|
230
|
-
readonly internal: false;
|
|
231
230
|
readonly stateful: true;
|
|
232
231
|
readonly secret: false;
|
|
232
|
+
readonly internal: false;
|
|
233
233
|
readonly supportsEndpoints: true;
|
|
234
234
|
readonly autoCreate: true;
|
|
235
235
|
readonly minVersion: 4;
|
|
@@ -280,9 +280,9 @@ export declare const DoorLockCCValues: Readonly<{
|
|
|
280
280
|
readonly writeable: true;
|
|
281
281
|
};
|
|
282
282
|
readonly options: {
|
|
283
|
-
readonly internal: false;
|
|
284
283
|
readonly stateful: true;
|
|
285
284
|
readonly secret: false;
|
|
285
|
+
readonly internal: false;
|
|
286
286
|
readonly supportsEndpoints: true;
|
|
287
287
|
readonly autoCreate: true;
|
|
288
288
|
readonly minVersion: 4;
|
|
@@ -333,9 +333,9 @@ export declare const DoorLockCCValues: Readonly<{
|
|
|
333
333
|
readonly writeable: true;
|
|
334
334
|
};
|
|
335
335
|
readonly options: {
|
|
336
|
-
readonly internal: false;
|
|
337
336
|
readonly stateful: true;
|
|
338
337
|
readonly secret: false;
|
|
338
|
+
readonly internal: false;
|
|
339
339
|
readonly supportsEndpoints: true;
|
|
340
340
|
readonly autoCreate: true;
|
|
341
341
|
readonly minVersion: 4;
|
|
@@ -625,9 +625,9 @@ export declare const DoorLockCCValues: Readonly<{
|
|
|
625
625
|
readonly readable: true;
|
|
626
626
|
};
|
|
627
627
|
readonly options: {
|
|
628
|
-
readonly internal: false;
|
|
629
628
|
readonly stateful: true;
|
|
630
629
|
readonly secret: false;
|
|
630
|
+
readonly internal: false;
|
|
631
631
|
readonly supportsEndpoints: true;
|
|
632
632
|
readonly autoCreate: true;
|
|
633
633
|
readonly minVersion: 3;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { CommandClasses, Maybe } from "@zwave-js/core";
|
|
3
|
+
import type { ZWaveApplicationHost, ZWaveHost } from "@zwave-js/host";
|
|
4
|
+
import { CCAPI, PollValueImplementation, POLL_VALUE } from "../lib/API";
|
|
5
|
+
import { CommandClass, type CCCommandOptions, type CommandClassDeserializationOptions } from "../lib/CommandClass";
|
|
6
|
+
import { EnergyProductionCommand, EnergyProductionParameter, EnergyProductionScale } from "../lib/_Types";
|
|
7
|
+
export declare const EnergyProductionCCValues: Readonly<{
|
|
8
|
+
value: ((parameter: EnergyProductionParameter) => {
|
|
9
|
+
readonly meta: {
|
|
10
|
+
readonly label: string;
|
|
11
|
+
readonly writeable: false;
|
|
12
|
+
readonly type: "number";
|
|
13
|
+
readonly readable: true;
|
|
14
|
+
};
|
|
15
|
+
readonly id: {
|
|
16
|
+
commandClass: (typeof CommandClasses)["Energy Production"];
|
|
17
|
+
property: "value";
|
|
18
|
+
propertyKey: EnergyProductionParameter;
|
|
19
|
+
};
|
|
20
|
+
readonly endpoint: (endpoint?: number | undefined) => {
|
|
21
|
+
readonly commandClass: (typeof CommandClasses)["Energy Production"];
|
|
22
|
+
readonly endpoint: number;
|
|
23
|
+
readonly property: "value";
|
|
24
|
+
readonly propertyKey: EnergyProductionParameter;
|
|
25
|
+
};
|
|
26
|
+
}) & {
|
|
27
|
+
is: (valueId: import("@zwave-js/core").ValueID) => boolean;
|
|
28
|
+
readonly options: {
|
|
29
|
+
readonly internal: false;
|
|
30
|
+
readonly minVersion: 1;
|
|
31
|
+
readonly secret: false;
|
|
32
|
+
readonly stateful: true;
|
|
33
|
+
readonly supportsEndpoints: true;
|
|
34
|
+
readonly autoCreate: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
export declare class EnergyProductionCCAPI extends CCAPI {
|
|
39
|
+
supportsCommand(cmd: EnergyProductionCommand): Maybe<boolean>;
|
|
40
|
+
protected [POLL_VALUE]: PollValueImplementation;
|
|
41
|
+
get(parameter: EnergyProductionParameter): Promise<{
|
|
42
|
+
value: number;
|
|
43
|
+
scale: EnergyProductionScale;
|
|
44
|
+
} | undefined>;
|
|
45
|
+
}
|
|
46
|
+
export declare class EnergyProductionCC extends CommandClass {
|
|
47
|
+
ccCommand: EnergyProductionCommand;
|
|
48
|
+
interview(applHost: ZWaveApplicationHost): Promise<void>;
|
|
49
|
+
refreshValues(applHost: ZWaveApplicationHost): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
export declare class EnergyProductionCCReport extends EnergyProductionCC {
|
|
52
|
+
constructor(host: ZWaveHost, options: CommandClassDeserializationOptions);
|
|
53
|
+
readonly parameter: EnergyProductionParameter;
|
|
54
|
+
readonly scale: EnergyProductionScale;
|
|
55
|
+
readonly value: number;
|
|
56
|
+
persistValues(applHost: ZWaveApplicationHost): boolean;
|
|
57
|
+
}
|
|
58
|
+
interface EnergyProductionCCGetOptions extends CCCommandOptions {
|
|
59
|
+
parameter: EnergyProductionParameter;
|
|
60
|
+
}
|
|
61
|
+
export declare class EnergyProductionCCGet extends EnergyProductionCC {
|
|
62
|
+
constructor(host: ZWaveHost, options: CommandClassDeserializationOptions | EnergyProductionCCGetOptions);
|
|
63
|
+
parameter: EnergyProductionParameter;
|
|
64
|
+
serialize(): Buffer;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=EnergyProductionCC.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnergyProductionCC.d.ts","sourceRoot":"","sources":["../../src/cc/EnergyProductionCC.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,cAAc,EACd,KAAK,EAKL,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGtE,OAAO,EACN,KAAK,EACL,uBAAuB,EACvB,UAAU,EAEV,MAAM,YAAY,CAAC;AACpB,OAAO,EACN,YAAY,EAEZ,KAAK,gBAAgB,EACrB,KAAK,kCAAkC,EACvC,MAAM,qBAAqB,CAAC;AAU7B,OAAO,EACN,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EAErB,MAAM,eAAe,CAAC;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arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var _a;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.EnergyProductionCCGet = exports.EnergyProductionCCReport = exports.EnergyProductionCC = exports.EnergyProductionCCAPI = exports.EnergyProductionCCValues = void 0;
|
|
11
|
+
function __assertType(argName, typeName, boundHasError) {
|
|
12
|
+
const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
|
|
13
|
+
if (boundHasError()) {
|
|
14
|
+
throw new ZWaveError(typeName ? `${argName} is not a ${typeName}` : `${argName} has the wrong type`, ZWaveErrorCodes.Argument_Invalid);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const __assertType__EnergyProductionParameter = $o => {
|
|
18
|
+
function su__1__2__3__4_eu($o) {
|
|
19
|
+
return ![0, 1, 2, 3].includes($o) ? {} : null;
|
|
20
|
+
}
|
|
21
|
+
return su__1__2__3__4_eu($o);
|
|
22
|
+
};
|
|
23
|
+
const core_1 = require("@zwave-js/core");
|
|
24
|
+
const shared_1 = require("@zwave-js/shared");
|
|
25
|
+
const API_1 = require("../lib/API");
|
|
26
|
+
const CommandClass_1 = require("../lib/CommandClass");
|
|
27
|
+
const CommandClassDecorators_1 = require("../lib/CommandClassDecorators");
|
|
28
|
+
const Values_1 = require("../lib/Values");
|
|
29
|
+
const _Types_1 = require("../lib/_Types");
|
|
30
|
+
exports.EnergyProductionCCValues = Object.freeze({
|
|
31
|
+
...Values_1.V.defineStaticCCValues(core_1.CommandClasses["Energy Production"], {
|
|
32
|
+
// Static CC values go here
|
|
33
|
+
}),
|
|
34
|
+
...Values_1.V.defineDynamicCCValues(core_1.CommandClasses["Energy Production"], {
|
|
35
|
+
// Dynamic CC values go here
|
|
36
|
+
...Values_1.V.dynamicPropertyAndKeyWithName("value", "value", (parameter) => parameter, ({ property, propertyKey }) => property === "value" && typeof propertyKey === "number", (parameter) => ({
|
|
37
|
+
...core_1.ValueMetadata.ReadOnlyNumber,
|
|
38
|
+
label: (0, shared_1.getEnumMemberName)(_Types_1.EnergyProductionParameter, parameter),
|
|
39
|
+
// unit and ccSpecific are set dynamically
|
|
40
|
+
})),
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
let EnergyProductionCCAPI = class EnergyProductionCCAPI extends API_1.CCAPI {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments);
|
|
46
|
+
this[_a] = async ({ property, propertyKey, }) => {
|
|
47
|
+
if (exports.EnergyProductionCCValues.value.is({
|
|
48
|
+
commandClass: this.ccId,
|
|
49
|
+
property,
|
|
50
|
+
propertyKey,
|
|
51
|
+
})) {
|
|
52
|
+
return (await this.get(property))
|
|
53
|
+
?.value;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
(0, API_1.throwUnsupportedProperty)(this.ccId, property);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
supportsCommand(cmd) {
|
|
61
|
+
switch (cmd) {
|
|
62
|
+
case _Types_1.EnergyProductionCommand.Get:
|
|
63
|
+
return true; // This is mandatory
|
|
64
|
+
}
|
|
65
|
+
return super.supportsCommand(cmd);
|
|
66
|
+
}
|
|
67
|
+
async get(parameter) {
|
|
68
|
+
__assertType("parameter", "EnergyProductionParameter", __assertType__EnergyProductionParameter.bind(void 0, parameter));
|
|
69
|
+
this.assertSupportsCommand(_Types_1.EnergyProductionCommand, _Types_1.EnergyProductionCommand.Get);
|
|
70
|
+
const cc = new EnergyProductionCCGet(this.applHost, {
|
|
71
|
+
nodeId: this.endpoint.nodeId,
|
|
72
|
+
endpoint: this.endpoint.index,
|
|
73
|
+
parameter,
|
|
74
|
+
});
|
|
75
|
+
const response = await this.applHost.sendCommand(cc, this.commandOptions);
|
|
76
|
+
if (response) {
|
|
77
|
+
return (0, shared_1.pick)(response, ["value", "scale"]);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
_a = API_1.POLL_VALUE;
|
|
82
|
+
EnergyProductionCCAPI = __decorate([
|
|
83
|
+
(0, CommandClassDecorators_1.API)(core_1.CommandClasses["Energy Production"])
|
|
84
|
+
], EnergyProductionCCAPI);
|
|
85
|
+
exports.EnergyProductionCCAPI = EnergyProductionCCAPI;
|
|
86
|
+
let EnergyProductionCC = class EnergyProductionCC extends CommandClass_1.CommandClass {
|
|
87
|
+
async interview(applHost) {
|
|
88
|
+
const node = this.getNode(applHost);
|
|
89
|
+
applHost.controllerLog.logNode(node.id, {
|
|
90
|
+
endpoint: this.endpointIndex,
|
|
91
|
+
message: `Interviewing ${this.ccName}...`,
|
|
92
|
+
direction: "none",
|
|
93
|
+
});
|
|
94
|
+
// Query current values
|
|
95
|
+
await this.refreshValues(applHost);
|
|
96
|
+
// Remember that the interview is complete
|
|
97
|
+
this.setInterviewComplete(applHost, true);
|
|
98
|
+
}
|
|
99
|
+
async refreshValues(applHost) {
|
|
100
|
+
const node = this.getNode(applHost);
|
|
101
|
+
const endpoint = this.getEndpoint(applHost);
|
|
102
|
+
const api = API_1.CCAPI.create(core_1.CommandClasses["Energy Production"], applHost, endpoint).withOptions({
|
|
103
|
+
priority: core_1.MessagePriority.NodeQuery,
|
|
104
|
+
});
|
|
105
|
+
for (const parameter of [
|
|
106
|
+
_Types_1.EnergyProductionParameter.Power,
|
|
107
|
+
_Types_1.EnergyProductionParameter["Production Total"],
|
|
108
|
+
_Types_1.EnergyProductionParameter["Production Today"],
|
|
109
|
+
_Types_1.EnergyProductionParameter["Total Time"],
|
|
110
|
+
]) {
|
|
111
|
+
applHost.controllerLog.logNode(node.id, {
|
|
112
|
+
endpoint: this.endpointIndex,
|
|
113
|
+
message: `querying energy production (${(0, shared_1.getEnumMemberName)(_Types_1.EnergyProductionParameter, parameter)})...`,
|
|
114
|
+
direction: "outbound",
|
|
115
|
+
});
|
|
116
|
+
await api.get(parameter);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
EnergyProductionCC = __decorate([
|
|
121
|
+
(0, CommandClassDecorators_1.commandClass)(core_1.CommandClasses["Energy Production"]),
|
|
122
|
+
(0, CommandClassDecorators_1.implementedVersion)(1),
|
|
123
|
+
(0, CommandClassDecorators_1.ccValues)(exports.EnergyProductionCCValues)
|
|
124
|
+
], EnergyProductionCC);
|
|
125
|
+
exports.EnergyProductionCC = EnergyProductionCC;
|
|
126
|
+
let EnergyProductionCCReport = class EnergyProductionCCReport extends EnergyProductionCC {
|
|
127
|
+
constructor(host, options) {
|
|
128
|
+
super(host, options);
|
|
129
|
+
(0, core_1.validatePayload)(this.payload.length >= 2);
|
|
130
|
+
this.parameter = this.payload[0];
|
|
131
|
+
const { value, scale } = (0, core_1.parseFloatWithScale)(this.payload.slice(1));
|
|
132
|
+
this.value = value;
|
|
133
|
+
this.scale = (0, _Types_1.getEnergyProductionScale)(this.parameter, scale);
|
|
134
|
+
}
|
|
135
|
+
persistValues(applHost) {
|
|
136
|
+
if (!super.persistValues(applHost))
|
|
137
|
+
return false;
|
|
138
|
+
const valueValue = exports.EnergyProductionCCValues.value(this.parameter);
|
|
139
|
+
this.setMetadata(applHost, valueValue, {
|
|
140
|
+
...valueValue.meta,
|
|
141
|
+
unit: this.scale.unit,
|
|
142
|
+
ccSpecific: {
|
|
143
|
+
parameter: this.parameter,
|
|
144
|
+
scale: this.scale.key,
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
this.setValue(applHost, valueValue, this.value);
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
EnergyProductionCCReport = __decorate([
|
|
152
|
+
(0, CommandClassDecorators_1.CCCommand)(_Types_1.EnergyProductionCommand.Report)
|
|
153
|
+
], EnergyProductionCCReport);
|
|
154
|
+
exports.EnergyProductionCCReport = EnergyProductionCCReport;
|
|
155
|
+
function testResponseForEnergyProductionGet(sent, received) {
|
|
156
|
+
return received.parameter === sent.parameter;
|
|
157
|
+
}
|
|
158
|
+
let EnergyProductionCCGet = class EnergyProductionCCGet extends EnergyProductionCC {
|
|
159
|
+
constructor(host, options) {
|
|
160
|
+
super(host, options);
|
|
161
|
+
if ((0, CommandClass_1.gotDeserializationOptions)(options)) {
|
|
162
|
+
(0, core_1.validatePayload)(this.payload.length >= 1);
|
|
163
|
+
this.parameter = this.payload[0];
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
this.parameter = options.parameter;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
serialize() {
|
|
170
|
+
this.payload = Buffer.from([this.parameter]);
|
|
171
|
+
return super.serialize();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
EnergyProductionCCGet = __decorate([
|
|
175
|
+
(0, CommandClassDecorators_1.CCCommand)(_Types_1.EnergyProductionCommand.Get),
|
|
176
|
+
(0, CommandClassDecorators_1.expectedCCResponse)(EnergyProductionCCReport, testResponseForEnergyProductionGet)
|
|
177
|
+
], EnergyProductionCCGet);
|
|
178
|
+
exports.EnergyProductionCCGet = EnergyProductionCCGet;
|
|
179
|
+
//# sourceMappingURL=EnergyProductionCC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnergyProductionCC.js","sourceRoot":"","sources":["../../src/cc/EnergyProductionCC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAOwB;AAExB,6CAA2D;AAE3D,oCAKoB;AACpB,sDAK6B;AAC7B,0EAOuC;AACvC,0CAAkC;AAClC,0CAKuB;AAEV,QAAA,wBAAwB,GAAG,MAAM,CAAC,MAAM,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A3B,MAAM,qBAAsB,SAAQ,kBAAkB;IAC5D,YACC,IAAe,EACf,OAE+B;QAE/B,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACrB,IAAI,IAAA,wCAAyB,EAAC,OAAO,CAAC,EAAE;YACvC,IAAA,sBAAe,EAAC,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;YAC1C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;SACjC;aAAM;YACN,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;SACnC;IACF,CAAC;IAIM,SAAS;QACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;QAC7C,OAAO,KAAK,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;CACD,CAAA;AAtBY,qBAAqB;IALjC,IAAA,kCAAS,EAAC,gCAAuB,CAAC,GAAG,CAAC;IACtC,IAAA,2CAAkB,EAClB,wBAAwB,EACxB,kCAAkC,CAClC;GACY,qBAAqB,CAsBjC;AAtBY,sDAAqB"}
|
|
@@ -7,17 +7,6 @@ import { CommandClass, type CCCommandOptions, type CommandClassDeserializationOp
|
|
|
7
7
|
import { HumidityControlSetpointCapabilities, HumidityControlSetpointCommand, HumidityControlSetpointType, HumidityControlSetpointValue } from "../lib/_Types";
|
|
8
8
|
export declare const HumidityControlSetpointCCValues: Readonly<{
|
|
9
9
|
setpointScale: ((setpointType: number) => {
|
|
10
|
-
readonly endpoint: (endpoint?: number | undefined) => {
|
|
11
|
-
readonly commandClass: (typeof CommandClasses)["Humidity Control Setpoint"];
|
|
12
|
-
readonly endpoint: number;
|
|
13
|
-
readonly property: "setpointScale";
|
|
14
|
-
readonly propertyKey: number;
|
|
15
|
-
};
|
|
16
|
-
readonly id: {
|
|
17
|
-
commandClass: (typeof CommandClasses)["Humidity Control Setpoint"];
|
|
18
|
-
property: "setpointScale";
|
|
19
|
-
propertyKey: number;
|
|
20
|
-
};
|
|
21
10
|
readonly meta: {
|
|
22
11
|
readonly label: `Setpoint scale (${string})`;
|
|
23
12
|
readonly writeable: false;
|
|
@@ -26,6 +15,17 @@ export declare const HumidityControlSetpointCCValues: Readonly<{
|
|
|
26
15
|
readonly type: "number";
|
|
27
16
|
readonly readable: true;
|
|
28
17
|
};
|
|
18
|
+
readonly id: {
|
|
19
|
+
commandClass: (typeof CommandClasses)["Humidity Control Setpoint"];
|
|
20
|
+
property: "setpointScale";
|
|
21
|
+
propertyKey: number;
|
|
22
|
+
};
|
|
23
|
+
readonly endpoint: (endpoint?: number | undefined) => {
|
|
24
|
+
readonly commandClass: (typeof CommandClasses)["Humidity Control Setpoint"];
|
|
25
|
+
readonly endpoint: number;
|
|
26
|
+
readonly property: "setpointScale";
|
|
27
|
+
readonly propertyKey: number;
|
|
28
|
+
};
|
|
29
29
|
}) & {
|
|
30
30
|
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
31
31
|
readonly options: {
|
|
@@ -38,17 +38,6 @@ export declare const HumidityControlSetpointCCValues: Readonly<{
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
setpoint: ((setpointType: number) => {
|
|
41
|
-
readonly endpoint: (endpoint?: number | undefined) => {
|
|
42
|
-
readonly commandClass: (typeof CommandClasses)["Humidity Control Setpoint"];
|
|
43
|
-
readonly endpoint: number;
|
|
44
|
-
readonly property: "setpoint";
|
|
45
|
-
readonly propertyKey: number;
|
|
46
|
-
};
|
|
47
|
-
readonly id: {
|
|
48
|
-
commandClass: (typeof CommandClasses)["Humidity Control Setpoint"];
|
|
49
|
-
property: "setpoint";
|
|
50
|
-
propertyKey: number;
|
|
51
|
-
};
|
|
52
41
|
readonly meta: {
|
|
53
42
|
readonly label: `Setpoint (${string})`;
|
|
54
43
|
readonly ccSpecific: {
|
|
@@ -58,6 +47,17 @@ export declare const HumidityControlSetpointCCValues: Readonly<{
|
|
|
58
47
|
readonly readable: true;
|
|
59
48
|
readonly writeable: true;
|
|
60
49
|
};
|
|
50
|
+
readonly id: {
|
|
51
|
+
commandClass: (typeof CommandClasses)["Humidity Control Setpoint"];
|
|
52
|
+
property: "setpoint";
|
|
53
|
+
propertyKey: number;
|
|
54
|
+
};
|
|
55
|
+
readonly endpoint: (endpoint?: number | undefined) => {
|
|
56
|
+
readonly commandClass: (typeof CommandClasses)["Humidity Control Setpoint"];
|
|
57
|
+
readonly endpoint: number;
|
|
58
|
+
readonly property: "setpoint";
|
|
59
|
+
readonly propertyKey: number;
|
|
60
|
+
};
|
|
61
61
|
}) & {
|
|
62
62
|
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
63
63
|
readonly options: {
|
|
@@ -7,19 +7,19 @@ import { CommandClass, type CCCommandOptions, type CommandClassDeserializationOp
|
|
|
7
7
|
import { IndicatorCommand } from "../lib/_Types";
|
|
8
8
|
export declare const IndicatorCCValues: Readonly<{
|
|
9
9
|
indicatorDescription: ((indicatorId: number) => {
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
10
|
+
readonly meta: {
|
|
11
|
+
readonly type: "any";
|
|
12
|
+
readonly readable: true;
|
|
13
|
+
readonly writeable: true;
|
|
14
14
|
};
|
|
15
15
|
readonly id: {
|
|
16
16
|
commandClass: CommandClasses.Indicator;
|
|
17
17
|
property: number;
|
|
18
18
|
};
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
19
|
+
readonly endpoint: (endpoint?: number | undefined) => {
|
|
20
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
21
|
+
readonly endpoint: number;
|
|
22
|
+
readonly property: number;
|
|
23
23
|
};
|
|
24
24
|
}) & {
|
|
25
25
|
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
@@ -33,17 +33,6 @@ export declare const IndicatorCCValues: Readonly<{
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
valueV2: ((indicatorId: number, propertyId: number) => {
|
|
36
|
-
readonly endpoint: (endpoint?: number | undefined) => {
|
|
37
|
-
readonly commandClass: CommandClasses.Indicator;
|
|
38
|
-
readonly endpoint: number;
|
|
39
|
-
readonly property: number;
|
|
40
|
-
readonly propertyKey: number;
|
|
41
|
-
};
|
|
42
|
-
readonly id: {
|
|
43
|
-
commandClass: CommandClasses.Indicator;
|
|
44
|
-
property: number;
|
|
45
|
-
propertyKey: number;
|
|
46
|
-
};
|
|
47
36
|
readonly meta: {
|
|
48
37
|
readonly ccSpecific: {
|
|
49
38
|
indicatorId: number;
|
|
@@ -53,33 +42,44 @@ export declare const IndicatorCCValues: Readonly<{
|
|
|
53
42
|
readonly readable: true;
|
|
54
43
|
readonly writeable: true;
|
|
55
44
|
};
|
|
45
|
+
readonly id: {
|
|
46
|
+
commandClass: CommandClasses.Indicator;
|
|
47
|
+
property: number;
|
|
48
|
+
propertyKey: number;
|
|
49
|
+
};
|
|
50
|
+
readonly endpoint: (endpoint?: number | undefined) => {
|
|
51
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
52
|
+
readonly endpoint: number;
|
|
53
|
+
readonly property: number;
|
|
54
|
+
readonly propertyKey: number;
|
|
55
|
+
};
|
|
56
56
|
}) & {
|
|
57
57
|
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
58
58
|
readonly options: {
|
|
59
|
-
readonly internal: false;
|
|
60
59
|
readonly stateful: true;
|
|
61
60
|
readonly secret: false;
|
|
61
|
+
readonly internal: false;
|
|
62
62
|
readonly supportsEndpoints: true;
|
|
63
63
|
readonly autoCreate: true;
|
|
64
64
|
readonly minVersion: 2;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
supportedPropertyIDs: ((indicatorId: number) => {
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly propertyKey: number;
|
|
68
|
+
readonly meta: {
|
|
69
|
+
readonly type: "any";
|
|
70
|
+
readonly readable: true;
|
|
71
|
+
readonly writeable: true;
|
|
73
72
|
};
|
|
74
73
|
readonly id: {
|
|
75
74
|
commandClass: CommandClasses.Indicator;
|
|
76
75
|
property: "supportedPropertyIDs";
|
|
77
76
|
propertyKey: number;
|
|
78
77
|
};
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
78
|
+
readonly endpoint: (endpoint?: number | undefined) => {
|
|
79
|
+
readonly commandClass: CommandClasses.Indicator;
|
|
80
|
+
readonly endpoint: number;
|
|
81
|
+
readonly property: "supportedPropertyIDs";
|
|
82
|
+
readonly propertyKey: number;
|
|
83
83
|
};
|
|
84
84
|
}) & {
|
|
85
85
|
is: (valueId: import("@zwave-js/core/safe").ValueID) => boolean;
|
|
@@ -110,9 +110,9 @@ export declare const IndicatorCCValues: Readonly<{
|
|
|
110
110
|
readonly writeable: true;
|
|
111
111
|
};
|
|
112
112
|
readonly options: {
|
|
113
|
-
readonly internal: false;
|
|
114
113
|
readonly stateful: true;
|
|
115
114
|
readonly secret: false;
|
|
115
|
+
readonly internal: false;
|
|
116
116
|
readonly supportsEndpoints: true;
|
|
117
117
|
readonly autoCreate: true;
|
|
118
118
|
readonly minVersion: 3;
|