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.
- package/dist/cjs/CodeGeneration/EnumFactory.js +6 -6
- package/dist/cjs/CodeGeneration/EnumFactory.js.map +1 -1
- package/dist/cjs/CodeGeneration/NodeClassFactory.js +7 -7
- package/dist/cjs/CodeGeneration/NodeClassFactory.js.map +1 -1
- package/dist/cjs/Devices/ISYDeviceNode.js.map +1 -1
- package/dist/cjs/Devices/Insteon/InsteonDevice.js.map +1 -1
- package/dist/cjs/Devices/Insteon/InsteonDeviceFactory.js +12 -8
- package/dist/cjs/Devices/Insteon/InsteonDeviceFactory.js.map +1 -1
- package/dist/cjs/Devices/Insteon/InsteonKeypadDevice.js +2 -2
- package/dist/cjs/Devices/Insteon/InsteonKeypadDevice.js.map +1 -1
- package/dist/cjs/Devices/Insteon/KeypadButton.js +52 -0
- package/dist/cjs/Devices/Insteon/KeypadButton.js.map +1 -0
- package/dist/cjs/Devices/NodeFactory.js +5 -4
- package/dist/cjs/Devices/NodeFactory.js.map +1 -1
- package/dist/cjs/Devices/index.js.map +1 -1
- package/dist/cjs/ISY.js +220 -213
- package/dist/cjs/ISY.js.map +1 -1
- package/dist/cjs/ISYNode.js +3 -3
- package/dist/cjs/ISYNode.js.map +1 -1
- package/dist/cjs/ISYScene.js.map +1 -1
- package/dist/cjs/Matter/Behaviors/ISYBridgedDeviceBehavior.js.map +1 -1
- package/dist/cjs/Matter/Behaviors/ISYClusterBehavior.js.map +1 -1
- package/dist/cjs/Matter/Bridge/Server.js +4 -4
- package/dist/cjs/Matter/Bridge/Server.js.map +1 -1
- package/dist/cjs/Model/ClusterMap.js +2 -2
- package/dist/cjs/Model/ClusterMap.js.map +1 -1
- package/dist/cjs/Model/NodeInfo.js +3 -3
- package/dist/cjs/Model/NodeInfo.js.map +1 -1
- package/dist/cjs/Utils.js.map +1 -1
- package/dist/cjs/types/CodeGeneration/EnumFactory.d.ts +1 -1
- package/dist/cjs/types/CodeGeneration/EnumFactory.d.ts.map +1 -1
- package/dist/cjs/types/CodeGeneration/NodeClassFactory.d.ts +1 -1
- package/dist/cjs/types/CodeGeneration/NodeClassFactory.d.ts.map +1 -1
- package/dist/cjs/types/Devices/EndpointFor.d.ts +1 -1
- package/dist/cjs/types/Devices/ISYDeviceNode.d.ts +2 -1
- package/dist/cjs/types/Devices/ISYDeviceNode.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonDevice.d.ts +8 -7
- package/dist/cjs/types/Devices/Insteon/InsteonDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonDeviceFactory.d.ts +2 -1
- package/dist/cjs/types/Devices/Insteon/InsteonDeviceFactory.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonFanDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonKeypadDevice.d.ts +4 -4
- package/dist/cjs/types/Devices/Insteon/InsteonKeypadDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonRelayDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/KeypadButton.d.ts +63 -0
- package/dist/cjs/types/Devices/Insteon/KeypadButton.d.ts.map +1 -0
- package/dist/cjs/types/Devices/NodeFactory.d.ts +2 -1
- package/dist/cjs/types/Devices/NodeFactory.d.ts.map +1 -1
- package/dist/cjs/types/Devices/index.d.ts +1 -1
- package/dist/cjs/types/Devices/index.d.ts.map +1 -1
- package/dist/cjs/types/ISY.d.ts +13 -28
- package/dist/cjs/types/ISY.d.ts.map +1 -1
- package/dist/cjs/types/ISYDevice.d.ts +1 -1
- package/dist/cjs/types/ISYDevice.d.ts.map +1 -1
- package/dist/cjs/types/ISYNode.d.ts +4 -2
- package/dist/cjs/types/ISYNode.d.ts.map +1 -1
- package/dist/cjs/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts +1 -1
- package/dist/cjs/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts.map +1 -1
- package/dist/cjs/types/Matter/Behaviors/ISYClusterBehavior.d.ts.map +1 -1
- package/dist/cjs/types/Matter/Bridge/Server.d.ts.map +1 -1
- package/dist/cjs/types/Model/ClusterMap.d.ts +1 -1
- package/dist/cjs/types/Model/ClusterMap.d.ts.map +1 -1
- package/dist/cjs/types/Model/EnumDefinition.d.ts +1 -1
- package/dist/cjs/types/Model/NodeInfo.d.ts +2 -2
- package/dist/cjs/types/Model/NodeInfo.d.ts.map +1 -1
- package/dist/cjs/types/Utils.d.ts +8 -1
- package/dist/cjs/types/Utils.d.ts.map +1 -1
- package/dist/esm/CodeGeneration/EnumFactory.js +1 -1
- package/dist/esm/CodeGeneration/EnumFactory.js.map +1 -1
- package/dist/esm/CodeGeneration/NodeClassFactory.js +1 -1
- package/dist/esm/CodeGeneration/NodeClassFactory.js.map +1 -1
- package/dist/esm/Devices/ISYDeviceNode.js.map +1 -1
- package/dist/esm/Devices/Insteon/InsteonDevice.js.map +1 -1
- package/dist/esm/Devices/Insteon/InsteonDeviceFactory.js +5 -1
- package/dist/esm/Devices/Insteon/InsteonDeviceFactory.js.map +1 -1
- package/dist/esm/Devices/Insteon/InsteonKeypadDevice.js +2 -2
- package/dist/esm/Devices/Insteon/InsteonKeypadDevice.js.map +1 -1
- package/dist/esm/Devices/Insteon/KeypadButton.js +48 -0
- package/dist/esm/Devices/Insteon/KeypadButton.js.map +1 -0
- package/dist/esm/Devices/NodeFactory.js +2 -1
- package/dist/esm/Devices/NodeFactory.js.map +1 -1
- package/dist/esm/Devices/index.js.map +1 -1
- package/dist/esm/ISY.js +220 -183
- package/dist/esm/ISY.js.map +1 -1
- package/dist/esm/ISYNode.js +2 -2
- package/dist/esm/ISYNode.js.map +1 -1
- package/dist/esm/ISYScene.js.map +1 -1
- package/dist/esm/Matter/Behaviors/ISYBridgedDeviceBehavior.js.map +1 -1
- package/dist/esm/Matter/Behaviors/ISYClusterBehavior.js.map +1 -1
- package/dist/esm/Matter/Bridge/Server.js +5 -5
- package/dist/esm/Matter/Bridge/Server.js.map +1 -1
- package/dist/esm/Model/ClusterMap.js +2 -2
- package/dist/esm/Model/ClusterMap.js.map +1 -1
- package/dist/esm/Model/NodeInfo.js +1 -1
- package/dist/esm/Model/NodeInfo.js.map +1 -1
- package/dist/esm/Utils.js.map +1 -1
- package/dist/esm/types/CodeGeneration/EnumFactory.d.ts +1 -1
- package/dist/esm/types/CodeGeneration/EnumFactory.d.ts.map +1 -1
- package/dist/esm/types/CodeGeneration/NodeClassFactory.d.ts +1 -1
- package/dist/esm/types/CodeGeneration/NodeClassFactory.d.ts.map +1 -1
- package/dist/esm/types/Devices/EndpointFor.d.ts +1 -1
- package/dist/esm/types/Devices/ISYDeviceNode.d.ts +2 -1
- package/dist/esm/types/Devices/ISYDeviceNode.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonDevice.d.ts +8 -7
- package/dist/esm/types/Devices/Insteon/InsteonDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonDeviceFactory.d.ts +2 -1
- package/dist/esm/types/Devices/Insteon/InsteonDeviceFactory.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonFanDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonKeypadDevice.d.ts +4 -4
- package/dist/esm/types/Devices/Insteon/InsteonKeypadDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonRelayDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/KeypadButton.d.ts +63 -0
- package/dist/esm/types/Devices/Insteon/KeypadButton.d.ts.map +1 -0
- package/dist/esm/types/Devices/NodeFactory.d.ts +2 -1
- package/dist/esm/types/Devices/NodeFactory.d.ts.map +1 -1
- package/dist/esm/types/Devices/index.d.ts +1 -1
- package/dist/esm/types/Devices/index.d.ts.map +1 -1
- package/dist/esm/types/ISY.d.ts +13 -28
- package/dist/esm/types/ISY.d.ts.map +1 -1
- package/dist/esm/types/ISYDevice.d.ts +1 -1
- package/dist/esm/types/ISYDevice.d.ts.map +1 -1
- package/dist/esm/types/ISYNode.d.ts +4 -2
- package/dist/esm/types/ISYNode.d.ts.map +1 -1
- package/dist/esm/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts +1 -1
- package/dist/esm/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts.map +1 -1
- package/dist/esm/types/Matter/Behaviors/ISYClusterBehavior.d.ts.map +1 -1
- package/dist/esm/types/Matter/Bridge/Server.d.ts.map +1 -1
- package/dist/esm/types/Model/ClusterMap.d.ts +1 -1
- package/dist/esm/types/Model/ClusterMap.d.ts.map +1 -1
- package/dist/esm/types/Model/NodeInfo.d.ts +2 -2
- package/dist/esm/types/Model/NodeInfo.d.ts.map +1 -1
- package/dist/esm/types/Utils.d.ts +8 -1
- package/dist/esm/types/Utils.d.ts.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/CodeGeneration/EnumFactory.ts +2 -1
- package/src/CodeGeneration/NodeClassFactory.ts +2 -1
- package/src/Definitions/Global/Events.ts +2 -2
- package/src/Devices/ISYDeviceNode.ts +2 -1
- package/src/Devices/ISYMultiNodeDevice.ts +1 -1
- package/src/Devices/Insteon/InsteonDevice.ts +3 -2
- package/src/Devices/Insteon/InsteonDeviceFactory.ts +7 -2
- package/src/Devices/Insteon/InsteonFanDevice.ts +1 -1
- package/src/Devices/Insteon/InsteonKeypadDevice.ts +5 -5
- package/src/Devices/Insteon/InsteonRelayDevice.ts +1 -1
- package/src/Devices/Insteon/{Generated/KeypadButton.ts → KeypadButton.ts} +20 -20
- package/src/Devices/NodeFactory.ts +3 -2
- package/src/Devices/ZWave/ZWaveDimmerSwitchDevice.ts +1 -1
- package/src/Devices/index.ts +2 -2
- package/src/ISY.ts +249 -228
- package/src/ISYDevice.ts +3 -2
- package/src/ISYNode.ts +7 -5
- package/src/ISYScene.ts +1 -1
- package/src/Matter/Behaviors/ISYBridgedDeviceBehavior.ts +4 -2
- package/src/Matter/Behaviors/ISYClusterBehavior.ts +2 -12
- package/src/Matter/Bridge/Server.ts +8 -6
- package/src/Model/ClusterMap.ts +4 -3
- package/src/Model/NodeInfo.ts +4 -3
- 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.
|
|
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": "
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
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,11 +1,11 @@
|
|
|
1
|
-
import
|
|
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 '
|
|
5
|
-
|
|
5
|
+
import { KeypadButton } from './KeypadButton.js';
|
|
6
6
|
|
|
7
|
-
export class InsteonKeypadButtonDevice extends
|
|
8
|
-
constructor
|
|
7
|
+
export class InsteonKeypadButtonDevice extends KeypadButton.Node {
|
|
8
|
+
constructor(isy: ISY, deviceNode: NodeInfo) {
|
|
9
9
|
super(isy, deviceNode);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/* THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT DIRECTLY. */
|
|
2
|
-
|
|
3
|
-
import { UnitOfMeasure } from "
|
|
4
|
-
import { Family } from "
|
|
5
|
-
import type { NodeInfo } from "
|
|
6
|
-
import type { ISY } from "
|
|
7
|
-
import type { ISYNode } from "
|
|
8
|
-
import { Base } from "
|
|
9
|
-
import { ISYDeviceNode } from "
|
|
10
|
-
import { Driver } from "
|
|
11
|
-
import { Insteon } from "
|
|
12
|
-
import type { DriverState } from "
|
|
13
|
-
import { NodeFactory } from "
|
|
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
|
-
|
|
2
|
-
import {
|
|
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
|
|
package/src/Devices/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
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 = {
|