matterbridge 3.5.0-dev-20260119-f9ea00e → 3.5.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 (325) hide show
  1. package/CHANGELOG.md +119 -117
  2. package/dist/broadcastServer.d.ts +115 -0
  3. package/dist/broadcastServer.d.ts.map +1 -0
  4. package/dist/broadcastServer.js +117 -0
  5. package/dist/broadcastServer.js.map +1 -0
  6. package/dist/broadcastServerTypes.d.ts +43 -0
  7. package/dist/broadcastServerTypes.d.ts.map +1 -0
  8. package/dist/broadcastServerTypes.js +24 -0
  9. package/dist/broadcastServerTypes.js.map +1 -0
  10. package/dist/cli.d.ts +24 -0
  11. package/dist/cli.d.ts.map +1 -0
  12. package/dist/cli.js +97 -1
  13. package/dist/cli.js.map +1 -0
  14. package/dist/cliEmitter.d.ts +36 -0
  15. package/dist/cliEmitter.d.ts.map +1 -0
  16. package/dist/cliEmitter.js +37 -0
  17. package/dist/cliEmitter.js.map +1 -0
  18. package/dist/cliHistory.d.ts +42 -0
  19. package/dist/cliHistory.d.ts.map +1 -0
  20. package/dist/cliHistory.js +38 -0
  21. package/dist/cliHistory.js.map +1 -0
  22. package/dist/clusters/export.d.ts +1 -0
  23. package/dist/clusters/export.d.ts.map +1 -0
  24. package/dist/clusters/export.js +2 -0
  25. package/dist/clusters/export.js.map +1 -0
  26. package/dist/deviceManager.d.ts +108 -0
  27. package/dist/deviceManager.d.ts.map +1 -0
  28. package/dist/deviceManager.js +113 -1
  29. package/dist/deviceManager.js.map +1 -0
  30. package/dist/devices/airConditioner.d.ts +75 -0
  31. package/dist/devices/airConditioner.d.ts.map +1 -0
  32. package/dist/devices/airConditioner.js +57 -0
  33. package/dist/devices/airConditioner.js.map +1 -0
  34. package/dist/devices/batteryStorage.d.ts +43 -0
  35. package/dist/devices/batteryStorage.d.ts.map +1 -0
  36. package/dist/devices/batteryStorage.js +48 -1
  37. package/dist/devices/batteryStorage.js.map +1 -0
  38. package/dist/devices/cooktop.d.ts +55 -0
  39. package/dist/devices/cooktop.d.ts.map +1 -0
  40. package/dist/devices/cooktop.js +56 -0
  41. package/dist/devices/cooktop.js.map +1 -0
  42. package/dist/devices/dishwasher.d.ts +55 -0
  43. package/dist/devices/dishwasher.d.ts.map +1 -0
  44. package/dist/devices/dishwasher.js +57 -0
  45. package/dist/devices/dishwasher.js.map +1 -0
  46. package/dist/devices/evse.d.ts +57 -0
  47. package/dist/devices/evse.d.ts.map +1 -0
  48. package/dist/devices/evse.js +74 -10
  49. package/dist/devices/evse.js.map +1 -0
  50. package/dist/devices/export.d.ts +1 -0
  51. package/dist/devices/export.d.ts.map +1 -0
  52. package/dist/devices/export.js +5 -0
  53. package/dist/devices/export.js.map +1 -0
  54. package/dist/devices/extractorHood.d.ts +41 -0
  55. package/dist/devices/extractorHood.d.ts.map +1 -0
  56. package/dist/devices/extractorHood.js +43 -0
  57. package/dist/devices/extractorHood.js.map +1 -0
  58. package/dist/devices/heatPump.d.ts +43 -0
  59. package/dist/devices/heatPump.d.ts.map +1 -0
  60. package/dist/devices/heatPump.js +50 -2
  61. package/dist/devices/heatPump.js.map +1 -0
  62. package/dist/devices/laundryDryer.d.ts +58 -0
  63. package/dist/devices/laundryDryer.d.ts.map +1 -0
  64. package/dist/devices/laundryDryer.js +62 -3
  65. package/dist/devices/laundryDryer.js.map +1 -0
  66. package/dist/devices/laundryWasher.d.ts +64 -0
  67. package/dist/devices/laundryWasher.d.ts.map +1 -0
  68. package/dist/devices/laundryWasher.js +70 -4
  69. package/dist/devices/laundryWasher.js.map +1 -0
  70. package/dist/devices/microwaveOven.d.ts +77 -1
  71. package/dist/devices/microwaveOven.d.ts.map +1 -0
  72. package/dist/devices/microwaveOven.js +88 -5
  73. package/dist/devices/microwaveOven.js.map +1 -0
  74. package/dist/devices/oven.d.ts +82 -0
  75. package/dist/devices/oven.d.ts.map +1 -0
  76. package/dist/devices/oven.js +85 -0
  77. package/dist/devices/oven.js.map +1 -0
  78. package/dist/devices/refrigerator.d.ts +100 -0
  79. package/dist/devices/refrigerator.d.ts.map +1 -0
  80. package/dist/devices/refrigerator.js +102 -0
  81. package/dist/devices/refrigerator.js.map +1 -0
  82. package/dist/devices/roboticVacuumCleaner.d.ts +83 -0
  83. package/dist/devices/roboticVacuumCleaner.d.ts.map +1 -0
  84. package/dist/devices/roboticVacuumCleaner.js +100 -9
  85. package/dist/devices/roboticVacuumCleaner.js.map +1 -0
  86. package/dist/devices/solarPower.d.ts +36 -0
  87. package/dist/devices/solarPower.d.ts.map +1 -0
  88. package/dist/devices/solarPower.js +38 -0
  89. package/dist/devices/solarPower.js.map +1 -0
  90. package/dist/devices/speaker.d.ts +79 -0
  91. package/dist/devices/speaker.d.ts.map +1 -0
  92. package/dist/devices/speaker.js +84 -0
  93. package/dist/devices/speaker.js.map +1 -0
  94. package/dist/devices/temperatureControl.d.ts +21 -0
  95. package/dist/devices/temperatureControl.d.ts.map +1 -0
  96. package/dist/devices/temperatureControl.js +24 -3
  97. package/dist/devices/temperatureControl.js.map +1 -0
  98. package/dist/devices/waterHeater.d.ts +74 -0
  99. package/dist/devices/waterHeater.d.ts.map +1 -0
  100. package/dist/devices/waterHeater.js +82 -2
  101. package/dist/devices/waterHeater.js.map +1 -0
  102. package/dist/dgram/coap.d.ts +171 -0
  103. package/dist/dgram/coap.d.ts.map +1 -0
  104. package/dist/dgram/coap.js +126 -13
  105. package/dist/dgram/coap.js.map +1 -0
  106. package/dist/dgram/dgram.d.ts +99 -0
  107. package/dist/dgram/dgram.d.ts.map +1 -0
  108. package/dist/dgram/dgram.js +114 -2
  109. package/dist/dgram/dgram.js.map +1 -0
  110. package/dist/dgram/mb_coap.d.ts +23 -0
  111. package/dist/dgram/mb_coap.d.ts.map +1 -0
  112. package/dist/dgram/mb_coap.js +41 -3
  113. package/dist/dgram/mb_coap.js.map +1 -0
  114. package/dist/dgram/mb_mdns.d.ts +23 -0
  115. package/dist/dgram/mb_mdns.d.ts.map +1 -0
  116. package/dist/dgram/mb_mdns.js +80 -24
  117. package/dist/dgram/mb_mdns.js.map +1 -0
  118. package/dist/dgram/mdns.d.ts +187 -4
  119. package/dist/dgram/mdns.d.ts.map +1 -0
  120. package/dist/dgram/mdns.js +371 -139
  121. package/dist/dgram/mdns.js.map +1 -0
  122. package/dist/dgram/multicast.d.ts +49 -0
  123. package/dist/dgram/multicast.d.ts.map +1 -0
  124. package/dist/dgram/multicast.js +62 -1
  125. package/dist/dgram/multicast.js.map +1 -0
  126. package/dist/dgram/unicast.d.ts +53 -0
  127. package/dist/dgram/unicast.d.ts.map +1 -0
  128. package/dist/dgram/unicast.js +60 -0
  129. package/dist/dgram/unicast.js.map +1 -0
  130. package/dist/frontend.d.ts +187 -0
  131. package/dist/frontend.d.ts.map +1 -0
  132. package/dist/frontend.js +498 -37
  133. package/dist/frontend.js.map +1 -0
  134. package/dist/frontendTypes.d.ts +57 -0
  135. package/dist/frontendTypes.d.ts.map +1 -0
  136. package/dist/frontendTypes.js +45 -0
  137. package/dist/frontendTypes.js.map +1 -0
  138. package/dist/helpers.d.ts +43 -0
  139. package/dist/helpers.d.ts.map +1 -0
  140. package/dist/helpers.js +53 -0
  141. package/dist/helpers.js.map +1 -0
  142. package/dist/index.d.ts +23 -0
  143. package/dist/index.d.ts.map +1 -0
  144. package/dist/index.js +25 -0
  145. package/dist/index.js.map +1 -0
  146. package/dist/jestutils/export.d.ts +1 -0
  147. package/dist/jestutils/export.d.ts.map +1 -0
  148. package/dist/jestutils/export.js +1 -0
  149. package/dist/jestutils/export.js.map +1 -0
  150. package/dist/jestutils/jestHelpers.d.ts +255 -0
  151. package/dist/jestutils/jestHelpers.d.ts.map +1 -0
  152. package/dist/jestutils/jestHelpers.js +372 -14
  153. package/dist/jestutils/jestHelpers.js.map +1 -0
  154. package/dist/logger/export.d.ts +1 -0
  155. package/dist/logger/export.d.ts.map +1 -0
  156. package/dist/logger/export.js +1 -0
  157. package/dist/logger/export.js.map +1 -0
  158. package/dist/matter/behaviors.d.ts +1 -0
  159. package/dist/matter/behaviors.d.ts.map +1 -0
  160. package/dist/matter/behaviors.js +2 -0
  161. package/dist/matter/behaviors.js.map +1 -0
  162. package/dist/matter/clusters.d.ts +1 -0
  163. package/dist/matter/clusters.d.ts.map +1 -0
  164. package/dist/matter/clusters.js +2 -0
  165. package/dist/matter/clusters.js.map +1 -0
  166. package/dist/matter/devices.d.ts +1 -0
  167. package/dist/matter/devices.d.ts.map +1 -0
  168. package/dist/matter/devices.js +2 -0
  169. package/dist/matter/devices.js.map +1 -0
  170. package/dist/matter/endpoints.d.ts +1 -0
  171. package/dist/matter/endpoints.d.ts.map +1 -0
  172. package/dist/matter/endpoints.js +2 -0
  173. package/dist/matter/endpoints.js.map +1 -0
  174. package/dist/matter/export.d.ts +1 -0
  175. package/dist/matter/export.d.ts.map +1 -0
  176. package/dist/matter/export.js +2 -0
  177. package/dist/matter/export.js.map +1 -0
  178. package/dist/matter/types.d.ts +1 -0
  179. package/dist/matter/types.d.ts.map +1 -0
  180. package/dist/matter/types.js +2 -0
  181. package/dist/matter/types.js.map +1 -0
  182. package/dist/matterNode.d.ts +258 -0
  183. package/dist/matterNode.d.ts.map +1 -0
  184. package/dist/matterNode.js +359 -8
  185. package/dist/matterNode.js.map +1 -0
  186. package/dist/matterbridge.d.ts +362 -0
  187. package/dist/matterbridge.d.ts.map +1 -0
  188. package/dist/matterbridge.js +842 -46
  189. package/dist/matterbridge.js.map +1 -0
  190. package/dist/matterbridgeAccessoryPlatform.d.ts +36 -0
  191. package/dist/matterbridgeAccessoryPlatform.d.ts.map +1 -0
  192. package/dist/matterbridgeAccessoryPlatform.js +38 -0
  193. package/dist/matterbridgeAccessoryPlatform.js.map +1 -0
  194. package/dist/matterbridgeBehaviors.d.ts +24 -0
  195. package/dist/matterbridgeBehaviors.d.ts.map +1 -0
  196. package/dist/matterbridgeBehaviors.js +68 -5
  197. package/dist/matterbridgeBehaviors.js.map +1 -0
  198. package/dist/matterbridgeDeviceTypes.d.ts +649 -0
  199. package/dist/matterbridgeDeviceTypes.d.ts.map +1 -0
  200. package/dist/matterbridgeDeviceTypes.js +673 -6
  201. package/dist/matterbridgeDeviceTypes.js.map +1 -0
  202. package/dist/matterbridgeDynamicPlatform.d.ts +36 -0
  203. package/dist/matterbridgeDynamicPlatform.d.ts.map +1 -0
  204. package/dist/matterbridgeDynamicPlatform.js +38 -0
  205. package/dist/matterbridgeDynamicPlatform.js.map +1 -0
  206. package/dist/matterbridgeEndpoint.d.ts +1332 -0
  207. package/dist/matterbridgeEndpoint.d.ts.map +1 -0
  208. package/dist/matterbridgeEndpoint.js +1457 -53
  209. package/dist/matterbridgeEndpoint.js.map +1 -0
  210. package/dist/matterbridgeEndpointHelpers.d.ts +425 -0
  211. package/dist/matterbridgeEndpointHelpers.d.ts.map +1 -0
  212. package/dist/matterbridgeEndpointHelpers.js +483 -20
  213. package/dist/matterbridgeEndpointHelpers.js.map +1 -0
  214. package/dist/matterbridgeEndpointTypes.d.ts +70 -0
  215. package/dist/matterbridgeEndpointTypes.d.ts.map +1 -0
  216. package/dist/matterbridgeEndpointTypes.js +25 -0
  217. package/dist/matterbridgeEndpointTypes.js.map +1 -0
  218. package/dist/matterbridgePlatform.d.ts +425 -0
  219. package/dist/matterbridgePlatform.d.ts.map +1 -0
  220. package/dist/matterbridgePlatform.js +451 -1
  221. package/dist/matterbridgePlatform.js.map +1 -0
  222. package/dist/matterbridgeTypes.d.ts +46 -0
  223. package/dist/matterbridgeTypes.d.ts.map +1 -0
  224. package/dist/matterbridgeTypes.js +26 -0
  225. package/dist/matterbridgeTypes.js.map +1 -0
  226. package/dist/pluginManager.d.ts +305 -0
  227. package/dist/pluginManager.d.ts.map +1 -0
  228. package/dist/pluginManager.js +341 -5
  229. package/dist/pluginManager.js.map +1 -0
  230. package/dist/shelly.d.ts +157 -0
  231. package/dist/shelly.d.ts.map +1 -0
  232. package/dist/shelly.js +178 -7
  233. package/dist/shelly.js.map +1 -0
  234. package/dist/storage/export.d.ts +1 -0
  235. package/dist/storage/export.d.ts.map +1 -0
  236. package/dist/storage/export.js +1 -0
  237. package/dist/storage/export.js.map +1 -0
  238. package/dist/update.d.ts +75 -0
  239. package/dist/update.d.ts.map +1 -0
  240. package/dist/update.js +93 -1
  241. package/dist/update.js.map +1 -0
  242. package/dist/utils/colorUtils.d.ts +77 -0
  243. package/dist/utils/colorUtils.d.ts.map +1 -0
  244. package/dist/utils/colorUtils.js +97 -2
  245. package/dist/utils/colorUtils.js.map +1 -0
  246. package/dist/utils/commandLine.d.ts +60 -0
  247. package/dist/utils/commandLine.d.ts.map +1 -0
  248. package/dist/utils/commandLine.js +60 -0
  249. package/dist/utils/commandLine.js.map +1 -0
  250. package/dist/utils/copyDirectory.d.ts +33 -0
  251. package/dist/utils/copyDirectory.d.ts.map +1 -0
  252. package/dist/utils/copyDirectory.js +37 -0
  253. package/dist/utils/copyDirectory.js.map +1 -0
  254. package/dist/utils/createDirectory.d.ts +32 -0
  255. package/dist/utils/createDirectory.d.ts.map +1 -0
  256. package/dist/utils/createDirectory.js +33 -0
  257. package/dist/utils/createDirectory.js.map +1 -0
  258. package/dist/utils/createZip.d.ts +38 -0
  259. package/dist/utils/createZip.d.ts.map +1 -0
  260. package/dist/utils/createZip.js +47 -2
  261. package/dist/utils/createZip.js.map +1 -0
  262. package/dist/utils/deepCopy.d.ts +31 -0
  263. package/dist/utils/deepCopy.d.ts.map +1 -0
  264. package/dist/utils/deepCopy.js +39 -0
  265. package/dist/utils/deepCopy.js.map +1 -0
  266. package/dist/utils/deepEqual.d.ts +53 -0
  267. package/dist/utils/deepEqual.d.ts.map +1 -0
  268. package/dist/utils/deepEqual.js +72 -1
  269. package/dist/utils/deepEqual.js.map +1 -0
  270. package/dist/utils/error.d.ts +42 -0
  271. package/dist/utils/error.d.ts.map +1 -0
  272. package/dist/utils/error.js +42 -0
  273. package/dist/utils/error.js.map +1 -0
  274. package/dist/utils/export.d.ts +1 -0
  275. package/dist/utils/export.d.ts.map +1 -0
  276. package/dist/utils/export.js +1 -0
  277. package/dist/utils/export.js.map +1 -0
  278. package/dist/utils/format.d.ts +49 -0
  279. package/dist/utils/format.d.ts.map +1 -0
  280. package/dist/utils/format.js +49 -0
  281. package/dist/utils/format.js.map +1 -0
  282. package/dist/utils/hex.d.ts +85 -0
  283. package/dist/utils/hex.d.ts.map +1 -0
  284. package/dist/utils/hex.js +124 -0
  285. package/dist/utils/hex.js.map +1 -0
  286. package/dist/utils/inspector.d.ts +63 -0
  287. package/dist/utils/inspector.d.ts.map +1 -0
  288. package/dist/utils/inspector.js +69 -1
  289. package/dist/utils/inspector.js.map +1 -0
  290. package/dist/utils/isValid.d.ts +93 -0
  291. package/dist/utils/isValid.d.ts.map +1 -0
  292. package/dist/utils/isValid.js +93 -0
  293. package/dist/utils/isValid.js.map +1 -0
  294. package/dist/utils/network.d.ts +116 -0
  295. package/dist/utils/network.d.ts.map +1 -0
  296. package/dist/utils/network.js +126 -5
  297. package/dist/utils/network.js.map +1 -0
  298. package/dist/utils/spawn.d.ts +32 -0
  299. package/dist/utils/spawn.d.ts.map +1 -0
  300. package/dist/utils/spawn.js +71 -1
  301. package/dist/utils/spawn.js.map +1 -0
  302. package/dist/utils/tracker.d.ts +56 -0
  303. package/dist/utils/tracker.d.ts.map +1 -0
  304. package/dist/utils/tracker.js +64 -1
  305. package/dist/utils/tracker.js.map +1 -0
  306. package/dist/utils/wait.d.ts +51 -0
  307. package/dist/utils/wait.d.ts.map +1 -0
  308. package/dist/utils/wait.js +60 -8
  309. package/dist/utils/wait.js.map +1 -0
  310. package/dist/workerGlobalPrefix.d.ts +24 -0
  311. package/dist/workerGlobalPrefix.d.ts.map +1 -0
  312. package/dist/workerGlobalPrefix.js +37 -5
  313. package/dist/workerGlobalPrefix.js.map +1 -0
  314. package/dist/workerTypes.d.ts +25 -0
  315. package/dist/workerTypes.d.ts.map +1 -0
  316. package/dist/workerTypes.js +24 -0
  317. package/dist/workerTypes.js.map +1 -0
  318. package/dist/workers.d.ts +61 -0
  319. package/dist/workers.d.ts.map +1 -0
  320. package/dist/workers.js +68 -4
  321. package/dist/workers.js.map +1 -0
  322. package/frontend/build/assets/index.js +4 -4
  323. package/frontend/package.json +1 -1
  324. package/npm-shrinkwrap.json +5 -35
  325. package/package.json +7 -7
