@project-chip/matter-node.js-examples 0.8.0-alpha.1-20240308-033110a3 → 0.8.1-alpha.0-20240401-c87f2ece

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 (45) hide show
  1. package/README.md +17 -0
  2. package/dist/esm/examples/{BridgedDeviceNode.js → BridgedDevicesNode.js} +21 -23
  3. package/dist/esm/examples/BridgedDevicesNode.js.map +7 -0
  4. package/dist/esm/examples/BridgedDevicesNodeLegacy.js +9 -6
  5. package/dist/esm/examples/BridgedDevicesNodeLegacy.js.map +2 -2
  6. package/dist/esm/examples/ComposedDeviceNode.js +20 -22
  7. package/dist/esm/examples/ComposedDeviceNode.js.map +2 -2
  8. package/dist/esm/examples/ComposedDeviceNodeLegacy.js +10 -7
  9. package/dist/esm/examples/ComposedDeviceNodeLegacy.js.map +2 -2
  10. package/dist/esm/examples/ControllerNode.js +23 -56
  11. package/dist/esm/examples/ControllerNode.js.map +2 -2
  12. package/dist/esm/examples/ControllerNodeLegacy.js +2 -1
  13. package/dist/esm/examples/ControllerNodeLegacy.js.map +2 -2
  14. package/dist/esm/examples/DeviceNode.js +20 -22
  15. package/dist/esm/examples/DeviceNode.js.map +2 -2
  16. package/dist/esm/examples/DeviceNodeFull.js +22 -24
  17. package/dist/esm/examples/DeviceNodeFull.js.map +2 -2
  18. package/dist/esm/examples/DeviceNodeFullLegacy.js +10 -7
  19. package/dist/esm/examples/DeviceNodeFullLegacy.js.map +2 -2
  20. package/dist/esm/examples/LegacyStorageConverter.js +126 -0
  21. package/dist/esm/examples/LegacyStorageConverter.js.map +7 -0
  22. package/dist/esm/examples/MultiDeviceNode.js +18 -22
  23. package/dist/esm/examples/MultiDeviceNode.js.map +2 -2
  24. package/dist/esm/examples/MultiDeviceNodeLegacy.js +2 -1
  25. package/dist/esm/examples/MultiDeviceNodeLegacy.js.map +2 -2
  26. package/dist/esm/examples/SensorDeviceNode.js +17 -15
  27. package/dist/esm/examples/SensorDeviceNode.js.map +2 -2
  28. package/dist/esm/examples/cluster/DummyThreadNetworkCommissioningServer.js +1 -1
  29. package/dist/esm/examples/cluster/DummyThreadNetworkCommissioningServer.js.map +2 -2
  30. package/package.json +26 -10
  31. package/src/examples/{BridgedDeviceNode.ts → BridgedDevicesNode.ts} +23 -24
  32. package/src/examples/BridgedDevicesNodeLegacy.ts +9 -9
  33. package/src/examples/ComposedDeviceNode.ts +22 -23
  34. package/src/examples/ComposedDeviceNodeLegacy.ts +10 -10
  35. package/src/examples/ControllerNode.ts +32 -74
  36. package/src/examples/ControllerNodeLegacy.ts +2 -4
  37. package/src/examples/DeviceNode.ts +23 -24
  38. package/src/examples/DeviceNodeFull.ts +23 -24
  39. package/src/examples/DeviceNodeFullLegacy.ts +10 -11
  40. package/src/examples/LegacyStorageConverter.ts +156 -0
  41. package/src/examples/MultiDeviceNode.ts +21 -23
  42. package/src/examples/MultiDeviceNodeLegacy.ts +2 -4
  43. package/src/examples/SensorDeviceNode.ts +18 -15
  44. package/src/examples/cluster/DummyThreadNetworkCommissioningServer.ts +2 -2
  45. package/dist/esm/examples/BridgedDeviceNode.js.map +0 -7
@@ -186,13 +186,13 @@ async function getConfiguration() {
186
186
  );
