matterbridge 3.5.0 → 3.5.1-dev-20260122-6461be3

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 (330) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README-DOCKER.md +4 -2
  3. package/README.md +4 -1
  4. package/bin/mb_coap.js +1 -1
  5. package/bin/mb_mdns.js +1 -1
  6. package/dist/broadcastServer.d.ts +0 -115
  7. package/dist/broadcastServer.js +1 -119
  8. package/dist/broadcastServerTypes.d.ts +0 -43
  9. package/dist/broadcastServerTypes.js +0 -24
  10. package/dist/cli.d.ts +1 -26
  11. package/dist/cli.js +2 -102
  12. package/dist/cliEmitter.d.ts +0 -36
  13. package/dist/cliEmitter.js +0 -37
  14. package/dist/cliHistory.d.ts +0 -42
  15. package/dist/cliHistory.js +1 -39
  16. package/dist/clusters/export.d.ts +0 -1
  17. package/dist/clusters/export.js +0 -2
  18. package/dist/deviceManager.d.ts +0 -108
  19. package/dist/deviceManager.js +2 -114
  20. package/dist/devices/airConditioner.d.ts +0 -75
  21. package/dist/devices/airConditioner.js +0 -57
  22. package/dist/devices/batteryStorage.d.ts +0 -43
  23. package/dist/devices/batteryStorage.js +1 -48
  24. package/dist/devices/cooktop.d.ts +0 -55
  25. package/dist/devices/cooktop.js +0 -56
  26. package/dist/devices/dishwasher.d.ts +0 -55
  27. package/dist/devices/dishwasher.js +0 -57
  28. package/dist/devices/evse.d.ts +0 -57
  29. package/dist/devices/evse.js +10 -74
  30. package/dist/devices/export.d.ts +0 -1
  31. package/dist/devices/export.js +0 -5
  32. package/dist/devices/extractorHood.d.ts +0 -41
  33. package/dist/devices/extractorHood.js +0 -43
  34. package/dist/devices/heatPump.d.ts +0 -43
  35. package/dist/devices/heatPump.js +2 -50
  36. package/dist/devices/laundryDryer.d.ts +0 -58
  37. package/dist/devices/laundryDryer.js +3 -62
  38. package/dist/devices/laundryWasher.d.ts +0 -64
  39. package/dist/devices/laundryWasher.js +4 -70
  40. package/dist/devices/microwaveOven.d.ts +1 -77
  41. package/dist/devices/microwaveOven.js +5 -88
  42. package/dist/devices/oven.d.ts +0 -82
  43. package/dist/devices/oven.js +0 -85
  44. package/dist/devices/refrigerator.d.ts +0 -100
  45. package/dist/devices/refrigerator.js +0 -102
  46. package/dist/devices/roboticVacuumCleaner.d.ts +0 -83
  47. package/dist/devices/roboticVacuumCleaner.js +9 -100
  48. package/dist/devices/solarPower.d.ts +0 -36
  49. package/dist/devices/solarPower.js +0 -38
  50. package/dist/devices/speaker.d.ts +0 -79
  51. package/dist/devices/speaker.js +0 -84
  52. package/dist/devices/temperatureControl.d.ts +0 -21
  53. package/dist/devices/temperatureControl.js +3 -24
  54. package/dist/devices/waterHeater.d.ts +0 -74
  55. package/dist/devices/waterHeater.js +2 -82
  56. package/dist/frontend.d.ts +4 -187
  57. package/dist/frontend.js +89 -505
  58. package/dist/frontendTypes.d.ts +0 -57
  59. package/dist/frontendTypes.js +0 -45
  60. package/dist/helpers.d.ts +0 -43
  61. package/dist/helpers.js +1 -54
  62. package/dist/index.d.ts +0 -23
  63. package/dist/index.js +0 -25
  64. package/dist/jestutils/export.d.ts +0 -1
  65. package/dist/jestutils/export.js +0 -1
  66. package/dist/jestutils/jestHelpers.d.ts +0 -255
  67. package/dist/jestutils/jestHelpers.js +16 -379
  68. package/dist/logger/export.d.ts +0 -1
  69. package/dist/logger/export.js +0 -1
  70. package/dist/matter/behaviors.d.ts +0 -1
  71. package/dist/matter/behaviors.js +0 -2
  72. package/dist/matter/clusters.d.ts +0 -1
  73. package/dist/matter/clusters.js +0 -2
  74. package/dist/matter/devices.d.ts +0 -1
  75. package/dist/matter/devices.js +0 -2
  76. package/dist/matter/endpoints.d.ts +0 -1
  77. package/dist/matter/endpoints.js +0 -2
  78. package/dist/matter/export.d.ts +0 -1
  79. package/dist/matter/export.js +0 -2
  80. package/dist/matter/types.d.ts +0 -1
  81. package/dist/matter/types.js +0 -2
  82. package/dist/matterNode.d.ts +0 -258
  83. package/dist/matterNode.js +9 -364
  84. package/dist/matterbridge.d.ts +0 -362
  85. package/dist/matterbridge.js +75 -864
  86. package/dist/matterbridgeAccessoryPlatform.d.ts +0 -36
  87. package/dist/matterbridgeAccessoryPlatform.js +0 -38
  88. package/dist/matterbridgeBehaviors.d.ts +0 -24
  89. package/dist/matterbridgeBehaviors.js +5 -68
  90. package/dist/matterbridgeDeviceTypes.d.ts +0 -649
  91. package/dist/matterbridgeDeviceTypes.js +6 -673
  92. package/dist/matterbridgeDynamicPlatform.d.ts +0 -36
  93. package/dist/matterbridgeDynamicPlatform.js +0 -38
  94. package/dist/matterbridgeEndpoint.d.ts +2 -1332
  95. package/dist/matterbridgeEndpoint.js +94 -1459
  96. package/dist/matterbridgeEndpointHelpers.d.ts +0 -425
  97. package/dist/matterbridgeEndpointHelpers.js +22 -487
  98. package/dist/matterbridgeEndpointTypes.d.ts +0 -70
  99. package/dist/matterbridgeEndpointTypes.js +0 -25
  100. package/dist/matterbridgePlatform.d.ts +0 -425
  101. package/dist/matterbridgePlatform.js +2 -453
  102. package/dist/matterbridgeTypes.d.ts +0 -46
  103. package/dist/matterbridgeTypes.js +0 -26
  104. package/dist/mb_coap.d.ts +1 -0
  105. package/dist/{dgram/mb_coap.js → mb_coap.js} +3 -41
  106. package/dist/mb_mdns.d.ts +1 -0
  107. package/dist/{dgram/mb_mdns.js → mb_mdns.js} +47 -81
  108. package/dist/pluginManager.d.ts +0 -305
  109. package/dist/pluginManager.js +8 -345
  110. package/dist/shelly.d.ts +0 -157
  111. package/dist/shelly.js +7 -178
  112. package/dist/spawn.d.ts +1 -0
  113. package/dist/{utils/spawn.js → spawn.js} +3 -73
  114. package/dist/storage/export.d.ts +0 -1
  115. package/dist/storage/export.js +0 -1
  116. package/dist/update.d.ts +0 -75
  117. package/dist/update.js +7 -100
  118. package/dist/utils/export.d.ts +1 -13
  119. package/dist/utils/export.js +1 -13
  120. package/dist/workerGlobalPrefix.d.ts +0 -24
  121. package/dist/workerGlobalPrefix.js +6 -40
  122. package/dist/workerTypes.d.ts +0 -25
  123. package/dist/workerTypes.js +0 -24
  124. package/dist/workers.d.ts +0 -61
  125. package/dist/workers.js +4 -68
  126. package/npm-shrinkwrap.json +80 -50
  127. package/package.json +8 -8
  128. package/dist/broadcastServer.d.ts.map +0 -1
  129. package/dist/broadcastServer.js.map +0 -1
  130. package/dist/broadcastServerTypes.d.ts.map +0 -1
  131. package/dist/broadcastServerTypes.js.map +0 -1
  132. package/dist/cli.d.ts.map +0 -1
  133. package/dist/cli.js.map +0 -1
  134. package/dist/cliEmitter.d.ts.map +0 -1
  135. package/dist/cliEmitter.js.map +0 -1
  136. package/dist/cliHistory.d.ts.map +0 -1
  137. package/dist/cliHistory.js.map +0 -1
  138. package/dist/clusters/export.d.ts.map +0 -1
  139. package/dist/clusters/export.js.map +0 -1
  140. package/dist/deviceManager.d.ts.map +0 -1
  141. package/dist/deviceManager.js.map +0 -1
  142. package/dist/devices/airConditioner.d.ts.map +0 -1
  143. package/dist/devices/airConditioner.js.map +0 -1
  144. package/dist/devices/batteryStorage.d.ts.map +0 -1
  145. package/dist/devices/batteryStorage.js.map +0 -1
  146. package/dist/devices/cooktop.d.ts.map +0 -1
  147. package/dist/devices/cooktop.js.map +0 -1
  148. package/dist/devices/dishwasher.d.ts.map +0 -1
  149. package/dist/devices/dishwasher.js.map +0 -1
  150. package/dist/devices/evse.d.ts.map +0 -1
  151. package/dist/devices/evse.js.map +0 -1
  152. package/dist/devices/export.d.ts.map +0 -1
  153. package/dist/devices/export.js.map +0 -1
  154. package/dist/devices/extractorHood.d.ts.map +0 -1
  155. package/dist/devices/extractorHood.js.map +0 -1
  156. package/dist/devices/heatPump.d.ts.map +0 -1
  157. package/dist/devices/heatPump.js.map +0 -1
  158. package/dist/devices/laundryDryer.d.ts.map +0 -1
  159. package/dist/devices/laundryDryer.js.map +0 -1
  160. package/dist/devices/laundryWasher.d.ts.map +0 -1
  161. package/dist/devices/laundryWasher.js.map +0 -1
  162. package/dist/devices/microwaveOven.d.ts.map +0 -1
  163. package/dist/devices/microwaveOven.js.map +0 -1
  164. package/dist/devices/oven.d.ts.map +0 -1
  165. package/dist/devices/oven.js.map +0 -1
  166. package/dist/devices/refrigerator.d.ts.map +0 -1
  167. package/dist/devices/refrigerator.js.map +0 -1
  168. package/dist/devices/roboticVacuumCleaner.d.ts.map +0 -1
  169. package/dist/devices/roboticVacuumCleaner.js.map +0 -1
  170. package/dist/devices/solarPower.d.ts.map +0 -1
  171. package/dist/devices/solarPower.js.map +0 -1
  172. package/dist/devices/speaker.d.ts.map +0 -1
  173. package/dist/devices/speaker.js.map +0 -1
  174. package/dist/devices/temperatureControl.d.ts.map +0 -1
  175. package/dist/devices/temperatureControl.js.map +0 -1
  176. package/dist/devices/waterHeater.d.ts.map +0 -1
  177. package/dist/devices/waterHeater.js.map +0 -1
  178. package/dist/dgram/coap.d.ts +0 -205
  179. package/dist/dgram/coap.d.ts.map +0 -1
  180. package/dist/dgram/coap.js +0 -365
  181. package/dist/dgram/coap.js.map +0 -1
  182. package/dist/dgram/dgram.d.ts +0 -144
  183. package/dist/dgram/dgram.d.ts.map +0 -1
  184. package/dist/dgram/dgram.js +0 -363
  185. package/dist/dgram/dgram.js.map +0 -1
  186. package/dist/dgram/mb_coap.d.ts +0 -24
  187. package/dist/dgram/mb_coap.d.ts.map +0 -1
  188. package/dist/dgram/mb_coap.js.map +0 -1
  189. package/dist/dgram/mb_mdns.d.ts +0 -24
  190. package/dist/dgram/mb_mdns.d.ts.map +0 -1
  191. package/dist/dgram/mb_mdns.js.map +0 -1
  192. package/dist/dgram/mdns.d.ts +0 -371
  193. package/dist/dgram/mdns.d.ts.map +0 -1
  194. package/dist/dgram/mdns.js +0 -934
  195. package/dist/dgram/mdns.js.map +0 -1
  196. package/dist/dgram/multicast.d.ts +0 -67
  197. package/dist/dgram/multicast.d.ts.map +0 -1
  198. package/dist/dgram/multicast.js +0 -179
  199. package/dist/dgram/multicast.js.map +0 -1
  200. package/dist/dgram/unicast.d.ts +0 -64
  201. package/dist/dgram/unicast.d.ts.map +0 -1
  202. package/dist/dgram/unicast.js +0 -100
  203. package/dist/dgram/unicast.js.map +0 -1
  204. package/dist/frontend.d.ts.map +0 -1
  205. package/dist/frontend.js.map +0 -1
  206. package/dist/frontendTypes.d.ts.map +0 -1
  207. package/dist/frontendTypes.js.map +0 -1
  208. package/dist/helpers.d.ts.map +0 -1
  209. package/dist/helpers.js.map +0 -1
  210. package/dist/index.d.ts.map +0 -1
  211. package/dist/index.js.map +0 -1
  212. package/dist/jestutils/export.d.ts.map +0 -1
  213. package/dist/jestutils/export.js.map +0 -1
  214. package/dist/jestutils/jestHelpers.d.ts.map +0 -1
  215. package/dist/jestutils/jestHelpers.js.map +0 -1
  216. package/dist/logger/export.d.ts.map +0 -1
  217. package/dist/logger/export.js.map +0 -1
  218. package/dist/matter/behaviors.d.ts.map +0 -1
  219. package/dist/matter/behaviors.js.map +0 -1
  220. package/dist/matter/clusters.d.ts.map +0 -1
  221. package/dist/matter/clusters.js.map +0 -1
  222. package/dist/matter/devices.d.ts.map +0 -1
  223. package/dist/matter/devices.js.map +0 -1
  224. package/dist/matter/endpoints.d.ts.map +0 -1
  225. package/dist/matter/endpoints.js.map +0 -1
  226. package/dist/matter/export.d.ts.map +0 -1
  227. package/dist/matter/export.js.map +0 -1
  228. package/dist/matter/types.d.ts.map +0 -1
  229. package/dist/matter/types.js.map +0 -1
  230. package/dist/matterNode.d.ts.map +0 -1
  231. package/dist/matterNode.js.map +0 -1
  232. package/dist/matterbridge.d.ts.map +0 -1
  233. package/dist/matterbridge.js.map +0 -1
  234. package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
  235. package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
  236. package/dist/matterbridgeBehaviors.d.ts.map +0 -1
  237. package/dist/matterbridgeBehaviors.js.map +0 -1
  238. package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
  239. package/dist/matterbridgeDeviceTypes.js.map +0 -1
  240. package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
  241. package/dist/matterbridgeDynamicPlatform.js.map +0 -1
  242. package/dist/matterbridgeEndpoint.d.ts.map +0 -1
  243. package/dist/matterbridgeEndpoint.js.map +0 -1
  244. package/dist/matterbridgeEndpointHelpers.d.ts.map +0 -1
  245. package/dist/matterbridgeEndpointHelpers.js.map +0 -1
  246. package/dist/matterbridgeEndpointTypes.d.ts.map +0 -1
  247. package/dist/matterbridgeEndpointTypes.js.map +0 -1
  248. package/dist/matterbridgePlatform.d.ts.map +0 -1
  249. package/dist/matterbridgePlatform.js.map +0 -1
  250. package/dist/matterbridgeTypes.d.ts.map +0 -1
  251. package/dist/matterbridgeTypes.js.map +0 -1
  252. package/dist/pluginManager.d.ts.map +0 -1
  253. package/dist/pluginManager.js.map +0 -1
  254. package/dist/shelly.d.ts.map +0 -1
  255. package/dist/shelly.js.map +0 -1
  256. package/dist/storage/export.d.ts.map +0 -1
  257. package/dist/storage/export.js.map +0 -1
  258. package/dist/update.d.ts.map +0 -1
  259. package/dist/update.js.map +0 -1
  260. package/dist/utils/colorUtils.d.ts +0 -101
  261. package/dist/utils/colorUtils.d.ts.map +0 -1
  262. package/dist/utils/colorUtils.js +0 -282
  263. package/dist/utils/colorUtils.js.map +0 -1
  264. package/dist/utils/commandLine.d.ts +0 -66
  265. package/dist/utils/commandLine.d.ts.map +0 -1
  266. package/dist/utils/commandLine.js +0 -123
  267. package/dist/utils/commandLine.js.map +0 -1
  268. package/dist/utils/copyDirectory.d.ts +0 -35
  269. package/dist/utils/copyDirectory.d.ts.map +0 -1
  270. package/dist/utils/copyDirectory.js +0 -76
  271. package/dist/utils/copyDirectory.js.map +0 -1
  272. package/dist/utils/createDirectory.d.ts +0 -34
  273. package/dist/utils/createDirectory.d.ts.map +0 -1
  274. package/dist/utils/createDirectory.js +0 -54
  275. package/dist/utils/createDirectory.js.map +0 -1
  276. package/dist/utils/createZip.d.ts +0 -39
  277. package/dist/utils/createZip.d.ts.map +0 -1
  278. package/dist/utils/createZip.js +0 -114
  279. package/dist/utils/createZip.js.map +0 -1
  280. package/dist/utils/deepCopy.d.ts +0 -32
  281. package/dist/utils/deepCopy.d.ts.map +0 -1
  282. package/dist/utils/deepCopy.js +0 -79
  283. package/dist/utils/deepCopy.js.map +0 -1
  284. package/dist/utils/deepEqual.d.ts +0 -54
  285. package/dist/utils/deepEqual.d.ts.map +0 -1
  286. package/dist/utils/deepEqual.js +0 -129
  287. package/dist/utils/deepEqual.js.map +0 -1
  288. package/dist/utils/error.d.ts +0 -45
  289. package/dist/utils/error.d.ts.map +0 -1
  290. package/dist/utils/error.js +0 -54
  291. package/dist/utils/error.js.map +0 -1
  292. package/dist/utils/export.d.ts.map +0 -1
  293. package/dist/utils/export.js.map +0 -1
  294. package/dist/utils/format.d.ts +0 -53
  295. package/dist/utils/format.d.ts.map +0 -1
  296. package/dist/utils/format.js +0 -78
  297. package/dist/utils/format.js.map +0 -1
  298. package/dist/utils/hex.d.ts +0 -89
  299. package/dist/utils/hex.d.ts.map +0 -1
  300. package/dist/utils/hex.js +0 -242
  301. package/dist/utils/hex.js.map +0 -1
  302. package/dist/utils/inspector.d.ts +0 -87
  303. package/dist/utils/inspector.d.ts.map +0 -1
  304. package/dist/utils/inspector.js +0 -268
  305. package/dist/utils/inspector.js.map +0 -1
  306. package/dist/utils/isValid.d.ts +0 -103
  307. package/dist/utils/isValid.d.ts.map +0 -1
  308. package/dist/utils/isValid.js +0 -162
  309. package/dist/utils/isValid.js.map +0 -1
  310. package/dist/utils/network.d.ts +0 -141
  311. package/dist/utils/network.d.ts.map +0 -1
  312. package/dist/utils/network.js +0 -314
  313. package/dist/utils/network.js.map +0 -1
  314. package/dist/utils/spawn.d.ts +0 -33
  315. package/dist/utils/spawn.d.ts.map +0 -1
  316. package/dist/utils/spawn.js.map +0 -1
  317. package/dist/utils/tracker.d.ts +0 -108
  318. package/dist/utils/tracker.d.ts.map +0 -1
  319. package/dist/utils/tracker.js +0 -264
  320. package/dist/utils/tracker.js.map +0 -1
  321. package/dist/utils/wait.d.ts +0 -54
  322. package/dist/utils/wait.d.ts.map +0 -1
  323. package/dist/utils/wait.js +0 -125
  324. package/dist/utils/wait.js.map +0 -1
  325. package/dist/workerGlobalPrefix.d.ts.map +0 -1
  326. package/dist/workerGlobalPrefix.js.map +0 -1
  327. package/dist/workerTypes.d.ts.map +0 -1
  328. package/dist/workerTypes.js.map +0 -1
  329. package/dist/workers.d.ts.map +0 -1
  330. package/dist/workers.js.map +0 -1