@@ -1,3 +1,26 @@
1
+ /**
2
+ * This file contains the helpers for the class MatterbridgeEndpoint.
3
+ *
4
+ * @file matterbridgeEndpointHelpers.ts
5
+ * @author Luca Liguori
6
+ * @created 2024-10-01
7
+ * @version 2.1.0
8
+ * @license Apache-2.0
9
+ *
10
+ * Copyright 2024, 2025, 2026 Luca Liguori.
11
+ *
12
+ * Licensed under the Apache License, Version 2.0 (the "License");
13
+ * you may not use this file except in compliance with the License.
14
+ * You may obtain a copy of the License at
15
+ *
16
+ * http://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" BASIS,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
1
24
  import { AnsiLogger } from 'node-ansi-logger';
2
25
  import { ActionContext, Behavior, ClusterBehavior, Endpoint } from '@matter/node';
3
26
  import { ClusterId } from '@matter/types/datatype';
@@ -21,32 +44,254 @@ import { OccupancySensingServer } from '@matter/node/behaviors/occupancy-sensing
21
44
  import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
22
45
  import { MatterbridgeEndpointCommands } from './matterbridgeEndpointTypes.js';
23
46
  import { MatterbridgeOperationalStateServer, MatterbridgePowerSourceServer, MatterbridgeDeviceEnergyManagementServer, MatterbridgeDeviceEnergyManagementModeServer } from './matterbridgeBehaviors.js';
47
+ /**
48
+ * Capitalizes the first letter of a string.
49
+ *
50
+ * @param {string} name - The string to capitalize.
51
+ * @returns {string} The string with the first letter capitalized.
52
+ */
24
53
  export declare function capitalizeFirstLetter(name: string): string;
