@zwave-js/cc 15.1.2 → 15.2.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.
Files changed (50) hide show
  1. package/build/cjs/cc/BasicWindowCoveringCC._validateArgs.d.ts +3 -0
  2. package/build/cjs/cc/BasicWindowCoveringCC._validateArgs.js +64 -0
  3. package/build/cjs/cc/BasicWindowCoveringCC._validateArgs.js.map +7 -0
  4. package/build/cjs/cc/BasicWindowCoveringCC.d.ts +90 -0
  5. package/build/cjs/cc/BasicWindowCoveringCC.js +273 -0
  6. package/build/cjs/cc/BasicWindowCoveringCC.js.map +7 -0
  7. package/build/cjs/cc/_CCValues.generated.d.ts +124 -0
  8. package/build/cjs/cc/_CCValues.generated.js +69 -0
  9. package/build/cjs/cc/_CCValues.generated.js.map +2 -2
  10. package/build/cjs/cc/index.d.ts +2 -0
  11. package/build/cjs/cc/index.js +9 -0
  12. package/build/cjs/cc/index.js.map +2 -2
  13. package/build/cjs/index.d.ts +0 -1
  14. package/build/cjs/index.js +0 -1
  15. package/build/cjs/index.js.map +2 -2
  16. package/build/cjs/lib/API.d.ts +2 -0
  17. package/build/cjs/lib/API.js.map +2 -2
  18. package/build/cjs/lib/_Types.d.ts +4 -0
  19. package/build/cjs/lib/_Types.js +7 -0
  20. package/build/cjs/lib/_Types.js.map +3 -3
  21. package/build/cjs/package.json +2 -1
  22. package/build/esm/cc/BasicWindowCoveringCC._validateArgs.d.ts +3 -0
  23. package/build/esm/cc/BasicWindowCoveringCC._validateArgs.d.ts.map +1 -0
  24. package/build/esm/cc/BasicWindowCoveringCC._validateArgs.js +22 -0
  25. package/build/esm/cc/BasicWindowCoveringCC._validateArgs.js.map +1 -0
  26. package/build/esm/cc/BasicWindowCoveringCC.d.ts +90 -0
  27. package/build/esm/cc/BasicWindowCoveringCC.d.ts.map +1 -0
  28. package/build/esm/cc/BasicWindowCoveringCC.js +215 -0
  29. package/build/esm/cc/BasicWindowCoveringCC.js.map +1 -0
  30. package/build/esm/cc/_CCValues.generated.d.ts +124 -0
  31. package/build/esm/cc/_CCValues.generated.d.ts.map +1 -1
  32. package/build/esm/cc/_CCValues.generated.js +73 -0
  33. package/build/esm/cc/_CCValues.generated.js.map +1 -1
  34. package/build/esm/cc/index.d.ts +2 -0
  35. package/build/esm/cc/index.d.ts.map +1 -1
  36. package/build/esm/cc/index.js +1 -0
  37. package/build/esm/cc/index.js.map +1 -1
  38. package/build/esm/index.d.ts +0 -1
  39. package/build/esm/index.d.ts.map +1 -1
  40. package/build/esm/index.js +0 -1
  41. package/build/esm/index.js.map +1 -1
  42. package/build/esm/lib/API.d.ts +2 -0
  43. package/build/esm/lib/API.d.ts.map +1 -1
  44. package/build/esm/lib/API.js.map +1 -1
  45. package/build/esm/lib/_Types.d.ts +4 -0
  46. package/build/esm/lib/_Types.d.ts.map +1 -1
  47. package/build/esm/lib/_Types.js +5 -0
  48. package/build/esm/lib/_Types.js.map +1 -1
  49. package/build/esm/package.json +2 -1
  50. package/package.json +6 -5