@@ -1,26 +1,3 @@
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
- */
24
1
  import { AnsiLogger } from 'node-ansi-logger';
25
2
  import { ActionContext, Behavior, ClusterBehavior, Endpoint } from '@matter/node';
26
3
  import { ClusterId } from '@matter/types/datatype';
@@ -44,254 +21,32 @@ import { OccupancySensingServer } from '@matter/node/behaviors/occupancy-sensing
44
21
  import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
45
22
  import { MatterbridgeEndpointCommands } from './matterbridgeEndpointTypes.js';
46
23
  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
- */
53
24
  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
- */
60
25
  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
- */
67
26
  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
- */
74
27
  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
- */
84
28
  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
- */
98
29
  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
- */
105
30
  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
- */
112
31
  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
- */
119
32
  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
- */
125
33
  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
- */
133
34
  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
- */
146
35
  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
- */
160
36
  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
- */
167
37
  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
- */
174
38
  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
- */
181
39
  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
- */
189
40
  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
- */
197
41
  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
- */
205
42
  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
- */
213
43
  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
- */
222
44
  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
- */
232
45
  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
- */
243
46
  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
- */
254
47
  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
- */
270
48
  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
- */
282
49
  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
- */
295
50
  export declare function getDefaultPowerSourceWiredClusterServer(wiredCurrentType?: PowerSource.WiredCurrentType): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