54
+ /**
55
+ * Lowercases the first letter of a string.
56
+ *
57
+ * @param {string} name - The string to lowercase the first letter of.
58
+ * @returns {string} The string with the first letter lowercased.
59
+ */
25
60
  export declare function lowercaseFirstLetter(name: string): string;
61
+ /**
62
+ * Checks if the device name contains non-Latin characters.
63
+ *
64
+ * @param {string} deviceName - The name of the device to check.
65
+ * @returns {boolean} Returns true if the device name contains non-Latin characters, false otherwise.
66
+ */
26
67
  export declare function checkNotLatinCharacters(deviceName: string): boolean;
68
+ /**
69
+ * Generates a unique ID based on the device name.
70
+ *
71
+ * @param {string} deviceName - The name of the device to generate a unique ID for.
72
+ * @returns {string} A unique ID generated from the device name using MD5 hashing.
73
+ */
27
74
  export declare function generateUniqueId(deviceName: string): string;
75
+ /**
76
+ * Generates a unique ID based on four parameters.
77
+ *
78
+ * @param {string} param1 - The first parameter.
79
+ * @param {string} param2 - The second parameter.
80
+ * @param {string} param3 - The third parameter.
81
+ * @param {string} param4 - The fourth parameter.
82
+ * @returns {string} A unique ID generated from the concatenation of the parameters using MD5 hashing.
83
+ */
28
84
  export declare function createUniqueId(param1: string, param2: string, param3: string, param4: string): string;