@@ -0,0 +1,3 @@
1
+ export declare function validateArgs_BasicWindowCoveringCCAPI_startLevelChange(): <T extends Function>(__decoratedMethod: T, { kind }: ClassMethodDecoratorContext) => T | void;
2
+ export declare function validateArgs_BasicWindowCoveringCCAPI_stopLevelChange(): <T extends Function>(__decoratedMethod: T, { kind }: ClassMethodDecoratorContext) => T | void;
3
+ //# sourceMappingURL=BasicWindowCoveringCC._validateArgs.d.ts.map
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var BasicWindowCoveringCC_validateArgs_exports = {};
31
+ __export(BasicWindowCoveringCC_validateArgs_exports, {
32
+ validateArgs_BasicWindowCoveringCCAPI_startLevelChange: () => validateArgs_BasicWindowCoveringCCAPI_startLevelChange,
33
+ validateArgs_BasicWindowCoveringCCAPI_stopLevelChange: () => validateArgs_BasicWindowCoveringCCAPI_stopLevelChange
34
+ });
35
+ module.exports = __toCommonJS(BasicWindowCoveringCC_validateArgs_exports);
36
+ var v = __toESM(require("@zwave-js/core/validation"), 1);
37
+ function validateArgs_BasicWindowCoveringCCAPI_startLevelChange() {
38
+ return (__decoratedMethod, { kind }) => {
39
+ if (kind === "method") {
40
+ return /* @__PURE__ */ __name(function startLevelChange(direction) {
41
+ v.assert(v.oneOf({ kind: "parameter", name: "direction" }, void 0, v.literal({ kind: "parameter", name: "direction" }, "up"), v.literal({ kind: "parameter", name: "direction" }, "down"))(direction));
42
+ return __decoratedMethod.call(this, direction);
43
+ }, "startLevelChange");
44
+ }
45
+ };
46
+ }
47
+ __name(validateArgs_BasicWindowCoveringCCAPI_startLevelChange, "validateArgs_BasicWindowCoveringCCAPI_startLevelChange");
48
+ function validateArgs_BasicWindowCoveringCCAPI_stopLevelChange() {
49
+ return (__decoratedMethod, { kind }) => {
50
+ if (kind === "method") {
51
+ return /* @__PURE__ */ __name(function stopLevelChange() {
52
+ v.assert();
53
+ return __decoratedMethod.call(this);
54
+ }, "stopLevelChange");
55
+ }
56
+ };
57
+ }
58
+ __name(validateArgs_BasicWindowCoveringCCAPI_stopLevelChange, "validateArgs_BasicWindowCoveringCCAPI_stopLevelChange");
59
+ // Annotate the CommonJS export names for ESM import in node:
60
+ 0 && (module.exports = {
61
+ validateArgs_BasicWindowCoveringCCAPI_startLevelChange,
62
+ validateArgs_BasicWindowCoveringCCAPI_stopLevelChange
63
+ });
64
+ //# sourceMappingURL=BasicWindowCoveringCC._validateArgs.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cc/BasicWindowCoveringCC._validateArgs.ts"],
4
+ "sourcesContent": [null],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAAA,QAAmB;AAEb,SAAU,yDAAsD;AACrE,SAAO,CAAqB,mBAAsB,EAAE,KAAI,MAA6C;AACpG,QAAI,SAAS,UAAU;AACtB,aAAO,gCAAS,iBAA4B,WAAkB;AAC7D,UAAE,OACD,EAAE,MAAM,EAAE,MAAM,aAAa,MAAM,YAAW,GAAI,QAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,MAAM,YAAW,GAAI,IAAI,GAAG,EAAE,QAAQ,EAAE,MAAM,aAAa,MAAM,YAAW,GAAI,MAAM,CAAC,EAAE,SAAS,CAAC;AAEhM,eAAO,kBAAkB,KAAK,MAAM,SAAS;MAC9C,GALO;IAMR;EACD;AACD;AAXgB;AAaV,SAAU,wDAAqD;AACpE,SAAO,CAAqB,mBAAsB,EAAE,KAAI,MAA6C;AACpG,QAAI,SAAS,UAAU;AACtB,aAAO,gCAAS,kBAAe;AAC9B,UAAE,OAAM;AAER,eAAO,kBAAkB,KAAK,IAAI;MACnC,GAJO;IAKR;EACD;AACD;AAVgB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,90 @@
1
+ import { CommandClasses, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, type SupervisionResult, type WithAddress } from "@zwave-js/core";
2
+ import { Bytes } from "@zwave-js/shared";
3
+ import { CCAPI, SET_VALUE, type SetValueImplementation } from "../lib/API.js";
4
+ import { type CCRaw, CommandClass } from "../lib/CommandClass.js";
5
+ import { BasicWindowCoveringCommand, type LevelChangeDirection } from "../lib/_Types.js";
6
+ import type { CCEncodingContext, CCParsingContext } from "../lib/traits.js";
7
+ export declare const BasicWindowCoveringCCValues: Readonly<{
8
+ levelChangeUp: {
9
+ id: {
10
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
11
+ readonly property: "levelChangeUp";
12
+ };
13
+ endpoint: (endpoint?: number) => {
14
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
15
+ readonly endpoint: number;
16
+ readonly property: "levelChangeUp";
17
+ };
18
+ is: (valueId: import("@zwave-js/core").ValueID) => boolean;
19
+ readonly meta: {
20
+ readonly label: "Open";
21
+ readonly states: {
22
+ readonly true: "Start";
23
+ readonly false: "Stop";
24
+ };
25
+ readonly readable: false;
26
+ readonly type: "boolean";
27
+ readonly writeable: true;
28
+ };
29
+ options: {
30
+ readonly internal: false;
31
+ readonly minVersion: 1;
32
+ readonly secret: false;
33
+ readonly stateful: true;
34
+ readonly supportsEndpoints: true;
35
+ readonly autoCreate: true;
36
+ };
37
+ };
38
+ levelChangeDown: {
39
+ id: {
40
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
41
+ readonly property: "levelChangeDown";
42
+ };
43
+ endpoint: (endpoint?: number) => {
44
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
45
+ readonly endpoint: number;
46
+ readonly property: "levelChangeDown";
47
+ };
48
+ is: (valueId: import("@zwave-js/core").ValueID) => boolean;
49
+ readonly meta: {
50
+ readonly label: "Close";
51
+ readonly states: {
52
+ readonly true: "Start";
53
+ readonly false: "Stop";
54
+ };
55
+ readonly readable: false;
56
+ readonly type: "boolean";
57
+ readonly writeable: true;
58
+ };
59
+ options: {
60
+ readonly internal: false;
61
+ readonly minVersion: 1;
62
+ readonly secret: false;
63
+ readonly stateful: true;
64
+ readonly supportsEndpoints: true;
65
+ readonly autoCreate: true;
66
+ };
67
+ };
68
+ }>;
69
+ export declare class BasicWindowCoveringCCAPI extends CCAPI {
70
+ supportsCommand(cmd: BasicWindowCoveringCommand): MaybeNotKnown<boolean>;
71
+ protected get [SET_VALUE](): SetValueImplementation;
72
+ startLevelChange(direction: keyof typeof LevelChangeDirection): Promise<SupervisionResult | undefined>;
73
+ stopLevelChange(): Promise<SupervisionResult | undefined>;
74
+ }
75
+ export declare class BasicWindowCoveringCC extends CommandClass {
76
+ ccCommand: BasicWindowCoveringCommand;
77
+ }
78
+ export interface BasicWindowCoveringCCStartLevelChangeOptions {
79
+ direction: keyof typeof LevelChangeDirection;
80
+ }
81
+ export declare class BasicWindowCoveringCCStartLevelChange extends BasicWindowCoveringCC {
82
+ constructor(options: WithAddress<BasicWindowCoveringCCStartLevelChangeOptions>);
83
+ static from(raw: CCRaw, ctx: CCParsingContext): BasicWindowCoveringCCStartLevelChange;
84
+ direction: keyof typeof LevelChangeDirection;
85
+ serialize(ctx: CCEncodingContext): Promise<Bytes>;
86
+ toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry;
87
+ }
88
+ export declare class BasicWindowCoveringCCStopLevelChange extends BasicWindowCoveringCC {
89
+ }
90
+ //# sourceMappingURL=BasicWindowCoveringCC.d.ts.map
@@ -0,0 +1,273 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var BasicWindowCoveringCC_exports = {};
31
+ __export(BasicWindowCoveringCC_exports, {
32
+ BasicWindowCoveringCC: () => BasicWindowCoveringCC,
33
+ BasicWindowCoveringCCAPI: () => BasicWindowCoveringCCAPI,
34
+ BasicWindowCoveringCCStartLevelChange: () => BasicWindowCoveringCCStartLevelChange,
35
+ BasicWindowCoveringCCStopLevelChange: () => BasicWindowCoveringCCStopLevelChange,
36
+ BasicWindowCoveringCCValues: () => import_CCValues_generated.BasicWindowCoveringCCValues
37
+ });
38
+ module.exports = __toCommonJS(BasicWindowCoveringCC_exports);
39
+ var __validateArgs = __toESM(require("./BasicWindowCoveringCC._validateArgs.js"), 1);
40
+ var import_core = require("@zwave-js/core");
41
+ var import_shared = require("@zwave-js/shared");
42
+ var import_API = require("../lib/API.js");
43
+ var import_CommandClass = require("../lib/CommandClass.js");
44
+ var import_CommandClassDecorators = require("../lib/CommandClassDecorators.js");
45
+ var import_Values = require("../lib/Values.js");
46
+ var import_Types = require("../lib/_Types.js");
47
+ var import_CCValues_generated = require("./_CCValues.generated.js");
48
+ var __runInitializers = function(thisArg, initializers, value) {
49
+ var useValue = arguments.length > 2;
50
+ for (var i = 0; i < initializers.length; i++) {
51
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
52
+ }
53
+ return useValue ? value : void 0;
54
+ };
55
+ var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
56
+ function accept(f) {
57
+ if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
58
+ return f;
59
+ }
60
+ __name(accept, "accept");
61
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
62
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
63
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
64
+ var _, done = false;
65
+ for (var i = decorators.length - 1; i >= 0; i--) {
66
+ var context = {};
67
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
68
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
69
+ context.addInitializer = function(f) {
70
+ if (done) throw new TypeError("Cannot add initializers after decoration has completed");
71
+ extraInitializers.push(accept(f || null));
72
+ };
73
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
74
+ if (kind === "accessor") {
75
+ if (result === void 0) continue;
76
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
77
+ if (_ = accept(result.get)) descriptor.get = _;
78
+ if (_ = accept(result.set)) descriptor.set = _;
79
+ if (_ = accept(result.init)) initializers.unshift(_);
80
+ } else if (_ = accept(result)) {
81
+ if (kind === "field") initializers.unshift(_);
82
+ else descriptor[key] = _;
83
+ }
84
+ }
85
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
86
+ done = true;
87
+ };
88
+ const { validateArgs_BasicWindowCoveringCCAPI_startLevelChange, validateArgs_BasicWindowCoveringCCAPI_stopLevelChange } = __validateArgs;
89
+ let BasicWindowCoveringCCAPI = (() => {
90
+ let _classDecorators = [(0, import_CommandClassDecorators.API)(import_core.CommandClasses["Basic Window Covering"])];
91
+ let _classDescriptor;
92
+ let _classExtraInitializers = [];
93
+ let _classThis;
94
+ let _classSuper = import_API.CCAPI;
95
+ let _instanceExtraInitializers = [];
96
+ let _startLevelChange_decorators;
97
+ let _stopLevelChange_decorators;
98
+ var BasicWindowCoveringCCAPI2 = class extends _classSuper {
99
+ static {
100
+ __name(this, "BasicWindowCoveringCCAPI");
101
+ }
102
+ static {
103
+ _classThis = this;
104
+ }
105
+ static {
106
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
107
+ _startLevelChange_decorators = [validateArgs_BasicWindowCoveringCCAPI_startLevelChange({ strictEnums: true })];
108
+ _stopLevelChange_decorators = [validateArgs_BasicWindowCoveringCCAPI_stopLevelChange({ strictEnums: true })];
109
+ __esDecorate(this, null, _startLevelChange_decorators, { kind: "method", name: "startLevelChange", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "startLevelChange" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.startLevelChange, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
110
+ __esDecorate(this, null, _stopLevelChange_decorators, { kind: "method", name: "stopLevelChange", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "stopLevelChange" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.stopLevelChange, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
111
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
112
+ BasicWindowCoveringCCAPI2 = _classThis = _classDescriptor.value;
113
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
114
+ __runInitializers(_classThis, _classExtraInitializers);
115
+ }
116
+ supportsCommand(cmd) {
117
+ switch (cmd) {
118
+ case import_Types.BasicWindowCoveringCommand.StartLevelChange:
119
+ case import_Types.BasicWindowCoveringCommand.StopLevelChange:
120
+ return true;
121
+ }
122
+ return super.supportsCommand(cmd);
123
+ }
124
+ get [import_API.SET_VALUE]() {
125
+ return async function({ property }, value) {
126
+ const valueId = {
127
+ commandClass: this.ccId,
128
+ property
129
+ };
130
+ if (import_CCValues_generated.BasicWindowCoveringCCValues.levelChangeUp.is(valueId) || import_CCValues_generated.BasicWindowCoveringCCValues.levelChangeDown.is(valueId)) {
131
+ if (typeof value !== "boolean") {
132
+ (0, import_API.throwWrongValueType)(this.ccId, property, "boolean", typeof value);
133
+ }
134
+ if (value) {
135
+ const direction = import_CCValues_generated.BasicWindowCoveringCCValues.levelChangeUp.is(valueId) ? "up" : "down";
136
+ return this.startLevelChange(direction);
137
+ } else {
138
+ return this.stopLevelChange();
139
+ }
140
+ } else {
141
+ (0, import_API.throwUnsupportedProperty)(this.ccId, property);
142
+ }
143
+ };
144
+ }
145
+ async startLevelChange(direction) {
146
+ this.assertSupportsCommand(import_Types.BasicWindowCoveringCommand, import_Types.BasicWindowCoveringCommand.StartLevelChange);
147
+ const cc = new BasicWindowCoveringCCStartLevelChange({
148
+ nodeId: this.endpoint.nodeId,
149
+ endpointIndex: this.endpoint.index,
150
+ direction
151
+ });
152
+ return this.host.sendCommand(cc, this.commandOptions);
153
+ }
154
+ async stopLevelChange() {
155
+ this.assertSupportsCommand(import_Types.BasicWindowCoveringCommand, import_Types.BasicWindowCoveringCommand.StopLevelChange);
156
+ const cc = new BasicWindowCoveringCCStopLevelChange({
157
+ nodeId: this.endpoint.nodeId,
158
+ endpointIndex: this.endpoint.index
159
+ });
160
+ return this.host.sendCommand(cc, this.commandOptions);
161
+ }
162
+ constructor() {
163
+ super(...arguments);
164
+ __runInitializers(this, _instanceExtraInitializers);
165
+ }
166
+ };
167
+ return BasicWindowCoveringCCAPI2 = _classThis;
168
+ })();
169
+ let BasicWindowCoveringCC = (() => {
170
+ let _classDecorators = [(0, import_CommandClassDecorators.commandClass)(import_core.CommandClasses["Basic Window Covering"]), (0, import_CommandClassDecorators.implementedVersion)(1), (0, import_CommandClassDecorators.ccValues)(import_CCValues_generated.BasicWindowCoveringCCValues)];
171
+ let _classDescriptor;
172
+ let _classExtraInitializers = [];
173
+ let _classThis;
174
+ let _classSuper = import_CommandClass.CommandClass;
175
+ var BasicWindowCoveringCC2 = class extends _classSuper {
176
+ static {
177
+ __name(this, "BasicWindowCoveringCC");
178
+ }
179
+ static {
180
+ _classThis = this;
181
+ }
182
+ static {
183
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
184
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
185
+ BasicWindowCoveringCC2 = _classThis = _classDescriptor.value;
186
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
187
+ __runInitializers(_classThis, _classExtraInitializers);
188
+ }
189
+ };
190
+ return BasicWindowCoveringCC2 = _classThis;
191
+ })();
192
+ let BasicWindowCoveringCCStartLevelChange = (() => {
193
+ let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.BasicWindowCoveringCommand.StartLevelChange), (0, import_CommandClassDecorators.useSupervision)()];
194
+ let _classDescriptor;
195
+ let _classExtraInitializers = [];
196
+ let _classThis;
197
+ let _classSuper = BasicWindowCoveringCC;
198
+ var BasicWindowCoveringCCStartLevelChange2 = class extends _classSuper {
199
+ static {
200
+ __name(this, "BasicWindowCoveringCCStartLevelChange");
201
+ }
202
+ static {
203
+ _classThis = this;
204
+ }
205
+ static {
206
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
207
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
208
+ BasicWindowCoveringCCStartLevelChange2 = _classThis = _classDescriptor.value;
209
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
210
+ __runInitializers(_classThis, _classExtraInitializers);
211
+ }
212
+ constructor(options) {
213
+ super(options);
214
+ this.direction = options.direction;
215
+ }
216
+ static from(raw, ctx) {
217
+ (0, import_core.validatePayload)(raw.payload.length === 1);
218
+ const direction = !!(raw.payload[0] & 64) ? "down" : "up";
219
+ return new this({
220
+ nodeId: ctx.sourceNodeId,
221
+ direction
222
+ });
223
+ }
224
+ direction;
225
+ async serialize(ctx) {
226
+ this.payload = import_shared.Bytes.from([
227
+ this.direction === "down" ? 64 : 0
228
+ ]);
229
+ return super.serialize(ctx);
230
+ }
231
+ toLogEntry(ctx) {
232
+ return {
233
+ ...super.toLogEntry(ctx),
234
+ message: {
235
+ direction: this.direction
236
+ }
237
+ };
238
+ }
239
+ };
240
+ return BasicWindowCoveringCCStartLevelChange2 = _classThis;
241
+ })();
242
+ let BasicWindowCoveringCCStopLevelChange = (() => {
243
+ let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.BasicWindowCoveringCommand.StopLevelChange), (0, import_CommandClassDecorators.useSupervision)()];
244
+ let _classDescriptor;
245
+ let _classExtraInitializers = [];
246
+ let _classThis;
247
+ let _classSuper = BasicWindowCoveringCC;
248
+ var BasicWindowCoveringCCStopLevelChange2 = class extends _classSuper {
249
+ static {
250
+ __name(this, "BasicWindowCoveringCCStopLevelChange");
251
+ }
252
+ static {
253
+ _classThis = this;
254
+ }
255
+ static {
256
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
257
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
258
+ BasicWindowCoveringCCStopLevelChange2 = _classThis = _classDescriptor.value;
259
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
260
+ __runInitializers(_classThis, _classExtraInitializers);
261
+ }
262
+ };
263
+ return BasicWindowCoveringCCStopLevelChange2 = _classThis;
264
+ })();
265
+ // Annotate the CommonJS export names for ESM import in node:
266
+ 0 && (module.exports = {
267
+ BasicWindowCoveringCC,
268
+ BasicWindowCoveringCCAPI,
269
+ BasicWindowCoveringCCStartLevelChange,
270
+ BasicWindowCoveringCCStopLevelChange,
271
+ BasicWindowCoveringCCValues
272
+ });
273
+ //# sourceMappingURL=BasicWindowCoveringCC.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cc/BasicWindowCoveringCC.ts"],
4
+ "sourcesContent": ["import {\n\tCommandClasses,\n\ttype GetValueDB,\n\ttype MaybeNotKnown,\n\ttype MessageOrCCLogEntry,\n\ttype SupervisionResult,\n\tValueMetadata,\n\ttype WithAddress,\n\tvalidatePayload,\n} from \"@zwave-js/core\";\nimport { Bytes } from \"@zwave-js/shared\";\nimport { validateArgs } from \"@zwave-js/transformers\";\nimport {\n\tCCAPI,\n\tSET_VALUE,\n\ttype SetValueImplementation,\n\tthrowUnsupportedProperty,\n\tthrowWrongValueType,\n} from \"../lib/API.js\";\nimport { type CCRaw, CommandClass } from \"../lib/CommandClass.js\";\nimport {\n\tAPI,\n\tCCCommand,\n\tccValues,\n\tcommandClass,\n\timplementedVersion,\n\tuseSupervision,\n} from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport {\n\tBasicWindowCoveringCommand,\n\ttype LevelChangeDirection,\n} from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\n\nexport const BasicWindowCoveringCCValues = V.defineCCValues(\n\tCommandClasses[\"Basic Window Covering\"],\n\t{\n\t\t...V.staticProperty(\n\t\t\t\"levelChangeUp\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.WriteOnlyBoolean,\n\t\t\t\tlabel: \"Open\",\n\t\t\t\tstates: {\n\t\t\t\t\ttrue: \"Start\",\n\t\t\t\t\tfalse: \"Stop\",\n\t\t\t\t},\n\t\t\t},\n\t\t),\n\t\t...V.staticProperty(\n\t\t\t\"levelChangeDown\",\n\t\t\t{\n\t\t\t\t...ValueMetadata.WriteOnlyBoolean,\n\t\t\t\tlabel: \"Close\",\n\t\t\t\tstates: {\n\t\t\t\t\ttrue: \"Start\",\n\t\t\t\t\tfalse: \"Stop\",\n\t\t\t\t},\n\t\t\t},\n\t\t),\n\t},\n);\n\n@API(CommandClasses[\"Basic Window Covering\"])\nexport class BasicWindowCoveringCCAPI extends CCAPI {\n\tpublic supportsCommand(\n\t\tcmd: BasicWindowCoveringCommand,\n\t): MaybeNotKnown<boolean> {\n\t\tswitch (cmd) {\n\t\t\tcase BasicWindowCoveringCommand.StartLevelChange:\n\t\t\tcase BasicWindowCoveringCommand.StopLevelChange:\n\t\t\t\treturn true; // This is mandatory\n\t\t}\n\t\treturn super.supportsCommand(cmd);\n\t}\n\n\tprotected override get [SET_VALUE](): SetValueImplementation {\n\t\treturn async function(\n\t\t\tthis: BasicWindowCoveringCCAPI,\n\t\t\t{ property },\n\t\t\tvalue,\n\t\t) {\n\t\t\tconst valueId = {\n\t\t\t\tcommandClass: this.ccId,\n\t\t\t\tproperty,\n\t\t\t};\n\n\t\t\tif (\n\t\t\t\tBasicWindowCoveringCCValues.levelChangeUp.is(valueId)\n\t\t\t\t|| BasicWindowCoveringCCValues.levelChangeDown.is(valueId)\n\t\t\t) {\n\t\t\t\tif (typeof value !== \"boolean\") {\n\t\t\t\t\tthrowWrongValueType(\n\t\t\t\t\t\tthis.ccId,\n\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\"boolean\",\n\t\t\t\t\t\ttypeof value,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tif (value) {\n\t\t\t\t\tconst direction = BasicWindowCoveringCCValues.levelChangeUp\n\t\t\t\t\t\t\t.is(valueId)\n\t\t\t\t\t\t? \"up\"\n\t\t\t\t\t\t: \"down\";\n\t\t\t\t\treturn this.startLevelChange(direction);\n\t\t\t\t} else {\n\t\t\t\t\treturn this.stopLevelChange();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrowUnsupportedProperty(this.ccId, property);\n\t\t\t}\n\t\t};\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async startLevelChange(\n\t\tdirection: keyof typeof LevelChangeDirection,\n\t): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBasicWindowCoveringCommand,\n\t\t\tBasicWindowCoveringCommand.StartLevelChange,\n\t\t);\n\n\t\tconst cc = new BasicWindowCoveringCCStartLevelChange({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t\tdirection,\n\t\t});\n\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n\n\t@validateArgs({ strictEnums: true })\n\tpublic async stopLevelChange(): Promise<SupervisionResult | undefined> {\n\t\tthis.assertSupportsCommand(\n\t\t\tBasicWindowCoveringCommand,\n\t\t\tBasicWindowCoveringCommand.StopLevelChange,\n\t\t);\n\n\t\tconst cc = new BasicWindowCoveringCCStopLevelChange({\n\t\t\tnodeId: this.endpoint.nodeId,\n\t\t\tendpointIndex: this.endpoint.index,\n\t\t});\n\n\t\treturn this.host.sendCommand(cc, this.commandOptions);\n\t}\n}\n\n@commandClass(CommandClasses[\"Basic Window Covering\"])\n@implementedVersion(1)\n@ccValues(BasicWindowCoveringCCValues)\nexport class BasicWindowCoveringCC extends CommandClass {\n\tdeclare ccCommand: BasicWindowCoveringCommand;\n}\n\n// @publicAPI\nexport interface BasicWindowCoveringCCStartLevelChangeOptions {\n\tdirection: keyof typeof LevelChangeDirection;\n}\n\n@CCCommand(BasicWindowCoveringCommand.StartLevelChange)\n@useSupervision()\nexport class BasicWindowCoveringCCStartLevelChange\n\textends BasicWindowCoveringCC\n{\n\tpublic constructor(\n\t\toptions: WithAddress<BasicWindowCoveringCCStartLevelChangeOptions>,\n\t) {\n\t\tsuper(options);\n\t\tthis.direction = options.direction;\n\t}\n\n\tpublic static from(\n\t\traw: CCRaw,\n\t\tctx: CCParsingContext,\n\t): BasicWindowCoveringCCStartLevelChange {\n\t\t// The CC is obsolete and will never be extended. Check for exact length\n\t\tvalidatePayload(raw.payload.length === 1);\n\t\tconst direction = !!(raw.payload[0] & 0b0100_0000)\n\t\t\t? \"down\"\n\t\t\t: \"up\";\n\n\t\treturn new this({\n\t\t\tnodeId: ctx.sourceNodeId,\n\t\t\tdirection,\n\t\t});\n\t}\n\n\tpublic direction: keyof typeof LevelChangeDirection;\n\n\tpublic async serialize(ctx: CCEncodingContext): Promise<Bytes> {\n\t\tthis.payload = Bytes.from([\n\t\t\tthis.direction === \"down\" ? 0b0100_0000 : 0b0000_0000,\n\t\t]);\n\t\treturn super.serialize(ctx);\n\t}\n\n\tpublic toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n\t\treturn {\n\t\t\t...super.toLogEntry(ctx),\n\t\t\tmessage: {\n\t\t\t\tdirection: this.direction,\n\t\t\t},\n\t\t};\n\t}\n}\n\n@CCCommand(BasicWindowCoveringCommand.StopLevelChange)\n@useSupervision()\nexport class BasicWindowCoveringCCStopLevelChange\n\textends BasicWindowCoveringCC\n{}\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -635,6 +635,68 @@ export declare const BasicCCValues: Readonly<{
635
635
  };
