isy-nodejs 1.0.1-alpha.1 → 1.0.1-alpha.11

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 (183) hide show
  1. package/dist/cjs/Converters.js +66 -30
  2. package/dist/cjs/Converters.js.map +1 -1
  3. package/dist/cjs/Definitions/Global/Drivers.js +10 -3
  4. package/dist/cjs/Definitions/Global/Drivers.js.map +1 -1
  5. package/dist/cjs/Definitions/Global/Events.js +1 -2
  6. package/dist/cjs/Definitions/Global/Events.js.map +1 -1
  7. package/dist/cjs/Devices/Elk/ElkAlarmPanelDevice.js +3 -3
  8. package/dist/cjs/Devices/Elk/ElkAlarmSensorDevice.js +9 -6
  9. package/dist/cjs/Devices/Elk/ElkAlarmSensorDevice.js.map +1 -1
  10. package/dist/cjs/Devices/Insteon/InsteonBaseDevice.js +5 -3
  11. package/dist/cjs/Devices/Insteon/InsteonBaseDevice.js.map +1 -1
  12. package/dist/cjs/Devices/Insteon/InsteonFanDevice.js +7 -3
  13. package/dist/cjs/Devices/Insteon/InsteonFanDevice.js.map +1 -1
  14. package/dist/cjs/Devices/Insteon/InsteonMotionSensorDevice.js +5 -5
  15. package/dist/cjs/Devices/Insteon/InsteonRelayDevice.js +3 -8
  16. package/dist/cjs/Devices/Insteon/InsteonRelayDevice.js.map +1 -1
  17. package/dist/cjs/Devices/Insteon/RelayLampSwitch.js +72 -0
  18. package/dist/cjs/Devices/Insteon/RelayLampSwitch.js.map +1 -0
  19. package/dist/cjs/ISY.js +155 -135
  20. package/dist/cjs/ISY.js.map +1 -1
  21. package/dist/cjs/ISYNode.js +34 -15
  22. package/dist/cjs/ISYNode.js.map +1 -1
  23. package/dist/cjs/ISYScene.js +3 -3
  24. package/dist/cjs/ISYScene.js.map +1 -1
  25. package/dist/cjs/Matter/Behaviors/ISYBridgedDeviceBehavior.js +11 -4
  26. package/dist/cjs/Matter/Behaviors/ISYBridgedDeviceBehavior.js.map +1 -1
  27. package/dist/cjs/Matter/Behaviors/ISYClusterBehavior.js +26 -7
  28. package/dist/cjs/Matter/Behaviors/ISYClusterBehavior.js.map +1 -1
  29. package/dist/cjs/Matter/Behaviors/ISYOnOffBehavior.js +9 -7
  30. package/dist/cjs/Matter/Behaviors/ISYOnOffBehavior.js.map +1 -1
  31. package/dist/cjs/Matter/{Server → Bridge}/Server.js +27 -45
  32. package/dist/cjs/Matter/Bridge/Server.js.map +1 -0
  33. package/dist/cjs/Matter/Mappings/Insteon.js +19 -15
  34. package/dist/cjs/Matter/Mappings/Insteon.js.map +1 -1
  35. package/dist/cjs/Matter/Mappings/register.js +1 -0
  36. package/dist/cjs/Matter/Mappings/register.js.map +1 -0
  37. package/dist/cjs/Model/ClusterMap.js +12 -9
  38. package/dist/cjs/Model/ClusterMap.js.map +1 -1
  39. package/dist/cjs/Utils.js +29 -9
  40. package/dist/cjs/Utils.js.map +1 -1
  41. package/dist/cjs/types/CodeGeneration/EnumFactory.d.ts +1 -1
  42. package/dist/cjs/types/Converters.d.ts +28 -8
  43. package/dist/cjs/types/Converters.d.ts.map +1 -1
  44. package/dist/cjs/types/Definitions/Global/Drivers.d.ts +4 -3
  45. package/dist/cjs/types/Definitions/Global/Drivers.d.ts.map +1 -1
  46. package/dist/cjs/types/Definitions/Global/Events.d.ts.map +1 -1
  47. package/dist/cjs/types/Devices/Elk/ElkAlarmSensorDevice.d.ts.map +1 -1
  48. package/dist/cjs/types/Devices/EndpointFor.d.ts +2 -2
  49. package/dist/cjs/types/Devices/Insteon/InsteonBaseDevice.d.ts +3 -3
  50. package/dist/cjs/types/Devices/Insteon/InsteonBaseDevice.d.ts.map +1 -1
  51. package/dist/cjs/types/Devices/Insteon/InsteonDevice.d.ts +4 -4
  52. package/dist/cjs/types/Devices/Insteon/InsteonFanDevice.d.ts +5 -4
  53. package/dist/cjs/types/Devices/Insteon/InsteonFanDevice.d.ts.map +1 -1
  54. package/dist/cjs/types/Devices/Insteon/InsteonRelayDevice.d.ts +2 -4
  55. package/dist/cjs/types/Devices/Insteon/InsteonRelayDevice.d.ts.map +1 -1
  56. package/dist/cjs/types/Devices/Insteon/RelayLampSwitch.d.ts +93 -0
  57. package/dist/cjs/types/Devices/Insteon/RelayLampSwitch.d.ts.map +1 -0
  58. package/dist/cjs/types/ISY.d.ts +56 -52
  59. package/dist/cjs/types/ISY.d.ts.map +1 -1
  60. package/dist/cjs/types/ISYNode.d.ts +4 -4
  61. package/dist/cjs/types/ISYNode.d.ts.map +1 -1
  62. package/dist/cjs/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts +16 -6
  63. package/dist/cjs/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts.map +1 -1
  64. package/dist/cjs/types/Matter/Behaviors/ISYClusterBehavior.d.ts +13 -11
  65. package/dist/cjs/types/Matter/Behaviors/ISYClusterBehavior.d.ts.map +1 -1
  66. package/dist/cjs/types/Matter/Behaviors/ISYOnOffBehavior.d.ts +4 -4
  67. package/dist/cjs/types/Matter/Behaviors/ISYOnOffBehavior.d.ts.map +1 -1
  68. package/dist/cjs/types/Matter/Bridge/Server.d.ts +17 -0
  69. package/dist/cjs/types/Matter/Bridge/Server.d.ts.map +1 -0
  70. package/dist/cjs/types/Matter/Mappings/register.d.ts +1 -0
  71. package/dist/cjs/types/Matter/Mappings/register.d.ts.map +1 -0
  72. package/dist/cjs/types/Model/ClusterMap.d.ts +19 -11
  73. package/dist/cjs/types/Model/ClusterMap.d.ts.map +1 -1
  74. package/dist/cjs/types/Utils.d.ts +2 -5
  75. package/dist/cjs/types/Utils.d.ts.map +1 -1
  76. package/dist/esm/Converters.js +63 -28
  77. package/dist/esm/Converters.js.map +1 -1
  78. package/dist/esm/Definitions/Global/Drivers.js +10 -3
  79. package/dist/esm/Definitions/Global/Drivers.js.map +1 -1
  80. package/dist/esm/Definitions/Global/Events.js +1 -2
  81. package/dist/esm/Definitions/Global/Events.js.map +1 -1
  82. package/dist/esm/Devices/Elk/ElkAlarmPanelDevice.js +3 -3
  83. package/dist/esm/Devices/Elk/ElkAlarmSensorDevice.js +9 -6
  84. package/dist/esm/Devices/Elk/ElkAlarmSensorDevice.js.map +1 -1
  85. package/dist/esm/Devices/Insteon/InsteonBaseDevice.js +6 -4
  86. package/dist/esm/Devices/Insteon/InsteonBaseDevice.js.map +1 -1
  87. package/dist/esm/Devices/Insteon/InsteonFanDevice.js +7 -3
  88. package/dist/esm/Devices/Insteon/InsteonFanDevice.js.map +1 -1
  89. package/dist/esm/Devices/Insteon/InsteonMotionSensorDevice.js +5 -5
  90. package/dist/esm/Devices/Insteon/InsteonRelayDevice.js +3 -8
  91. package/dist/esm/Devices/Insteon/InsteonRelayDevice.js.map +1 -1
  92. package/dist/esm/Devices/Insteon/RelayLampSwitch.js +68 -0
  93. package/dist/esm/Devices/Insteon/RelayLampSwitch.js.map +1 -0
  94. package/dist/esm/ISY.js +191 -171
  95. package/dist/esm/ISY.js.map +1 -1
  96. package/dist/esm/ISYNode.js +34 -15
  97. package/dist/esm/ISYNode.js.map +1 -1
  98. package/dist/esm/ISYScene.js +3 -3
  99. package/dist/esm/ISYScene.js.map +1 -1
  100. package/dist/esm/Matter/Behaviors/ISYBridgedDeviceBehavior.js +11 -4
  101. package/dist/esm/Matter/Behaviors/ISYBridgedDeviceBehavior.js.map +1 -1
  102. package/dist/esm/Matter/Behaviors/ISYClusterBehavior.js +26 -7
  103. package/dist/esm/Matter/Behaviors/ISYClusterBehavior.js.map +1 -1
  104. package/dist/esm/Matter/Behaviors/ISYOnOffBehavior.js +10 -8
  105. package/dist/esm/Matter/Behaviors/ISYOnOffBehavior.js.map +1 -1
  106. package/dist/esm/Matter/{Server → Bridge}/Server.js +25 -44
  107. package/dist/esm/Matter/Bridge/Server.js.map +1 -0
  108. package/dist/esm/Matter/Mappings/Insteon.js +22 -18
  109. package/dist/esm/Matter/Mappings/Insteon.js.map +1 -1
  110. package/dist/esm/Matter/Mappings/register.js +2 -0
  111. package/dist/esm/Matter/Mappings/register.js.map +1 -0
  112. package/dist/esm/Model/ClusterMap.js +12 -9
  113. package/dist/esm/Model/ClusterMap.js.map +1 -1
  114. package/dist/esm/Utils.js +25 -8
  115. package/dist/esm/Utils.js.map +1 -1
  116. package/dist/esm/types/CodeGeneration/EnumFactory.d.ts +1 -1
  117. package/dist/esm/types/Converters.d.ts +28 -8
  118. package/dist/esm/types/Converters.d.ts.map +1 -1
  119. package/dist/esm/types/Definitions/Global/Drivers.d.ts +4 -3
  120. package/dist/esm/types/Definitions/Global/Drivers.d.ts.map +1 -1
  121. package/dist/esm/types/Definitions/Global/Events.d.ts.map +1 -1
  122. package/dist/esm/types/Devices/Elk/ElkAlarmSensorDevice.d.ts.map +1 -1
  123. package/dist/esm/types/Devices/EndpointFor.d.ts +2 -2
  124. package/dist/esm/types/Devices/Insteon/InsteonBaseDevice.d.ts +3 -3
  125. package/dist/esm/types/Devices/Insteon/InsteonBaseDevice.d.ts.map +1 -1
  126. package/dist/esm/types/Devices/Insteon/InsteonDevice.d.ts +4 -4
  127. package/dist/esm/types/Devices/Insteon/InsteonFanDevice.d.ts +5 -4
  128. package/dist/esm/types/Devices/Insteon/InsteonFanDevice.d.ts.map +1 -1
  129. package/dist/esm/types/Devices/Insteon/InsteonRelayDevice.d.ts +2 -4
  130. package/dist/esm/types/Devices/Insteon/InsteonRelayDevice.d.ts.map +1 -1
  131. package/dist/esm/types/Devices/Insteon/RelayLampSwitch.d.ts +93 -0
  132. package/dist/esm/types/Devices/Insteon/RelayLampSwitch.d.ts.map +1 -0
  133. package/dist/esm/types/ISY.d.ts +56 -52
  134. package/dist/esm/types/ISY.d.ts.map +1 -1
  135. package/dist/esm/types/ISYNode.d.ts +4 -4
  136. package/dist/esm/types/ISYNode.d.ts.map +1 -1
  137. package/dist/esm/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts +16 -6
  138. package/dist/esm/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts.map +1 -1
  139. package/dist/esm/types/Matter/Behaviors/ISYClusterBehavior.d.ts +13 -11
  140. package/dist/esm/types/Matter/Behaviors/ISYClusterBehavior.d.ts.map +1 -1
  141. package/dist/esm/types/Matter/Behaviors/ISYOnOffBehavior.d.ts +4 -4
  142. package/dist/esm/types/Matter/Behaviors/ISYOnOffBehavior.d.ts.map +1 -1
  143. package/dist/esm/types/Matter/Bridge/Server.d.ts +17 -0
  144. package/dist/esm/types/Matter/Bridge/Server.d.ts.map +1 -0
  145. package/dist/esm/types/Matter/Mappings/register.d.ts +2 -0
  146. package/dist/esm/types/Matter/Mappings/register.d.ts.map +1 -0
  147. package/dist/esm/types/Model/ClusterMap.d.ts +19 -11
  148. package/dist/esm/types/Model/ClusterMap.d.ts.map +1 -1
  149. package/dist/esm/types/Utils.d.ts +2 -5
  150. package/dist/esm/types/Utils.d.ts.map +1 -1
  151. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  152. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  153. package/package.json +5 -9
  154. package/src/Converters.ts +137 -69
  155. package/src/Definitions/Global/Drivers.ts +16 -7
  156. package/src/Definitions/Global/Events.ts +4 -3
  157. package/src/Devices/Elk/ElkAlarmPanelDevice.ts +3 -3
  158. package/src/Devices/Elk/ElkAlarmSensorDevice.ts +15 -21
  159. package/src/Devices/Insteon/Generated/RelayLamp.ts +8 -7
  160. package/src/Devices/Insteon/InsteonBaseDevice.ts +10 -9
  161. package/src/Devices/Insteon/InsteonFanDevice.ts +16 -11
  162. package/src/Devices/Insteon/InsteonMotionSensorDevice.ts +5 -5
  163. package/src/Devices/Insteon/InsteonRelayDevice.ts +3 -5
  164. package/src/Devices/Insteon/RelayLampSwitch.ts +131 -0
  165. package/src/ISY.ts +816 -819
  166. package/src/ISYNode.ts +33 -17
  167. package/src/ISYScene.ts +3 -3
  168. package/src/Matter/Behaviors/ISYBridgedDeviceBehavior.ts +29 -11
  169. package/src/Matter/Behaviors/ISYClusterBehavior.ts +46 -28
  170. package/src/Matter/Behaviors/ISYOnOffBehavior.ts +49 -60
  171. package/src/Matter/{Server → Bridge}/Server.ts +47 -51
  172. package/src/Matter/Mappings/Insteon.ts +53 -60
  173. package/src/Matter/Mappings/register.ts +0 -0
  174. package/src/Model/ClassDefinition.ts +1 -1
  175. package/src/Model/ClusterMap.ts +31 -22
  176. package/src/Utils.ts +26 -19
  177. package/tsconfig.json +2 -2
  178. package/dist/cjs/Matter/Server/Server.js.map +0 -1
  179. package/dist/cjs/types/Matter/Server/Server.d.ts +0 -4
  180. package/dist/cjs/types/Matter/Server/Server.d.ts.map +0 -1
  181. package/dist/esm/Matter/Server/Server.js.map +0 -1
  182. package/dist/esm/types/Matter/Server/Server.d.ts +0 -4
  183. package/dist/esm/types/Matter/Server/Server.d.ts.map +0 -1