85
+ /**
86
+ * Retrieves the features for a specific behavior.
87
+ *
88
+ * @param {Endpoint} endpoint - The endpoint to retrieve the features from.
89
+ * @param {Behavior.Type | ClusterType | ClusterId | string} cluster - The cluster to retrieve the features for.
90
+ *
91
+ * @returns {Record<string, boolean | undefined>} The features for the specified behavior.
92
+ *
93
+ * @remarks Use with:
94
+ * ```typescript
95
+ * expect(featuresFor(device, 'powerSource').wired).toBe(true);
96
+ * ```
97
+ */
29
98
  export declare function featuresFor(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string): Record<string, boolean | undefined>;
99
+ /**
100
+ * Maps a list of ClusterId to Behavior.Type for server clusters.
101
+ *
102
+ * @param {ClusterId[]} clusterServerList - The list of ClusterId to map.
103
+ * @returns {Behavior.Type[]} An array of Behavior.Type corresponding to the ClusterId in the server list.
104
+ */
30
105
  export declare function getBehaviourTypesFromClusterServerIds(clusterServerList: ClusterId[]): Behavior.Type[];
106
+ /**
107
+ * Maps a list of ClusterId to Behavior.Type for client clusters.
108
+ *
109
+ * @param {ClusterId[]} clusterClientList - The list of ClusterId to map.
110
+ * @returns {Behavior.Type[]} An array of Behavior.Type corresponding to the ClusterId in the client list.
111
+ */
31
112
  export declare function getBehaviourTypesFromClusterClientIds(clusterClientList: ClusterId[]): Behavior.Type[];
113
+ /**
114
+ * Maps a ClusterId to a Behavior.Type for server clusters.
115
+ *
116
+ * @param {ClusterId} clusterId - The ClusterId to map.
117
+ * @returns {Behavior.Type} The corresponding Behavior.Type for the given ClusterId.
118
+ */
32
119
  export declare function getBehaviourTypeFromClusterServerId(clusterId: ClusterId): Behavior.Type;
120
+ /**
121
+ * Maps a ClusterId to a Behavior.Type for client clusters.
122
+ *
123
+ * @param {ClusterId} _clusterId - The ClusterId to map.
124
+ */
33
125
  export declare function getBehaviourTypeFromClusterClientId(_clusterId: ClusterId): void;
126
+ /**
127
+ * Retrieves the Behavior.Type for a given cluster from the endpoint's supported behaviors.
128
+ *
129
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to retrieve the behavior from.
130
+ * @param {Behavior.Type | ClusterType | ClusterId | string} cluster - The cluster to retrieve the behavior for.
131
+ * @returns {Behavior.Type | undefined} The Behavior.Type for the given cluster, or undefined if not found.
132
+ */
34
133
  export declare function getBehavior(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string): Behavior.Type | undefined;
134
+ /**
135
+ * Invokes a command on the specified behavior of the endpoint. Used ONLY in Jest tests.
136
+ *
137
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to invoke the command on.
138
+ * @param {Behavior.Type | ClusterType | ClusterId | string} cluster - The cluster to invoke the command on.
139
+ * @param {keyof MatterbridgeEndpointCommands} command - The command to invoke.
140
+ * @param {Record<string, boolean | number | bigint | string | object | null>} [params] - The parameters to pass to the command.
141
+ *
142
+ * @returns {Promise<boolean>} A promise that resolves to true if the command was invoked successfully, false otherwise.
143
+ *
144
+ * @deprecated Used ONLY in Jest tests.
145
+ */
35
146
  export declare function invokeBehaviorCommand(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, command: keyof MatterbridgeEndpointCommands, params?: Record<string, boolean | number | bigint | string | object | null>): Promise<boolean>;
147
+ /**
148
+ * Invokes the subscription handler on the specified cluster and attribute of the endpoint. Used ONLY in Jest tests.
149
+ *
150
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to invoke the subscription handler on.
151
+ * @param {Behavior.Type | ClusterType | ClusterId | string} cluster - The cluster to invoke the subscription handler on.
152
+ * @param {string} attribute - The attribute to invoke the subscription handler on.
153
+ * @param {unknown} newValue - The new value of the attribute.
154
+ * @param {unknown} oldValue - The old value of the attribute.
155
+ *
156
+ * @returns {Promise<boolean>} A promise that resolves to true if the subscription handler was invoked successfully, false otherwise.
157
+ *
158
+ * @deprecated Used ONLY in Jest tests.
159
+ */
36
160
  export declare function invokeSubscribeHandler(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, attribute: string, newValue: unknown, oldValue: unknown): Promise<boolean>;
161
+ /**
162
+ * Adds required cluster servers to the specified endpoint based on the device types.
163
+ *
164
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to add the required cluster servers to.
165
+ * @returns {void}
166
+ */
37
167
  export declare function addRequiredClusterServers(endpoint: MatterbridgeEndpoint): void;
168
+ /**
169
+ * Adds optional cluster servers to the specified endpoint based on the device types.
170
+ *
171
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to add the optional cluster servers to.
172
+ * @returns {void}
173
+ */
38
174
  export declare function addOptionalClusterServers(endpoint: MatterbridgeEndpoint): void;