636
636
  };
637
637
  }>;
638
+ export declare const BasicWindowCoveringCCValues: Readonly<{
639
+ levelChangeUp: {
640
+ id: {
641
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
642
+ readonly property: "levelChangeUp";
643
+ };
644
+ endpoint: (endpoint?: number) => {
645
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
646
+ readonly endpoint: number;
647
+ readonly property: "levelChangeUp";
648
+ };
649
+ is: (valueId: ValueID) => boolean;
650
+ readonly meta: {
651
+ readonly label: "Open";
652
+ readonly states: {
653
+ readonly true: "Start";
654
+ readonly false: "Stop";
655
+ };
656
+ readonly readable: false;
657
+ readonly type: "boolean";
658
+ readonly writeable: true;
659
+ };
660
+ options: {
661
+ readonly internal: false;
662
+ readonly minVersion: 1;
663
+ readonly secret: false;
664
+ readonly stateful: true;
665
+ readonly supportsEndpoints: true;
666
+ readonly autoCreate: true;
667
+ };
668
+ };
669
+ levelChangeDown: {
670
+ id: {
671
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
672
+ readonly property: "levelChangeDown";
673
+ };
674
+ endpoint: (endpoint?: number) => {
675
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
676
+ readonly endpoint: number;
677
+ readonly property: "levelChangeDown";
678
+ };
679
+ is: (valueId: ValueID) => boolean;
680
+ readonly meta: {
681
+ readonly label: "Close";
682
+ readonly states: {
683
+ readonly true: "Start";
684
+ readonly false: "Stop";
685
+ };
686
+ readonly readable: false;
687
+ readonly type: "boolean";
688
+ readonly writeable: true;
689
+ };
690
+ options: {
691
+ readonly internal: false;
692
+ readonly minVersion: 1;
693
+ readonly secret: false;
694
+ readonly stateful: true;
695
+ readonly supportsEndpoints: true;
696
+ readonly autoCreate: true;
697
+ };
698
+ };
699
+ }>;
638
700
  export declare const BatteryCCValues: Readonly<{
639
701
  level: {
640
702
  id: {
@@ -8545,6 +8607,68 @@ export declare const CCValues: {
8545
8607
  };
8546
8608
  };
8547
8609
  }>;
8610
+ 80: Readonly<{
8611
+ levelChangeUp: {
8612
+ id: {
8613
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
8614
+ readonly property: "levelChangeUp";
8615
+ };
8616
+ endpoint: (endpoint?: number) => {
8617
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
8618
+ readonly endpoint: number;
8619
+ readonly property: "levelChangeUp";
8620
+ };
8621
+ is: (valueId: ValueID) => boolean;
8622
+ readonly meta: {
8623
+ readonly label: "Open";
8624
+ readonly states: {
8625
+ readonly true: "Start";
8626
+ readonly false: "Stop";
8627
+ };
8628
+ readonly readable: false;
8629
+ readonly type: "boolean";
8630
+ readonly writeable: true;
8631
+ };
8632
+ options: {
8633
+ readonly internal: false;
8634
+ readonly minVersion: 1;
8635
+ readonly secret: false;
8636
+ readonly stateful: true;
8637
+ readonly supportsEndpoints: true;
8638
+ readonly autoCreate: true;
8639
+ };
8640
+ };
8641
+ levelChangeDown: {
8642
+ id: {
8643
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
8644
+ readonly property: "levelChangeDown";
8645
+ };
8646
+ endpoint: (endpoint?: number) => {
8647
+ readonly commandClass: (typeof CommandClasses)["Basic Window Covering"];
8648
+ readonly endpoint: number;
8649
+ readonly property: "levelChangeDown";
8650
+ };
8651
+ is: (valueId: ValueID) => boolean;
8652
+ readonly meta: {
8653
+ readonly label: "Close";
8654
+ readonly states: {
8655
+ readonly true: "Start";
8656
+ readonly false: "Stop";
8657
+ };
8658
+ readonly readable: false;
8659
+ readonly type: "boolean";
8660
+ readonly writeable: true;
8661
+ };
8662
+ options: {
8663
+ readonly internal: false;
8664
+ readonly minVersion: 1;
8665
+ readonly secret: false;
8666
+ readonly stateful: true;
8667
+ readonly supportsEndpoints: true;
8668
+ readonly autoCreate: true;
8669
+ };
8670
+ };
8671
+ }>;
8548
8672
  128: Readonly<{
8549
8673
  level: {
8550
8674
  id: {