matterbridge 3.2.9 → 3.2.10-dev-20250928-30c21de

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 (287) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cli.js +2 -91
  3. package/dist/cliEmitter.js +0 -30
  4. package/dist/clusters/export.js +0 -2
  5. package/dist/defaultConfigSchema.js +0 -24
  6. package/dist/deviceManager.js +1 -94
  7. package/dist/devices/airConditioner.js +0 -57
  8. package/dist/devices/batteryStorage.js +1 -48
  9. package/dist/devices/cooktop.js +0 -55
  10. package/dist/devices/dishwasher.js +0 -57
  11. package/dist/devices/evse.js +10 -74
  12. package/dist/devices/export.js +0 -5
  13. package/dist/devices/extractorHood.js +0 -42
  14. package/dist/devices/heatPump.js +2 -50
  15. package/dist/devices/laundryDryer.js +3 -62
  16. package/dist/devices/laundryWasher.js +4 -70
  17. package/dist/devices/microwaveOven.js +5 -88
  18. package/dist/devices/oven.js +0 -85
  19. package/dist/devices/refrigerator.js +0 -102
  20. package/dist/devices/roboticVacuumCleaner.js +9 -100
  21. package/dist/devices/solarPower.js +0 -38
  22. package/dist/devices/speaker.js +0 -84
  23. package/dist/devices/temperatureControl.js +3 -25
  24. package/dist/devices/waterHeater.js +2 -82
  25. package/dist/dgram/coap.js +13 -126
  26. package/dist/dgram/dgram.js +2 -114
  27. package/dist/dgram/mb_coap.js +3 -41
  28. package/dist/dgram/mb_mdns.js +15 -80
  29. package/dist/dgram/mdns.js +137 -299
  30. package/dist/dgram/multicast.js +1 -62
  31. package/dist/dgram/unicast.js +0 -54
  32. package/dist/frontend.js +27 -417
  33. package/dist/frontendTypes.js +0 -45
  34. package/dist/globalMatterbridge.js +0 -47
  35. package/dist/helpers.js +0 -53
  36. package/dist/index.js +1 -30
  37. package/dist/logger/export.js +0 -1
  38. package/dist/matter/behaviors.js +0 -2
  39. package/dist/matter/clusters.js +0 -2
  40. package/dist/matter/devices.js +0 -2
  41. package/dist/matter/endpoints.js +0 -2
  42. package/dist/matter/export.js +0 -3
  43. package/dist/matter/types.js +0 -3
  44. package/dist/matterbridge.js +52 -785
  45. package/dist/matterbridgeAccessoryPlatform.js +0 -36
  46. package/dist/matterbridgeBehaviors.js +5 -65
  47. package/dist/matterbridgeDeviceTypes.js +17 -630
  48. package/dist/matterbridgeDynamicPlatform.js +0 -36
  49. package/dist/matterbridgeEndpoint.js +58 -1398
  50. package/dist/matterbridgeEndpointHelpers.js +12 -345
  51. package/dist/matterbridgePlatform.js +0 -304
  52. package/dist/matterbridgeTypes.js +0 -25
  53. package/dist/pluginManager.js +3 -249
  54. package/dist/shelly.js +7 -168
  55. package/dist/storage/export.js +0 -1
  56. package/dist/update.js +0 -69
  57. package/dist/utils/colorUtils.js +2 -97
  58. package/dist/utils/commandLine.js +0 -54
  59. package/dist/utils/copyDirectory.js +1 -38
  60. package/dist/utils/createDirectory.js +0 -33
  61. package/dist/utils/createZip.js +2 -47
  62. package/dist/utils/deepCopy.js +0 -39
  63. package/dist/utils/deepEqual.js +1 -72
  64. package/dist/utils/error.js +0 -41
  65. package/dist/utils/export.js +0 -1
  66. package/dist/utils/hex.js +0 -124
  67. package/dist/utils/isvalid.js +0 -101
  68. package/dist/utils/jestHelpers.js +3 -153
  69. package/dist/utils/network.js +5 -91
  70. package/dist/utils/spawn.js +0 -69
  71. package/dist/utils/wait.js +8 -60
  72. package/frontend/build/assets/index.js +7 -7
  73. package/frontend/build/assets/vendor_node_modules.js +19 -19
  74. package/frontend/package-lock.json +115 -100
  75. package/frontend/package.json +9 -9
  76. package/npm-shrinkwrap.json +2 -2
  77. package/package.json +1 -2
  78. package/dist/cli.d.ts +0 -26
  79. package/dist/cli.d.ts.map +0 -1
  80. package/dist/cli.js.map +0 -1
  81. package/dist/cliEmitter.d.ts +0 -34
  82. package/dist/cliEmitter.d.ts.map +0 -1
  83. package/dist/cliEmitter.js.map +0 -1
  84. package/dist/clusters/export.d.ts +0 -2
  85. package/dist/clusters/export.d.ts.map +0 -1
  86. package/dist/clusters/export.js.map +0 -1
  87. package/dist/defaultConfigSchema.d.ts +0 -28
  88. package/dist/defaultConfigSchema.d.ts.map +0 -1
  89. package/dist/defaultConfigSchema.js.map +0 -1
  90. package/dist/deviceManager.d.ts +0 -112
  91. package/dist/deviceManager.d.ts.map +0 -1
  92. package/dist/deviceManager.js.map +0 -1
  93. package/dist/devices/airConditioner.d.ts +0 -98
  94. package/dist/devices/airConditioner.d.ts.map +0 -1
  95. package/dist/devices/airConditioner.js.map +0 -1
  96. package/dist/devices/batteryStorage.d.ts +0 -48
  97. package/dist/devices/batteryStorage.d.ts.map +0 -1
  98. package/dist/devices/batteryStorage.js.map +0 -1
  99. package/dist/devices/cooktop.d.ts +0 -60
  100. package/dist/devices/cooktop.d.ts.map +0 -1
  101. package/dist/devices/cooktop.js.map +0 -1
  102. package/dist/devices/dishwasher.d.ts +0 -71
  103. package/dist/devices/dishwasher.d.ts.map +0 -1
  104. package/dist/devices/dishwasher.js.map +0 -1
  105. package/dist/devices/evse.d.ts +0 -75
  106. package/dist/devices/evse.d.ts.map +0 -1
  107. package/dist/devices/evse.js.map +0 -1
  108. package/dist/devices/export.d.ts +0 -17
  109. package/dist/devices/export.d.ts.map +0 -1
  110. package/dist/devices/export.js.map +0 -1
  111. package/dist/devices/extractorHood.d.ts +0 -46
  112. package/dist/devices/extractorHood.d.ts.map +0 -1
  113. package/dist/devices/extractorHood.js.map +0 -1
  114. package/dist/devices/heatPump.d.ts +0 -47
  115. package/dist/devices/heatPump.d.ts.map +0 -1
  116. package/dist/devices/heatPump.js.map +0 -1
  117. package/dist/devices/laundryDryer.d.ts +0 -67
  118. package/dist/devices/laundryDryer.d.ts.map +0 -1
  119. package/dist/devices/laundryDryer.js.map +0 -1
  120. package/dist/devices/laundryWasher.d.ts +0 -81
  121. package/dist/devices/laundryWasher.d.ts.map +0 -1
  122. package/dist/devices/laundryWasher.js.map +0 -1
  123. package/dist/devices/microwaveOven.d.ts +0 -168
  124. package/dist/devices/microwaveOven.d.ts.map +0 -1
  125. package/dist/devices/microwaveOven.js.map +0 -1
  126. package/dist/devices/oven.d.ts +0 -105
  127. package/dist/devices/oven.d.ts.map +0 -1
  128. package/dist/devices/oven.js.map +0 -1
  129. package/dist/devices/refrigerator.d.ts +0 -118
  130. package/dist/devices/refrigerator.d.ts.map +0 -1
  131. package/dist/devices/refrigerator.js.map +0 -1
  132. package/dist/devices/roboticVacuumCleaner.d.ts +0 -112
  133. package/dist/devices/roboticVacuumCleaner.d.ts.map +0 -1
  134. package/dist/devices/roboticVacuumCleaner.js.map +0 -1
  135. package/dist/devices/solarPower.d.ts +0 -40
  136. package/dist/devices/solarPower.d.ts.map +0 -1
  137. package/dist/devices/solarPower.js.map +0 -1
  138. package/dist/devices/speaker.d.ts +0 -87
  139. package/dist/devices/speaker.d.ts.map +0 -1
  140. package/dist/devices/speaker.js.map +0 -1
  141. package/dist/devices/temperatureControl.d.ts +0 -166
  142. package/dist/devices/temperatureControl.d.ts.map +0 -1
  143. package/dist/devices/temperatureControl.js.map +0 -1
  144. package/dist/devices/waterHeater.d.ts +0 -111
  145. package/dist/devices/waterHeater.d.ts.map +0 -1
  146. package/dist/devices/waterHeater.js.map +0 -1
  147. package/dist/dgram/coap.d.ts +0 -205
  148. package/dist/dgram/coap.d.ts.map +0 -1
  149. package/dist/dgram/coap.js.map +0 -1
  150. package/dist/dgram/dgram.d.ts +0 -141
  151. package/dist/dgram/dgram.d.ts.map +0 -1
  152. package/dist/dgram/dgram.js.map +0 -1
  153. package/dist/dgram/mb_coap.d.ts +0 -24
  154. package/dist/dgram/mb_coap.d.ts.map +0 -1
  155. package/dist/dgram/mb_coap.js.map +0 -1
  156. package/dist/dgram/mb_mdns.d.ts +0 -24
  157. package/dist/dgram/mb_mdns.d.ts.map +0 -1
  158. package/dist/dgram/mb_mdns.js.map +0 -1
  159. package/dist/dgram/mdns.d.ts +0 -290
  160. package/dist/dgram/mdns.d.ts.map +0 -1
  161. package/dist/dgram/mdns.js.map +0 -1
  162. package/dist/dgram/multicast.d.ts +0 -67
  163. package/dist/dgram/multicast.d.ts.map +0 -1
  164. package/dist/dgram/multicast.js.map +0 -1
  165. package/dist/dgram/unicast.d.ts +0 -56
  166. package/dist/dgram/unicast.d.ts.map +0 -1
  167. package/dist/dgram/unicast.js.map +0 -1
  168. package/dist/frontend.d.ts +0 -232
  169. package/dist/frontend.d.ts.map +0 -1
  170. package/dist/frontend.js.map +0 -1
  171. package/dist/frontendTypes.d.ts +0 -514
  172. package/dist/frontendTypes.d.ts.map +0 -1
  173. package/dist/frontendTypes.js.map +0 -1
  174. package/dist/globalMatterbridge.d.ts +0 -59
  175. package/dist/globalMatterbridge.d.ts.map +0 -1
  176. package/dist/globalMatterbridge.js.map +0 -1
  177. package/dist/helpers.d.ts +0 -48
  178. package/dist/helpers.d.ts.map +0 -1
  179. package/dist/helpers.js.map +0 -1
  180. package/dist/index.d.ts +0 -33
  181. package/dist/index.d.ts.map +0 -1
  182. package/dist/index.js.map +0 -1
  183. package/dist/logger/export.d.ts +0 -2
  184. package/dist/logger/export.d.ts.map +0 -1
  185. package/dist/logger/export.js.map +0 -1
  186. package/dist/matter/behaviors.d.ts +0 -2
  187. package/dist/matter/behaviors.d.ts.map +0 -1
  188. package/dist/matter/behaviors.js.map +0 -1
  189. package/dist/matter/clusters.d.ts +0 -2
  190. package/dist/matter/clusters.d.ts.map +0 -1
  191. package/dist/matter/clusters.js.map +0 -1
  192. package/dist/matter/devices.d.ts +0 -2
  193. package/dist/matter/devices.d.ts.map +0 -1
  194. package/dist/matter/devices.js.map +0 -1
  195. package/dist/matter/endpoints.d.ts +0 -2
  196. package/dist/matter/endpoints.d.ts.map +0 -1
  197. package/dist/matter/endpoints.js.map +0 -1
  198. package/dist/matter/export.d.ts +0 -5
  199. package/dist/matter/export.d.ts.map +0 -1
  200. package/dist/matter/export.js.map +0 -1
  201. package/dist/matter/types.d.ts +0 -3
  202. package/dist/matter/types.d.ts.map +0 -1
  203. package/dist/matter/types.js.map +0 -1
  204. package/dist/matterbridge.d.ts +0 -444
  205. package/dist/matterbridge.d.ts.map +0 -1
  206. package/dist/matterbridge.js.map +0 -1
  207. package/dist/matterbridgeAccessoryPlatform.d.ts +0 -42
  208. package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
  209. package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
  210. package/dist/matterbridgeBehaviors.d.ts +0 -1747
  211. package/dist/matterbridgeBehaviors.d.ts.map +0 -1
  212. package/dist/matterbridgeBehaviors.js.map +0 -1
  213. package/dist/matterbridgeDeviceTypes.d.ts +0 -761
  214. package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
  215. package/dist/matterbridgeDeviceTypes.js.map +0 -1
  216. package/dist/matterbridgeDynamicPlatform.d.ts +0 -42
  217. package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
  218. package/dist/matterbridgeDynamicPlatform.js.map +0 -1
  219. package/dist/matterbridgeEndpoint.d.ts +0 -1534
  220. package/dist/matterbridgeEndpoint.d.ts.map +0 -1
  221. package/dist/matterbridgeEndpoint.js.map +0 -1
  222. package/dist/matterbridgeEndpointHelpers.d.ts +0 -407
  223. package/dist/matterbridgeEndpointHelpers.d.ts.map +0 -1
  224. package/dist/matterbridgeEndpointHelpers.js.map +0 -1
  225. package/dist/matterbridgePlatform.d.ts +0 -365
  226. package/dist/matterbridgePlatform.d.ts.map +0 -1
  227. package/dist/matterbridgePlatform.js.map +0 -1
  228. package/dist/matterbridgeTypes.d.ts +0 -197
  229. package/dist/matterbridgeTypes.d.ts.map +0 -1
  230. package/dist/matterbridgeTypes.js.map +0 -1
  231. package/dist/pluginManager.d.ts +0 -270
  232. package/dist/pluginManager.d.ts.map +0 -1
  233. package/dist/pluginManager.js.map +0 -1
  234. package/dist/shelly.d.ts +0 -174
  235. package/dist/shelly.d.ts.map +0 -1
  236. package/dist/shelly.js.map +0 -1
  237. package/dist/storage/export.d.ts +0 -2
  238. package/dist/storage/export.d.ts.map +0 -1
  239. package/dist/storage/export.js.map +0 -1
  240. package/dist/update.d.ts +0 -75
  241. package/dist/update.d.ts.map +0 -1
  242. package/dist/update.js.map +0 -1
  243. package/dist/utils/colorUtils.d.ts +0 -99
  244. package/dist/utils/colorUtils.d.ts.map +0 -1
  245. package/dist/utils/colorUtils.js.map +0 -1
  246. package/dist/utils/commandLine.d.ts +0 -59
  247. package/dist/utils/commandLine.d.ts.map +0 -1
  248. package/dist/utils/commandLine.js.map +0 -1
  249. package/dist/utils/copyDirectory.d.ts +0 -33
  250. package/dist/utils/copyDirectory.d.ts.map +0 -1
  251. package/dist/utils/copyDirectory.js.map +0 -1
  252. package/dist/utils/createDirectory.d.ts +0 -34
  253. package/dist/utils/createDirectory.d.ts.map +0 -1
  254. package/dist/utils/createDirectory.js.map +0 -1
  255. package/dist/utils/createZip.d.ts +0 -39
  256. package/dist/utils/createZip.d.ts.map +0 -1
  257. package/dist/utils/createZip.js.map +0 -1
  258. package/dist/utils/deepCopy.d.ts +0 -32
  259. package/dist/utils/deepCopy.d.ts.map +0 -1
  260. package/dist/utils/deepCopy.js.map +0 -1
  261. package/dist/utils/deepEqual.d.ts +0 -54
  262. package/dist/utils/deepEqual.d.ts.map +0 -1
  263. package/dist/utils/deepEqual.js.map +0 -1
  264. package/dist/utils/error.d.ts +0 -44
  265. package/dist/utils/error.d.ts.map +0 -1
  266. package/dist/utils/error.js.map +0 -1
  267. package/dist/utils/export.d.ts +0 -13
  268. package/dist/utils/export.d.ts.map +0 -1
  269. package/dist/utils/export.js.map +0 -1
  270. package/dist/utils/hex.d.ts +0 -89
  271. package/dist/utils/hex.d.ts.map +0 -1
  272. package/dist/utils/hex.js.map +0 -1
  273. package/dist/utils/isvalid.d.ts +0 -103
  274. package/dist/utils/isvalid.d.ts.map +0 -1
  275. package/dist/utils/isvalid.js.map +0 -1
  276. package/dist/utils/jestHelpers.d.ts +0 -137
  277. package/dist/utils/jestHelpers.d.ts.map +0 -1
  278. package/dist/utils/jestHelpers.js.map +0 -1
  279. package/dist/utils/network.d.ts +0 -84
  280. package/dist/utils/network.d.ts.map +0 -1
  281. package/dist/utils/network.js.map +0 -1
  282. package/dist/utils/spawn.d.ts +0 -34
  283. package/dist/utils/spawn.d.ts.map +0 -1
  284. package/dist/utils/spawn.js.map +0 -1
  285. package/dist/utils/wait.d.ts +0 -54
  286. package/dist/utils/wait.d.ts.map +0 -1
  287. package/dist/utils/wait.js.map +0 -1