175
+ /**
176
+ * Adds cluster servers to the specified endpoint based on the provided server list.
177
+ *
178
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to add the cluster servers to.
179
+ * @param {ClusterId[]} serverList - The list of cluster IDs to add.
180
+ */
39
181
  export declare function addClusterServers(endpoint: MatterbridgeEndpoint, serverList: ClusterId[]): void;
182
+ /**
183
+ * Adds a fixed label to the FixedLabel cluster. The FixedLabel cluster is created if it does not exist.
184
+ *
185
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to add the cluster servers to.
186
+ * @param {string} label - The label to add. Max 16 characters.
187
+ * @param {string} value - The value of the label. Max 16 characters.
188
+ */
40
189
  export declare function addFixedLabel(endpoint: MatterbridgeEndpoint, label: string, value: string): Promise<void>;
190
+ /**
191
+ * Adds a user label to the UserLabel cluster. The UserLabel cluster is created if it does not exist.
192
+ *
193
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to add the cluster servers to.
194
+ * @param {string} label - The label to add. Max 16 characters.
195
+ * @param {string} value - The value of the label. Max 16 characters.
196
+ */
41
197
  export declare function addUserLabel(endpoint: MatterbridgeEndpoint, label: string, value: string): Promise<void>;
198
+ /**
199
+ * Returns the options for a given behavior type.
200
+ *
201
+ * @param {T} type - The behavior type.
202
+ * @param {Behavior.Options<T>} options - The options for the behavior type.
203
+ * @returns {Behavior.Options<T>} The options for the behavior type.
204
+ */
42
205
  export declare function optionsFor<T extends Behavior.Type>(type: T, options: Behavior.Options<T>): Behavior.Options<T>;
206
+ /**
207
+ * Retrieves the cluster ID.
208
+ *
209
+ * @param {Endpoint} endpoint - The endpoint to retrieve the cluster ID from.
210
+ * @param {ClusterId} cluster - The ID of the cluster.
211
+ * @returns {number | undefined} The ID of the cluster.
212
+ */
43
213
  export declare function getClusterId(endpoint: Endpoint, cluster: string): number | undefined;
214
+ /**
215
+ * Retrieves the ID of an attribute from a cluster behavior.
216
+ *
217
+ * @param {Endpoint} endpoint - The endpoint to retrieve the attribute ID from.
218
+ * @param {string} cluster - The name of the cluster.
219
+ * @param {string} attribute - The name of the attribute.
220
+ * @returns {number | undefined} The ID of the attribute, or undefined if not found.
221
+ */
44
222
  export declare function getAttributeId(endpoint: Endpoint, cluster: string, attribute: string): number | undefined;
223
+ /**
224
+ * Retrieves the value of the provided attribute from the given cluster.
225
+ *
226
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to retrieve the attribute from.
227
+ * @param {Behavior.Type | ClusterType | ClusterId | string} cluster - The cluster to retrieve the attribute from.
228
+ * @param {string} attribute - The name of the attribute to retrieve.
229
+ * @param {AnsiLogger} [log] - (Optional) The logger to use for logging the retrieve. Errors are logged to the endpoint logger.
230
+ * @returns {any} The value of the attribute, or undefined if the attribute is not found.
231
+ */
45
232
  export declare function getAttribute(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, attribute: string, log?: AnsiLogger): any;
233
+ /**
234
+ * Sets the value of an attribute on a cluster server.
235
+ *
236
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to set the attribute on.
237
+ * @param {Behavior.Type | ClusterType | ClusterId | string} cluster - The cluster to set the attribute on.
238
+ * @param {string} attribute - The name of the attribute.
239
+ * @param {boolean | number | bigint | string | object | null} value - The value to set for the attribute.
240
+ * @param {AnsiLogger} [log] - (Optional) The logger to use for logging the set. Errors are logged to the endpoint logger.
241
+ * @returns {Promise<boolean>} - A promise that resolves to a boolean indicating whether the attribute was successfully set.
242
+ */
46
243
  export declare function setAttribute(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, attribute: string, value: boolean | number | bigint | string | object | null, log?: AnsiLogger): Promise<boolean>;
244
+ /**
245
+ * Sets the value of an attribute on a cluster server.
246
+ *
247
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to update the attribute on.
248
+ * @param {Behavior.Type | ClusterType | ClusterId | string} cluster - The cluster to update the attribute on.
249
+ * @param {string} attribute - The name of the attribute.
250
+ * @param {boolean | number | bigint | string | object | null} value - The value to set for the attribute.
251
+ * @param {AnsiLogger} [log] - (Optional) The logger to use for logging the update. Errors are logged to the endpoint logger.
252
+ * @returns {Promise<boolean>} - A promise that resolves to a boolean indicating whether the attribute was successfully set.
253
+ */
47
254
  export declare function updateAttribute(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, attribute: string, value: boolean | number | bigint | string | object | null, log?: AnsiLogger): Promise<boolean>;
255
+ /**
256
+ * Subscribes to the provided attribute on a cluster.
257
+ *
258
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to subscribe the attribute to.
259
+ * @param {Behavior.Type | ClusterType | ClusterId | string} cluster - The cluster to subscribe the attribute to.
260
+ * @param {string} attribute - The name of the attribute to subscribe to.
261
+ * @param {(newValue: any, oldValue: any, context: ActionContext) => void} listener - A callback function that will be called when the attribute value changes. When context.offline === true then the change is locally generated and not from the controller.
262
+ * @param {AnsiLogger} [log] - Optional logger for logging errors and information.
263
+ * @returns {boolean} - A boolean indicating whether the subscription was successful.
264
+ *
265
+ * @remarks The listener function (cannot be async) will receive three parameters:
266
+ * - `newValue`: The new value of the attribute.
267
+ * - `oldValue`: The old value of the attribute.
268
+ * - `context`: The action context, which includes information about the action that triggered the change. When context.offline === true then the change is locally generated and not from the controller.
269
+ */
48
270
  export declare function subscribeAttribute(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, attribute: string, listener: (newValue: any, oldValue: any, context: ActionContext) => void, log?: AnsiLogger): Promise<boolean>;
271
+ /**
272
+ * Triggers an event on the specified cluster.
273
+ *
274
+ * @param {MatterbridgeEndpoint} endpoint - The endpoint to trigger the event on.
275
+ * @param {Behavior.Type | ClusterType | ClusterId | string} cluster - The ID of the cluster.
276
+ * @param {string} event - The name of the event to trigger.
277
+ * @param {Record<string, boolean | number | bigint | string | object | undefined | null>} payload - The payload to pass to the event.
278
+ * @param {AnsiLogger} [log] - Optional logger for logging information.
279
+ *
280
+ * @returns {Promise<boolean>} - A promise that resolves to a boolean indicating whether the event was successfully triggered.
281
+ */
49
282
  export declare function triggerEvent(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, event: string, payload: Record<string, boolean | number | bigint | string | object | undefined | null>, log?: AnsiLogger): Promise<boolean>;
