isy-nodejs 1.0.1-alpha.27 → 1.0.1-alpha.28

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 (160) hide show
  1. package/dist/cjs/CodeGeneration/EnumFactory.js +6 -6
  2. package/dist/cjs/CodeGeneration/EnumFactory.js.map +1 -1
  3. package/dist/cjs/CodeGeneration/NodeClassFactory.js +7 -7
  4. package/dist/cjs/CodeGeneration/NodeClassFactory.js.map +1 -1
  5. package/dist/cjs/Devices/ISYDeviceNode.js.map +1 -1
  6. package/dist/cjs/Devices/Insteon/InsteonDevice.js.map +1 -1
  7. package/dist/cjs/Devices/Insteon/InsteonDeviceFactory.js +12 -8
  8. package/dist/cjs/Devices/Insteon/InsteonDeviceFactory.js.map +1 -1
  9. package/dist/cjs/Devices/Insteon/InsteonKeypadDevice.js +2 -2
  10. package/dist/cjs/Devices/Insteon/InsteonKeypadDevice.js.map +1 -1
  11. package/dist/cjs/Devices/Insteon/KeypadButton.js +52 -0
  12. package/dist/cjs/Devices/Insteon/KeypadButton.js.map +1 -0
  13. package/dist/cjs/Devices/NodeFactory.js +5 -4
  14. package/dist/cjs/Devices/NodeFactory.js.map +1 -1
  15. package/dist/cjs/Devices/index.js.map +1 -1
  16. package/dist/cjs/ISY.js +220 -213
  17. package/dist/cjs/ISY.js.map +1 -1
  18. package/dist/cjs/ISYNode.js +3 -3
  19. package/dist/cjs/ISYNode.js.map +1 -1
  20. package/dist/cjs/ISYScene.js.map +1 -1
  21. package/dist/cjs/Matter/Behaviors/ISYBridgedDeviceBehavior.js.map +1 -1
  22. package/dist/cjs/Matter/Behaviors/ISYClusterBehavior.js.map +1 -1
  23. package/dist/cjs/Matter/Bridge/Server.js +4 -4
  24. package/dist/cjs/Matter/Bridge/Server.js.map +1 -1
  25. package/dist/cjs/Model/ClusterMap.js +2 -2
  26. package/dist/cjs/Model/ClusterMap.js.map +1 -1
  27. package/dist/cjs/Model/NodeInfo.js +3 -3
  28. package/dist/cjs/Model/NodeInfo.js.map +1 -1
  29. package/dist/cjs/Utils.js.map +1 -1
  30. package/dist/cjs/types/CodeGeneration/EnumFactory.d.ts +1 -1
  31. package/dist/cjs/types/CodeGeneration/EnumFactory.d.ts.map +1 -1
  32. package/dist/cjs/types/CodeGeneration/NodeClassFactory.d.ts +1 -1
  33. package/dist/cjs/types/CodeGeneration/NodeClassFactory.d.ts.map +1 -1
  34. package/dist/cjs/types/Devices/EndpointFor.d.ts +1 -1
  35. package/dist/cjs/types/Devices/ISYDeviceNode.d.ts +2 -1
  36. package/dist/cjs/types/Devices/ISYDeviceNode.d.ts.map +1 -1
  37. package/dist/cjs/types/Devices/Insteon/InsteonDevice.d.ts +8 -7
  38. package/dist/cjs/types/Devices/Insteon/InsteonDevice.d.ts.map +1 -1
  39. package/dist/cjs/types/Devices/Insteon/InsteonDeviceFactory.d.ts +2 -1
  40. package/dist/cjs/types/Devices/Insteon/InsteonDeviceFactory.d.ts.map +1 -1
  41. package/dist/cjs/types/Devices/Insteon/InsteonFanDevice.d.ts.map +1 -1
  42. package/dist/cjs/types/Devices/Insteon/InsteonKeypadDevice.d.ts +4 -4
  43. package/dist/cjs/types/Devices/Insteon/InsteonKeypadDevice.d.ts.map +1 -1
  44. package/dist/cjs/types/Devices/Insteon/InsteonRelayDevice.d.ts.map +1 -1
  45. package/dist/cjs/types/Devices/Insteon/KeypadButton.d.ts +63 -0
  46. package/dist/cjs/types/Devices/Insteon/KeypadButton.d.ts.map +1 -0
  47. package/dist/cjs/types/Devices/NodeFactory.d.ts +2 -1
  48. package/dist/cjs/types/Devices/NodeFactory.d.ts.map +1 -1
  49. package/dist/cjs/types/Devices/index.d.ts +1 -1
  50. package/dist/cjs/types/Devices/index.d.ts.map +1 -1
  51. package/dist/cjs/types/ISY.d.ts +13 -28
  52. package/dist/cjs/types/ISY.d.ts.map +1 -1
  53. package/dist/cjs/types/ISYDevice.d.ts +1 -1
  54. package/dist/cjs/types/ISYDevice.d.ts.map +1 -1
  55. package/dist/cjs/types/ISYNode.d.ts +4 -2
  56. package/dist/cjs/types/ISYNode.d.ts.map +1 -1
  57. package/dist/cjs/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts +1 -1
  58. package/dist/cjs/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts.map +1 -1
  59. package/dist/cjs/types/Matter/Behaviors/ISYClusterBehavior.d.ts.map +1 -1
  60. package/dist/cjs/types/Matter/Bridge/Server.d.ts.map +1 -1
  61. package/dist/cjs/types/Model/ClusterMap.d.ts +1 -1
  62. package/dist/cjs/types/Model/ClusterMap.d.ts.map +1 -1
  63. package/dist/cjs/types/Model/EnumDefinition.d.ts +1 -1
  64. package/dist/cjs/types/Model/NodeInfo.d.ts +2 -2
  65. package/dist/cjs/types/Model/NodeInfo.d.ts.map +1 -1
  66. package/dist/cjs/types/Utils.d.ts +8 -1
  67. package/dist/cjs/types/Utils.d.ts.map +1 -1
  68. package/dist/esm/CodeGeneration/EnumFactory.js +1 -1
  69. package/dist/esm/CodeGeneration/EnumFactory.js.map +1 -1
  70. package/dist/esm/CodeGeneration/NodeClassFactory.js +1 -1
  71. package/dist/esm/CodeGeneration/NodeClassFactory.js.map +1 -1
  72. package/dist/esm/Devices/ISYDeviceNode.js.map +1 -1
  73. package/dist/esm/Devices/Insteon/InsteonDevice.js.map +1 -1
  74. package/dist/esm/Devices/Insteon/InsteonDeviceFactory.js +5 -1
  75. package/dist/esm/Devices/Insteon/InsteonDeviceFactory.js.map +1 -1
  76. package/dist/esm/Devices/Insteon/InsteonKeypadDevice.js +2 -2
  77. package/dist/esm/Devices/Insteon/InsteonKeypadDevice.js.map +1 -1
  78. package/dist/esm/Devices/Insteon/KeypadButton.js +48 -0
  79. package/dist/esm/Devices/Insteon/KeypadButton.js.map +1 -0
  80. package/dist/esm/Devices/NodeFactory.js +2 -1
  81. package/dist/esm/Devices/NodeFactory.js.map +1 -1
  82. package/dist/esm/Devices/index.js.map +1 -1
  83. package/dist/esm/ISY.js +220 -183
  84. package/dist/esm/ISY.js.map +1 -1
  85. package/dist/esm/ISYNode.js +2 -2
  86. package/dist/esm/ISYNode.js.map +1 -1
  87. package/dist/esm/ISYScene.js.map +1 -1
  88. package/dist/esm/Matter/Behaviors/ISYBridgedDeviceBehavior.js.map +1 -1
  89. package/dist/esm/Matter/Behaviors/ISYClusterBehavior.js.map +1 -1
  90. package/dist/esm/Matter/Bridge/Server.js +5 -5
  91. package/dist/esm/Matter/Bridge/Server.js.map +1 -1
  92. package/dist/esm/Model/ClusterMap.js +2 -2
  93. package/dist/esm/Model/ClusterMap.js.map +1 -1
  94. package/dist/esm/Model/NodeInfo.js +1 -1
  95. package/dist/esm/Model/NodeInfo.js.map +1 -1
  96. package/dist/esm/Utils.js.map +1 -1
  97. package/dist/esm/types/CodeGeneration/EnumFactory.d.ts +1 -1
  98. package/dist/esm/types/CodeGeneration/EnumFactory.d.ts.map +1 -1
  99. package/dist/esm/types/CodeGeneration/NodeClassFactory.d.ts +1 -1
  100. package/dist/esm/types/CodeGeneration/NodeClassFactory.d.ts.map +1 -1
  101. package/dist/esm/types/Devices/EndpointFor.d.ts +1 -1
  102. package/dist/esm/types/Devices/ISYDeviceNode.d.ts +2 -1
  103. package/dist/esm/types/Devices/ISYDeviceNode.d.ts.map +1 -1
  104. package/dist/esm/types/Devices/Insteon/InsteonDevice.d.ts +8 -7
  105. package/dist/esm/types/Devices/Insteon/InsteonDevice.d.ts.map +1 -1
  106. package/dist/esm/types/Devices/Insteon/InsteonDeviceFactory.d.ts +2 -1
  107. package/dist/esm/types/Devices/Insteon/InsteonDeviceFactory.d.ts.map +1 -1
  108. package/dist/esm/types/Devices/Insteon/InsteonFanDevice.d.ts.map +1 -1
  109. package/dist/esm/types/Devices/Insteon/InsteonKeypadDevice.d.ts +4 -4
  110. package/dist/esm/types/Devices/Insteon/InsteonKeypadDevice.d.ts.map +1 -1
  111. package/dist/esm/types/Devices/Insteon/InsteonRelayDevice.d.ts.map +1 -1
  112. package/dist/esm/types/Devices/Insteon/KeypadButton.d.ts +63 -0
  113. package/dist/esm/types/Devices/Insteon/KeypadButton.d.ts.map +1 -0
  114. package/dist/esm/types/Devices/NodeFactory.d.ts +2 -1
  115. package/dist/esm/types/Devices/NodeFactory.d.ts.map +1 -1
  116. package/dist/esm/types/Devices/index.d.ts +1 -1
  117. package/dist/esm/types/Devices/index.d.ts.map +1 -1
  118. package/dist/esm/types/ISY.d.ts +13 -28
  119. package/dist/esm/types/ISY.d.ts.map +1 -1
  120. package/dist/esm/types/ISYDevice.d.ts +1 -1
  121. package/dist/esm/types/ISYDevice.d.ts.map +1 -1
  122. package/dist/esm/types/ISYNode.d.ts +4 -2
  123. package/dist/esm/types/ISYNode.d.ts.map +1 -1
  124. package/dist/esm/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts +1 -1
  125. package/dist/esm/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts.map +1 -1
  126. package/dist/esm/types/Matter/Behaviors/ISYClusterBehavior.d.ts.map +1 -1
  127. package/dist/esm/types/Matter/Bridge/Server.d.ts.map +1 -1
  128. package/dist/esm/types/Model/ClusterMap.d.ts +1 -1
  129. package/dist/esm/types/Model/ClusterMap.d.ts.map +1 -1
  130. package/dist/esm/types/Model/NodeInfo.d.ts +2 -2
  131. package/dist/esm/types/Model/NodeInfo.d.ts.map +1 -1
  132. package/dist/esm/types/Utils.d.ts +8 -1
  133. package/dist/esm/types/Utils.d.ts.map +1 -1
  134. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  135. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  136. package/package.json +2 -2
  137. package/src/CodeGeneration/EnumFactory.ts +2 -1
  138. package/src/CodeGeneration/NodeClassFactory.ts +2 -1
  139. package/src/Definitions/Global/Events.ts +2 -2
  140. package/src/Devices/ISYDeviceNode.ts +2 -1
  141. package/src/Devices/ISYMultiNodeDevice.ts +1 -1
  142. package/src/Devices/Insteon/InsteonDevice.ts +3 -2
  143. package/src/Devices/Insteon/InsteonDeviceFactory.ts +7 -2
  144. package/src/Devices/Insteon/InsteonFanDevice.ts +1 -1
  145. package/src/Devices/Insteon/InsteonKeypadDevice.ts +5 -5
  146. package/src/Devices/Insteon/InsteonRelayDevice.ts +1 -1
  147. package/src/Devices/Insteon/{Generated/KeypadButton.ts → KeypadButton.ts} +20 -20
  148. package/src/Devices/NodeFactory.ts +3 -2
  149. package/src/Devices/ZWave/ZWaveDimmerSwitchDevice.ts +1 -1
  150. package/src/Devices/index.ts +2 -2
  151. package/src/ISY.ts +249 -228
  152. package/src/ISYDevice.ts +3 -2
  153. package/src/ISYNode.ts +7 -5
  154. package/src/ISYScene.ts +1 -1
  155. package/src/Matter/Behaviors/ISYBridgedDeviceBehavior.ts +4 -2
  156. package/src/Matter/Behaviors/ISYClusterBehavior.ts +2 -12
  157. package/src/Matter/Bridge/Server.ts +8 -6
  158. package/src/Model/ClusterMap.ts +4 -3
  159. package/src/Model/NodeInfo.ts +4 -3
  160. package/src/Utils.ts +13 -6
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "isy-nodejs",
3
3
  "description": "Node.js wrapper for ISY interface including websockets for change notifications. Fork of isy-js by Rod Toll. Designed to be used in a node.js application.",