296
51
  readonly id: 47;
297
52
  readonly name: "PowerSource";
@@ -429,20 +184,6 @@ export declare function getDefaultPowerSourceWiredClusterServer(wiredCurrentType
429
184
  readonly component: false;
430
185
  }];
431
186
  }>, 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
- */
446
187
  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<{
447
188
  readonly id: 47;
448
189
  readonly name: "PowerSource";
@@ -580,24 +321,6 @@ export declare function getDefaultPowerSourceBatteryClusterServer(batPercentRema
580
321
  readonly component: false;
581
322
  }];
582
323
  }>, 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
- */
601
324
  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<{
602
325
  readonly id: 47;
603
326
  readonly name: "PowerSource";
@@ -735,20 +458,6 @@ export declare function getDefaultPowerSourceReplaceableBatteryClusterServer(bat
735
458
  readonly component: false;
736
459
  }];
737
460
  }>, 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
- */
752
461
  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<{
753
462
  readonly id: 47;
754
463
  readonly name: "PowerSource";
@@ -886,13 +595,6 @@ export declare function getDefaultPowerSourceRechargeableBatteryClusterServer(ba
886
595
  readonly component: false;
887
596
  }];
888
597
  }>, 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
- */
896
598
  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<{
897
599
  readonly id: 145;
898
600
  readonly name: "ElectricalEnergyMeasurement";
@@ -1055,15 +757,6 @@ export declare function getDefaultElectricalEnergyMeasurementClusterServer(energ
1055
757
  readonly component: false;
1056
758
  }];