283
+ /** Utility Cluster Helpers */
284
+ /**
285
+ * Get the default power source wired cluster server options.
286
+ *
287
+ * @param {PowerSource.WiredCurrentType} wiredCurrentType - The type of wired current (default: PowerSource.WiredCurrentType.Ac)
288
+ * @returns {Behavior.Options<PowerSourceClusterServer>} The options for the power source wired cluster server.
289
+ *
290
+ * @remarks
291
+ * - order: The order of the power source is a persisted attribute that indicates the order in which the power sources are used.
292
+ * - description: The description of the power source is a fixed attribute that describes the power source type.
293
+ * - wiredCurrentType: The type of wired current is a fixed attribute that indicates the type of wired current used by the power source (AC or DC).
294
+ */
50
295
  export declare function getDefaultPowerSourceWiredClusterServer(wiredCurrentType?: PowerSource.WiredCurrentType): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
51
296
  readonly id: 47;
52
297
  readonly name: "PowerSource";
@@ -184,6 +429,20 @@ export declare function getDefaultPowerSourceWiredClusterServer(wiredCurrentType
184
429
  readonly component: false;
185
430
  }];
186
431
  }>, readonly [PowerSource.Feature.Wired]>, typeof MatterbridgePowerSourceServer>>;
432
+ /**
433
+ * Get the default power source battery cluster server options.
434
+ *
435
+ * @param {null | number} batPercentRemaining - The remaining battery percentage (default: null). The attribute is in the range 0-200.
436
+ * @param {PowerSource.BatChargeLevel} batChargeLevel - The battery charge level (default: PowerSource.BatChargeLevel.Ok).
437
+ * @param {null | number} batVoltage - The battery voltage (default: null).
438
+ * @param {PowerSource.BatReplaceability} batReplaceability - The replaceability of the battery (default: PowerSource.BatReplaceability.Unspecified).
439
+ * @returns {Behavior.Options<PowerSourceClusterServer>} The options for the power source replaceable battery cluster server.
440
+ *
441
+ * @remarks
442
+ * - order: The order of the power source is a persisted attribute that indicates the order in which the power sources are used.
443
+ * - description: The description of the power source is a fixed attribute that describes the power source type.
444
+ * - batReplaceability: The replaceability of the battery is a fixed attribute that indicates whether the battery is user-replaceable or not.
445
+ */
187
446
  export declare function getDefaultPowerSourceBatteryClusterServer(batPercentRemaining?: null | number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: null | number, batReplaceability?: PowerSource.BatReplaceability): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
188
447
  readonly id: 47;
189
448
  readonly name: "PowerSource";
@@ -321,6 +580,24 @@ export declare function getDefaultPowerSourceBatteryClusterServer(batPercentRema
321
580
  readonly component: false;
322
581
  }];
323
582
  }>, readonly [PowerSource.Feature.Battery]>, typeof MatterbridgePowerSourceServer>>;
583
+ /**
584
+ * Get the default power source replaceable battery cluster server options.
585
+ *
586
+ * @param {number} batPercentRemaining - The remaining battery percentage (default: 100). The attribute is in the range 0-200.
587
+ * @param {PowerSource.BatChargeLevel} batChargeLevel - The battery charge level (default: PowerSource.BatChargeLevel.Ok).
588
+ * @param {number} batVoltage - The battery voltage (default: 1500).
589
+ * @param {string} batReplacementDescription - The description of the battery replacement (default: 'Battery type').
590
+ * @param {number} batQuantity - The quantity of the battery (default: 1).
591
+ * @param {PowerSource.BatReplaceability} batReplaceability - The replaceability of the battery (default: PowerSource.BatReplaceability.UserReplaceable).
592
+ * @returns {Behavior.Options<PowerSourceClusterServer>} The options for the power source replaceable battery cluster server.
593
+ *
594
+ * @remarks
595
+ * - order: The order of the power source is a persisted attribute that indicates the order in which the power sources are used.
596
+ * - description: The description of the power source is a fixed attribute that describes the power source type.
597
+ * - batReplaceability: The replaceability of the battery is a fixed attribute that indicates whether the battery is user-replaceable or not.
598
+ * - batReplacementDescription: The description of the battery replacement is a fixed attribute that describes the battery type.
599
+ * - batQuantity: The quantity of the battery is a fixed attribute that indicates how many batteries are present in the device.
600
+ */
324
601
  export declare function getDefaultPowerSourceReplaceableBatteryClusterServer(batPercentRemaining?: number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: number, batReplacementDescription?: string, batQuantity?: number, batReplaceability?: PowerSource.BatReplaceability): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
325
602
  readonly id: 47;
326
603
  readonly name: "PowerSource";
@@ -458,6 +735,20 @@ export declare function getDefaultPowerSourceReplaceableBatteryClusterServer(bat
458
735
  readonly component: false;
459
736
  }];
460
737
  }>, readonly [PowerSource.Feature.Battery, PowerSource.Feature.Replaceable]>, typeof MatterbridgePowerSourceServer>>;
738
+ /**
739
+ * Creates a default power source rechargeable battery cluster server.
740
+ *
741
+ * @param {number} [batPercentRemaining] - The remaining battery percentage (default: 100). The attribute is in the range 0-200.
742
+ * @param {PowerSource.BatChargeLevel} [batChargeLevel] - The battery charge level (default: PowerSource.BatChargeLevel.Ok).
743
+ * @param {number} [batVoltage] - The battery voltage in mV (default: 1500).
744
+ * @param {PowerSource.BatReplaceability} [batReplaceability] - The replaceability of the battery (default: PowerSource.BatReplaceability.Unspecified).
745
+ * @returns {Behavior.Options<PowerSourceClusterServer>} The options for the power source rechargeable battery cluster server.
746
+ *
747
+ * @remarks
748
+ * - order: The order of the power source is a persisted attribute that indicates the order in which the power sources are used.
749
+ * - description: The description of the power source is a fixed attribute that describes the power source type.
750
+ * - batReplaceability: The replaceability of the battery is a fixed attribute that indicates whether the battery is user-replaceable or not.
751
+ */
461
752
  export declare function getDefaultPowerSourceRechargeableBatteryClusterServer(batPercentRemaining?: number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: number, batReplaceability?: PowerSource.BatReplaceability): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
462
753
  readonly id: 47;
463
754
  readonly name: "PowerSource";
@@ -595,6 +886,13 @@ export declare function getDefaultPowerSourceRechargeableBatteryClusterServer(ba
595
886
  readonly component: false;
596
887
  }];
597
888
  }>, readonly [PowerSource.Feature.Battery, PowerSource.Feature.Rechargeable]>, typeof MatterbridgePowerSourceServer>>;
889
+ /**
890
+ * Get the default Electrical Energy Measurement Cluster Server options with features ImportedEnergy, ExportedEnergy, and CumulativeEnergy.
891
+ *
892
+ * @param {number} energyImported - The total consumption value in mW/h.
893
+ * @param {number} energyExported - The total production value in mW/h.
894
+ * @returns {Behavior.Options<ElectricalEnergyMeasurementServer>} - The default options for the Electrical Energy Measurement Cluster Server.
895
+ */
598
896
  export declare function getDefaultElectricalEnergyMeasurementClusterServer(energyImported?: number | bigint | null, energyExported?: number | bigint | null): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
599
897
  readonly id: 145;
600
898
  readonly name: "ElectricalEnergyMeasurement";