4
4
  "license": "MIT",
5
- "version": "1.0.1-alpha.27",
5
+ "version": "1.0.1-alpha.28",
6
6
  "author": {
7
7
  "name": "Pradeep Mouli"
8
8
  },
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "6818f4140be310656690e21c6a451f42cae1ef8f"
72
+ "gitHead": "8db16499c0e5d154bfa3d13ccf0d31409abbb4ae"
73
73
  }
@@ -1,7 +1,7 @@
1
1
  import { factory } from "typescript";
2
2
  import { createWrappedNode, ts, type EnumDeclaration, EnumMember, Identifier } from 'ts-morph'
3
3
  import { UnitOfMeasure } from "../Definitions/Global/UOM.js";
4
- import { Family } from "../ISY.js";
4
+
5
5
  import type {
6
6
  NodeClassDefinition,
7
7
  DriverDefinition,
@@ -12,6 +12,7 @@ import { EnumDefinition, EnumDefinitionMap } from "../Model/EnumDefinition.js";
12
12
  import { isGeneratorFunction } from "util/types";
13
13
  import { Logger, loggers } from "winston";
14
14
  import { pascalCase } from 'moderndash';
15
+ import { Family } from '../Definitions/index.js';
15
16
 
16
17
 
17
18
  const logger = loggers.get("EnumFactory");
@@ -2,9 +2,10 @@ import { createWrappedNode, IndentationText, Project, QuoteKind, SourceFile, ts,
2
2
  import { factory, Statement, type Declaration } from 'typescript';
3
3
  import type { Driver } from '../Definitions/Global/Drivers.js';
4
4
  import { UnitOfMeasure } from '../Definitions/Global/UOM.js';
5
- import { Family } from '../ISY.js';
5
+
6
6
  import { CommandDefinition, DataTypeDefinition, DriverDefinition, NodeClassDefinition, ParameterDefinition } from '../Model/ClassDefinition.js';
7
7
  import { EnumDefinitionMap } from '../Model/EnumDefinition.js';
8
+ import { Family } from '../Definitions/index.js';
8
9
 
9
10
  // #region Type aliases (1)
10
11
 
@@ -3,7 +3,7 @@ import type { AnyMxRecord } from 'dns';
3
3
  import EventEmitter, { on } from 'events';
4
4
  import type { EventType } from '../../Events/EventType.js';
5
5
  import { ISYEvent } from '../../Events/ISYEvent.js';
6
- import type { InsteonBaseDevice, ISY } from '../../ISY.js';
6
+ import type { ISY } from '../../ISY.js';
7
7
  import type { ISYNode } from '../../ISYNode.js';
8
8
  import type { UnitOfMeasure } from './UOM.js';
9
9
 
@@ -63,7 +63,7 @@ export namespace Event {
63
63
  ): FunctionSigFor<E, NodeEventEmitter<N>> & Omit<NodeEventEmitter<N>, 'on'> {
64
64
  var f = new NodeEventEmitter(node);
65
65
  for (let evt in node.drivers) {
66
-
66
+
67
67
  //f[`on${ev.name}`] = f.on.bind(f, ev.name);
68
68
  }
69
69
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  import type { Driver } from '../Definitions/Global/Drivers.js';
3
- import { type Family, type ISY, Controls } from '../ISY.js';
3
+ import {type ISY } from '../ISY.js';
4
4
  import type { ISYDevice } from '../ISYDevice.js';
5
5
  import { ISYNode} from '../ISYNode.js';
6
6
  import type { ISYScene } from '../ISYScene.js';
@@ -10,6 +10,7 @@ import type { Category } from '../Definitions/Global/Categories.js';
10
10
  import type { Command } from '../Definitions/Global/Commands.js';
11
11
  import type { Event } from '../Definitions/Global/Events.js';
12
12
  import type { StringKeys } from '../Utils.js';
13
+ import type { Family } from '../Definitions/index.js';
13
14
 
14
15
 
15
16
  export class ISYDeviceNode<
@@ -1,7 +1,7 @@
1
1
  //import type { UnionToIntersection } from '@project-chip/matter-node.js/util.js';
2
2
  import type { Driver } from '../Definitions/Global/Drivers.js';
3
3
  import type { UnitOfMeasure } from '../Definitions/Global/UOM.js';
4
- import type { Family } from '../ISY.js';
4
+
5
5
  import type { ISYDevice } from '../ISYDevice.js';
6
6
  import type { DriverMap, ISYNode, NodeList } from '../ISYNode.js';
7
7
  import type { ISYScene } from '../ISYScene.js';
@@ -1,4 +1,4 @@
1
- import { Family, InsteonBaseDevice, ISY, ISYDevice } from '../../ISY.js';
1
+ import { ISY } from '../../ISY.js';
2
2
 
3
3
  import { Insteon } from '../../Definitions/Global/Families.js';
4
4
  import { Commands } from '../../ISYConstants.js'
@@ -6,6 +6,7 @@ import { Constructor } from '../Constructor.js';
6
6
  import { InsteonKeypadButtonDevice } from './InsteonKeypadDevice.js';
7
7
  import { InsteonRelayDevice } from './InsteonRelayDevice.js';
8
8
  import 'winston';
9
+ import type { InsteonBaseDevice } from './InsteonBaseDevice.js';
9
10
 
10
11
  export const InsteonLampDevice = <T extends Constructor<InsteonBaseDevice>>(IB: T) => (class extends IB {
11
12
  declare isDimmable: boolean;
@@ -21,7 +22,7 @@ export const InsteonLampDevice = <T extends Constructor<InsteonBaseDevice>>(IB:
21
22
 
22
23
  export const KeypadDevice = <T extends Constructor<InsteonBaseDevice>>(IB: T) => (class extends IB {
23
24
 
24
-
25
+
25
26
  });
26
27
 
27
28
 
@@ -1,5 +1,5 @@
1
1
  import { Category } from '../../Definitions/Global/Categories.js';
2
- import { Family, InsteonBaseDevice, InsteonLockDevice, InsteonSmokeSensorDevice, InsteonThermostatDevice } from '../../ISY.js';
2
+
3
3
  import { parseTypeCode } from '../../Utils.js';
4
4
  import { NodeInfo } from '../../Model/NodeInfo.js';
5
5
  import { InsteonDimmableDevice } from './InsteonDimmableDevice.js';
@@ -19,6 +19,11 @@ import { ISYNode } from '../../ISYNode.js';
19
19
  import { DeviceDef, type CategoryDef, type FamilyDef } from '../DeviceMap.js';
20
20
  import { writeFileSync } from 'fs';
21
21
  import type { Constructor } from '../Constructor.js';
22
+ import { Family } from '../../Definitions/index.js';
23
+ import { InsteonBaseDevice } from './InsteonBaseDevice.js';
24
+ import { InsteonSmokeSensorDevice } from './InsteonSmokeSensorDevice.js';
25
+ import { InsteonThermostatDevice } from './InsteonThermostatDevice.js';
26
+ import { InsteonLockDevice } from './InsteonLockDevice.js';
22
27
 
23
28
 
24
29
 
@@ -327,7 +332,7 @@ export class InsteonDeviceFactory {
327
332
  retVal = { name: 'Plugin Relay', modelNumber: '2633-522' };
328
333
  }
329
334
  if (subAddress != '1' && retVal.class === InsteonKeypadRelayDevice) {
330
- retVal.class = InsteonKeypadButtonDevice;
335
+ retVal.class = InsteonKeypadButtonDevice as any;
331
336
  }
332
337
  if (retVal.class === undefined) { retVal.class = InsteonRelayDevice; }
333
338
  return retVal;
@@ -1,5 +1,5 @@
1
1
  import { Family } from '../../Definitions/Global/Families.js';
2
- import { ISY, ISYNode } from '../../ISY.js';
2
+ import { ISY } from '../../ISY.js';
3
3
  import { States } from '../../ISYConstants.js';
4
4
 
5
5
  import { InsteonBaseDevice } from './InsteonBaseDevice.js';
@@ -1,11 +1,11 @@
1
- import type { NodeInfo } from '../../Model/NodeInfo.js';
1
+ import 'winston';
2
2
  import { ISY } from '../../ISY.js';
3
+ import type { NodeInfo } from '../../Model/NodeInfo.js';
3
4
  import { InsteonRelayDevice } from './InsteonRelayDevice.js';
4
- import 'winston';
5
-
5
+ import { KeypadButton } from './KeypadButton.js';
6
6
 
7
- export class InsteonKeypadButtonDevice extends InsteonRelayDevice {
8
- constructor (isy: ISY, deviceNode: NodeInfo) {
7
+ export class InsteonKeypadButtonDevice extends KeypadButton.Node {
8
+ constructor(isy: ISY, deviceNode: NodeInfo) {
9
9
  super(isy, deviceNode);
10
10
  }
11
11
  }
@@ -1,4 +1,4 @@
1
- import { Family, ISY } from '../../ISY.js';
1
+ import { ISY } from '../../ISY.js';
2
2
 
3
3
  import { NodeInfo } from '../../Model/NodeInfo.js';
4
4
  import { EndpointFor } from '../EndpointFor.js';
@@ -1,29 +1,29 @@
1
- /* THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT DIRECTLY. */
2
-
3
- import { UnitOfMeasure } from "../../../Definitions/Global/UOM.js";
4
- import { Family } from "../../../Definitions/Global/Families.js";
5
- import type { NodeInfo } from "../../../Model/NodeInfo.js";
6
- import type { ISY } from "../../../ISY.js";
7
- import type { ISYNode } from "../../../ISYNode.js";
8
- import { Base } from "../index.js";
9
- import { ISYDeviceNode } from "../../ISYDeviceNode.js";
10
- import { Driver } from "../../../Definitions/Global/Drivers.js";
11
- import { Insteon } from "../../../Definitions/index.js";
12
- import type { DriverState } from "../../../Model/DriverState.js";
13
- import { NodeFactory } from "../../NodeFactory.js";
14
-
1
+ /* THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT DIRECTLY. */
2
+
3
+ import { UnitOfMeasure } from "../../Definitions/Global/UOM.js";
4
+ import { Family } from "../../Definitions/Global/Families.js";
5
+ import type { NodeInfo } from "../../Model/NodeInfo.js";
6
+ import type { ISY } from "../../ISY.js";
7
+ import type { ISYNode } from "../../ISYNode.js";
8
+ import { Base } from "./index.js";
9
+ import { ISYDeviceNode } from "../ISYDeviceNode.js";
10
+ import { Driver } from "../../Definitions/Global/Drivers.js";
11
+ import { Insteon } from "../../Definitions/index.js";
12
+ import type { DriverState } from "../../Model/DriverState.js";
13
+ import { NodeFactory } from "../NodeFactory.js";
14
+
15
15
  export const nodeDefId = "KeypadButton";
16
-
16
+
17
17
  type Commands = KeypadButton.Commands;
18
18
  type Drivers = KeypadButton.Drivers;
19
-
19
+
20
20
  export class KeypadButtonNode extends Base<Drivers, Commands> implements KeypadButton.Interface {
21
- public readonly commands = {
21
+ public override readonly commands = {
22
22
  QUERY: this.query,
23
23
  BL: this.backlight,
24
24
  WDU: this.writeChanges
25
25
  };
26
- static nodeDefId = "KeypadButton";
26
+ static override nodeDefId = "KeypadButton";
27
27
  declare readonly nodeDefId: "KeypadButton";
28
28
  constructor (isy: ISY, nodeInfo: NodeInfo) {
29
29
  super(isy, nodeInfo);
@@ -46,9 +46,9 @@ export class KeypadButtonNode extends Base<Drivers, Commands> implements KeypadB
46
46
  return this.drivers.ERR?.value;
47
47
  }
48
48
  }
49
-
49
+
50
50
  NodeFactory.register(KeypadButtonNode);
51
-
51
+
52
52
  export namespace KeypadButton {
53
53
  export interface Interface extends Omit<InstanceType<typeof KeypadButtonNode>, keyof ISYDeviceNode<any, any, any, any>> {
54
54
  nodeDefId: "KeypadButton";
@@ -1,10 +1,11 @@
1
- import type { MaybePromise } from '@project-chip/matter.js/util';
2
- import { Family, ISY } from '../ISY.js';
1
+
2
+ import { ISY } from '../ISY.js';
3
3
  import { ISYNode } from '../ISYNode.js';
4
4
  import type { NodeDef } from '../Model/NodeDef.js';
5
5
  import { isDynamic, type NodeInfo } from '../Model/NodeInfo.js';
6
6
  import type { Constructor } from './Constructor.js';
7
7
  import type { IdentityOf } from '../Utils.js';
8
+ import { Family } from '../Definitions/index.js';
8
9
 
9
10
 
10
11
 
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- import { Family } from '../../ISY.js';
3
+
4
4
  import { ZWaveBaseDevice } from './ZWaveBaseDevice.js';
5
5
  import 'winston';
6
6
 
@@ -1,6 +1,6 @@
1
- import { Family } from "../ISY.js";
1
+
2
+ import type { Family } from '../Definitions/index.js';
2
3
  import {Insteon} from "./Insteon/index.js";
3
- import { ISYDeviceNode } from './ISYDeviceNode.js';
4
4
  import { ZWaveBaseDevice } from "./ZWave/ZWaveBaseDevice.js";
5
5
 
6
6
  export const Devices = {