@@ -1,5 +1,7 @@
1
+ import '@project-chip/matter-node.js';
1
2
  import { NodeJsEnvironment } from '@project-chip/matter-node.js/environment';
2
3
  import { StorageBackendDisk } from '@project-chip/matter-node.js/storage';
4
+ import { CommissioningOptions } from '@project-chip/matter.js/behavior/system/commissioning';
3
5
  import { BridgedDeviceBasicInformationServer } from '@project-chip/matter.js/behaviors/bridged-device-basic-information';
4
6
  import { VendorId } from '@project-chip/matter.js/datatype';
5
7
  import { logEndpoint, OnOffBaseDevice } from '@project-chip/matter.js/device';
@@ -8,42 +10,47 @@ import { DimmableLightDevice, OnOffLightDevice } from '@project-chip/matter.js/e
8
10
  import type { SupportedBehaviors } from '@project-chip/matter.js/endpoint/properties';
9
11
  import { EndpointType, MutableEndpoint } from '@project-chip/matter.js/endpoint/type';
10
12
  import { AggregatorEndpoint } from '@project-chip/matter.js/endpoints/AggregatorEndpoint';
11
- import { Environment, StorageService } from '@project-chip/matter.js/environment';
13
+ import { StorageService } from '@project-chip/matter.js/environment';
12
14
  import { Level, levelFromString, Logger as MatterLogger } from '@project-chip/matter.js/log';