@@ -757,6 +1055,15 @@ export declare function getDefaultElectricalEnergyMeasurementClusterServer(energ
757
1055
  readonly component: false;
758
1056
  }];
759
1057
  }>, readonly [ElectricalEnergyMeasurement.Feature.ImportedEnergy, ElectricalEnergyMeasurement.Feature.ExportedEnergy, ElectricalEnergyMeasurement.Feature.CumulativeEnergy]>, typeof ElectricalEnergyMeasurementServer>>;
1058
+ /**
1059
+ * Get the default Electrical Power Measurement Cluster Server options with features AlternatingCurrent.
1060
+ *
1061
+ * @param {number} voltage - The voltage value in millivolts.
1062
+ * @param {number} current - The current value in milliamperes.
1063
+ * @param {number} power - The power value in milliwatts.
1064
+ * @param {number} frequency - The frequency value in millihertz.
1065
+ * @returns {Behavior.Options<ElectricalPowerMeasurementServer>} - The default options for the Electrical Power Measurement Cluster Server.
1066
+ */
760
1067
  export declare function getDefaultElectricalPowerMeasurementClusterServer(voltage?: number | bigint | null, current?: number | bigint | null, power?: number | bigint | null, frequency?: number | bigint | null): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
761
1068
  readonly id: 144;
762
1069
  readonly name: "ElectricalPowerMeasurement";
@@ -897,6 +1204,15 @@ export declare function getDefaultElectricalPowerMeasurementClusterServer(voltag
897
1204
  readonly component: false;
898
1205
  }];
899
1206
  }>, readonly [ElectricalPowerMeasurement.Feature.AlternatingCurrent]>, typeof ElectricalPowerMeasurementServer>>;
1207
+ /**
1208
+ * Get the default Electrical Apparent Power Measurement Cluster Server with features AlternatingCurrent.
1209
+ *
1210
+ * @param {number} voltage - The voltage value in millivolts.
1211
+ * @param {number} apparentCurrent - The current value in milliamperes.
1212
+ * @param {number} apparentPower - The apparent power value in millivoltamperes.
1213
+ * @param {number} frequency - The frequency value in millihertz.
1214
+ * @returns {Behavior.Options<ElectricalPowerMeasurementServer>} - The default options for the Electrical Apparent Power Measurement Cluster Server.
1215
+ */
900
1216
  export declare function getApparentElectricalPowerMeasurementClusterServer(voltage?: number | bigint | null, apparentCurrent?: number | bigint | null, apparentPower?: number | bigint | null, frequency?: number | bigint | null): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
901
1217
  readonly id: 144;
902
1218
  readonly name: "ElectricalPowerMeasurement";
@@ -1037,6 +1353,24 @@ export declare function getApparentElectricalPowerMeasurementClusterServer(volta
1037
1353
  readonly component: false;
1038
1354
  }];
1039
1355
  }>, readonly [ElectricalPowerMeasurement.Feature.AlternatingCurrent]>, typeof ElectricalPowerMeasurementServer>>;
1356
+ /**
1357
+ * Get the default Device Energy Management Cluster Server with feature PowerForecastReporting and with the specified ESA type, ESA canGenerate, ESA state, and power limits.
1358
+ *
1359
+ * @param {DeviceEnergyManagement.EsaType} [esaType] - The ESA type. Defaults to `DeviceEnergyManagement.EsaType.Other`.
1360
+ * @param {boolean} [esaCanGenerate] - Indicates if the ESA can generate energy. Defaults to `false`.
1361
+ * @param {DeviceEnergyManagement.EsaState} [esaState] - The ESA state. Defaults to `DeviceEnergyManagement.EsaState.Online`.
1362
+ * @param {number} [absMinPower] - Indicate the minimum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
1363
+ * @param {number} [absMaxPower] - Indicate the maximum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
1364
+ * @returns {Behavior.Options<DeviceEnergyManagementClusterServer>} - The default options for the Device Energy Management Cluster Server.
1365
+ *
1366
+ * @remarks
1367
+ * - The forecast attribute is set to null, indicating that there is no forecast currently available.
1368
+ * - The ESA type and canGenerate attributes are fixed and cannot be changed after creation.
1369
+ * - The ESA state is set to Online by default.
1370
+ * - The absolute minimum and maximum power attributes are set to 0 by default.
1371
+ * - For example, a battery storage inverter that can charge its battery at a maximum power of 2000W and can
1372
+ * discharge the battery at a maximum power of 3000W, would have a absMinPower: -3000W, absMaxPower: 2000W.
1373
+ */
1040
1374
  export declare function getDefaultDeviceEnergyManagementClusterServer(esaType?: DeviceEnergyManagement.EsaType, esaCanGenerate?: boolean, esaState?: DeviceEnergyManagement.EsaState, absMinPower?: number, absMaxPower?: number): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
1041
1375
  readonly id: 152;
1042
1376
  readonly name: "DeviceEnergyManagement";
@@ -1336,13 +1670,103 @@ export declare function getDefaultDeviceEnergyManagementClusterServer(esaType?:
1336
1670
  readonly component: false;
1337
1671
  }];
1338
1672
  }>, readonly [DeviceEnergyManagement.Feature.PowerForecastReporting, DeviceEnergyManagement.Feature.PowerAdjustment]>, readonly [DeviceEnergyManagement.Feature.PowerForecastReporting, DeviceEnergyManagement.Feature.PowerAdjustment]>, typeof MatterbridgeDeviceEnergyManagementServer>>;
1673
+ /**
1674
+ * Get the default EnergyManagementMode Cluster Server.
1675
+ *
1676
+ * @param {number} [currentMode] - The current mode of the EnergyManagementMode cluster. Defaults to mode 1 (DeviceEnergyManagementMode.ModeTag.NoOptimization).
1677
+ * @param {EnergyManagementMode.ModeOption[]} [supportedModes] - The supported modes for the DeviceEnergyManagementMode cluster. The attribute is fixed and defaults to a predefined set of cluster modes.
1678
+ * @returns {Behavior.Options<DeviceEnergyManagementModeClusterServer>} - The default options for the Device Energy Management Mode cluster server.
1679
+ *
1680
+ * @remarks
1681
+ * A few examples of Device Energy Management modes and their mode tags are provided below.
1682
+ * - For the "No Energy Management (Forecast reporting only)" mode, tags: 0x4000 (NoOptimization).
1683
+ * - For the "Device Energy Management" mode, tags: 0x4001 (DeviceOptimization).
1684
+ * - For the "Home Energy Management" mode, tags: 0x4001 (DeviceOptimization), 0x4002 (LocalOptimization).
1685
+ * - For the "Grid Energy Management" mode, tags: 0x4003 (GridOptimization).
1686
+ * - For the "Full Energy Management" mode, tags: 0x4001 (DeviceOptimization), 0x4002 (LocalOptimization), 0x4003 (GridOptimization).
1687
+ */
1339
1688
  export declare function getDefaultDeviceEnergyManagementModeClusterServer(currentMode?: number, supportedModes?: DeviceEnergyManagementMode.ModeOption[]): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<DeviceEnergyManagementMode.Cluster, readonly []>, typeof MatterbridgeDeviceEnergyManagementModeServer>>;