1057
759
  }>, 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
- */
1067
760
  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<{
1068
761
  readonly id: 144;
1069
762
  readonly name: "ElectricalPowerMeasurement";
@@ -1204,15 +897,6 @@ export declare function getDefaultElectricalPowerMeasurementClusterServer(voltag
1204
897
  readonly component: false;
1205
898
  }];
1206
899
  }>, 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
- */
1216
900
  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<{
1217
901
  readonly id: 144;
1218
902
  readonly name: "ElectricalPowerMeasurement";
@@ -1353,24 +1037,6 @@ export declare function getApparentElectricalPowerMeasurementClusterServer(volta
1353
1037
  readonly component: false;
1354
1038
  }];
1355
1039
  }>, 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
- */
1374
1040
  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<{
1375
1041
  readonly id: 152;
1376
1042
  readonly name: "DeviceEnergyManagement";
@@ -1670,103 +1336,13 @@ export declare function getDefaultDeviceEnergyManagementClusterServer(esaType?:
1670
1336
  readonly component: false;
1671
1337
  }];
1672
1338
  }>, 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
- */
1688
1339
  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
- */
1703
1340
  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
- */
1712
1341
  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
- */
1721
1342
  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
- */
1730
1343
  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
- */
1746
1344
  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
- */
1755
1345
  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
- */
1770
1346
  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<{
1771
1347
  readonly id: 1030;
1772
1348
  readonly name: "OccupancySensing";
@@ -1852,4 +1428,3 @@ export declare function getDefaultOccupancySensingClusterServer(occupied?: boole
1852
1428
  readonly component: false;
1853
1429
  }];
1854
1430
  }>, readonly [OccupancySensing.Feature.PassiveInfrared]>, typeof OccupancySensingServer>>;
1855
- //# sourceMappingURL=matterbridgeEndpointHelpers.d.ts.map