13
15
  import { ServerNode } from '@project-chip/matter.js/node';
14
16
  import { QrCode } from '@project-chip/matter.js/schema';
15
17
  import { resolve } from 'path';
16
- import { config } from 'winston';
17
18
  import { InsteonDimmableDevice, InsteonKeypadButtonDevice, InsteonRelayDevice, ISY } from '../../ISY.js';
18
19
  import { ISYBridgedDeviceBehavior } from '../Behaviors/ISYBridgedDeviceBehavior.js';
19
20
  import { ISYDimmableBehavior, ISYOnOffBehavior } from '../Behaviors/ISYOnOffBehavior.js';
21
+ import '../Mappings/Insteon.js';
22
+ import type { ISYDeviceNode } from '../../Devices/ISYDeviceNode.js';
20
23
 
21
- // #region Functions (2)
24
+ // #region Interfaces (1)
22
25
 
23
- //import {clone} from 'isy-nodejs/Utils';
24
- //let { Utils } = await import ('isy-nodejs');
26
+ export interface Config {
27
+ // #region Properties (8)
25
28
 
26
- // function plainLogFormatter(now: Date, level: Level, facility: string, prefix: string, values: any[]) {
27
- // const creator = plaintextCreator();
29
+ discriminator: number;
30
+ passcode: number;
31
+ port: number;
32
+ productId: number;
33
+ productName?: string;
34
+ uniqueId: string;
35
+ vendorId: number;
36
+ vendorName?: string;
28
37
 
29
- // const formattedValues = renderDiagnostic(values, {
30
- // ...creator,
31
- // key: text => creator.text(`${text}: `),
32
- // value: producer => creator.text(producer()),
33
- // strong: producer => creator.text(`*${producer()}*`),
34
- // weak: producer => creator.text(producer()),
35
- // status: (status, producer) => `${creator.text(statusIcon(status))}${producer()}`,
36
- // via: text => creator.text(text),
37
- // });
38
+ // #endregion Properties (8)
39
+ }
40
+
41
+ // #endregion Interfaces (1)
38
42
 