1689
+ /** Application Cluster Helpers */
1690
+ /**
1691
+ * Get the default OperationalState Cluster Server.
1692
+ *
1693
+ * @param {OperationalState.OperationalStateEnum} operationalState - The initial operational state id.
1694
+ * @returns {Behavior.Options<MatterbridgeOperationalStateServer>} - The default options for the OperationalState cluster server.
1695
+ *
1696
+ * @remarks
1697
+ * This method adds a cluster server with a default operational state configuration:
1698
+ * - { operationalStateId: OperationalState.OperationalStateEnum.Stopped, operationalStateLabel: 'Stopped' },
1699
+ * - { operationalStateId: OperationalState.OperationalStateEnum.Running, operationalStateLabel: 'Running' },
1700
+ * - { operationalStateId: OperationalState.OperationalStateEnum.Paused, operationalStateLabel: 'Paused' },
1701
+ * - { operationalStateId: OperationalState.OperationalStateEnum.Error, operationalStateLabel: 'Error' },
1702
+ */
1340
1703
  export declare function getDefaultOperationalStateClusterServer(operationalState?: OperationalState.OperationalStateEnum): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<OperationalState.Cluster, readonly []>, typeof MatterbridgeOperationalStateServer>>;
1704
+ /**
1705
+ * Get the default TemperatureMeasurement cluster server options.
1706
+ *
1707
+ * @param {number | null} measuredValue - The measured value of the temperature x 100.
1708
+ * @param {number | null} minMeasuredValue - The minimum measured value of the temperature x 100.
1709
+ * @param {number | null} maxMeasuredValue - The maximum measured value of the temperature x 100.
1710
+ * @returns {Behavior.Options<MatterbridgeTemperatureMeasurementServer>} - The default options for the TemperatureMeasurement cluster server.
1711
+ */
1341
1712
  export declare function getDefaultTemperatureMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<TemperatureMeasurement.Cluster, typeof ClusterBehavior>>;
1713
+ /**
1714
+ * Get the default RelativeHumidityMeasurement cluster server options.
1715
+ *
1716
+ * @param {number | null} measuredValue - The measured value of the relative humidity x 100.
1717
+ * @param {number | null} minMeasuredValue - The minimum measured value of the relative humidity x 100.
1718
+ * @param {number | null} maxMeasuredValue - The maximum measured value of the relative humidity x 100.
1719
+ * @returns {Behavior.Options<MatterbridgeRelativeHumidityMeasurementServer>} - The default options for the RelativeHumidityMeasurement cluster server.
1720
+ */
1342
1721
  export declare function getDefaultRelativeHumidityMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<RelativeHumidityMeasurement.Cluster, typeof ClusterBehavior>>;
1722
+ /**
1723
+ * Get the default PressureMeasurement cluster server options.
1724
+ *
1725
+ * @param {number | null} measuredValue - The measured value for the pressure in kPa x 10.
1726
+ * @param {number | null} minMeasuredValue - The minimum measured value for the pressure in kPa x 10.
1727
+ * @param {number | null} maxMeasuredValue - The maximum measured value for the pressure in kPa x 10.
1728
+ * @returns {Behavior.Options<MatterbridgePressureMeasurementServer>} - The default options for the PressureMeasurement cluster server.
1729
+ */
1343
1730
  export declare function getDefaultPressureMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<PressureMeasurement.Cluster, typeof ClusterBehavior>>;
1731
+ /**
1732
+ * Get the default IlluminanceMeasurement cluster server options.
1733
+ *
1734
+ * @param {number | null} measuredValue - The measured value of illuminance.
1735
+ * @param {number | null} minMeasuredValue - The minimum measured value of illuminance.
1736
+ * @param {number | null} maxMeasuredValue - The maximum measured value of illuminance.
1737
+ * @returns {Behavior.Options<MatterbridgeIlluminanceMeasurementServer>} - The default options for the IlluminanceMeasurement cluster server.
1738
+ *
1739
+ * @remarks The default value for the illuminance measurement is null.
1740
+ * This attribute SHALL indicate the illuminance in Lux (symbol lx) as follows:
1741
+ * • MeasuredValue = 10,000 x log10(illuminance) + 1,
1742
+ * where 1 lx <= illuminance <= 3.576 Mlx, corresponding to a MeasuredValue in the range 1 to 0xFFFE.
1743
+ * • 0 indicates a value of illuminance that is too low to be measured
1744
+ * • null indicates that the illuminance measurement is invalid.
1745
+ */
1344
1746
  export declare function getDefaultIlluminanceMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<IlluminanceMeasurement.Cluster, typeof ClusterBehavior>>;
1747
+ /**
1748
+ * Get the default FlowMeasurement cluster server options.
1749
+ *
1750
+ * @param {number | null} measuredValue - The measured value of the flow in 10 x m3/h.
1751
+ * @param {number | null} minMeasuredValue - The minimum measured value of the flow in 10 x m3/h.
1752
+ * @param {number | null} maxMeasuredValue - The maximum measured value of the flow in 10 x m3/h.
1753
+ * @returns {Behavior.Options<MatterbridgeFlowMeasurementServer>} - The default options for the FlowMeasurement cluster server.
1754
+ */
1345
1755
  export declare function getDefaultFlowMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<FlowMeasurement.Cluster, typeof ClusterBehavior>>;
1756
+ /**
1757
+ * Get the default OccupancySensing cluster server options.
1758
+ *
1759
+ * @param {boolean} occupied - A boolean indicating whether the occupancy is occupied or not. Default is false.
1760
+ * @param {number} holdTime - The hold time in seconds. Default is 30.
1761
+ * @param {number} holdTimeMin - The minimum hold time in seconds. Default is 1.
1762
+ * @param {number} holdTimeMax - The maximum hold time in seconds. Default is 300.
1763
+ * @returns {Behavior.Options<MatterbridgeOccupancySensingServer>} - The default options for the OccupancySensing cluster server.
1764
+ *
1765
+ * @remarks The default value for the occupancy sensor type is PIR.
1766
+ * Servers SHALL set these attributes for backward compatibility with clients implementing a cluster revision <= 4 as
1767
+ * described in OccupancySensorType and OccupancySensorTypeBitmap Attributes.
1768
+ * This replaces the 9 legacy attributes PIROccupiedToUnoccupiedDelay through PhysicalContactUnoccupiedToOccupiedThreshold.
1769
+ */
1346
1770
  export declare function getDefaultOccupancySensingClusterServer(occupied?: boolean, holdTime?: number, holdTimeMin?: number, holdTimeMax?: number): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
1347
1771
  readonly id: 1030;
1348
1772
  readonly name: "OccupancySensing";
@@ -1428,3 +1852,4 @@ export declare function getDefaultOccupancySensingClusterServer(occupied?: boole
1428
1852
  readonly component: false;
1429
1853
  }];
1430
1854
  }>, readonly [OccupancySensing.Feature.PassiveInfrared]>, typeof OccupancySensingServer>>;
1855
+ //# sourceMappingURL=matterbridgeEndpointHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matterbridgeEndpointHelpers.d.ts","sourceRoot":"","sources":["../src/matterbridgeEndpointHelpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AASH,OAAO,EAAE,UAAU,EAA0D,MAAM,kBAAkB,CAAC;AAGtG,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAsB,MAAM,uBAAuB,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,C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