187
187
  const deviceStorage = (await storageService.open("device")).createContext("data");
188
188
 
189
- const isTemperature = deviceStorage.get("isTemperature", environment.vars.get("type") !== "humidity");
190
- if (deviceStorage.has("isTemperature")) {
189
+ const isTemperature = await deviceStorage.get("isTemperature", environment.vars.get("type") !== "humidity");
190
+ if (await deviceStorage.has("isTemperature")) {
191
191
  console.log(
192
192
  `Device type ${isTemperature ? "temperature" : "humidity"} found in storage. --type parameter is ignored.`,
193
193
  );
194
194
  }
195
- let interval = environment.vars.number("interval") ?? deviceStorage.get("interval", 60);
195
+ let interval = environment.vars.number("interval") ?? (await deviceStorage.get("interval", 60));
196
196
  if (interval < 1) {
197
197
  console.log(`Invalid Interval ${interval}, set to 60s`);
198
198
  interval = 60;
@@ -200,25 +200,28 @@ async function getConfiguration() {
200
200
 
201
201
  const deviceName = "Matter test device";
202
202
  const vendorName = "matter-node.js";
203
- const passcode = environment.vars.number("passcode") ?? deviceStorage.get("passcode", 20202021);
204
- const discriminator = environment.vars.number("discriminator") ?? deviceStorage.get("discriminator", 3840);
203
+ const passcode = environment.vars.number("passcode") ?? (await deviceStorage.get("passcode", 20202021));
204
+ const discriminator = environment.vars.number("discriminator") ?? (await deviceStorage.get("discriminator", 3840));
205
205
  // product name / id and vendor id should match what is in the device certificate
206
- const vendorId = environment.vars.number("vendorid") ?? deviceStorage.get("vendorid", 0xfff1);
206
+ const vendorId = environment.vars.number("vendorid") ?? (await deviceStorage.get("vendorid", 0xfff1));
207
207
  const productName = `node-matter OnOff ${isTemperature ? "Temperature" : "Humidity"}`;
208
- const productId = environment.vars.number("productid") ?? deviceStorage.get("productid", 0x8000);
208
+ const productId = environment.vars.number("productid") ?? (await deviceStorage.get("productid", 0x8000));
209
209
 
210
210
  const port = environment.vars.number("port") ?? 5540;
211
211
 
212
- const uniqueId = environment.vars.string("uniqueid") ?? deviceStorage.get("uniqueid", Time.nowMs().toString());
212
+ const uniqueId =
213
+ environment.vars.string("uniqueid") ?? (await deviceStorage.get("uniqueid", Time.nowMs().toString()));
213
214
 
214
215
  // Persist basic data to keep them also on restart
215
- deviceStorage.set("passcode", passcode);
216
- deviceStorage.set("discriminator", discriminator);
217
- deviceStorage.set("vendorid", vendorId);
218
- deviceStorage.set("productid", productId);
219
- deviceStorage.set("interval", interval);
220
- deviceStorage.set("isTemperature", isTemperature);
221
- deviceStorage.set("uniqueid", uniqueId);
216
+ await deviceStorage.set({
217
+ passcode,
218
+ discriminator,
219
+ vendorid: vendorId,
220
+ productid: productId,
221
+ interval,
222
+ isTemperature,
223
+ uniqueid: uniqueId,
224
+ });
222
225
 
223
226
  return {
224
227
  isTemperature,
@@ -21,7 +21,7 @@ import { ByteArray } from "@project-chip/matter.js/util";
21
21
  const firstNetworkId = new ByteArray(32);
22
22
 
23
23
  /**
24
- * This represents a Dummy version of a Wifi Network Commissioning Cluster Server without real Wifi related logic, beside
24
+ * This represents a Dummy version of a Thread Network Commissioning Cluster Server without real thread related logic, beside
25
25
  * returning some values provided as CLI parameters. This dummy implementation is only there for tests/as showcase for BLE
26
26
  * commissioning of a device.
27
27
  */
@@ -64,7 +64,7 @@ export class DummyThreadNetworkCommissioningServer extends NetworkCommissioningB
64
64
 
65
65
  override addOrUpdateThreadNetwork({ operationalDataset, breadcrumb }: AddOrUpdateThreadNetworkRequest) {
66
66
  console.log(
67
- `---> addOrUpdateWiFiNetwork called on NetworkCommissioning cluster: ${operationalDataset.toHex()} ${breadcrumb}`,
67
+ `---> addOrUpdateThreadNetwork called on NetworkCommissioning cluster: ${operationalDataset.toHex()} ${breadcrumb}`,
68
68
  );
69
69
 
70
70
  this.session.context.assertFailSafeArmed("Failsafe timer needs to be armed to add or update networks.");
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/examples/BridgedDeviceNode.ts"],
4
- "sourcesContent": ["/**\n * @license\n * Copyright 2022-2024 Matter.js Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * This example shows how to create a new device node that is composed of multiple devices.\n * It creates multiple endpoints on the server. For information on how to add a composed device to a bridge please\n * refer to the bridge example!\n * It can be used as CLI script and starting point for your own device node implementation.\n */\n\n/**\n * Import needed modules from @project-chip/matter-node.js\n */\n// Include this first to auto-register Crypto, Network and Time Node.js implementations\nimport \"@project-chip/matter-node.js\";\n\nimport { requireMinNodeVersion } from \"@project-chip/matter-node.js/util\";\nimport { BridgedDeviceBasicInformationServer } from \"@project-chip/matter.js/behavior/definitions/bridged-device-basic-information\";\nimport { DeviceTypeId, VendorId } from \"@project-chip/matter.js/datatype\";\nimport { logEndpoint } from \"@project-chip/matter.js/device\";\nimport { OnOffLightDevice } from \"@project-chip/matter.js/devices/OnOffLightDevice\";\nimport { OnOffPlugInUnitDevice } from \"@project-chip/matter.js/devices/OnOffPlugInUnitDevice\";\nimport { Endpoint, EndpointServer } from \"@project-chip/matter.js/endpoint\";\nimport { AggregatorEndpoint } from \"@project-chip/matter.js/endpoint/definitions\";\nimport { Environment, StorageService } from \"@project-chip/matter.js/environment\";\nimport { ServerNode } from \"@project-chip/matter.js/node\";\nimport { Time } from \"@project-chip/matter.js/time\";\nimport { execSync } from \"child_process\";\n\nrequireMinNodeVersion(16);\n\n/** Initialize configuration values */\nconst { isSocket, deviceName, vendorName, passcode, discriminator, vendorId, productName, productId, port, uniqueId } =\n await getConfiguration();\n\n/**\n * Create a Matter ServerNode, which contains the Root Endpoint and all relevant data and configuration\n */\nconst server = await ServerNode.create({\n // Required: Give the Node a unique ID which is used to store the state of this node\n id: uniqueId,\n\n // Provide Network relevant configuration like the port\n // Optional when operating only one device on a host, Default port is 5540\n network: {\n port,\n },\n\n // Provide Commissioning relevant settings\n // Optional for development/testing purposes\n commissioning: {\n passcode,\n discriminator,\n },\n\n // Provide Node announcement settings\n // Optional: If Ommitted some development defaults are used\n productDescription: {\n name: deviceName,\n deviceType: DeviceTypeId(isSocket[0] ? OnOffPlugInUnitDevice.deviceType : OnOffLightDevice.deviceType),\n },\n\n // Provide defaults for the BasicInformation cluster on the Root endpoint\n // Optional: If Omitted some development defaults are used\n basicInformation: {\n vendorName,\n vendorId: VendorId(vendorId),\n nodeLabel: productName,\n productName,\n productLabel: productName,\n productId,\n serialNumber: `matterjs-${uniqueId}`,\n uniqueId,\n },\n});\n\n/**\n * Matter Nodes are a composition of endpoints. Create and add a single multiple endpoint to the node to make it a\n * composed device. This example uses the OnOffLightDevice or OnOffPlugInUnitDevice depending on the value of the type\n * parameter. It also assigns each Endpoint a unique ID to store the endpoint number for it in the storage to restore\n * the device on restart.\n *\n * In this case we directly use the default command implementation from matter.js. Check out the DeviceNodeFull example\n * to see how to customize the command handlers.\n */\n\nconst aggregator = new Endpoint(AggregatorEndpoint, { id: \"aggregator\" });\nawait server.add(aggregator);\n\nfor (let idx = 0; idx < isSocket.length; idx++) {\n const i = idx + 1;\n const isASocket = isSocket[idx]; // Is the Device we add a Socket or a Light?\n\n const name = `OnOff ${isASocket ? \"Socket\" : \"Light\"} ${i}`;\n\n const endpoint = new Endpoint(\n isASocket\n ? // For a Bridged Device we need to add a BridgedDeviceBasicInformation cluster as server\n OnOffPlugInUnitDevice.with(BridgedDeviceBasicInformationServer)\n : OnOffLightDevice.with(BridgedDeviceBasicInformationServer),\n {\n id: `onoff-${i}`,\n bridgedDeviceBasicInformation: {\n nodeLabel: name,\n productName: name,\n productLabel: name,\n serialNumber: `node-matter-${uniqueId}-${i}`,\n reachable: true,\n },\n },\n );\n await aggregator.add(endpoint);\n\n /**\n * Register state change handlers of the endpoint for identify and onoff states to react to the commands.\n *\n * If the code in these change handlers fail then the change is also rolled back and not executed and an error is\n * reported back to the controller.\n */\n let isIdentifying = false;\n endpoint.events.identify.identifyTime$Change.on(value => {\n // identifyTime is set when an identify commandf is called and then decreased every second while indenitfy logic runs.\n if (value > 0 && !isIdentifying) {\n isIdentifying = true;\n console.log(`${name}: Run identify logic, ideally blink a light every 0.5s ...`);\n } else if (value === 0) {\n isIdentifying = false;\n console.log(`${name}: Stop identify logic ...`);\n }\n });\n\n endpoint.events.onOff.onOff$Change.on(value => {\n executeCommand(value ? `on${i}` : `off${i}`);\n console.log(`${name} is now ${value ? \"ON\" : \"OFF\"}`);\n });\n}\n\n/**\n * In order to start the node and announce it into the network we use the run method which resolves when the node goes\n * offline again because we do not need anything more here. See the Full example for other starting options.\n * The QR Code is printed automatically.\n */\nawait server.bringOnline();\n\n/**\n * Log the endpoint structure for debugging reasons and to allow to verify anything is correct\n */\nlogEndpoint(EndpointServer.forEndpoint(server));\n\n/*\n If you want to dynamically add another device during runtime you can do so by doing the following:\n\n const name = `OnOff Light 3`;\n\n const endpoint = new Endpoint(OnOffLightDevice.with(BridgedDeviceBasicInformationServer), {\n id: `onoff-3`,\n bridgedDeviceBasicInformation: {\n nodeLabel: name,\n productName: name,\n productLabel: name,\n serialNumber: `node-matter-${uniqueId}-3`,\n reachable: true,\n },\n });\n await aggregator.add(endpoint);\n\n endpoint.events.onOff.onOff$Change.on(value => {\n executeCommand(value ? `on3` : `off3`);\n console.log(`${name} is now ${value ? \"ON\" : \"OFF\"}`);\n });\n\n */\n\n/*\n To remove a device during runtime you can do so by doing the following:\n console.log(\"Removing Light 3 now!!\");\n\n await endpoint.close();\n\n This will automatically remove the endpoint from the bridge.\n */\n\n/*********************************************************************************************************\n * Convenience Methods\n *********************************************************************************************************/\n\n/** Defined a shell command from an environment variable and execute it and log the response. */\nfunction executeCommand(scriptParamName: string) {\n const script = Environment.default.vars.string(scriptParamName);\n if (script === undefined) return undefined;\n console.log(`${scriptParamName}: ${execSync(script).toString().slice(0, -1)}`);\n}\n\nasync function getConfiguration() {\n /**\n * Collect all needed data\n *\n * This block collects all needed data from cli, environment or storage. Replace this with where ever your data come from.\n *\n * Note: This example uses the matter.js process storage system to store the device parameter data for convenience\n * and easy reuse. When you also do that be careful to not overlap with Matter-Server own storage contexts\n * (so maybe better not do it ;-)).\n */\n const environment = Environment.default;\n\n const storageService = environment.get(StorageService);\n console.log(`Storage location: ${storageService.location} (Directory)`);\n console.log(\n 'Use the parameter \"--storage-path=NAME-OR-PATH\" to specify a different storage location in this directory, use --storage-clear to start with an empty storage.',\n );\n const deviceStorage = (await storageService.open(\"device\")).createContext(\"data\");\n\n const isSocket = Array<boolean>();\n const numDevices = environment.vars.number(\"num\") || 2;\n if (deviceStorage.has(\"isSocket\")) {\n console.log(`Device types found in storage. --type parameter is ignored.`);\n deviceStorage.get<Array<boolean>>(\"isSocket\").forEach(type => isSocket.push(type));\n }\n for (let i = 1; i <= numDevices; i++) {\n if (isSocket[i - 1] !== undefined) continue;\n isSocket.push(environment.vars.string(`type${i}`) === \"socket\");\n }\n\n const deviceName = \"Matter test device\";\n const vendorName = \"matter-node.js\";\n const passcode = environment.vars.number(\"passcode\") ?? deviceStorage.get(\"passcode\", 20202021);\n const discriminator = environment.vars.number(\"discriminator\") ?? deviceStorage.get(\"discriminator\", 3840);\n // product name / id and vendor id should match what is in the device certificate\n const vendorId = environment.vars.number(\"vendorid\") ?? deviceStorage.get(\"vendorid\", 0xfff1);\n const productName = `node-matter OnOff ${isSocket ? \"Socket\" : \"Light\"}`;\n const productId = environment.vars.number(\"productid\") ?? deviceStorage.get(\"productid\", 0x8000);\n\n const port = environment.vars.number(\"port\") ?? 5540;\n\n const uniqueId = environment.vars.string(\"uniqueid\") ?? deviceStorage.get(\"uniqueid\", Time.nowMs().toString());\n\n // Persist basic data to keep them also on restart\n deviceStorage.set(\"passcode\", passcode);\n deviceStorage.set(\"discriminator\", discriminator);\n deviceStorage.set(\"vendorid\", vendorId);\n deviceStorage.set(\"productid\", productId);\n deviceStorage.set(\"isSocket\", isSocket);\n deviceStorage.set(\"uniqueid\", uniqueId);\n\n return {\n isSocket,\n deviceName,\n vendorName,\n passcode,\n discriminator,\n vendorId,\n productName,\n productId,\n port,\n uniqueId,\n };\n}\n"],
5
- "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAiBA,OAAO;AAEP,SAAS,6BAA6B;AACtC,SAAS,2CAA2C;AACpD,SAAS,cAAc,gBAAgB;AACvC,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,UAAU,sBAAsB;AACzC,SAAS,0BAA0B;AACnC,SAAS,aAAa,sBAAsB;AAC5C,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,gBAAgB;AAEzB,sBAAsB,EAAE;AAGxB,MAAM,EAAE,UAAU,YAAY,YAAY,UAAU,eAAe,UAAU,aAAa,WAAW,MAAM,SAAS,IAChH,MAAM,iBAAiB;AAK3B,MAAM,SAAS,MAAM,WAAW,OAAO;AAAA;AAAA,EAEnC,IAAI;AAAA;AAAA;AAAA,EAIJ,SAAS;AAAA,IACL;AAAA,EACJ;AAAA;AAAA;AAAA,EAIA,eAAe;AAAA,IACX;AAAA,IACA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