39
- // return `${formatTime(now)} ${Level[level]} ${facility} ${prefix}${formattedValues}`;
40
- //
43
+ // #region Functions (3)
41
44
 
42
- //let matterLogger = clone(logger,'matter.js');
45
+ export function create(isy?: ISY, config?: Config): Promise<ServerNode> {
46
+ return createMatterServer(isy, config);
47
+ }
43
48
 
44
- //2024-07-03 16:30:43.693
45
- export async function createServerNode(isy: ISY = ISY.instance): Promise<ServerNode> {
49
+ export async function createMatterServer(isy?: ISY, config?: Config): Promise<ServerNode> {
46
50
  var logger = isy.logger;
51
+ if (isy === undefined) {
52
+ isy = ISY.instance;
53
+ }
47
54
 
48
55
  try {
49
56
  MatterLogger.addLogger(
@@ -58,7 +65,7 @@ export async function createServerNode(isy: ISY = ISY.instance): Promise<ServerN
58
65
  MatterLogger.defaultLogLevel = levelFromString(logger.level);
59
66
  }
60
67
 
61
- var config = await getConfiguration(isy);
68
+ config = await initializeConfiguration(isy, config);
62
69
 
63
70
  logger.info(`Matter config read: ${JSON.stringify(config)}`);
64
71
 
@@ -70,6 +77,7 @@ export async function createServerNode(isy: ISY = ISY.instance): Promise<ServerN
70
77
  // Optional when operating only one device on a host, Default port is 5540
71
78
  network: {
72
79
  port: config.port,
80
+
73
81
  //ipv4: false,
74
82
  discoveryCapabilities: {
75
83
  onIpNetwork: true
@@ -124,7 +132,8 @@ export async function createServerNode(isy: ISY = ISY.instance): Promise<ServerN
124
132
 
125
133
  const endpoints: { 0: Endpoint; 1: InsteonRelayDevice }[] = [];
126
134
 
127
- for (const device of isy.deviceList.values()) {
135
+ for (const node of isy.nodeMap.values()) {
136
+ let device = node as ISYDeviceNode<any, any, any>;
128
137
  let serialNumber = `${device.address.replaceAll(' ', '_').replaceAll('.', '_')}`;
129
138
  if (device.enabled && !(device instanceof InsteonKeypadButtonDevice)) {
130
139
  //const name = `OnOff ${isASocket ? "Socket" : "Light"} ${i}`;
@@ -147,6 +156,7 @@ export async function createServerNode(isy: ISY = ISY.instance): Promise<ServerN
147
156
  }
148
157
 
149
158
  if (baseBehavior !== undefined) {
159
+ //@ts-ignore
150
160
  const endpoint = new Endpoint(baseBehavior, {
151
161
  id: serialNumber,
152
162
  isyNode: {
@@ -192,7 +202,7 @@ export async function createServerNode(isy: ISY = ISY.instance): Promise<ServerN
192
202
  */
193
203
 
194
204
  logger.info('Bringing server online');
195
- await server.bringOnline();
205
+ await server.start();
196
206
 
197
207
  logger.info('Matter Server is online');
198
208
  /**
@@ -216,53 +226,39 @@ export async function createServerNode(isy: ISY = ISY.instance): Promise<ServerN
216
226
  logger.info(`Manual pairing code: ${manualPairingCode}`);
217
227
  }
218
228
  /*for(let e of endpoints)
219
- {
220
- e[1].initialize(e[0] as any);
221
- }*/
229
+ {
230
+ e[1].initialize(e[0] as any);
231
+ }*/
222
232
 
223
233
  return server;
224
-
225
- function createBaseBehavior(): any {
226
- let baseBehavior: any;
227
- return baseBehavior;
228
- }
229
234
  }
230
235
 
231
- async function getConfiguration(isy: ISY) {
236
+ async function initializeConfiguration(isy: ISY, config?: Config): Promise<Config> {
232
237
  var logger = isy.logger;
233
- /**
234
- * Collect all needed data
235
- *
236
- * This block collects all needed data from cli, environment or storage. Replace this with where ever your data come from.
237
- *
238
- * Note: This example uses the matter.js process storage system to store the device parameter data for convenience
239
- * and easy reuse. When you also do that be careful to not overlap with Matter-Server own storage contexts
240
- * (so maybe better not do it ;-)).
241
- */
242
238
 
243
239
  const environment = NodeJsEnvironment();
244
240
 
245
241
  const storageService = environment.get(StorageService);
246
- environment.vars.set('storage.path', ISY.instance.storagePath + '/matter');
242
+ environment.vars.set('storage.path', `${ISY.instance.storagePath}matter`);
247
243
  environment.vars.use(() => {
248
244
  const location = environment.vars.get('storage.path', environment.vars.get('path.root', '.'));
249
245
  storageService.location = location;
250
246
  });
251
- storageService.factory = (namespace) => new StorageBackendDisk(resolve(storageService.location ?? '.', namespace), environment.vars.get('storage.clear', false));
247
+ storageService.factory = (namespace) => new StorageBackendDisk(resolve(storageService.location ?? '.', namespace), environment.vars.get('storage.clear', false));
252
248
  logger.info(`Matter storage location: ${storageService.location} (Directory)`);
253
249
 
254
250
  const deviceStorage = (await storageService.open('device')).createContext('data');
255
251
 
256
252
  const vendorName = isy.vendorName;
257
- const passcode = environment.vars.number('passcode') ?? (await deviceStorage.get('passcode', 20202021));
258
- const discriminator = environment.vars.number('discriminator') ?? (await deviceStorage.get('discriminator', 3840));
253
+ const passcode = config.passcode ?? environment.vars.number('passcode') ?? (await deviceStorage.get('passcode', 20202021));
254
+ const discriminator = config.discriminator ?? environment.vars.number('discriminator') ?? (await deviceStorage.get('discriminator', 3840));
259
255
  // product name / id and vendor id should match what is in the device certificate
260
- const vendorId = environment.vars.number('vendorid') ?? (await deviceStorage.get('vendorid', 0xfff1));
261
- const productId = environment.vars.number('productid') ?? (await deviceStorage.get('productid', 0x8000));
256
+ const vendorId = config.vendorId ?? environment.vars.number('vendorid') ?? (await deviceStorage.get('vendorid', 0xfff1));
257
+ const productId = config.productId ?? environment.vars.number('productid') ?? (await deviceStorage.get('productid', 0x8000));
262
258
  const productName = isy.productName;
263
- const port = environment.vars.number('port') ?? 5540;
259
+ const port = config.port ?? environment.vars.number('port') ?? 5540;
264
260
 
265
- const uniqueId = isy.id;
261
+ const uniqueId = isy.id.replaceAll(':', '_');
266
262
  //environment.vars.string("uniqueid") ?? (await deviceStorage.get("uniqueid", Time.nowMs().toString()));
267
263
 
268
264
  // Persist basic data to keep them also on restart
@@ -287,4 +283,4 @@ async function getConfiguration(isy: ISY) {
287
283
  };
288
284
  }
289
285
 
290
- // #endregion Functions (2)
286
+ // #endregion Functions (3)
@@ -1,68 +1,61 @@
1
- import { OnOffCluster } from "@project-chip/matter.js/cluster";
2
- import { DriverType } from "../../Definitions/Global/Drivers.js";
3
- import { Family, type t } from "../../Definitions/Global/Families.js";
4
- import { Insteon } from "../../Devices/Insteon/index.js";
5
- import { Devices} from "../../Devices/index.js";
6
- import {
7
- MappingRegistry,
8
- type FamilyToClusterMap,
9
- type DeviceToClusterMap,
10
- type EndpointMapping
11
- } from "../../Model/ClusterMap.js";
12
- import { DeviceTypeDefinition, DeviceTypes, OnOffBaseDevice } from "@project-chip/matter.js/device";
13
- import { OnOffLightDevice } from "@project-chip/matter.js/devices/OnOffLightDevice";
1
+ import { OnOffCluster } from '@project-chip/matter.js/cluster';
2
+ import { DeviceTypeDefinition, DeviceTypes, OnOffBaseDevice } from '@project-chip/matter.js/device';
3
+ import { OnOffLightDevice } from '@project-chip/matter.js/devices/OnOffLightDevice';
4
+ import { DriverType } from '../../Definitions/Global/Drivers.js';
5
+ import { Family, type t } from '../../Definitions/Global/Families.js';
6
+ import { Insteon } from '../../Devices/Insteon/index.js';
7
+ import { Devices } from '../../Devices/index.js';
8
+ import { MappingRegistry, type DeviceToClusterMap, type EndpointMapping, type FamilyToClusterMap } from '../../Model/ClusterMap.js';
14
9
 
15
10
  //import InsteonMap from "./Insteon.json";
16
- import { DimmableLightDevice } from "@project-chip/matter.js/devices/DimmableLightDevice";
17
- import { Converters } from '../../Converters.js';
11
+ import { DimmableLightDevice } from '@project-chip/matter.js/devices/DimmableLightDevice';
12
+ import { Converter } from '../../Converters.js';
18
13
  import type { InsteonRelaySwitchDevice } from '../../Devices/Insteon/InsteonRelaySwitchDevice.js';
19
14
 
20
-
21
-
22
15
  const map: FamilyToClusterMap<Family.Insteon> = {
23
- Relay: {
24
- deviceType: OnOffLightDevice,
25
- mapping: {
26
-
27
- OnOff: {
28
- attributes: {
29
- onOff: { driver: "ST"},
30
- },
31
- commands: { on: 'DON'},
32
- },
33
-
34
-
35
-
36
- }
37
- } ,
38
- RelaySwitch: {
39
- deviceType: OnOffLightDevice,
40
- mapping: {
41
- OnOff: {
42
- attributes: {
43
- onOff: "ST",
44
- },
45
- commands: { on: "DON"},
46
- },
47
- },
48
- } ,
49
- Dimmer: {
50
- deviceType: DimmableLightDevice,
51
- mapping: {
52
- OnOff: {
53
- attributes: {
54
- onOff: { driver: "ST" },
55
- },
56
- commands: { on: "DON" },
57
- },
58
- LevelControl: {
59
- attributes: {
60
- currentLevel: { driver: DriverType.Status },
61
- },
62
- commands: { moveToLevel: {command: 'DON'}},
63
- },
64
- },
65
- },
16
+ Family: Family.Insteon,
17
+ Relay: {
18
+ deviceType: OnOffLightDevice,
19
+ mapping: {
20
+ OnOff: {
21
+ attributes: {
22
+ onOff: { driver: 'ST', converter: 'Percent.Boolean' }
23
+ },
24
+ commands: { on: 'DON' }
25
+ }
26
+ } as EndpointMapping<OnOffLightDevice, Insteon.Relay>
27
+ },
28
+ RelaySwitch: {
29
+ deviceType: OnOffLightDevice,
30
+ mapping: {
31
+ OnOff: {
32
+ attributes: {
33
+ onOff: 'ST'
34
+ },
35
+ commands: { on: 'DON' }
36
+ }
37
+ }
38
+ },
39
+ Dimmer: {
40
+ deviceType: DimmableLightDevice,
41
+ mapping: {
42
+ OnOff: {
43
+ attributes: {
44
+ onOff: { driver: 'ST', converter: 'LevelFrom0To255.Boolean' }
45
+ },
46
+ commands: { on: 'DON' }
47
+ },
48
+ LevelControl: {
49
+ attributes: {
50
+ currentLevel: { driver: DriverType.Status, converter: 'LevelFrom0To255.LightingLevel' }
51
+ },
52
+ commands: { moveToLevel: { command: 'DON' } }
53
+ }
54
+ }
55
+ }
66
56
  };
67
57
 
58
+ map.KeypadDimmer = map.Dimmer;
59
+ map.DimmerSwitch = map.Dimmer;
60
+
68
61
  MappingRegistry.register(map);
File without changes
@@ -1,7 +1,7 @@
1
1
  import { camelize, capitalize } from '@project-chip/matter.js/util';
2
2
  import camelcase from 'camelcase';
3
3
  import { getRandomValues } from 'crypto';
4
- import { detailedDiff } from 'deep-object-diff';
4
+ //import { detailedDiff } from 'deep-object-diff';
5
5
  import { create } from 'domain';
6
6
  import * as fs from 'fs';
7
7
  import diff from 'microdiff';
@@ -1,25 +1,34 @@
1
- import * as Clusters from '@project-chip/matter.js/cluster';
2
- import { Driver, DriverType } from '../Definitions/Global/Drivers.js';
3
1
  import { Behavior } from '@project-chip/matter.js/behavior';
4
2
  import { ClusterBehavior } from '@project-chip/matter.js/behavior/cluster';
5
3
  import type { OnOffBehavior } from '@project-chip/matter.js/behaviors/on-off';
4
+ import * as Clusters from '@project-chip/matter.js/cluster';
6
5
  import { type Device, type DeviceTypeDefinition, type OnOffBaseDevice } from '@project-chip/matter.js/device';
7
6
  import { OnOffLightDevice } from '@project-chip/matter.js/devices/OnOffLightDevice';
7
+ import * as DeviceTypes from '@project-chip/matter.js/endpoint/definitions';
8
8
  import { SupportedBehaviors } from '@project-chip/matter.js/endpoint/properties';
9
9
  import type { MutableEndpoint } from '@project-chip/matter.js/endpoint/type';
10
10
  import type { Identity } from '@project-chip/matter.js/util';
11
11
  import test from 'node:test';
12
+ import type { Converter } from '../Converters.js';
13
+ import { Driver, DriverType } from '../Definitions/Global/Drivers.js';
12
14
  import { Devices, type ToDevice } from '../Devices/index.js';
15
+ import { Insteon } from '../Devices/Insteon/index.js';
13
16
  import { Family, InsteonRelayDevice } from '../ISY.js';
14
17
  import type { ISYDevice } from '../ISYDevice.js';
15
18
  import type { CommandsOf, DriversOf, ISYNode } from '../ISYNode.js';
16
19
  import type { ClusterForBehavior } from '../Matter/Behaviors/ISYClusterBehavior.js';
17
20
  import { ClusterType } from './ClusterType.js';
18
21
 
22
+ // #region Type aliases (16)
23
+
19
24
  export type AttributeMapping<B, D> =
20
25
  B extends { cluster: { attributes: infer E extends { [K in string]: Clusters.ClusterType.Attribute } } } ?
21
- Partial<Record<keyof E, keyof DriversOf<D> | { driver: keyof DriversOf<D>; converter?: string }>>
26
+ Partial<Record<keyof E, keyof DriversOf<D> | { driver: keyof DriversOf<D>; converter?: Converter.KnownConverters }>>
22
27
  : never;
28
+ export type BehaviorMapping<B extends { cluster? }, T extends ISYNode<any, any, any, any>> = {
29
+ attributes?: AttributeMapping<B, T>;
30
+ commands?: CommandMapping<B, T>;
31
+ };
23
32
  export type ClusterAttributeMapping<A, K> = {
24
33
  [key in keyof Clusters.ClusterType.AttributesOf<A>]?: { driver: Extract<keyof DriversOf<K>, string>; converter?: (value: any) => any } | Extract<keyof DriversOf<K>, string>;
25
34
  };
@@ -82,18 +91,18 @@ export type CommandMapping<B, D> =
82
91
  // behavior?: typeof ClusterBehavior;
83
92
 
84
93
  // }
85
- export type DeviceToClusterMap<T extends ISYNode<Family, any, any, any>, D> =
94
+ export type DeviceToClusterMap<T extends ISYNode<Family, any, any, any>, D extends { behaviors: SupportedBehaviors; deviceType: string }> =
86
95
  D extends { behaviors: SupportedBehaviors; deviceType: string } ?
87
96
  {
88
97
  deviceType: D;
89
98
  mapping: EndpointMapping<D, T>;
90
99
  }
91
100
  : never;
92
- export type EndpointMapping<A extends { behaviors: any }, D> = {
93
- [K in Capitalize<StringKeys<A['behaviors']>>]?: {
94
- attributes?: AttributeMapping<A['behaviors'][Uncapitalize<K>], D>;
95
- commands?: CommandMapping<A['behaviors'][Uncapitalize<K>], D>;
96
- };
101
+ export type EndpointMapping<A extends { behaviors: any }, D extends ISYNode<Family, any, any, any>> = {
102
+ [K in Capitalize<StringKeys<A['behaviors']>>]?: BehaviorMapping<A['behaviors'][Uncapitalize<K>], D>; //{
103
+ /*attributes?: AttributeMapping<A['behaviors'][Uncapitalize<K>], D>;
104
+ commands?: CommandMapping<A['behaviors'][Uncapitalize<K>], D>;*/
105
+ //};
97
106
  };
98
107
  ////const ClusterIdentifier = Object.values(Clusters).filter(p=> p instanceof Clusters.MutableCluster && typeof p == "object" && p.constructor.name.endsWith(".Cluster"));
99
108
  //type clusterList = keyof typeof ClusterIdentifier;
@@ -113,7 +122,7 @@ export type EndpointMapping1<A extends MutableEndpoint, K> = {
113
122
  attributes?: SBAttributeMapping<A['behaviors'], K>;
114
123
  commands?: SBCommandMapping<A['behaviors'], K>;
115
124
  };
116
- export type FamilyToClusterMap<T extends Family.Insteon | Family.ZWave | Family.ZigBee> = {
125
+ export type FamilyToClusterMap<T extends Family.Insteon | Family.ZWave | Family.ZigBee> = { Family: T } & {
117
126
  [Type in keyof Devices.Insteon]?: DeviceToClusterMap<InstanceType<Devices.Insteon[Type]>, any>;
118
127
  };
119
128
  export type SBAttributeMapping<SB extends SupportedBehaviors, D> = {
@@ -130,7 +139,7 @@ export type parameterMapping = {
130
139
  [key: string]: { parameter: string; converter?: string };
131
140
  };
132
141
 
133
- // #endregion Type aliases (15)
142
+ // #endregion Type aliases (16)
134
143
 
135
144
  // #region Classes (1)
136
145
 
@@ -143,25 +152,25 @@ export class MappingRegistry {
143
152
 
144
153
  // #region Public Static Methods (3)
145
154
 
146
- public static getMapping<T extends ISYDevice<any, any, any>>(device: T) {
155
+ public static getMapping<T extends ISYNode<any, any, any, any>>(device: T) {
147
156
  return MappingRegistry.map.get(device.constructor.name);
148
157
  }
149
158
 
150
- public static getMappingForBehavior<T extends ISYDevice<any, any, any>, B extends ClusterBehavior>(device: T, behavior: B): ClusterMapping<B['cluster'], T> {
151
- var m = MappingRegistry.getMapping(device);
159
+ public static getMappingForBehavior<T extends ISYNode<any, any, any, any>, B extends ClusterBehavior>(device: T, behavior: B): BehaviorMapping<B, T> {
160
+ //var m = MappingRegistry.getMapping(device);
152
161
 
153
- return m[behavior.cluster.name];
154
- // for(var m in MappingRegistry.getMapping(device).mapping)
155
- // {
156
- // if(behavior.cluster.name === m)
157
- // return MappingRegistry.getMapping(device).mapping[m];
158
-
159
- // }
162
+ //return m[behavior.cluster.name];
163
+ for (var m in MappingRegistry.getMapping(device).mapping) {
164
+ if (behavior.cluster.name === m) return MappingRegistry.getMapping(device).mapping[m] as unknown as BehaviorMapping<B, T>;
165
+ }
160
166
  }
161
167
 
162
168
  public static register(map: Partial<FamilyToClusterMap<any>>) {
163
169
  for (var key in map) {
164
- MappingRegistry.map.set(key, map[key]);
170
+ if (key !== 'Family') {
171
+ MappingRegistry.map.set(key, map[key]);
172
+ MappingRegistry.map.set(Insteon[key].name, map[key]);
173
+ }
165
174
  }
166
175
  }
167
176
 
package/src/Utils.ts CHANGED
@@ -8,20 +8,14 @@ import { EventEmitter as BaseEventEmitter } from 'events';
8
8
  import { Category } from './Definitions/Global/Categories.js';
9
9
 
10
10
  //import { get } from 'http';
11
+ import PackageJson from '@npmcli/package-json';
11
12
  import type { Identity } from '@project-chip/matter.js/util';
13
+ import { existsSync } from 'fs';
14
+ import path from 'path';
12
15
  import { isBoxedPrimitive } from 'util/types';
13
- import { Family, type Driver, type DriverType, type EnumLiteral } from './Definitions/index.js';
16
+ import { Family, type Driver, type DriverType, type EnumLiteral } from './Definitions/index.js';
14
17
  import { EventType } from './Events/EventType.js';
15
18
 
16
- export interface Converter<F, T> {
17
- // #region Properties (2)
18
-
19
- from: (value: F) => T;
20
- to: (value: T) => F;
21
-
22
- // #endregion Properties (2)
23
- }
24
-
25
19
  export type StringKeys<T> = Extract<keyof T, string>;
26
20
 
27
21
  export function getEnumValueByEnumKey<E extends { [index: string]: number }, T extends keyof E>(enumType: E, enumKey: T): E[T] {
@@ -42,15 +36,6 @@ export type IdentityOf<T> = T extends (...args: any[]) => infer R ? R : T;
42
36
  export type LabelsOf<TEnum> = keyof IdentityOf<TEnum>;
43
37
  type d = LabelsOf<Family>;
44
38
 
45
- //onst D: d = 'ST';
46
- //type DriverLabel = Values<IdentityOf<DriverType>>;
47
- export function invert<F, T>(converter: Converter<F, T>): Converter<T, F> {
48
- return {
49
- from: converter.to,
50
- to: converter.from
51
- };
52
- }
53
-
54
39
  export type MaybeArray<T> = T | T[];
55
40
 
56
41
  export type ObjectToUnion<T> = T[keyof T];
@@ -279,3 +264,25 @@ export function getSubcategory(device: { type: string }) {
279
264
  return Category.Unknown;
280
265
  }
281
266
  }
267
+
268
+ function getImportMeta() {
269
+ try {
270
+ //@ts-ignore
271
+ return import.meta;
272
+ } catch (err) {
273
+ //@ts-ignore
274
+ let { dirname, filename } = { dirname: __dirname, filename: __filename };
275
+
276
+ return { dirname, filename };
277
+ }
278
+ }
279
+ export async function findPackageJson(currentPath: string = getImportMeta()?.dirname): Promise<PackageJson> {
280
+ while (currentPath !== '/') {
281
+ const packageJsonPath = path.join(currentPath, 'package.json');
282
+ if (existsSync(packageJsonPath)) {
283
+ return await PackageJson.load(currentPath);
284
+ }
285
+ currentPath = path.join(currentPath, '..');
286
+ }
287
+ return null;
288
+ }
package/tsconfig.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "noImplicitThis": true,
16
16
  "esModuleInterop": true,
17
17
  "resolveJsonModule": true,
18
- "suppressImplicitAnyIndexErrors": true,
18
+ //"suppressImplicitAnyIndexErrors": true,
19
19
  "typeRoots": [
20
20
  "../../node_modules/@types",
21
21
  "types"
@@ -31,7 +31,7 @@
31
31
  "index.js",
32
32
  "index.d.ts",
33
33
  "src/Definitions/Global/*.ts",
34
- "src/Devices/Insteon/Generated/*",
34
+ "src/Devices/Insteon/Generated/RelayLampSwitch.ts",
35
35
  ],
36
36
  "exclude": [
37
37
  "node_modules/@project-chip/*",
@@ -1 +0,0 @@
1
- {"version":3,"file":"Server.js","sourceRoot":"","sources":["../../../../src/Matter/Server/Server.ts"],"names":[],"mappings":";;AA4CA,4CAwLC;AApOD,0EAA6E;AAC7E,kEAA0E;AAC1E,yHAAyH;AACzH,+DAA4D;AAC5D,2DAA8E;AAC9E,+DAA4E;AAC5E,8EAAqG;AAGrG,6FAA0F;AAC1F,qEAAkF;AAClF,qDAA6F;AAC7F,uDAA0D;AAC1D,2DAAwD;AACxD,+BAA+B;AAE/B,yCAAyG;AACzG,0FAAoF;AACpF,0EAAyF;AAEzF,wBAAwB;AAExB,yCAAyC;AACzC,8CAA8C;AAE9C,yGAAyG;AACzG,0CAA0C;AAE1C,yDAAyD;AACzD,sBAAsB;AACtB,kDAAkD;AAClD,uDAAuD;AACvD,+DAA+D;AAC/D,sDAAsD;AACtD,4FAA4F;AAC5F,2CAA2C;AAC3C,UAAU;AAEV,2FAA2F;AAC3F,EAAE;AAEF,+CAA+C;AAE/C,yBAAyB;AAClB,KAAK,UAAU,gBAAgB,CAAC,MAAW,YAAG,CAAC,QAAQ;IAC7D,IAAI,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAExB,IAAI,CAAC;QACJ,YAAY,CAAC,SAAS,CACrB,YAAY,EACZ,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,WAAK,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,WAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,mDAAmD,EAC5L;YACC,e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AAG,GAAG,CAAC,WAAW,CAAC;IACpC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC;IAErD,MAAM,QAAQ,GAAG,GAAG,CAAC,EAAE,CAAC;IACxB,wGAAwG;IAExG,kDAAkD;IAClD,MAAM,aAAa,CAAC,GAAG,CAAC;QACvB,QAAQ;QACR,aAAa;QACb,QAAQ,EAAE,QAAQ;QAClB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KAClB,CAAC,CAAC;IAEH,OAAO;QACN,aAAa;QACb,UAAU;QACV,QAAQ;QACR,aAAa;QACb,QAAQ;QACR,WAAW;QACX,SAAS;QACT,IAAI;QACJ,QAAQ;KACR,CAAC;AACH,CAAC;AAED,2BAA2B"}
@@ -1,4 +0,0 @@
1
- import { ServerNode } from '@project-chip/matter.js/node';
2
- import { ISY } from '../../ISY.js';
3
- export declare function createServerNode(isy?: ISY): Promise<ServerNode>;
4
- //# sourceMappingURL=Server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../../../../src/Matter/Server/Server.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI1D,OAAO,EAAwE,GAAG,EAAE,MAAM,cAAc,CAAC;AA4BzG,wBAAsB,gBAAgB,CAAC,GAAG,GAAE,GAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,CAwLnF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Server.js","sourceRoot":"","sources":["../../../../src/Matter/Server/Server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,mCAAmC,EAAE,MAAM,oEAAoE,CAAC;AACzH,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAk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AU,EAAE,MAAM,CAAC,CAAC,CAAC;IACtG,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,aAAa,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IACzG,MAAM,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;IACpC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC;IAErD,MAAM,QAAQ,GAAG,GAAG,CAAC,EAAE,CAAC;IACxB,wGAAwG;IAExG,kDAAkD;IAClD,MAAM,aAAa,CAAC,GAAG,CAAC;QACvB,QAAQ;QACR,aAAa;QACb,QAAQ,EAAE,QAAQ;QAClB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KAClB,CAAC,CAAC;IAEH,OAAO;QACN,aAAa;QACb,UAAU;QACV,QAAQ;QACR,aAAa;QACb,QAAQ;QACR,WAAW;QACX,SAAS;QACT,IAAI;QACJ,QAAQ;KACR,CAAC;AACH,CAAC;AAED,2BAA2B"}
@@ -1,4 +0,0 @@
1
- import { ServerNode } from '@project-chip/matter.js/node';
2
- import { ISY } from '../../ISY.js';
3
- export declare function createServerNode(isy?: ISY): Promise<ServerNode>;
4
- //# sourceMappingURL=Server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../../../../src/Matter/Server/Server.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI1D,OAAO,EAAwE,GAAG,EAAE,MAAM,cAAc,CAAC;AA4BzG,wBAAsB,gBAAgB,CAAC,GAAG,GAAE,GAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,CAwLnF"}