@@ -1,75 +0,0 @@
1
- /**
2
- * @description This file contains the Evse class.
3
- * @file src/devices/energy-evse.ts
4
- * @author Luca Liguori
5
- * @contributor Ludovic BOUÉ
6
- * @created 2025-05-27
7
- * @version 1.1.0
8
- * @license Apache-2.0
9
- *
10
- * Copyright 2025, 2026, 2027 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
- import { MaybePromise } from '@matter/main';
25
- import { EnergyEvseServer } from '@matter/main/behaviors/energy-evse';
26
- import { EnergyEvseModeServer } from '@matter/main/behaviors/energy-evse-mode';
27
- import { EnergyEvse, EnergyEvseMode } from '@matter/main/clusters';
28
- import { ModeBase } from '@matter/main/clusters/mode-base';
29
- import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
30
- export declare class Evse extends MatterbridgeEndpoint {
31
- /**
32
- * Creates an instance of the EVSE class.
33
- *
34
- * @param {string} name - The name of the EVSE.
35
- * @param {string} serial - The serial number of the EVSE.
36
- * @param {number} [currentMode] - The current mode of the EnergyEvseMode cluster. Defaults to mode 1 (EnergyEvseMode.ModeTag.Manual).
37
- * @param {EnergyEvseMode.ModeOption[]} [supportedModes] - The supported modes for the EnergyEvseMode cluster. This is a fixed attribute that defaults to a predefined set of EnergyEvseMode cluster modes.
38
- * @param {EnergyEvse.State} [state] - The current state of the EVSE. Defaults to NotPluggedIn.
39
- * @param {EnergyEvse.SupplyState} [supplyState] - The supply state of the EVSE. Defaults to Disabled.
40
- * @param {EnergyEvse.FaultState} [faultState] - The fault state of the EVSE. Defaults to NoError.
41
- * @param {number} [voltage] - The voltage value in millivolts. Defaults to null if not provided.
42
- * @param {number} [current] - The current value in milliamperes. Defaults to null if not provided.
43
- * @param {number} [power] - The power value in milliwatts. Defaults to null if not provided.
44
- * @param {number} [energy] - The total consumption value in mW/h. Defaults to null if not provided.
45
- * @param {number} [absMinPower] - Indicate the minimum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
46
- * @param {number} [absMaxPower] - Indicate the maximum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
47
- */
48
- constructor(name: string, serial: string, currentMode?: number, supportedModes?: EnergyEvseMode.ModeOption[], state?: EnergyEvse.State, supplyState?: EnergyEvse.SupplyState, faultState?: EnergyEvse.FaultState, voltage?: number | bigint | null, current?: number | bigint | null, power?: number | bigint | null, energy?: number | bigint | null, absMinPower?: number, absMaxPower?: number);
49
- /**
50
- * Creates a default EnergyEvseServer Cluster Server.
51
- *
52
- * @param {EnergyEvse.State} [state] - The initial state of the EnergyEvse cluster. Defaults to EnergyEvse.State.NotPluggedIn.
53
- * @param {EnergyEvse.SupplyState} [supplyState] - The initial supply state of the EnergyEvse cluster. Defaults to EnergyEvse.SupplyState.ChargingEnabled.
54
- * @param {EnergyEvse.FaultState} [faultState] - The initial fault state of the EnergyEvse cluster. Defaults to EnergyEvse.FaultState.NoError.
55
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
56
- */
57
- createDefaultEnergyEvseClusterServer(state?: EnergyEvse.State, supplyState?: EnergyEvse.SupplyState, faultState?: EnergyEvse.FaultState): this;
58
- /**
59
- * Creates a default EnergyEvseMode Cluster Server.
60
- *
61
- * @param {number} [currentMode] - The current mode of the EnergyEvseMode cluster. Defaults to mode 1 (EnergyEvseMode.ModeTag.Manual).
62
- * @param {EnergyEvseMode.ModeOption[]} [supportedModes] - The supported modes for the EnergyEvseMode cluster. Defaults all EnergyEvseMode cluster modes.
63
- *
64
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
65
- */
66
- createDefaultEnergyEvseModeClusterServer(currentMode?: number, supportedModes?: EnergyEvseMode.ModeOption[]): this;
67
- }
68
- export declare class MatterbridgeEnergyEvseServer extends EnergyEvseServer {
69
- disable(): MaybePromise;
70
- enableCharging(request: EnergyEvse.EnableChargingRequest): MaybePromise;
71
- }
72
- export declare class MatterbridgeEnergyEvseModeServer extends EnergyEvseModeServer {
73
- changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
74
- }
75
- //# sourceMappingURL=evse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evse.d.ts","sourceRoot":"","sources":["../../src/devices/evse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAIlE,qBAAa,IAAK,SAAQ,oBAAoB;IAC5C;;;;;;;;;;;;;;;;OAgBG;gBAED,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,cAAc,CAAC,UAAU,EAAE,EAC5C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speaker.js';
2
- export * from './roboticVacuumCleaner.js';
3
- export * from './laundryWasher.js';
4
- export * from './laundryDryer.js';
5
- export * from './extractorHood.js';
6
- export * from './dishwasher.js';
7
- export * from './microwaveOven.js';
8
- export * from './oven.js';
9
- export * from './cooktop.js';
10
- export * from './refrigerator.js';
11
- export * from './airConditioner.js';
12
- export * from './waterHeater.js';
13
- export * from './evse.js';
14
- export * from './solarPower.js';
15
- export * from './batteryStorage.js';
16
- export * from './heatPump.js';
17
- //# sourceMappingURL=export.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/devices/export.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAG7B,cAAc,2BAA2B,CAAC;AAG1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/devices/export.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,cAAc,cAAc,CAAC;AAE7B,+DAA+D;AAC/D,cAAc,2BAA2B,CAAC;AAE1C,kEAAkE;AAClE,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,8DAA8D;AAC9D,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
@@ -1,46 +0,0 @@
1
- /**
2
- * @description This file contains the ExtractorHood class.
3
- * @file src/devices/extractorHood.ts
4
- * @author Luca Liguori
5
- * @created 2025-05-25
6
- * @version 1.1.0
7
- * @license Apache-2.0
8
- *
9
- * Copyright 2025, 2026, 2027 Luca Liguori.
10
- *
11
- * Licensed under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * http://www.apache.org/licenses/LICENSE-2.0
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" BASIS,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
- import { ResourceMonitoring } from '@matter/main/clusters/resource-monitoring';
24
- import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
25
- export declare class ExtractorHood extends MatterbridgeEndpoint {
26
- /**
27
- * Creates an instance of the ExtractorHood class.
28
- *
29
- * @param {string} name - The name of the extractor hood.
30
- * @param {string} serial - The serial number of the extractor hood.
31
- *
32
- * @param {number} [hepaCondition] - The initial HEPA filter condition (range 0-100). Default is 100.
33
- * @param {ResourceMonitoring.ChangeIndication} hepaChangeIndication - The initial HEPA filter change indication. Default is ResourceMonitoring.ChangeIndication.Ok.
34
- * @param {boolean | undefined} hepaInPlaceIndicator - The HEPA filter in-place indicator. Default is true.
35
- * @param {number | null | undefined} hepaLastChangedTime - The last time the HEPA filter was changed. Default is null.
36
- * @param {ResourceMonitoring.ReplacementProduct[]} hepaReplacementProductList - The list of HEPA filter replacement products. Default is an empty array.
37
-
38
- * @param {number} [activatedCarbonCondition] - The initial activated carbon filter condition (range 0-100). Default is 100.
39
- * @param {ResourceMonitoring.ChangeIndication} activatedCarbonChangeIndication - The initial activated carbon filter change indication. Default is ResourceMonitoring.ChangeIndication.Ok.
40
- * @param {boolean | undefined} activatedCarbonInPlaceIndicator - The activated carbon filter in-place indicator. Default is true.
41
- * @param {number | null | undefined} activatedCarbonLastChangedTime - The last time the activated carbon filter was changed. Default is null.
42
- * @param {ResourceMonitoring.ReplacementProduct[]} activatedCarbonReplacementProductList - The list of activated carbon filter replacement products. Default is an empty array.
43
- */
44
- constructor(name: string, serial: string, hepaCondition?: number, hepaChangeIndication?: ResourceMonitoring.ChangeIndication, hepaInPlaceIndicator?: boolean | undefined, hepaLastChangedTime?: number | null | undefined, hepaReplacementProductList?: ResourceMonitoring.ReplacementProduct[], activatedCarbonCondition?: number, activatedCarbonChangeIndication?: ResourceMonitoring.ChangeIndication, activatedCarbonInPlaceIndicator?: boolean | undefined, activatedCarbonLastChangedTime?: number | null | undefined, activatedCarbonReplacementProductList?: ResourceMonitoring.ReplacementProduct[]);
45
- }
46
- //# sourceMappingURL=extractorHood.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extractorHood.d.ts","sourceRoot":"","sources":["../../src/devices/extractorHood.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAI/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,qBAAa,aAAc,SAAQ,oBAAoB;IACrD;;;;;;;;;;;;;;;;;OAiBG;gBAED,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,aAAa,GAAE,MAAY,EAC3B,oBAAoB,GAAE,kBAAkB,CAAC,gBAAyD,EAClG,oBAAoB,GAAE,OAAO,GAAG,SAAgB,EAChD,mBAAmB,GAAE,MAAM,GAAG,IAAI,GAAG,SAAgB,EACrD,0BAA0B,GAAE,kBAAkB,CAAC,kBAA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C,CAAC,CAAC;QAEH,IAAI,CAAC,kBAAkB,CAAC,iCAAiC,EAAE,iBAAiB,EAAE,CAAC,QAAgB,EAAE,QAAgB,EAAE,OAAsB,EAAE,EAAE;YAC3I,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI;gBAAE,OAAO;YACrC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,yEAAyE,QAAQ,EAAE,CAAC,CAAC;QACrG,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,47 +0,0 @@
1
- /**
2
- * @description This file contains the HeatPump class.
3
- * @file src/devices/heatPump.ts
4
- * @author Luca Liguori
5
- * @created 2025-06-29
6
- * @version 1.0.0
7
- * @license Apache-2.0
8
- *
9
- * Copyright 2025, 2026, 2027 Luca Liguori.
10
- *
11
- * Licensed under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * http://www.apache.org/licenses/LICENSE-2.0
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" BASIS,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
- import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
24
- export declare class HeatPump extends MatterbridgeEndpoint {
25
- /**
26
- * Creates an instance of the HeatPump class.
27
- *
28
- * @param {string} name - The name of the HeatPump.
29
- * @param {string} serial - The serial number of the HeatPump.
30
- * @param {number} voltage - The voltage value in millivolts.
31
- * @param {number} current - The current value in milliamperes.
32
- * @param {number} power - The power value in milliwatts.
33
- * @param {number} energyImported - The total production value in mW/h.
34
- * @param {number} [absMinPower] - Indicate the minimum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
35
- * @param {number} [absMaxPower] - Indicate the maximum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
36
- *
37
- * @remarks
38
- * - The HeatPump includes clusters for power source, electrical power measurement, electrical energy measurement, and device energy management.
39
- * - It also includes child devices for flow temperature, return temperature, and a thermostat.
40
- * - The flow and return temperature sensors are set to default values of 45.00°C and 35.00°C respectively.
41
- * - The heating only thermostat is set up with a default temperature setpoint of 21.00°C.
42
- * - The device energy management cluster is set to `esaType` as `SpaceHeating`, `esaCanGenerate` as `false`, and `esaState` as `Online`.
43
- * - The absolute minimum and maximum power values can be set to indicate the range of power consumption for the heat pump.
44
- */
45
- constructor(name: string, serial: string, voltage?: number | bigint | null, current?: number | bigint | null, power?: number | bigint | null, energyImported?: number | bigint | null, absMinPower?: number, absMaxPower?: number);
46
- }
47
- //# sourceMappingURL=heatPump.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"heatPump.d.ts","sourceRoot":"","sources":["../../src/devices/heatPump.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAOH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE,qBAAa,QAAS,SAAQ,oBAAoB;IAChD;;;;;;;;;;;;;;;;;;;OAmBG;gBAED,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,MAAM,GAAG,MAAM,GAAG,IAAW,EACtC,OAAO,GAAE,MAAM,GAAG,MAAM,GAAG,IAAW,EACtC,KAAK,GAAE,MAAM,GAAG,MAAM,GAAG,IAAW,EACpC,cAAc,GAAE,MAAM,GAAG,MAAM,GAAG,IAAW,EAC7C,WAAW,GAAE,MAAU,EACvB,WAAW,GAAE,MAAU;CAyC1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"heatPump.js","sourceRoot":"","sources":["../../src/devices/heatPump.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,UAAU;AACV,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AA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D,EAAE;aACtD,yBAAyB,EAAE,CAAC;QAE/B,qDAAqD;QACrD,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,iBAAiB,EAAE;YAC5D,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;SAC5G,CAAC;aACC,gDAAgD,CAAC,IAAI,CAAC,CAAC,gFAAgF;aACvI,yBAAyB,EAAE,CAAC;QAE/B,uDAAuD;QACvD,IAAI,CAAC,kBAAkB,CAAC,mBAAmB,EAAE,iBAAiB,EAAE;YAC9D,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;SAC9G,CAAC;aACC,gDAAgD,CAAC,IAAI,CAAC,CAAC,kFAAkF;aACzI,yBAAyB,EAAE,CAAC;QAE/B,+CAA+C;QAC/C,IAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,gBAAgB,EAAE;YACtD,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC;SACvH,CAAC;aACC,2CAA2C,EAAE;aAC7C,yBAAyB,EAAE,CAAC;IACjC,CAAC;CACF"}
@@ -1,67 +0,0 @@
1
- /**
2
- * @description This file contains the LaundryDryer class.
3
- * @file src/devices/laundryDryer.ts
4
- * @author Luca Liguori
5
- * @created 2025-06-29
6
- * @version 1.1.0
7
- * @license Apache-2.0
8
- *
9
- * Copyright 2025, 2026, 2027 Luca Liguori.
10
- *
11
- * Licensed under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * http://www.apache.org/licenses/LICENSE-2.0
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" BASIS,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
- import { OperationalState } from '@matter/main/clusters/operational-state';
24
- import { LaundryWasherMode } from '@matter/main/clusters/laundry-washer-mode';
25
- import { LaundryDryerControls } from '@matter/main/clusters/laundry-dryer-controls';
26
- import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
27
- export declare class LaundryDryer extends MatterbridgeEndpoint {
28
- /**
29
- * Creates an instance of the LaundryDryer class.
30
- *
31
- * @param {string} name - The name of the laundry dryer.
32
- * @param {string} serial - The serial number of the laundry dryer.
33
- * @param {number} [currentMode] - The current mode of the laundry dryer. Defaults to 2 (Normal mode). Dead Front OnOff Cluster will set this to 2 when turned off. Persistent attribute.
34
- * @param {LaundryWasherMode.ModeOption[]} [supportedModes] - The supported modes of the laundry dryer. Defaults to a set of common modes (which include Delicate, Normal, Heavy, and Whites). Fixed attribute.
35
- * @param {number} [selectedTemperatureLevel] - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
36
- * @param {string[]} [supportedTemperatureLevels] - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']. Fixed attribute.
37
- * @param {number} [temperatureSetpoint] - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
38
- * @param {number} [minTemperature] - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
39
- * @param {number} [maxTemperature] - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
40
- * @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
41
- * @param {OperationalState.OperationalStateEnum} [operationalState] - The operational state of the laundry washer. Defaults to OperationalState.OperationalStateEnum.Off.
42
- *
43
- * Remarks:
44
- * - If `temperatureSetpoint` is provided, the `createNumberTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
45
- * - If `temperatureSetpoint` is not provided, the `createLevelTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with feature TemperatureLevel.
46
- */
47
- constructor(name: string, serial: string, currentMode?: number, supportedModes?: LaundryWasherMode.ModeOption[], selectedTemperatureLevel?: number, supportedTemperatureLevels?: string[], temperatureSetpoint?: number, minTemperature?: number, maxTemperature?: number, step?: number, operationalState?: OperationalState.OperationalStateEnum);
48
- /**
49
- * Creates a default Laundry Washer Mode Cluster Server.
50
- *
51
- * @param {number} currentMode - The current mode of the laundry washer. Defaults to 2 (Normal mode). Dead Front OnOff Cluster will set this to 2 when turned off. Persistent attribute.
52
- * @param {LaundryWasherMode.ModeOption[]} supportedModes - The supported modes of the laundry washer. Defaults to a set of common modes (which include Delicate, Normal, Heavy, and Whites). Fixed attribute.
53
- *
54
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
55
- */
56
- createDefaultLaundryWasherModeClusterServer(currentMode?: number, supportedModes?: LaundryWasherMode.ModeOption[]): this;
57
- /**
58
- * Creates a default Laundry Dryer Controls Cluster Server.
59
- *
60
- * @param {LaundryDryerControls.DrynessLevel} selectedDrynessLevel - The selected dryness level. Default is undefined.
61
- * @param {LaundryDryerControls.DrynessLevel[]} supportedDrynessLevels - The supported dryness levels. Default is [Low, Normal, Extra, Max].
62
- *
63
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
64
- */
65
- createDefaultLaundryDryerControlsClusterServer(selectedDrynessLevel?: LaundryDryerControls.DrynessLevel, supportedDrynessLevels?: LaundryDryerControls.DrynessLevel[]): this;
66
- }
67
- //# sourceMappingURL=laundryDryer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"laundryDryer.d.ts","sourceRoot":"","sources":["../../src/devices/laundryDryer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAKpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAKlE,qBAAa,YAAa,SAAQ,oBAAoB;IACpD;;;;;;;;;;;;;;;;;;OAkBG;gBAED,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,iBAAiB,CAAC,UAAU,EAAE,EAC/C,wBAAwB,CAAC,EAAE,MAAM,EACjC,0BAA0B,CAAC,EAAE,MAAM,EAAE,EACrC,mBAAmB,CAAC,EAAE,MAAM,EAC5B,cAAc,CAAC,EAAE,MAAM,EACvB,cAAc,CAAC,EAAE,MAAM,EACvB,IAAI,CAAC,EAAE,MAAM,EACb,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,oBAAoB;IAc1D;;;;;;;OAOG;IACH,2CAA2C,CACzC,WAAW,GAAE,MAAU,EACvB,cAAc,GAAE,iBAAiB,CAAC,UAAU,EAK3C,GACA,IAAI;IAQP;;;;;;;OAOG;IACH,8CAA8C,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,YAAY,EAAE,sBAAsB,CAAC,EAAE,oBAAoB,CAAC,YAAY,EAAE,GAAG,IAAI;CAO7K"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"laundryDryer.js","sourceRoot":"","sources":["../../src/devices/laundryDryer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,EAAE,iBAAiB,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AAC,YAAY,CAAC,MAAM,EAAE,oBAAoB,CAAC,YAAY,CAAC,KAAK,EAAE,oBAAoB,CAAC,YAAY,CAAC,GAAG,CAAC;YACnN,oBAAoB,EAAE,WAAW;SAClC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,81 +0,0 @@
1
- /**
2
- * @description This file contains the LaundryWasher class.
3
- * @file src/devices/laundryWasher.ts
4
- * @author Luca Liguori
5
- * @created 2025-05-25
6
- * @version 1.1.0
7
- * @license Apache-2.0
8
- *
9
- * Copyright 2025, 2026, 2027 Luca Liguori.
10
- *
11
- * Licensed under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * http://www.apache.org/licenses/LICENSE-2.0
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" BASIS,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
- import { MaybePromise } from '@matter/main';
24
- import { OperationalState } from '@matter/main/clusters/operational-state';
25
- import { LaundryWasherControls } from '@matter/main/clusters/laundry-washer-controls';
26
- import { LaundryWasherMode } from '@matter/main/clusters/laundry-washer-mode';
27
- import { ModeBase } from '@matter/main/clusters/mode-base';
28
- import { LaundryWasherModeServer } from '@matter/main/behaviors/laundry-washer-mode';
29
- import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
30
- export declare class LaundryWasher extends MatterbridgeEndpoint {
31
- /**
32
- * Creates an instance of the LaundryWasher class.
33
- *
34
- * @param {string} name - The name of the laundry washer.
35
- * @param {string} serial - The serial number of the laundry washer.
36
- * @param {number} [currentMode] - The current mode of the laundry washer. Defaults to 2 (Normal mode). Dead Front OnOff Cluster will set this to 2 when turned off. Persistent attribute.
37
- * @param {LaundryWasherMode.ModeOption[]} [supportedModes] - The supported modes of the laundry washer. Defaults to a set of common modes (which include Delicate, Normal, Heavy, and Whites). Fixed attribute.
38
- * @param {number} [spinSpeedCurrent] - The current spin speed as index of the spinSpeeds array. Defaults to 2 (which corresponds to '1200').
39
- * @param {string[]} [spinSpeeds] - The supported spin speeds. Defaults to ['400', '800', '1200', '1600'].
40
- * @param {LaundryWasherControls.NumberOfRinses} [numberOfRinses] - The number of rinses. Defaults to LaundryWasherControls.NumberOfRinses.Normal (which corresponds to 1 rinse).
41
- * @param {LaundryWasherControls.NumberOfRinses[]} [supportedRinses] - The supported rinses. Defaults to [NumberOfRinses.None, NumberOfRinses.Normal, NumberOfRinses.Max, NumberOfRinses.Extra].
42
- * @param {number} [selectedTemperatureLevel] - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
43
- * @param {string[]} [supportedTemperatureLevels] - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']. Fixed attribute.
44
- * @param {number} [temperatureSetpoint] - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
45
- * @param {number} [minTemperature] - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
46
- * @param {number} [maxTemperature] - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
47
- * @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
48
- * @param {OperationalState.OperationalStateEnum} [operationalState] - The operational state of the laundry washer. Defaults to OperationalState.OperationalStateEnum.Off.
49
- *
50
- * Remarks:
51
- * - If `temperatureSetpoint` is provided, the `createNumberTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
52
- * - If `temperatureSetpoint` is not provided, the `createLevelTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with feature TemperatureLevel.
53
- */
54
- constructor(name: string, serial: string, currentMode?: number, supportedModes?: LaundryWasherMode.ModeOption[], spinSpeedCurrent?: number, spinSpeeds?: string[], numberOfRinses?: LaundryWasherControls.NumberOfRinses, supportedRinses?: LaundryWasherControls.NumberOfRinses[], selectedTemperatureLevel?: number, supportedTemperatureLevels?: string[], temperatureSetpoint?: number, minTemperature?: number, maxTemperature?: number, step?: number, operationalState?: OperationalState.OperationalStateEnum);
55
- /**
56
- * Creates a default Laundry Washer Mode Cluster Server.
57
- *
58
- * @param {number} currentMode - The current mode of the laundry washer. Defaults to 2 (Normal mode). Dead Front OnOff Cluster will set this to 2 when turned off. Persistent attribute.
59
- * @param {LaundryWasherMode.ModeOption[]} supportedModes - The supported modes of the laundry washer. Defaults to a set of common modes (which include Delicate, Normal, Heavy, and Whites). Fixed attribute.
60
- *
61
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
62
- */
63
- createDefaultLaundryWasherModeClusterServer(currentMode?: number, supportedModes?: LaundryWasherMode.ModeOption[]): this;
64
- /**
65
- * Creates a Laundry Washer Controls Cluster Server with feature Spin for selecting the spin speed and feature Rinse for selecting the number of rinses.
66
- *
67
- * @param {number} spinSpeedCurrent - The current spin speed as index of the spinSpeeds array. Default to 2 (which corresponds to '1200').
68
- * @param {string[]} spinSpeeds - The supported spin speeds. Default to ['400', '800', '1200', '1600'].
69
- * @param {LaundryWasherControls.NumberOfRinses} numberOfRinses - The number of rinses. Default to LaundryWasherControls.NumberOfRinses.Normal (which corresponds to 1 rinse).
70
- * @param {LaundryWasherControls.NumberOfRinses[]} supportedRinses - The supported rinses. Default to [NumberOfRinses.None, NumberOfRinses.Normal, NumberOfRinses.Max, NumberOfRinses.Extra].
71
- *
72
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
73
- */
74
- createDefaultLaundryWasherControlsClusterServer(spinSpeedCurrent?: number, spinSpeeds?: string[], numberOfRinses?: LaundryWasherControls.NumberOfRinses, supportedRinses?: LaundryWasherControls.NumberOfRinses[]): this;
75
- }
76
- export declare class MatterbridgeLaundryWasherModeServer extends LaundryWasherModeServer {
77
- initialize(): void;
78
- protected handleOnOffChange(onOff: boolean): void;
79
- changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
80
- }
81
- //# sourceMappingURL=laundryWasher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"laundryWasher.d.ts","sourceRoot":"","sources":["../../src/devices/laundryWasher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAKrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAKlE,qBAAa,aAAc,SAAQ,oBAAoB;IACrD;;;;;;;;;;;;;;;;;;;;;;OAsBG;gBAED,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,iBAAiB,CAAC,UAAU,EAAE,EAC/C,gBAAgB,CAAC,EAAE,MAAM,EACzB,UAAU,CAAC,EAAE,MAAM,EAAE,EACrB,cAAc,CAAC,EAAE,qBAAqB,CAAC,cAAc,EACrD,eAAe,CAAC,EAAE,qBAAqB,CAAC,cAAc,EAAE,EACxD,wBAAwB,CAAC,EAAE,MAAM,EACjC,0BAA0B,CAAC,EAAE,MAAM,EAAE,EACrC,mBAAmB,CAAC,EAAE,MAAM,EAC5B,cAAc,CAAC,EAAE,MAAM,EACvB,cAAc,CAAC,EAAE,MAAM,EACvB,IAAI,CAAC,EAAE,MAAM,EACb,gBAAgB,CAAC,EAAE,gBAAgB,CAAC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OAAO,EAAE,OAAO,EAAE,uBAAuB,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACxJ,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;QAChH,IAAI,aAAa,EAAE,CAAC;YAClB,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,sEAAsE,aAAa,CAAC,IAAI,OAAO,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;YACvI,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;YACzC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;QAC9E,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,8EAA8E,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;YAClH,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,gBAAgB,CAAC,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;QACzF,CAAC;IACH,CAAC;CACF"}
@@ -1,168 +0,0 @@
1
- /**
2
- * @description This file contains the MicrowaveOven class.
3
- * @file src/devices/microwaveOven.ts
4
- * @author Luca Liguori
5
- * @created 2025-05-25
6
- * @version 1.1.0
7
- * @license Apache-2.0
8
- *
9
- * Copyright 2025, 2026, 2027 Luca Liguori.
10
- *
11
- * Licensed under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * http://www.apache.org/licenses/LICENSE-2.0
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" BASIS,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
- import { MaybePromise } from '@matter/main';
24
- import { MicrowaveOvenMode } from '@matter/main/clusters/microwave-oven-mode';
25
- import { MicrowaveOvenControl } from '@matter/main/clusters/microwave-oven-control';
26
- import { MicrowaveOvenControlServer } from '@matter/main/behaviors/microwave-oven-control';
27
- import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
28
- export declare class MicrowaveOven extends MatterbridgeEndpoint {
29
- /**
30
- * Creates an instance of the MicrowaveOven class.
31
- *
32
- * @param {string} name - The name of the microwave oven.
33
- * @param {string} serial - The serial number of the microwave oven.
34
- * @param {number} currentMode - The current mode of the microwave oven. Default is 1 = Auto.
35
- * @param {MicrowaveOvenMode.ModeOption[]} supportedModes - The supported modes of the microwave oven. Default is an array of all modes.
36
- * @param {number} selectedWattIndex - The selected wattage index. Default is 5 (600W).
37
- * @param {number[]} supportedWatts - The supported wattages. Default is an array of all standard microwave wattages.
38
- * @param {number} cookTime - The initial cook time in seconds. Default is 60 seconds.
39
- * @param {number} maxCookTime - The maximum cook time in seconds. Default is 3600 seconds (1 hour).
40
- *
41
- * @remarks
42
- * - 8.12. Microwave Oven Mode Cluster
43
- * - Exactly one entry in the SupportedModes attribute SHALL include the Normal mode tag in the ModeTags field.
44
- * - The Normal and Defrost mode tags are mutually exclusive and SHALL NOT both be used together in a mode’s ModeTags.
45
- */
46
- constructor(name: string, serial: string, currentMode?: number, supportedModes?: MicrowaveOvenMode.ModeOption[], selectedWattIndex?: number, supportedWatts?: number[], cookTime?: number, // 1 minute
47
- maxCookTime?: number);
48
- /**
49
- * Creates a default MicrowaveOvenMode Cluster Server.
50
- * There is no changeToMode command in the spec, so this is not implemented.
51
- * The Microwave is controlled by the MicrowaveOvenControl cluster.
52
- *
53
- * @param {number} currentMode - The current mode of the oven.
54
- * @param {MicrowaveOvenMode.ModeOption[]} supportedModes - The supported modes.
55
- *
56
- * @returns {MatterbridgeEndpoint} The current MatterbridgeEndpoint instance for chaining.
57
- *
58
- * @remarks
59
- * - 8.12. Microwave Oven Mode Cluster
60
- * - the supported modes are fixed and cannot be changed at runtime.
61
- * - the current mode is persistent among reboots.
62
- * - Exactly one entry in the SupportedModes attribute SHALL include the Normal mode tag in the ModeTags field.
63
- * - The Normal and Defrost mode tags are mutually exclusive and SHALL NOT both be used together in a mode’s ModeTags.
64
- */
65
- createDefaultMicrowaveOvenModeClusterServer(currentMode: number, supportedModes: MicrowaveOvenMode.ModeOption[]): this;
66
- /**
67
- * Creates a default MicrowaveOvenControl Cluster Server.
68
- *
69
- * @param {number} selectedWattIndex - The selected watt index.
70
- * @param {number[]} supportedWatts - The supported watt values.
71
- * @param {number} cookTime - The initial cook time.
72
- * @param {number} maxCookTime - The maximum cook time.
73
- *
74
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
75
- *
76
- * @remarks
77
- * - 8.13. Microwave Oven Control Cluster
78
- * - the supported watt values are fixed and cannot be changed at runtime.
79
- * - the maxCookTime is a fixed attribute and cannot be changed at runtime.
80
- */
81
- createDefaultMicrowaveOvenControlClusterServer(selectedWattIndex: number, supportedWatts: number[], cookTime: number, maxCookTime: number): this;
82
- }
83
- declare const MatterbridgeMicrowaveOvenControlServer_base: import("@matter/main").ClusterBehavior.Type<import("@matter/types").ClusterComposer.WithFeatures<import("@matter/types").ClusterType.Of<{
84
- readonly id: 95;
85
- readonly name: "MicrowaveOvenControl";
86
- readonly revision: 1;
87
- readonly features: {
88
- readonly powerAsNumber: import("@matter/types").BitFlag;
89
- readonly powerInWatts: import("@matter/types").BitFlag;
90
- readonly powerNumberLimits: import("@matter/types").BitFlag;
91
- };
92
- readonly attributes: {
93
- readonly cookTime: import("@matter/types").Attribute<number, any>;
94
- readonly maxCookTime: import("@matter/types").FixedAttribute<number, any>;
95
- readonly wattRating: import("@matter/types").OptionalFixedAttribute<number, any>;
96
- };
97
- readonly commands: {
98
- readonly setCookingParameters: import("@matter/types").Command<import("@matter/types").TypeFromFields<{
99
- cookMode: import("@matter/types").OptionalFieldType<number>;
100
- cookTime: import("@matter/types").OptionalFieldType<number>;
101
- powerSetting: import("@matter/types").OptionalFieldType<number>;
102
- wattSettingIndex: import("@matter/types").OptionalFieldType<number>;
103
- startAfterSetting: import("@matter/types").OptionalFieldType<boolean>;
104
- }>, void, any>;
105
- readonly addMoreTime: import("@matter/types").OptionalCommand<import("@matter/types").TypeFromFields<{
106
- timeToAdd: import("@matter/types").FieldType<number>;
107
- }>, void, any>;
108
- };
109
- readonly extensions: readonly [{
110
- readonly flags: {
111
- readonly powerAsNumber: true;
112
- };
113
- readonly component: {
114
- readonly attributes: {
115
- readonly powerSetting: import("@matter/types").Attribute<number, any>;
116
- };
117
- };
118
- }, {
119
- readonly flags: {
120
- readonly powerNumberLimits: true;
121
- };
122
- readonly component: {
123
- readonly attributes: {
124
- readonly minPower: import("@matter/types").FixedAttribute<number, any>;
125
- readonly maxPower: import("@matter/types").FixedAttribute<number, any>;
126
- readonly powerStep: import("@matter/types").FixedAttribute<number, any>;
127
- };
128
- };
129
- }, {
130
- readonly flags: {
131
- readonly powerInWatts: true;
132
- };
133
- readonly component: {
134
- readonly attributes: {
135
- readonly supportedWatts: import("@matter/types").FixedAttribute<number[], any>;
136
- readonly selectedWattIndex: import("@matter/types").Attribute<number, any>;
137
- };
138
- };
139
- }, {
140
- readonly flags: {
141
- readonly powerNumberLimits: true;
142
- readonly powerAsNumber: false;
143
- };
144
- readonly component: false;
145
- }, {
146
- readonly flags: {
147
- readonly powerAsNumber: true;
148
- readonly powerInWatts: true;
149
- };
150
- readonly component: false;
151
- }, {
152
- readonly flags: {
153
- readonly powerAsNumber: false;
154
- readonly powerInWatts: false;
155
- };
156
- readonly component: false;
157
- }];
158
- }>, readonly [MicrowaveOvenControl.Feature.PowerInWatts]>, typeof MicrowaveOvenControlServer, import("@matter/main/behaviors/microwave-oven-control").MicrowaveOvenControlInterface>;
159
- /**
160
- * Matterbridge Microwave Oven Control Server
161
- */
162
- export declare class MatterbridgeMicrowaveOvenControlServer extends MatterbridgeMicrowaveOvenControlServer_base {
163
- initialize(): void;
164
- setCookingParameters(request: MicrowaveOvenControl.SetCookingParametersRequest): MaybePromise;
165
- addMoreTime(request: MicrowaveOvenControl.AddMoreTimeRequest): MaybePromise;
166
- }
167
- export {};
168
- //# sourceMappingURL=microwaveOven.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"microwaveOven.d.ts","sourceRoot":"","sources":["../../src/devices/microwaveOven.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAK3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE,qBAAa,aAAc,SAAQ,oBAAoB;IACrD;;;;;;;;;;;;;;;;OAgBG;gBAED,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,GAAE,MAAU,EACvB,cAAc,GAAE,iBAAiB,CAAC,UAAU,EAQ3C,EACD,iBAAiB,GAAE,MAAU,EAC7B,cAAc,GAAE,MAAM,EAAwD,EAC9E,QAAQ,GAAE,MAAW,EAAE,WAAW;IAClC,WAAW,GAAE,MAAa;IAW5B;;;;;;;;;;;;;;;;OAgBG;IACH,2CAA2C,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,iBAAiB,CAAC,UAAU,EAAE,GAAG,IAAI;IAQtH;;;;;;;;;;;;;;OAcG;IACH,8CAA8C,CAAC,iBAAiB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,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