isy-nodejs 1.0.1-alpha.27 → 1.0.1-alpha.29
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/Definitions/Global/Commands.js.map +1 -1
- package/dist/cjs/Definitions/Global/Drivers.js.map +1 -1
- package/dist/cjs/Devices/ISYDevice.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/InsteonRelayDevice.js +0 -16
- package/dist/cjs/Devices/Insteon/InsteonRelayDevice.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/MapsTo.js +11 -0
- package/dist/cjs/Devices/MapsTo.js.map +1 -1
- 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 +6 -5
- package/dist/cjs/Matter/Bridge/Server.js.map +1 -1
- package/dist/cjs/Model/ClassDefinition.js +2 -2
- package/dist/cjs/Model/ClassDefinition.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/NodeDef.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/Definitions/Global/Commands.d.ts.map +1 -1
- package/dist/cjs/types/Definitions/Global/Drivers.d.ts +1 -1
- package/dist/cjs/types/Definitions/Global/Drivers.d.ts.map +1 -1
- package/dist/cjs/types/Definitions/Global/Events.d.ts +1 -1
- package/dist/cjs/types/Definitions/Global/Events.d.ts.map +1 -1
- package/dist/cjs/types/Devices/ISYDevice.d.ts +2 -3
- package/dist/cjs/types/Devices/ISYDevice.d.ts.map +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/InsteonBaseDevice.d.ts +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonBaseDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonDevice.d.ts +10 -9
- 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 +0 -3
- 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/MapsTo.d.ts +0 -9
- package/dist/cjs/types/Devices/MapsTo.d.ts.map +1 -1
- 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/ZWave/ZWaveBaseDevice.d.ts +1 -1
- package/dist/cjs/types/Devices/ZWave/ZWaveBaseDevice.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 +6 -4
- package/dist/cjs/types/ISYNode.d.ts.map +1 -1
- package/dist/cjs/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts +3 -8
- 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/Behaviors/Insteon/ISYOnOffBehavior.d.ts +3 -40
- package/dist/cjs/types/Matter/Behaviors/Insteon/ISYOnOffBehavior.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 +2 -3
- 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/NodeDef.d.ts.map +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/Definitions/Global/Commands.js.map +1 -1
- package/dist/esm/Definitions/Global/Drivers.js.map +1 -1
- package/dist/esm/Devices/ISYDevice.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/InsteonRelayDevice.js +0 -16
- package/dist/esm/Devices/Insteon/InsteonRelayDevice.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/MapsTo.js +11 -0
- package/dist/esm/Devices/MapsTo.js.map +1 -1
- 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 +7 -6
- package/dist/esm/Matter/Bridge/Server.js.map +1 -1
- package/dist/esm/Model/ClassDefinition.js +1 -1
- package/dist/esm/Model/ClassDefinition.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/NodeDef.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/Definitions/Global/Commands.d.ts.map +1 -1
- package/dist/esm/types/Definitions/Global/Drivers.d.ts +1 -1
- package/dist/esm/types/Definitions/Global/Drivers.d.ts.map +1 -1
- package/dist/esm/types/Definitions/Global/Events.d.ts +1 -1
- package/dist/esm/types/Definitions/Global/Events.d.ts.map +1 -1
- package/dist/esm/types/Devices/ISYDevice.d.ts +2 -3
- package/dist/esm/types/Devices/ISYDevice.d.ts.map +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/InsteonBaseDevice.d.ts +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonBaseDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonDevice.d.ts +10 -9
- 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 +0 -3
- 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/MapsTo.d.ts +0 -9
- package/dist/esm/types/Devices/MapsTo.d.ts.map +1 -1
- 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/ZWave/ZWaveBaseDevice.d.ts +1 -1
- package/dist/esm/types/Devices/ZWave/ZWaveBaseDevice.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 +6 -4
- 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/Behaviors/Insteon/ISYOnOffBehavior.d.ts +4 -4
- package/dist/esm/types/Matter/Bridge/Server.d.ts.map +1 -1
- package/dist/esm/types/Model/ClusterMap.d.ts +2 -3
- package/dist/esm/types/Model/ClusterMap.d.ts.map +1 -1
- package/dist/esm/types/Model/NodeDef.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 +9 -8
- package/src/CodeGeneration/EnumFactory.ts +2 -1
- package/src/CodeGeneration/NodeClassFactory.ts +2 -1
- package/src/Definitions/Global/Commands.ts +1 -3
- package/src/Definitions/Global/Drivers.ts +7 -16
- package/src/Definitions/Global/Events.ts +3 -3
- package/src/Devices/EndpointFor.ts +3 -2
- package/src/Devices/ISYDevice.ts +3 -6
- package/src/Devices/ISYDeviceNode.ts +2 -1
- package/src/Devices/ISYMultiNodeDevice.ts +1 -1
- package/src/Devices/Insteon/InsteonBaseDevice.ts +2 -2
- package/src/Devices/Insteon/InsteonDevice.ts +3 -2
- package/src/Devices/Insteon/InsteonDeviceFactory.ts +7 -2
- package/src/Devices/Insteon/InsteonDimmableDevice.ts +2 -2
- package/src/Devices/Insteon/InsteonFanDevice.ts +1 -1
- package/src/Devices/Insteon/InsteonKeypadDevice.ts +5 -5
- package/src/Devices/Insteon/InsteonRelayDevice.ts +4 -19
- package/src/Devices/Insteon/{Generated/KeypadButton.ts → KeypadButton.ts} +20 -20
- package/src/Devices/MapsTo.ts +3 -3
- package/src/Devices/NodeFactory.ts +3 -2
- package/src/Devices/ZWave/ZWaveBaseDevice.ts +1 -1
- 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 +9 -6
- package/src/ISYScene.ts +1 -1
- package/src/Matter/Behaviors/ISYBridgedDeviceBehavior.ts +5 -3
- package/src/Matter/Behaviors/ISYClusterBehavior.ts +2 -12
- package/src/Matter/Bridge/Server.ts +10 -7
- package/src/Matter/Mappings/Insteon.ts +2 -2
- package/src/Model/ClassDefinition.ts +1 -1
- package/src/Model/ClusterMap.ts +7 -14
- package/src/Model/NodeDef.ts +1 -2
- package/src/Model/NodeInfo.ts +4 -3
- package/src/Utils.ts +13 -6
- package/tsconfig.json +2 -1
- package/dist/cjs/Devices/EndpointFor.js +0 -36
- package/dist/cjs/Devices/EndpointFor.js.map +0 -1
- package/dist/cjs/Matter/Behaviors/ISYOnOffBehavior.js +0 -52
- package/dist/cjs/Matter/Behaviors/ISYOnOffBehavior.js.map +0 -1
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/types/Devices/EndpointFor.d.ts +0 -108
- package/dist/cjs/types/Devices/EndpointFor.d.ts.map +0 -1
- package/dist/cjs/types/Matter/Behaviors/ISYOnOffBehavior.d.ts +0 -55
- package/dist/cjs/types/Matter/Behaviors/ISYOnOffBehavior.d.ts.map +0 -1
- package/dist/esm/Devices/EndpointFor.js +0 -31
- package/dist/esm/Devices/EndpointFor.js.map +0 -1
- package/dist/esm/Matter/Behaviors/ISYOnOffBehavior.js +0 -47
- package/dist/esm/Matter/Behaviors/ISYOnOffBehavior.js.map +0 -1
- package/dist/esm/types/Devices/EndpointFor.d.ts +0 -108
- package/dist/esm/types/Devices/EndpointFor.d.ts.map +0 -1
- package/dist/esm/types/Matter/Behaviors/ISYOnOffBehavior.d.ts +0 -55
- package/dist/esm/types/Matter/Behaviors/ISYOnOffBehavior.d.ts.map +0 -1
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.29",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Pradeep Mouli"
|
|
8
8
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"clean": "rimraf ./dist/*",
|
|
14
14
|
"build:esm": "tsc -p ./tsconfig.esm.json",
|
|
15
15
|
"build:cjs": "tsc -p ./tsconfig.cjs.json && cp ./package.cjs.json ./dist/cjs/package.json",
|
|
16
|
-
"build": "npm run build:esm
|
|
16
|
+
"build": "npm run build:esm",
|
|
17
17
|
"build:esm:watch": "tsc -p ./tsconfig.esm.json --watch"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
@@ -52,15 +52,16 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@log4js-node/log4js-api": "^1.0.2",
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
55
|
+
"@matter/general": "^0.11.4",
|
|
56
|
+
"@matter/types": "^0.11.4",
|
|
57
|
+
"@project-chip/matter-node.js": "^0.11.4",
|
|
58
|
+
"@project-chip/matter.js": "^0.11.4",
|
|
57
59
|
"axios": "^1.7.7",
|
|
58
60
|
"fast-xml-parser": "^4.5.0",
|
|
59
61
|
"faye-websocket": "^0.11.4",
|
|
60
|
-
"
|
|
61
|
-
"mocha": "^10.7.3",
|
|
62
|
+
"mocha": "^10.8.2",
|
|
62
63
|
"p-queue": "^8.0.1",
|
|
63
|
-
"winston": "^3.
|
|
64
|
+
"winston": "^3.17.0",
|
|
64
65
|
"xml2js": "^0.6.2"
|
|
65
66
|
},
|
|
66
67
|
"bugs": {
|
|
@@ -69,5 +70,5 @@
|
|
|
69
70
|
"publishConfig": {
|
|
70
71
|
"access": "public"
|
|
71
72
|
},
|
|
72
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "772a37165997c5b675f4916b4d260b8209b2e739"
|
|
73
74
|
}
|
|
@@ -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
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Identity, Merge, UnionToIntersection } from '@project-chip/matter.js/util';
|
|
3
|
-
import type { Sign } from 'crypto';
|
|
1
|
+
|
|
4
2
|
import type { UnitOfMeasure } from './UOM.js';
|
|
5
3
|
|
|
6
4
|
/*export class Command<T extends string> extends Function {
|
|
@@ -3,11 +3,7 @@ import { isBoxedPrimitive } from 'util/types';
|
|
|
3
3
|
import type { ISYNode } from '../../ISYNode.js';
|
|
4
4
|
import { UnitOfMeasure } from './UOM.js';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import type { TlvNumberSchema } from '@project-chip/matter.js/tlv';
|
|
8
|
-
import type { Identity, MaybePromise, UnionToIntersection } from '@project-chip/matter.js/util';
|
|
9
|
-
import exp from 'constants';
|
|
10
|
-
import { init } from 'homebridge';
|
|
6
|
+
import type { Identity, MaybePromise, UnionToIntersection } from '@matter/general';
|
|
11
7
|
import { server } from 'typescript';
|
|
12
8
|
import { Converter } from '../../Converters.js';
|
|
13
9
|
import type { ISYDeviceNode } from '../../Devices/ISYDeviceNode.js';
|
|
@@ -297,7 +293,7 @@ export interface Driver<
|
|
|
297
293
|
patch(value: T, formattedValue: string, uom: UnitOfMeasure, prec: number, notify?: boolean): boolean;
|
|
298
294
|
|
|
299
295
|
// #endregion Public Methods (2)
|
|
300
|
-
//override on('change', listener: (value: any) => void): this;
|
|
296
|
+
//override on('change', listener: (value: any) => void): this;
|
|
301
297
|
}
|
|
302
298
|
|
|
303
299
|
export interface StatelessDriver<
|
|
@@ -327,7 +323,7 @@ export interface StatelessDriver<
|
|
|
327
323
|
uom: U;
|
|
328
324
|
|
|
329
325
|
// #endregion Properties (9)
|
|
330
|
-
//override on('change', listener: (value: any) => void): this;
|
|
326
|
+
//override on('change', listener: (value: any) => void): this;
|
|
331
327
|
}
|
|
332
328
|
|
|
333
329
|
export function isStateless(x: any): x is StatelessDriver<any, any, any> {
|
|
@@ -384,7 +380,7 @@ export namespace Driver {
|
|
|
384
380
|
type StatelessOrStateful<D extends string, U extends UnitOfMeasure, T = number, N = string, L = string, S extends boolean = false> =
|
|
385
381
|
S extends true ? StatelessDriver<D, U, T, U, N, L> : Driver<D, U, T, U, N, L>;
|
|
386
382
|
|
|
387
|
-
export function create<D extends Literal, U extends UnitOfMeasure, T = number,
|
|
383
|
+
export function create<D extends Literal, U extends UnitOfMeasure, T = number, N extends string = string, L extends string = string, S extends boolean = false>(
|
|
388
384
|
driver: EnumWithLiteral<D>,
|
|
389
385
|
|
|
390
386
|
node?: ISYNode<Family, any, any, any>,
|
|
@@ -462,20 +458,15 @@ export namespace Driver {
|
|
|
462
458
|
if (uom != this.uom) {
|
|
463
459
|
this.serverUom == uom;
|
|
464
460
|
this.state.value = converter ? converter.from(this.state.rawValue) : Converter.convert(uom, this.uom, this.state.rawValue);
|
|
465
|
-
|
|
466
|
-
}
|
|
467
|
-
else if(converter)
|
|
468
|
-
{
|
|
461
|
+
} else if (converter) {
|
|
469
462
|
this.state.value = converter.from(value);
|
|
470
|
-
}
|
|
471
|
-
else
|
|
472
|
-
{
|
|
463
|
+
} else {
|
|
473
464
|
this.state.value = value;
|
|
474
465
|
}
|
|
475
466
|
if (previousValue == this.state.value) {
|
|
476
467
|
return false;
|
|
477
468
|
}
|
|
478
|
-
if (notify) node.events.emit(`${this.name}Changed`, driver as D, this.state.value,
|
|
469
|
+
if (notify) node.events.emit(`${this.name}Changed`, driver as D, this.state.value, previousValue, formattedValue);
|
|
479
470
|
return true;
|
|
480
471
|
},
|
|
481
472
|
get value() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { UnionToIntersection } from '@
|
|
1
|
+
import type { UnionToIntersection } from '@matter/general';
|
|
2
2
|
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
|
|
|
@@ -23,12 +23,12 @@ export type RelaxTypes<V> = V extends number
|
|
|
23
23
|
: V;
|
|
24
24
|
|
|
25
25
|
export type RelaxedClusterType = RelaxTypes<ClusterType>
|
|
26
|
-
|
|
26
|
+
//@ts-ignore
|
|
27
27
|
export type EndpointFor<K extends Behavior.Type, K1 extends Behavior.Type = K, K2 extends Behavior.Type = K, K3 extends Behavior.Type = K> = { events: SupportedBehaviors.EventsOf<SupportedBehaviors.MapOf<[K, K1, K2, K3]>>} & MutableEndpoint.With<EndpointType.Empty, SupportedBehaviors.MapOf<[K, K1, K2, K3]>>
|
|
28
28
|
|
|
29
29
|
/*set: (values: SupportedBehaviors.StatePatchOf<SupportedBehaviors.MapOf<[K, K1, K2]>>) => void; }*/
|
|
30
30
|
export type BehaviorsOf <K extends ClusterType.Of<ClusterType.Options<{}>>, K1 extends ClusterType = K, K2 extends ClusterType = K, K3 extends ClusterType = K> = [ClusterBehavior.Type<K>,ClusterBehavior.Type<K1>,ClusterBehavior.Type<K2>,ClusterBehavior.Type<K3>]
|
|
31
|
-
|
|
31
|
+
//@ts-ignore
|
|
32
32
|
export type SupportedBehaviorsOf <K extends ClusterType.Of<ClusterType.Options<{}>>, K1 extends ClusterType = K, K2 extends ClusterType = K, K3 extends ClusterType = K> =
|
|
33
33
|
SupportedBehaviors.MapOf<BehaviorsOf<K, K1,K2,K3>>
|
|
34
34
|
|
|
@@ -47,6 +47,7 @@ export const MatterEndpoint= <P extends EndpointType & MutableEndpoint, T extend
|
|
|
47
47
|
|
|
48
48
|
createEndpoint<K extends SupportedBehaviors>() : Endpoint {
|
|
49
49
|
|
|
50
|
+
//@ts-ignore
|
|
50
51
|
var p = this.endpointType.with(BridgedDeviceBasicInformationServer);
|
|
51
52
|
|
|
52
53
|
const id = this.address.replaceAll(' ', '_').replaceAll('.', ' ');
|
package/src/Devices/ISYDevice.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { Commands, States } from '../ISYConstants.js';
|
|
3
|
-
import { EndpointType, MutableEndpoint } from '@project-chip/matter.js/endpoint/type';
|
|
4
|
-
import { Endpoint } from '@project-chip/matter.js/endpoint';
|
|
5
|
-
import { BridgedDeviceBasicInformationServer } from '@project-chip/matter.js/behaviors/bridged-device-basic-information';
|
|
6
|
-
import { SupportedBehaviors } from '@project-chip/matter.js/endpoint/properties';
|
|
7
2
|
import { ClusterBehavior } from '@project-chip/matter.js/behavior/cluster';
|
|
3
|
+
import type { Endpoint, EndpointType, MutableEndpoint } from '@project-chip/matter.js/endpoint';
|
|
4
|
+
import type { SupportedBehaviors } from '@project-chip/matter.js/endpoint/properties';
|
|
8
5
|
import 'winston'
|
|
9
6
|
|
|
10
7
|
|
|
@@ -100,7 +97,7 @@ export interface MapsToEndpointType<T extends EndpointType> {
|
|
|
100
97
|
type BehaviorList<T extends ClusterBehavior> = SupportedBehaviors & T;
|
|
101
98
|
|
|
102
99
|
export interface MapsToEndpoint<T extends ClusterBehavior>
|
|
103
|
-
{
|
|
100
|
+
{//@ts-ignore
|
|
104
101
|
initialize<K extends MutableEndpoint.With<EndpointType.Empty,BehaviorList<T>>>(endpoint: Endpoint<K>): void;
|
|
105
102
|
|
|
106
103
|
}
|
|
@@ -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';
|
|
@@ -10,7 +10,7 @@ import { NodeInfo } from '../../Model/NodeInfo.js';
|
|
|
10
10
|
import { byteToDegree, byteToPct, pctToByte, type StringKeys } from '../../Utils.js';
|
|
11
11
|
import { ISYDeviceNode } from '../ISYDeviceNode.js';
|
|
12
12
|
|
|
13
|
-
import type { Merge } from '@
|
|
13
|
+
import type { Merge } from '@matter/general';
|
|
14
14
|
import type { DriverState } from '../../Model/DriverState.js';
|
|
15
15
|
|
|
16
16
|
// import { InsteonNLS } from './insteonfam.js'
|
|
@@ -20,7 +20,7 @@ export class InsteonBaseDevice<D extends ISYNode.DriverSignatures = {}, C extend
|
|
|
20
20
|
C
|
|
21
21
|
> {
|
|
22
22
|
// #region Constructors (1)
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
constructor(isy: ISY, deviceNode: NodeInfo) {
|
|
25
25
|
super(isy, deviceNode);
|
|
26
26
|
this.family = Family.Insteon;
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { Identity } from '@project-chip/matter.js/util';
|
|
2
2
|
import { ISY } from '../../ISY.js';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
|
|
4
|
+
|
|
5
5
|
import { InsteonRelayDevice } from './InsteonRelayDevice.js';
|
|
6
6
|
//
|
|
7
7
|
import type { DimmableLightRequirements } from '@project-chip/matter.js/devices/DimmableLightDevice';
|
|
@@ -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,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISY } from '../../ISY.js';
|
|
2
2
|
|
|
3
3
|
import { NodeInfo } from '../../Model/NodeInfo.js';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
|
|
6
6
|
import { InsteonBaseDevice } from './InsteonBaseDevice.js';
|
|
7
7
|
|
|
8
8
|
import type { OnOffBehavior } from '@project-chip/matter.js/behaviors/on-off';
|
|
@@ -26,22 +26,7 @@ export class InsteonRelayDevice extends RelayLampSwitch.Node /*InsteonBaseDevice
|
|
|
26
26
|
|
|
27
27
|
// #region Public Methods (2)
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
/*endpoint.events.onOff.onOff$Changed.on((value) => {
|
|
31
|
-
this.commands.DON(value);
|
|
32
|
-
this.drivers.ST;
|
|
33
|
-
});
|
|
34
|
-
//endpoint.defaults.onOff.onOff = await this.isOn;
|
|
35
|
-
endpoint.set({ onOff: { onOff: (await this.drivers.ST.value) > 0 } });
|
|
36
|
-
const that = this;
|
|
37
|
-
|
|
38
|
-
this.events.on('StatusChanged', (propertyName, newValue, _oldValue, formattedValue) => {
|
|
39
|
-
if (propertyName === 'ST') {
|
|
40
|
-
endpoint.set({ onOff: { onOff: newValue > 0 } });
|
|
41
|
-
//endpoint.setSt onOff: newValue });
|
|
42
|
-
}
|
|
43
|
-
});*/
|
|
44
|
-
}
|
|
29
|
+
|
|
45
30
|
|
|
46
31
|
/*
|
|
47
32
|
public async updateIsOn(isOn: boolean): Promise<any> {
|
|
@@ -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";
|
package/src/Devices/MapsTo.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Behavior } from '@project-chip/matter.js/behavior';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import type { Cluster, ClusterType, MutableCluster } from '@project-chip/matter.js/cluster';
|
|
4
4
|
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@ export type RelaxTypes<V> = V extends number
|
|
|
15
15
|
}
|
|
16
16
|
: V;
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
/*
|
|
19
19
|
|
|
20
20
|
export interface MapsTo<T extends Behavior.Type, T1 extends Behavior.Type = T, T2 extends Behavior.Type = T, T3 extends Behavior.Type = T> {
|
|
21
21
|
initialize(endpoint: EndpointFor<T, T1, T2, T3>): void | Promise<void>;
|
|
@@ -25,4 +25,4 @@ export interface MapsTo<T extends Behavior.Type, T1 extends Behavior.Type = T, T
|
|
|
25
25
|
export interface MapsToCluster<T extends ClusterType.Of<ClusterType.Options<{}>>, T1 extends ClusterType = T, T2 extends ClusterType = T, T3 extends ClusterType = T> {
|
|
26
26
|
initialize(endpoint: EndpointForCluster<T,T1, T2, T3>): void;
|
|
27
27
|
|
|
28
|
-
}
|
|
28
|
+
}*/
|
|
@@ -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
|
|
|
@@ -6,7 +6,7 @@ import { ISYDeviceNode } from '../ISYDeviceNode.js';
|
|
|
6
6
|
import { ISYNode } from '../../ISYNode.js';
|
|
7
7
|
import 'winston';
|
|
8
8
|
import type { Driver } from '../../Definitions/Global/Drivers.js';
|
|
9
|
-
import type { Merge } from '@
|
|
9
|
+
import type { Merge } from '@matter/general';
|
|
10
10
|
|
|
11
11
|
// import { InsteonNLS } from './insteonfam'
|
|
12
12
|
export class ZWaveBaseDevice<D extends ISYNode.DriverSignatures = {}, C extends ISYNode.CommandSignatures = {}> extends ISYDeviceNode<Family.ZWave,Merge<D,Driver.Signatures<'ST'>>,C> {
|
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 = {
|