matterbridge 3.0.0-edge.8 → 3.0.0

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 (163) hide show
  1. package/CHANGELOG.md +50 -9
  2. package/README-DEV.md +4 -0
  3. package/README-DOCKER.md +21 -12
  4. package/README-SERVICE.md +27 -21
  5. package/README.md +80 -2
  6. package/dist/cli.d.ts +29 -0
  7. package/dist/cli.d.ts.map +1 -0
  8. package/dist/cli.js +41 -3
  9. package/dist/cli.js.map +1 -0
  10. package/dist/cluster/export.d.ts +2 -0
  11. package/dist/cluster/export.d.ts.map +1 -0
  12. package/dist/cluster/export.js +2 -0
  13. package/dist/cluster/export.js.map +1 -0
  14. package/dist/defaultConfigSchema.d.ts +27 -0
  15. package/dist/defaultConfigSchema.d.ts.map +1 -0
  16. package/dist/defaultConfigSchema.js +23 -0
  17. package/dist/defaultConfigSchema.js.map +1 -0
  18. package/dist/deviceManager.d.ts +114 -0
  19. package/dist/deviceManager.d.ts.map +1 -0
  20. package/dist/deviceManager.js +94 -1
  21. package/dist/deviceManager.js.map +1 -0
  22. package/dist/frontend.d.ts +222 -0
  23. package/dist/frontend.d.ts.map +1 -0
  24. package/dist/frontend.js +443 -35
  25. package/dist/frontend.js.map +1 -0
  26. package/dist/index.d.ts +35 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +28 -1
  29. package/dist/index.js.map +1 -0
  30. package/dist/logger/export.d.ts +2 -0
  31. package/dist/logger/export.d.ts.map +1 -0
  32. package/dist/logger/export.js +1 -0
  33. package/dist/logger/export.js.map +1 -0
  34. package/dist/matter/behaviors.d.ts +2 -0
  35. package/dist/matter/behaviors.d.ts.map +1 -0
  36. package/dist/matter/behaviors.js +2 -0
  37. package/dist/matter/behaviors.js.map +1 -0
  38. package/dist/matter/clusters.d.ts +2 -0
  39. package/dist/matter/clusters.d.ts.map +1 -0
  40. package/dist/matter/clusters.js +2 -0
  41. package/dist/matter/clusters.js.map +1 -0
  42. package/dist/matter/devices.d.ts +2 -0
  43. package/dist/matter/devices.d.ts.map +1 -0
  44. package/dist/matter/devices.js +2 -0
  45. package/dist/matter/devices.js.map +1 -0
  46. package/dist/matter/endpoints.d.ts +2 -0
  47. package/dist/matter/endpoints.d.ts.map +1 -0
  48. package/dist/matter/endpoints.js +2 -0
  49. package/dist/matter/endpoints.js.map +1 -0
  50. package/dist/matter/export.d.ts +5 -0
  51. package/dist/matter/export.d.ts.map +1 -0
  52. package/dist/matter/export.js +2 -0
  53. package/dist/matter/export.js.map +1 -0
  54. package/dist/matter/types.d.ts +3 -0
  55. package/dist/matter/types.d.ts.map +1 -0
  56. package/dist/matter/types.js +2 -0
  57. package/dist/matter/types.js.map +1 -0
  58. package/dist/matterbridge.d.ts +431 -0
  59. package/dist/matterbridge.d.ts.map +1 -0
  60. package/dist/matterbridge.js +800 -79
  61. package/dist/matterbridge.js.map +1 -0
  62. package/dist/matterbridgeAccessoryPlatform.d.ts +40 -0
  63. package/dist/matterbridgeAccessoryPlatform.d.ts.map +1 -0
  64. package/dist/matterbridgeAccessoryPlatform.js +34 -0
  65. package/dist/matterbridgeAccessoryPlatform.js.map +1 -0
  66. package/dist/matterbridgeBehaviors.d.ts +1514 -0
  67. package/dist/matterbridgeBehaviors.d.ts.map +1 -0
  68. package/dist/matterbridgeBehaviors.js +33 -1
  69. package/dist/matterbridgeBehaviors.js.map +1 -0
  70. package/dist/matterbridgeDeviceTypes.d.ts +494 -0
  71. package/dist/matterbridgeDeviceTypes.d.ts.map +1 -0
  72. package/dist/matterbridgeDeviceTypes.js +431 -12
  73. package/dist/matterbridgeDeviceTypes.js.map +1 -0
  74. package/dist/matterbridgeDynamicPlatform.d.ts +40 -0
  75. package/dist/matterbridgeDynamicPlatform.d.ts.map +1 -0
  76. package/dist/matterbridgeDynamicPlatform.js +34 -0
  77. package/dist/matterbridgeDynamicPlatform.js.map +1 -0
  78. package/dist/matterbridgeEndpoint.d.ts +943 -0
  79. package/dist/matterbridgeEndpoint.d.ts.map +1 -0
  80. package/dist/matterbridgeEndpoint.js +806 -7
  81. package/dist/matterbridgeEndpoint.js.map +1 -0
  82. package/dist/matterbridgeEndpointHelpers.d.ts +2706 -0
  83. package/dist/matterbridgeEndpointHelpers.d.ts.map +1 -0
  84. package/dist/matterbridgeEndpointHelpers.js +156 -9
  85. package/dist/matterbridgeEndpointHelpers.js.map +1 -0
  86. package/dist/matterbridgePlatform.d.ts +294 -0
  87. package/dist/matterbridgePlatform.d.ts.map +1 -0
  88. package/dist/matterbridgePlatform.js +227 -9
  89. package/dist/matterbridgePlatform.js.map +1 -0
  90. package/dist/matterbridgeTypes.d.ts +187 -0
  91. package/dist/matterbridgeTypes.d.ts.map +1 -0
  92. package/dist/matterbridgeTypes.js +24 -0
  93. package/dist/matterbridgeTypes.js.map +1 -0
  94. package/dist/pluginManager.d.ts +271 -0
  95. package/dist/pluginManager.d.ts.map +1 -0
  96. package/dist/pluginManager.js +262 -3
  97. package/dist/pluginManager.js.map +1 -0
  98. package/dist/shelly.d.ts +92 -0
  99. package/dist/shelly.d.ts.map +1 -0
  100. package/dist/shelly.js +146 -6
  101. package/dist/shelly.js.map +1 -0
  102. package/dist/storage/export.d.ts +2 -0
  103. package/dist/storage/export.d.ts.map +1 -0
  104. package/dist/storage/export.js +1 -0
  105. package/dist/storage/export.js.map +1 -0
  106. package/dist/update.d.ts +32 -0
  107. package/dist/update.d.ts.map +1 -0
  108. package/dist/update.js +70 -0
  109. package/dist/update.js.map +1 -0
  110. package/dist/utils/colorUtils.d.ts +61 -0
  111. package/dist/utils/colorUtils.d.ts.map +1 -0
  112. package/dist/utils/colorUtils.js +205 -2
  113. package/dist/utils/colorUtils.js.map +1 -0
  114. package/dist/utils/copyDirectory.d.ts +32 -0
  115. package/dist/utils/copyDirectory.d.ts.map +1 -0
  116. package/dist/utils/copyDirectory.js +37 -1
  117. package/dist/utils/copyDirectory.js.map +1 -0
  118. package/dist/utils/createZip.d.ts +38 -0
  119. package/dist/utils/createZip.d.ts.map +1 -0
  120. package/dist/utils/createZip.js +42 -2
  121. package/dist/utils/createZip.js.map +1 -0
  122. package/dist/utils/deepCopy.d.ts +31 -0
  123. package/dist/utils/deepCopy.d.ts.map +1 -0
  124. package/dist/utils/deepCopy.js +40 -0
  125. package/dist/utils/deepCopy.js.map +1 -0
  126. package/dist/utils/deepEqual.d.ts +53 -0
  127. package/dist/utils/deepEqual.d.ts.map +1 -0
  128. package/dist/utils/deepEqual.js +65 -1
  129. package/dist/utils/deepEqual.js.map +1 -0
  130. package/dist/utils/export.d.ts +10 -0
  131. package/dist/utils/export.d.ts.map +1 -0
  132. package/dist/utils/export.js +1 -0
  133. package/dist/utils/export.js.map +1 -0
  134. package/dist/utils/isvalid.d.ts +87 -0
  135. package/dist/utils/isvalid.d.ts.map +1 -0
  136. package/dist/utils/isvalid.js +86 -0
  137. package/dist/utils/isvalid.js.map +1 -0
  138. package/dist/utils/network.d.ts +69 -0
  139. package/dist/utils/network.d.ts.map +1 -0
  140. package/dist/utils/network.js +76 -5
  141. package/dist/utils/network.js.map +1 -0
  142. package/dist/utils/parameter.d.ts +58 -0
  143. package/dist/utils/parameter.d.ts.map +1 -0
  144. package/dist/utils/parameter.js +92 -7
  145. package/dist/utils/parameter.js.map +1 -0
  146. package/dist/utils/wait.d.ts +43 -0
  147. package/dist/utils/wait.d.ts.map +1 -0
  148. package/dist/utils/wait.js +50 -5
  149. package/dist/utils/wait.js.map +1 -0
  150. package/frontend/build/asset-manifest.json +6 -6
  151. package/frontend/build/bmc-button.svg +22 -0
  152. package/frontend/build/discord.svg +5 -0
  153. package/frontend/build/index.html +1 -1
  154. package/frontend/build/static/css/{main.ea7910e9.css → main.944b63c3.css} +2 -2
  155. package/frontend/build/static/css/main.944b63c3.css.map +1 -0
  156. package/frontend/build/static/js/{main.e11d6bb4.js → main.1d983660.js} +12 -12
  157. package/frontend/build/static/js/{main.e11d6bb4.js.map → main.1d983660.js.map} +1 -1
  158. package/npm-shrinkwrap.json +300 -362
  159. package/package.json +5 -4
  160. package/tsconfig.jest.json +8 -0
  161. package/README-EDGE.md +0 -74
  162. package/frontend/build/static/css/main.ea7910e9.css.map +0 -1
  163. /package/frontend/build/static/js/{main.e11d6bb4.js.LICENSE.txt → main.1d983660.js.LICENSE.txt} +0 -0
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file contains the default config for the plugins.
3
+ *
4
+ * @file defaultConfigSchema.ts
5
+ * @author Luca Liguori
6
+ * @date 2024-05-07
7
+ * @version 1.0.1
8
+ *
9
+ * Copyright 2024, 2025, 2026 Luca Liguori.
10
+ *
11
+ * Licensed under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" BASIS,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License. *
22
+ */
23
+ import { PlatformConfig } from './matterbridgePlatform.js';
24
+ export declare const zigbee2mqtt_config: PlatformConfig;
25
+ export declare const somfytahoma_config: PlatformConfig;
26
+ export declare const shelly_config: PlatformConfig;
27
+ //# sourceMappingURL=defaultConfigSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultConfigSchema.d.ts","sourceRoot":"","sources":["../src/defaultConfigSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,eAAO,MAAM,kBAAkB,EAAE,cAiBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAWhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,cA2B3B,CAAC"}
@@ -1,3 +1,25 @@
1
+ /**
2
+ * This file contains the default config for the plugins.
3
+ *
4
+ * @file defaultConfigSchema.ts
5
+ * @author Luca Liguori
6
+ * @date 2024-05-07
7
+ * @version 1.0.1
8
+ *
9
+ * Copyright 2024, 2025, 2026 Luca Liguori.
10
+ *
11
+ * Licensed under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" BASIS,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License. *
22
+ */
1
23
  export const zigbee2mqtt_config = {
2
24
  name: 'matterbridge-zigbee2mqtt',
3
25
  type: 'DynamicPlatform',
@@ -56,3 +78,4 @@ export const shelly_config = {
56
78
  debugWs: false,
57
79
  unregisterOnShutdown: false,
58
80
  };
81
+ //# sourceMappingURL=defaultConfigSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultConfigSchema.js","sourceRoot":"","sources":["../src/defaultConfigSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,EAAE;IACd,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,EAAE;IACd,gBAAgB,EAAE,EAAE;IACpB,sBAAsB,EAAE,EAAE;IAC1B,KAAK,EAAE,KAAK;IACZ,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,gBAAgB,EAAE,EAAE;IACpB,KAAK,EAAE,KAAK;IACZ,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAmB;IAC3C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,SAAS,EAAE,EAAE;IACb,gBAAgB,EAAE,EAAE;IACpB,kBAAkB,EAAE,EAAE;IACtB,iBAAiB,EAAE,EAAE;IACrB,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,eAAe,EAAE,EAAE;IACnB,qBAAqB,EAAE,EAAE;IACzB,WAAW,EAAE,EAAE;IACf,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,IAAI;IAC3B,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,IAAI;IACvB,aAAa,EAAE,CAAC;IAChB,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,KAAK;IAChB,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,KAAK;IACd,oBAAoB,EAAE,KAAK;CAC5B,CAAC"}
@@ -0,0 +1,114 @@
1
+ /**
2
+ * This file contains the DeviceManager class.
3
+ *
4
+ * @file devices.ts
5
+ * @author Luca Liguori
6
+ * @date 2024-07-26
7
+ * @version 1.0.9
8
+ *
9
+ * Copyright 2024, 2025, 2026 Luca Liguori.
10
+ *
11
+ * Licensed under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" BASIS,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License. *
22
+ */
23
+ import { LogLevel } from './logger/export.js';
24
+ import { NodeStorage } from './storage/export.js';
25
+ import { Matterbridge } from './matterbridge.js';
26
+ import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
27
+ /**
28
+ * Manages Matterbridge devices.
29
+ */
30
+ export declare class DeviceManager {
31
+ private readonly _devices;
32
+ private readonly matterbridge;
33
+ private readonly nodeContext;
34
+ private readonly log;
35
+ /**
36
+ * Creates an instance of DeviceManager.
37
+ *
38
+ * @param {Matterbridge} matterbridge - The Matterbridge instance.
39
+ * @param {NodeStorage} nodeContext - The node storage context.
40
+ */
41
+ constructor(matterbridge: Matterbridge, nodeContext: NodeStorage);
42
+ /**
43
+ * Gets the number of devices.
44
+ *
45
+ * @returns {number} The number of devices.
46
+ */
47
+ get length(): number;
48
+ /**
49
+ * Gets the number of devices.
50
+ *
51
+ * @returns {number} The number of devices.
52
+ */
53
+ get size(): number;
54
+ /**
55
+ * Checks if a device with the specified unique ID exists.
56
+ *
57
+ * @param {string} uniqueId - The unique ID of the device.
58
+ * @returns {boolean} True if the device exists, false otherwise.
59
+ */
60
+ has(uniqueId: string): boolean;
61
+ /**
62
+ * Gets a device by its unique ID.
63
+ *
64
+ * @param {string} uniqueId - The unique ID of the device.
65
+ * @returns {MatterbridgeEndpoint | undefined} The device, or undefined if not found.
66
+ */
67
+ get(uniqueId: string): MatterbridgeEndpoint | undefined;
68
+ /**
69
+ * Adds a device to the manager.
70
+ *
71
+ * @param {MatterbridgeEndpoint} device - The device to add.
72
+ * @returns {MatterbridgeEndpoint} The added device.
73
+ * @throws {Error} If the device does not have a unique ID.
74
+ */
75
+ set(device: MatterbridgeEndpoint): MatterbridgeEndpoint;
76
+ /**
77
+ * Removes a device from the manager.
78
+ *
79
+ * @param {MatterbridgeEndpoint} device - The device to remove.
80
+ * @returns {boolean} True if the device was removed, false otherwise.
81
+ * @throws {Error} If the device does not have a unique ID.
82
+ */
83
+ remove(device: MatterbridgeEndpoint): boolean;
84
+ /**
85
+ * Clears all devices from the manager.
86
+ */
87
+ clear(): void;
88
+ /**
89
+ * Gets an array of all devices.
90
+ *
91
+ * @returns {MatterbridgeEndpoint[]} An array of all devices.
92
+ */
93
+ array(): MatterbridgeEndpoint[];
94
+ /**
95
+ * Iterates over all devices.
96
+ *
97
+ * @returns {IterableIterator<MatterbridgeEndpoint>} An iterator for the devices.
98
+ */
99
+ [Symbol.iterator](): MapIterator<MatterbridgeEndpoint>;
100
+ /**
101
+ * Asynchronously iterates over each device and calls the provided callback function.
102
+ *
103
+ * @param {Function} callback - The callback function to call with each device.
104
+ * @returns {Promise<void>} A promise that resolves when all callbacks have been called.
105
+ */
106
+ forEach(callback: (device: MatterbridgeEndpoint) => Promise<void>): Promise<void>;
107
+ /**
108
+ * Sets the log level.
109
+ *
110
+ * @param {LogLevel} logLevel - The log level to set.
111
+ */
112
+ set logLevel(logLevel: LogLevel);
113
+ }
114
+ //# sourceMappingURL=deviceManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceManager.d.ts","sourceRoot":"","sources":["../src/deviceManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAwB,QAAQ,EAAmB,MAAM,oBAAoB,CAAC;AAGrF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2C;IACpE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;IAC1C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAa;IAEjC;;;;;OAKG;gBACS,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW;IAOhE;;;;OAIG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;OAIG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAI9B;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAIvD;;;;;;OAMG;IACH,GAAG,CAAC,MAAM,EAAE,oBAAoB,GAAG,oBAAoB;IAOvD;;;;;;OAMG;IACH,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO;IAM7C;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;;;OAIG;IACH,KAAK,IAAI,oBAAoB,EAAE;IAI/B;;;;OAIG;IACH,CAAC,MAAM,CAAC,QAAQ,CAAC;IAIjB;;;;;OAKG;IACG,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAavF;;;;OAIG;IACH,IAAI,QAAQ,CAAC,QAAQ,EAAE,QAAQ,EAE9B;CACF"}
@@ -1,28 +1,89 @@
1
+ /**
2
+ * This file contains the DeviceManager class.
3
+ *
4
+ * @file devices.ts
5
+ * @author Luca Liguori
6
+ * @date 2024-07-26
7
+ * @version 1.0.9
8
+ *
9
+ * Copyright 2024, 2025, 2026 Luca Liguori.
10
+ *
11
+ * Licensed under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" BASIS,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License. *
22
+ */
23
+ // AnsiLogger module
1
24
  import { AnsiLogger, BLUE, er } from './logger/export.js';
2
25
  import { dev } from './matterbridgeTypes.js';
26
+ /**
27
+ * Manages Matterbridge devices.
28
+ */
3
29
  export class DeviceManager {
4
30
  _devices = new Map();
5
31
  matterbridge;
6
32
  nodeContext;
7
33
  log;
34
+ /**
35
+ * Creates an instance of DeviceManager.
36
+ *
37
+ * @param {Matterbridge} matterbridge - The Matterbridge instance.
38
+ * @param {NodeStorage} nodeContext - The node storage context.
39
+ */
8
40
  constructor(matterbridge, nodeContext) {
9
41
  this.matterbridge = matterbridge;
10
42
  this.nodeContext = nodeContext;
11
- this.log = new AnsiLogger({ logName: 'DeviceManager', logTimestampFormat: 4, logLevel: matterbridge.log.logLevel });
43
+ this.log = new AnsiLogger({ logName: 'DeviceManager', logTimestampFormat: 4 /* TimestampFormat.TIME_MILLIS */, logLevel: matterbridge.log.logLevel });
12
44
  this.log.debug('Matterbridge device manager starting...');
13
45
  }
46
+ /**
47
+ * Gets the number of devices.
48
+ *
49
+ * @returns {number} The number of devices.
50
+ */
14
51
  get length() {
15
52
  return this._devices.size;
16
53
  }
54
+ /**
55
+ * Gets the number of devices.
56
+ *
57
+ * @returns {number} The number of devices.
58
+ */
17
59
  get size() {
18
60
  return this._devices.size;
19
61
  }
62
+ /**
63
+ * Checks if a device with the specified unique ID exists.
64
+ *
65
+ * @param {string} uniqueId - The unique ID of the device.
66
+ * @returns {boolean} True if the device exists, false otherwise.
67
+ */
20
68
  has(uniqueId) {
21
69
  return this._devices.has(uniqueId);
22
70
  }
71
+ /**
72
+ * Gets a device by its unique ID.
73
+ *
74
+ * @param {string} uniqueId - The unique ID of the device.
75
+ * @returns {MatterbridgeEndpoint | undefined} The device, or undefined if not found.
76
+ */
23
77
  get(uniqueId) {
24
78
  return this._devices.get(uniqueId);
25
79
  }
80
+ /**
81
+ * Adds a device to the manager.
82
+ *
83
+ * @param {MatterbridgeEndpoint} device - The device to add.
84
+ * @returns {MatterbridgeEndpoint} The added device.
85
+ * @throws {Error} If the device does not have a unique ID.
86
+ */
26
87
  set(device) {
27
88
  if (!device.uniqueId)
28
89
  throw new Error(`The device ${dev}${device.deviceName}${er} has not been initialized: uniqueId is required`);
@@ -31,6 +92,13 @@ export class DeviceManager {
31
92
  this._devices.set(device.uniqueId, device);
32
93
  return device;
33
94
  }
95
+ /**
96
+ * Removes a device from the manager.
97
+ *
98
+ * @param {MatterbridgeEndpoint} device - The device to remove.
99
+ * @returns {boolean} True if the device was removed, false otherwise.
100
+ * @throws {Error} If the device does not have a unique ID.
101
+ */
34
102
  remove(device) {
35
103
  if (!device.uniqueId)
36
104
  throw new Error(`The device ${dev}${device.deviceName}${er} has not been initialized: uniqueId is required`);
@@ -38,15 +106,34 @@ export class DeviceManager {
38
106
  this.log.error(`The device ${dev}${device.deviceName}${er} with uniqueId ${BLUE}${device.uniqueId}${er} serialNumber ${BLUE}${device.serialNumber}${er} is not registered in the device manager`);
39
107
  return this._devices.delete(device.uniqueId);
40
108
  }
109
+ /**
110
+ * Clears all devices from the manager.
111
+ */
41
112
  clear() {
42
113
  this._devices.clear();
43
114
  }
115
+ /**
116
+ * Gets an array of all devices.
117
+ *
118
+ * @returns {MatterbridgeEndpoint[]} An array of all devices.
119
+ */
44
120
  array() {
45
121
  return Array.from(this._devices.values());
46
122
  }
123
+ /**
124
+ * Iterates over all devices.
125
+ *
126
+ * @returns {IterableIterator<MatterbridgeEndpoint>} An iterator for the devices.
127
+ */
47
128
  [Symbol.iterator]() {
48
129
  return this._devices.values();
49
130
  }
131
+ /**
132
+ * Asynchronously iterates over each device and calls the provided callback function.
133
+ *
134
+ * @param {Function} callback - The callback function to call with each device.
135
+ * @returns {Promise<void>} A promise that resolves when all callbacks have been called.
136
+ */
50
137
  async forEach(callback) {
51
138
  if (this.size === 0)
52
139
  return;
@@ -60,7 +147,13 @@ export class DeviceManager {
60
147
  });
61
148
  await Promise.all(tasks);
62
149
  }
150
+ /**
151
+ * Sets the log level.
152
+ *
153
+ * @param {LogLevel} logLevel - The log level to set.
154
+ */
63
155
  set logLevel(logLevel) {
64
156
  this.log.logLevel = logLevel;
65
157
  }
66
158
  }
159
+ //# sourceMappingURL=deviceManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceManager.js","sourceRoot":"","sources":["../src/deviceManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,oBAAoB;AACpB,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAA6B,MAAM,oBAAoB,CAAC;AAQrF,OAAO,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAE7C;;GAEG;AACH,MAAM,OAAO,aAAa;IACP,QAAQ,GAAG,IAAI,GAAG,EAAgC,CAAC;IACnD,YAAY,CAAe;IAC3B,WAAW,CAAc;IACzB,GAAG,CAAa;IAEjC;;;;;OAKG;IACH,YAAY,YAA0B,EAAE,WAAwB;QAC9D,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,GAAG,GAAG,IAAI,UAAU,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,kBAAkB,qCAA6B,EAAE,QAAQ,EAAE,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC9I,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;I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AAC,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC/B,CAAC;CACF"}
@@ -0,0 +1,222 @@
1
+ /**
2
+ * This file contains the class Frontend.
3
+ *
4
+ * @file frontend.ts
5
+ * @author Luca Liguori
6
+ * @date 2025-01-13
7
+ * @version 1.0.2
8
+ *
9
+ * Copyright 2025, 2026, 2027 Luca Liguori.
10
+ *
11
+ * Licensed under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License.
13
+ * You may obtain a copy of the License at
14
+ *
15
+ * http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software
18
+ * distributed under the License is distributed on an "AS IS" BASIS,
19
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ * See the License for the specific language governing permissions and
21
+ * limitations under the License. *
22
+ */
23
+ import { LogLevel } from './logger/export.js';
24
+ import { Matterbridge } from './matterbridge.js';
25
+ /**
26
+ * Websocket message ID for logging.
27
+ * @constant {number}
28
+ */
29
+ export declare const WS_ID_LOG = 0;
30
+ /**
31
+ * Websocket message ID indicating a refresh is needed.
32
+ * @constant {number}
33
+ */
34
+ export declare const WS_ID_REFRESH_NEEDED = 1;
35
+ /**
36
+ * Websocket message ID indicating a restart is needed.
37
+ * @constant {number}
38
+ */
39
+ export declare const WS_ID_RESTART_NEEDED = 2;
40
+ /**
41
+ * Websocket message ID indicating a cpu update.
42
+ * @constant {number}
43
+ */
44
+ export declare const WS_ID_CPU_UPDATE = 3;
45
+ /**
46
+ * Websocket message ID indicating a memory update.
47
+ * @constant {number}
48
+ */
49
+ export declare const WS_ID_MEMORY_UPDATE = 4;
50
+ /**
51
+ * Websocket message ID indicating an uptime update.
52
+ * @constant {number}
53
+ */
54
+ export declare const WS_ID_UPTIME_UPDATE = 5;
55
+ /**
56
+ * Websocket message ID indicating a snackbar message.
57
+ * @constant {number}
58
+ */
59
+ export declare const WS_ID_SNACKBAR = 6;
60
+ /**
61
+ * Websocket message ID indicating matterbridge has un update available.
62
+ * @constant {number}
63
+ */
64
+ export declare const WS_ID_UPDATE_NEEDED = 7;
65
+ /**
66
+ * Websocket message ID indicating a state update.
67
+ * @constant {number}
68
+ */
69
+ export declare const WS_ID_STATEUPDATE = 8;
70
+ /**
71
+ * Websocket message ID indicating a shelly system update.
72
+ * check:
73
+ * curl -k http://127.0.0.1:8101/api/updates/sys/check
74
+ * perform:
75
+ * curl -k http://127.0.0.1:8101/api/updates/sys/perform
76
+ * @constant {number}
77
+ */
78
+ export declare const WS_ID_SHELLY_SYS_UPDATE = 100;
79
+ /**
80
+ * Websocket message ID indicating a shelly main update.
81
+ * check:
82
+ * curl -k http://127.0.0.1:8101/api/updates/main/check
83
+ * perform:
84
+ * curl -k http://127.0.0.1:8101/api/updates/main/perform
85
+ * @constant {number}
86
+ */
87
+ export declare const WS_ID_SHELLY_MAIN_UPDATE = 101;
88
+ export declare class Frontend {
89
+ private matterbridge;
90
+ private log;
91
+ private port;
92
+ private initializeError;
93
+ private expressApp;
94
+ private httpServer;
95
+ private httpsServer;
96
+ private webSocketServer;
97
+ private prevCpus;
98
+ private lastCpuUsage;
99
+ private memoryData;
100
+ private memoryInterval?;
101
+ private memoryTimeout?;
102
+ constructor(matterbridge: Matterbridge);
103
+ set logLevel(logLevel: LogLevel);
104
+ start(port?: number): Promise<void>;
105
+ stop(): Promise<void>;
106
+ private formatMemoryUsage;
107
+ private formatOsUpTime;
108
+ /**
109
+ * Retrieves the api settings data.
110
+ * @returns {Promise<object>} A promise that resolve in the api settings object.
111
+ */
112
+ private getApiSettings;
113
+ /**
114
+ * Retrieves the reachable attribute.
115
+ * @param {MatterbridgeDevice} device - The MatterbridgeDevice object.
116
+ * @returns {boolean} The reachable attribute.
117
+ */
118
+ private getReachability;
119
+ private getPowerSource;
120
+ /**
121
+ * Retrieves the cluster text description from a given device.
122
+ * @param {MatterbridgeDevice} device - The MatterbridgeDevice object.
123
+ * @returns {string} The attributes description of the cluster servers in the device.
124
+ */
125
+ private getClusterTextFromDevice;
126
+ /**
127
+ * Retrieves the base registered plugins sanitized for res.json().
128
+ * @returns {BaseRegisteredPlugin[]} An array of BaseRegisteredPlugin.
129
+ */
130
+ private getBaseRegisteredPlugins;
131
+ /**
132
+ * Handles incoming websocket messages for the Matterbridge frontend.
133
+ *
134
+ * @param {WebSocket} client - The websocket client that sent the message.
135
+ * @param {WebSocket.RawData} message - The raw data of the message received from the client.
136
+ * @returns {Promise<void>} A promise that resolves when the message has been handled.
137
+ */
138
+ private wsMessageHandler;
139
+ /**
140
+ * Sends a WebSocket message to all connected clients. The function is called by AnsiLogger.setGlobalCallback.
141
+ *
142
+ * @param {string} level - The logger level of the message: debug info notice warn error fatal...
143
+ * @param {string} time - The time string of the message
144
+ * @param {string} name - The logger name of the message
145
+ * @param {string} message - The content of the message.
146
+ */
147
+ wssSendMessage(level: string, time: string, name: string, message: string): void;
148
+ /**
149
+ * Sends a need to refresh WebSocket message to all connected clients.
150
+ *
151
+ * @param {string} changed - The changed value. If null, the whole page will be refreshed.
152
+ * possible values:
153
+ * - 'matterbridgeLatestVersion'
154
+ * - 'matterbridgeAdvertise'
155
+ * - 'online'
156
+ * - 'offline'
157
+ * - 'reachability'
158
+ * - 'settings'
159
+ * - 'plugins'
160
+ * - 'devices'
161
+ * - 'fabrics'
162
+ * - 'sessions'
163
+ */
164
+ wssSendRefreshRequired(changed?: string | null): void;
165
+ /**
166
+ * Sends a need to restart WebSocket message to all connected clients.
167
+ *
168
+ */
169
+ wssSendRestartRequired(snackbar?: boolean): void;
170
+ /**
171
+ * Sends a need to update WebSocket message to all connected clients.
172
+ *
173
+ */
174
+ wssSendUpdateRequired(): void;
175
+ /**
176
+ * Sends a memory update message to all connected clients.
177
+ *
178
+ */
179
+ wssSendCpuUpdate(cpuUsage: number): void;
180
+ /**
181
+ * Sends a cpu update message to all connected clients.
182
+ *
183
+ */
184
+ wssSendMemoryUpdate(totalMemory: string, freeMemory: string, rss: string, heapTotal: string, heapUsed: string, external: string, arrayBuffers: string): void;
185
+ /**
186
+ * Sends a memory update message to all connected clients.
187
+ *
188
+ */
189
+ wssSendUptimeUpdate(systemUptime: string, processUptime: string): void;
190
+ /**
191
+ * Sends a cpu update message to all connected clients.
192
+ * @param {string} message - The message to send.
193
+ * @param {number} timeout - The timeout in seconds for the snackbar message.
194
+ * @param {'info' | 'warning' | 'error' | 'success'} severity - The severity of the snackbar message (default info).
195
+ *
196
+ */
197
+ wssSendSnackbarMessage(message: string, timeout?: number, severity?: 'info' | 'warning' | 'error' | 'success'): void;
198
+ /**
199
+ * Sends an attribute update message to all connected WebSocket clients.
200
+ *
201
+ * @param {string | undefined} plugin - The name of the plugin.
202
+ * @param {string | undefined} serialNumber - The serial number of the device.
203
+ * @param {string | undefined} uniqueId - The unique identifier of the device.
204
+ * @param {string} cluster - The cluster name where the attribute belongs.
205
+ * @param {string} attribute - The name of the attribute that changed.
206
+ * @param {number | string | boolean} value - The new value of the attribute.
207
+ *
208
+ * @remarks
209
+ * This method logs a debug message and sends a JSON-formatted message to all connected WebSocket clients
210
+ * with the updated attribute information.
211
+ */
212
+ wssSendAttributeChangedMessage(plugin: string | undefined, serialNumber: string | undefined, uniqueId: string | undefined, cluster: string, attribute: string, value: number | string | boolean): void;
213
+ /**
214
+ * Sends a message to all connected clients.
215
+ * @param {number} id - The message id.
216
+ * @param {string} method - The message method.
217
+ * @param {Record<string, string | number | boolean>} params - The message parameters.
218
+ *
219
+ */
220
+ wssBroadcastMessage(id: number, method?: string, params?: Record<string, string | number | boolean>): void;
221
+ }
222
+ //# sourceMappingURL=frontend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../src/frontend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAkBH,OAAO,EAAc,QAAQ,EAA6G,MAAM,oBAAoB,CAAC;AAKrK,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMj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