matterbridge 3.1.4 → 3.1.5-dev-20250718-054cd80

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 (209) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README-DEV.md +59 -0
  3. package/dist/cli.js +2 -91
  4. package/dist/cliEmitter.js +0 -30
  5. package/dist/clusters/export.js +0 -2
  6. package/dist/defaultConfigSchema.js +0 -24
  7. package/dist/deviceManager.js +1 -94
  8. package/dist/devices/batteryStorage.js +1 -48
  9. package/dist/devices/evse.js +10 -74
  10. package/dist/devices/export.js +0 -2
  11. package/dist/devices/heatPump.js +2 -50
  12. package/dist/devices/laundryDryer.js +6 -83
  13. package/dist/devices/laundryWasher.js +7 -91
  14. package/dist/devices/roboticVacuumCleaner.js +6 -89
  15. package/dist/devices/solarPower.js +0 -38
  16. package/dist/devices/waterHeater.js +2 -82
  17. package/dist/frontend.js +21 -429
  18. package/dist/globalMatterbridge.js +0 -47
  19. package/dist/helpers.js +0 -53
  20. package/dist/index.js +1 -30
  21. package/dist/logger/export.js +0 -1
  22. package/dist/matter/behaviors.js +0 -2
  23. package/dist/matter/clusters.js +0 -2
  24. package/dist/matter/devices.js +0 -2
  25. package/dist/matter/endpoints.js +0 -2
  26. package/dist/matter/export.js +0 -3
  27. package/dist/matter/types.js +0 -3
  28. package/dist/matterbridge.js +66 -802
  29. package/dist/matterbridgeAccessoryPlatform.js +0 -36
  30. package/dist/matterbridgeBehaviors.js +1 -61
  31. package/dist/matterbridgeDeviceTypes.js +15 -579
  32. package/dist/matterbridgeDynamicPlatform.js +0 -36
  33. package/dist/matterbridgeEndpoint.js +42 -1106
  34. package/dist/matterbridgeEndpointHelpers.js +12 -322
  35. package/dist/matterbridgePlatform.js +0 -233
  36. package/dist/matterbridgeTypes.js +0 -25
  37. package/dist/pluginManager.js +46 -350
  38. package/dist/shelly.js +7 -168
  39. package/dist/storage/export.js +0 -1
  40. package/dist/update.js +0 -54
  41. package/dist/utils/colorUtils.js +2 -263
  42. package/dist/utils/commandLine.js +0 -54
  43. package/dist/utils/copyDirectory.js +1 -38
  44. package/dist/utils/createDirectory.js +0 -33
  45. package/dist/utils/createZip.js +2 -47
  46. package/dist/utils/deepCopy.js +0 -39
  47. package/dist/utils/deepEqual.js +1 -72
  48. package/dist/utils/error.js +9 -0
  49. package/dist/utils/export.js +0 -1
  50. package/dist/utils/hex.js +0 -58
  51. package/dist/utils/isvalid.js +0 -101
  52. package/dist/utils/network.js +5 -81
  53. package/dist/utils/spawn.js +0 -18
  54. package/dist/utils/wait.js +9 -62
  55. package/npm-shrinkwrap.json +5 -5
  56. package/package.json +1 -2
  57. package/dist/cli.d.ts +0 -26
  58. package/dist/cli.d.ts.map +0 -1
  59. package/dist/cli.js.map +0 -1
  60. package/dist/cliEmitter.d.ts +0 -34
  61. package/dist/cliEmitter.d.ts.map +0 -1
  62. package/dist/cliEmitter.js.map +0 -1
  63. package/dist/clusters/export.d.ts +0 -2
  64. package/dist/clusters/export.d.ts.map +0 -1
  65. package/dist/clusters/export.js.map +0 -1
  66. package/dist/defaultConfigSchema.d.ts +0 -28
  67. package/dist/defaultConfigSchema.d.ts.map +0 -1
  68. package/dist/defaultConfigSchema.js.map +0 -1
  69. package/dist/deviceManager.d.ts +0 -112
  70. package/dist/deviceManager.d.ts.map +0 -1
  71. package/dist/deviceManager.js.map +0 -1
  72. package/dist/devices/batteryStorage.d.ts +0 -48
  73. package/dist/devices/batteryStorage.d.ts.map +0 -1
  74. package/dist/devices/batteryStorage.js.map +0 -1
  75. package/dist/devices/evse.d.ts +0 -75
  76. package/dist/devices/evse.d.ts.map +0 -1
  77. package/dist/devices/evse.js.map +0 -1
  78. package/dist/devices/export.d.ts +0 -9
  79. package/dist/devices/export.d.ts.map +0 -1
  80. package/dist/devices/export.js.map +0 -1
  81. package/dist/devices/heatPump.d.ts +0 -47
  82. package/dist/devices/heatPump.d.ts.map +0 -1
  83. package/dist/devices/heatPump.js.map +0 -1
  84. package/dist/devices/laundryDryer.d.ts +0 -87
  85. package/dist/devices/laundryDryer.d.ts.map +0 -1
  86. package/dist/devices/laundryDryer.js.map +0 -1
  87. package/dist/devices/laundryWasher.d.ts +0 -242
  88. package/dist/devices/laundryWasher.d.ts.map +0 -1
  89. package/dist/devices/laundryWasher.js.map +0 -1
  90. package/dist/devices/roboticVacuumCleaner.d.ts +0 -110
  91. package/dist/devices/roboticVacuumCleaner.d.ts.map +0 -1
  92. package/dist/devices/roboticVacuumCleaner.js.map +0 -1
  93. package/dist/devices/solarPower.d.ts +0 -40
  94. package/dist/devices/solarPower.d.ts.map +0 -1
  95. package/dist/devices/solarPower.js.map +0 -1
  96. package/dist/devices/waterHeater.d.ts +0 -111
  97. package/dist/devices/waterHeater.d.ts.map +0 -1
  98. package/dist/devices/waterHeater.js.map +0 -1
  99. package/dist/frontend.d.ts +0 -304
  100. package/dist/frontend.d.ts.map +0 -1
  101. package/dist/frontend.js.map +0 -1
  102. package/dist/globalMatterbridge.d.ts +0 -59
  103. package/dist/globalMatterbridge.d.ts.map +0 -1
  104. package/dist/globalMatterbridge.js.map +0 -1
  105. package/dist/helpers.d.ts +0 -48
  106. package/dist/helpers.d.ts.map +0 -1
  107. package/dist/helpers.js.map +0 -1
  108. package/dist/index.d.ts +0 -33
  109. package/dist/index.d.ts.map +0 -1
  110. package/dist/index.js.map +0 -1
  111. package/dist/logger/export.d.ts +0 -2
  112. package/dist/logger/export.d.ts.map +0 -1
  113. package/dist/logger/export.js.map +0 -1
  114. package/dist/matter/behaviors.d.ts +0 -2
  115. package/dist/matter/behaviors.d.ts.map +0 -1
  116. package/dist/matter/behaviors.js.map +0 -1
  117. package/dist/matter/clusters.d.ts +0 -2
  118. package/dist/matter/clusters.d.ts.map +0 -1
  119. package/dist/matter/clusters.js.map +0 -1
  120. package/dist/matter/devices.d.ts +0 -2
  121. package/dist/matter/devices.d.ts.map +0 -1
  122. package/dist/matter/devices.js.map +0 -1
  123. package/dist/matter/endpoints.d.ts +0 -2
  124. package/dist/matter/endpoints.d.ts.map +0 -1
  125. package/dist/matter/endpoints.js.map +0 -1
  126. package/dist/matter/export.d.ts +0 -5
  127. package/dist/matter/export.d.ts.map +0 -1
  128. package/dist/matter/export.js.map +0 -1
  129. package/dist/matter/types.d.ts +0 -3
  130. package/dist/matter/types.d.ts.map +0 -1
  131. package/dist/matter/types.js.map +0 -1
  132. package/dist/matterbridge.d.ts +0 -444
  133. package/dist/matterbridge.d.ts.map +0 -1
  134. package/dist/matterbridge.js.map +0 -1
  135. package/dist/matterbridgeAccessoryPlatform.d.ts +0 -42
  136. package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
  137. package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
  138. package/dist/matterbridgeBehaviors.d.ts +0 -1340
  139. package/dist/matterbridgeBehaviors.d.ts.map +0 -1
  140. package/dist/matterbridgeBehaviors.js.map +0 -1
  141. package/dist/matterbridgeDeviceTypes.d.ts +0 -709
  142. package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
  143. package/dist/matterbridgeDeviceTypes.js.map +0 -1
  144. package/dist/matterbridgeDynamicPlatform.d.ts +0 -42
  145. package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
  146. package/dist/matterbridgeDynamicPlatform.js.map +0 -1
  147. package/dist/matterbridgeEndpoint.d.ts +0 -1250
  148. package/dist/matterbridgeEndpoint.d.ts.map +0 -1
  149. package/dist/matterbridgeEndpoint.js.map +0 -1
  150. package/dist/matterbridgeEndpointHelpers.d.ts +0 -3198
  151. package/dist/matterbridgeEndpointHelpers.d.ts.map +0 -1
  152. package/dist/matterbridgeEndpointHelpers.js.map +0 -1
  153. package/dist/matterbridgePlatform.d.ts +0 -310
  154. package/dist/matterbridgePlatform.d.ts.map +0 -1
  155. package/dist/matterbridgePlatform.js.map +0 -1
  156. package/dist/matterbridgeTypes.d.ts +0 -195
  157. package/dist/matterbridgeTypes.d.ts.map +0 -1
  158. package/dist/matterbridgeTypes.js.map +0 -1
  159. package/dist/pluginManager.d.ts +0 -291
  160. package/dist/pluginManager.d.ts.map +0 -1
  161. package/dist/pluginManager.js.map +0 -1
  162. package/dist/shelly.d.ts +0 -174
  163. package/dist/shelly.d.ts.map +0 -1
  164. package/dist/shelly.js.map +0 -1
  165. package/dist/storage/export.d.ts +0 -2
  166. package/dist/storage/export.d.ts.map +0 -1
  167. package/dist/storage/export.js.map +0 -1
  168. package/dist/update.d.ts +0 -59
  169. package/dist/update.d.ts.map +0 -1
  170. package/dist/update.js.map +0 -1
  171. package/dist/utils/colorUtils.d.ts +0 -117
  172. package/dist/utils/colorUtils.d.ts.map +0 -1
  173. package/dist/utils/colorUtils.js.map +0 -1
  174. package/dist/utils/commandLine.d.ts +0 -59
  175. package/dist/utils/commandLine.d.ts.map +0 -1
  176. package/dist/utils/commandLine.js.map +0 -1
  177. package/dist/utils/copyDirectory.d.ts +0 -33
  178. package/dist/utils/copyDirectory.d.ts.map +0 -1
  179. package/dist/utils/copyDirectory.js.map +0 -1
  180. package/dist/utils/createDirectory.d.ts +0 -34
  181. package/dist/utils/createDirectory.d.ts.map +0 -1
  182. package/dist/utils/createDirectory.js.map +0 -1
  183. package/dist/utils/createZip.d.ts +0 -39
  184. package/dist/utils/createZip.d.ts.map +0 -1
  185. package/dist/utils/createZip.js.map +0 -1
  186. package/dist/utils/deepCopy.d.ts +0 -32
  187. package/dist/utils/deepCopy.d.ts.map +0 -1
  188. package/dist/utils/deepCopy.js.map +0 -1
  189. package/dist/utils/deepEqual.d.ts +0 -54
  190. package/dist/utils/deepEqual.d.ts.map +0 -1
  191. package/dist/utils/deepEqual.js.map +0 -1
  192. package/dist/utils/export.d.ts +0 -12
  193. package/dist/utils/export.d.ts.map +0 -1
  194. package/dist/utils/export.js.map +0 -1
  195. package/dist/utils/hex.d.ts +0 -49
  196. package/dist/utils/hex.d.ts.map +0 -1
  197. package/dist/utils/hex.js.map +0 -1
  198. package/dist/utils/isvalid.d.ts +0 -103
  199. package/dist/utils/isvalid.d.ts.map +0 -1
  200. package/dist/utils/isvalid.js.map +0 -1
  201. package/dist/utils/network.d.ts +0 -74
  202. package/dist/utils/network.d.ts.map +0 -1
  203. package/dist/utils/network.js.map +0 -1
  204. package/dist/utils/spawn.d.ts +0 -11
  205. package/dist/utils/spawn.d.ts.map +0 -1
  206. package/dist/utils/spawn.js.map +0 -1
  207. package/dist/utils/wait.d.ts +0 -56
  208. package/dist/utils/wait.d.ts.map +0 -1
  209. package/dist/utils/wait.js.map +0 -1
@@ -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,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AAC;aACtK,oDAAoD,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,87 +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
- * Creates a TemperatureControl Cluster Server with feature TemperatureLevel.
68
- *
69
- * @param {number} selectedTemperatureLevel - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
70
- * @param {string[]} supportedTemperatureLevels - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']. Fixed attribute.
71
- *
72
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
73
- */
74
- createLevelTemperatureControlClusterServer(selectedTemperatureLevel?: number, supportedTemperatureLevels?: string[]): this;
75
- /**
76
- * Creates a TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
77
- *
78
- * @param {number} temperatureSetpoint - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
79
- * @param {number} minTemperature - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
80
- * @param {number} maxTemperature - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
81
- * @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
82
- *
83
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
84
- */
85
- createNumberTemperatureControlClusterServer(temperatureSetpoint?: number, minTemperature?: number, maxTemperature?: number, step?: number): this;
86
- }
87
- //# 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;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAKpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAIlE,qBAAa,YAAa,SAAQ,oBAAoB;I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AW;SAClC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;OAOG;IACH,0CAA0C,CAAC,2BAAmC,CAAC,EAAE,6BAAuC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;QACzK,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,yCAAyC,CAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE;YAClH,wBAAwB;YACxB,0BAA0B;SAC3B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;OASG;IACH,2CAA2C,CAAC,sBAA8B,EAAE,GAAG,GAAG,EAAE,iBAAyB,EAAE,GAAG,GAAG,EAAE,iBAAyB,EAAE,GAAG,GAAG,EAAE,OAAe,EAAE,GAAG,GAAG;QAC/K,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,0CAA0C,CAAC,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;YAChK,mBAAmB;YACnB,cAAc,EAAE,kBAAkB;YAClC,cAAc,EAAE,kBAAkB;YAClC,IAAI,EAAE,kBAAkB;SACzB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,242 +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 { TemperatureControl } from '@matter/main/clusters/temperature-control';
28
- import { ModeBase } from '@matter/main/clusters/mode-base';
29
- import { TemperatureControlServer } from '@matter/main/behaviors/temperature-control';
30
- import { LaundryWasherModeServer } from '@matter/main/behaviors/laundry-washer-mode';
31
- import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
32
- export declare class LaundryWasher extends MatterbridgeEndpoint {
33
- /**
34
- * Creates an instance of the LaundryWasher class.
35
- *
36
- * @param {string} name - The name of the laundry washer.
37
- * @param {string} serial - The serial number of the laundry washer.
38
- * @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.
39
- * @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.
40
- * @param {number} [spinSpeedCurrent] - The current spin speed as index of the spinSpeeds array. Defaults to 2 (which corresponds to '1200').
41
- * @param {string[]} [spinSpeeds] - The supported spin speeds. Defaults to ['400', '800', '1200', '1600'].
42
- * @param {LaundryWasherControls.NumberOfRinses} [numberOfRinses] - The number of rinses. Defaults to LaundryWasherControls.NumberOfRinses.Normal (which corresponds to 1 rinse).
43
- * @param {LaundryWasherControls.NumberOfRinses[]} [supportedRinses] - The supported rinses. Defaults to [NumberOfRinses.None, NumberOfRinses.Normal, NumberOfRinses.Max, NumberOfRinses.Extra].
44
- * @param {number} [selectedTemperatureLevel] - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
45
- * @param {string[]} [supportedTemperatureLevels] - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']. Fixed attribute.
46
- * @param {number} [temperatureSetpoint] - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
47
- * @param {number} [minTemperature] - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
48
- * @param {number} [maxTemperature] - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
49
- * @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
50
- * @param {OperationalState.OperationalStateEnum} [operationalState] - The operational state of the laundry washer. Defaults to OperationalState.OperationalStateEnum.Off.
51
- *
52
- * Remarks:
53
- * - If `temperatureSetpoint` is provided, the `createNumberTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
54
- * - If `temperatureSetpoint` is not provided, the `createLevelTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with feature TemperatureLevel.
55
- */
56
- 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);
57
- /**
58
- * Creates a default Laundry Washer Mode Cluster Server.
59
- *
60
- * @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.
61
- * @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.
62
- *
63
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
64
- */
65
- createDefaultLaundryWasherModeClusterServer(currentMode?: number, supportedModes?: LaundryWasherMode.ModeOption[]): this;
66
- /**
67
- * Creates a Laundry Washer Controls Cluster Server with feature Spin for selecting the spin speed and feature Rinse for selecting the number of rinses.
68
- *
69
- * @param {number} spinSpeedCurrent - The current spin speed as index of the spinSpeeds array. Default to 2 (which corresponds to '1200').
70
- * @param {string[]} spinSpeeds - The supported spin speeds. Default to ['400', '800', '1200', '1600'].
71
- * @param {LaundryWasherControls.NumberOfRinses} numberOfRinses - The number of rinses. Default to LaundryWasherControls.NumberOfRinses.Normal (which corresponds to 1 rinse).
72
- * @param {LaundryWasherControls.NumberOfRinses[]} supportedRinses - The supported rinses. Default to [NumberOfRinses.None, NumberOfRinses.Normal, NumberOfRinses.Max, NumberOfRinses.Extra].
73
- *
74
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
75
- */
76
- createDefaultLaundryWasherControlsClusterServer(spinSpeedCurrent?: number, spinSpeeds?: string[], numberOfRinses?: LaundryWasherControls.NumberOfRinses, supportedRinses?: LaundryWasherControls.NumberOfRinses[]): this;
77
- /**
78
- * Creates a TemperatureControl Cluster Server with feature TemperatureLevel.
79
- *
80
- * @param {number} selectedTemperatureLevel - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
81
- * @param {string[]} supportedTemperatureLevels - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']. Fixed attribute.
82
- *
83
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
84
- */
85
- createLevelTemperatureControlClusterServer(selectedTemperatureLevel?: number, supportedTemperatureLevels?: string[]): this;
86
- /**
87
- * Creates a TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
88
- *
89
- * @param {number} temperatureSetpoint - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
90
- * @param {number} minTemperature - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
91
- * @param {number} maxTemperature - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
92
- * @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
93
- *
94
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
95
- */
96
- createNumberTemperatureControlClusterServer(temperatureSetpoint?: number, minTemperature?: number, maxTemperature?: number, step?: number): this;
97
- }
98
- declare const MatterbridgeLevelTemperatureControlServer_base: import("@matter/main").ClusterBehavior.Type<import("@matter/types").ClusterComposer.WithFeatures<import("@matter/types").ClusterType.Of<{
99
- readonly id: 86;
100
- readonly name: "TemperatureControl";
101
- readonly revision: 1;
102
- readonly features: {
103
- readonly temperatureNumber: import("@matter/types").BitFlag;
104
- readonly temperatureLevel: import("@matter/types").BitFlag;
105
- readonly temperatureStep: import("@matter/types").BitFlag;
106
- };
107
- readonly commands: {
108
- readonly setTemperature: import("@matter/types").Command<import("@matter/types").TypeFromFields<{
109
- targetTemperature: import("@matter/types").OptionalFieldType<number>;
110
- targetTemperatureLevel: import("@matter/types").OptionalFieldType<number>;
111
- }>, void, any>;
112
- };
113
- readonly extensions: readonly [{
114
- readonly flags: {
115
- readonly temperatureNumber: true;
116
- };
117
- readonly component: {
118
- readonly attributes: {
119
- readonly temperatureSetpoint: import("@matter/types").Attribute<number, any>;
120
- readonly minTemperature: import("@matter/types").FixedAttribute<number, any>;
121
- readonly maxTemperature: import("@matter/types").FixedAttribute<number, any>;
122
- };
123
- };
124
- }, {
125
- readonly flags: {
126
- readonly temperatureStep: true;
127
- };
128
- readonly component: {
129
- readonly attributes: {
130
- readonly step: import("@matter/types").FixedAttribute<number, any>;
131
- };
132
- };
133
- }, {
134
- readonly flags: {
135
- readonly temperatureLevel: true;
136
- };
137
- readonly component: {
138
- readonly attributes: {
139
- readonly selectedTemperatureLevel: import("@matter/types").Attribute<number, any>;
140
- readonly supportedTemperatureLevels: import("@matter/types").Attribute<string[], any>;
141
- };
142
- };
143
- }, {
144
- readonly flags: {
145
- readonly temperatureStep: true;
146
- readonly temperatureNumber: false;
147
- };
148
- readonly component: false;
149
- }, {
150
- readonly flags: {
151
- readonly temperatureNumber: true;
152
- readonly temperatureLevel: true;
153
- };
154
- readonly component: false;
155
- }, {
156
- readonly flags: {
157
- readonly temperatureNumber: false;
158
- readonly temperatureLevel: false;
159
- };
160
- readonly component: false;
161
- }];
162
- }>, readonly [TemperatureControl.Feature.TemperatureLevel]>, typeof TemperatureControlServer, import("@matter/main/behaviors/temperature-control").TemperatureControlInterface>;
163
- export declare class MatterbridgeLevelTemperatureControlServer extends MatterbridgeLevelTemperatureControlServer_base {
164
- initialize(): void;
165
- setTemperature(request: TemperatureControl.SetTemperatureRequest): MaybePromise;
166
- }
167
- declare const MatterbridgeNumberTemperatureControlServer_base: import("@matter/main").ClusterBehavior.Type<import("@matter/types").ClusterComposer.WithFeatures<import("@matter/types").ClusterType.Of<{
168
- readonly id: 86;
169
- readonly name: "TemperatureControl";
170
- readonly revision: 1;
171
- readonly features: {
172
- readonly temperatureNumber: import("@matter/types").BitFlag;
173
- readonly temperatureLevel: import("@matter/types").BitFlag;
174
- readonly temperatureStep: import("@matter/types").BitFlag;
175
- };
176
- readonly commands: {
177
- readonly setTemperature: import("@matter/types").Command<import("@matter/types").TypeFromFields<{
178
- targetTemperature: import("@matter/types").OptionalFieldType<number>;
179
- targetTemperatureLevel: import("@matter/types").OptionalFieldType<number>;
180
- }>, void, any>;
181
- };
182
- readonly extensions: readonly [{
183
- readonly flags: {
184
- readonly temperatureNumber: true;
185
- };
186
- readonly component: {
187
- readonly attributes: {
188
- readonly temperatureSetpoint: import("@matter/types").Attribute<number, any>;
189
- readonly minTemperature: import("@matter/types").FixedAttribute<number, any>;
190
- readonly maxTemperature: import("@matter/types").FixedAttribute<number, any>;
191
- };
192
- };
193
- }, {
194
- readonly flags: {
195
- readonly temperatureStep: true;
196
- };
197
- readonly component: {
198
- readonly attributes: {
199
- readonly step: import("@matter/types").FixedAttribute<number, any>;
200
- };
201
- };
202
- }, {
203
- readonly flags: {
204
- readonly temperatureLevel: true;
205
- };
206
- readonly component: {
207
- readonly attributes: {
208
- readonly selectedTemperatureLevel: import("@matter/types").Attribute<number, any>;
209
- readonly supportedTemperatureLevels: import("@matter/types").Attribute<string[], any>;
210
- };
211
- };
212
- }, {
213
- readonly flags: {
214
- readonly temperatureStep: true;
215
- readonly temperatureNumber: false;
216
- };
217
- readonly component: false;
218
- }, {
219
- readonly flags: {
220
- readonly temperatureNumber: true;
221
- readonly temperatureLevel: true;
222
- };
223
- readonly component: false;
224
- }, {
225
- readonly flags: {
226
- readonly temperatureNumber: false;
227
- readonly temperatureLevel: false;
228
- };
229
- readonly component: false;
230
- }];
231
- }>, readonly [TemperatureControl.Feature.TemperatureNumber, TemperatureControl.Feature.TemperatureStep]>, typeof TemperatureControlServer, import("@matter/main/behaviors/temperature-control").TemperatureControlInterface>;
232
- export declare class MatterbridgeNumberTemperatureControlServer extends MatterbridgeNumberTemperatureControlServer_base {
233
- initialize(): void;
234
- setTemperature(request: TemperatureControl.SetTemperatureRequest): MaybePromise;
235
- }
236
- export declare class MatterbridgeLaundryWasherModeServer extends LaundryWasherModeServer {
237
- initialize(): void;
238
- protected handleOnOffChange(onOff: boolean): void;
239
- changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
240
- }
241
- export {};
242
- //# 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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Cleaner.ts
4
- * @author Luca Liguori
5
- * @created 2025-05-01
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 { RvcRunModeServer } from '@matter/main/behaviors/rvc-run-mode';
25
- import { RvcOperationalStateServer } from '@matter/main/behaviors/rvc-operational-state';
26
- import { RvcCleanModeServer } from '@matter/main/behaviors/rvc-clean-mode';
27
- import { RvcRunMode } from '@matter/main/clusters/rvc-run-mode';
28
- import { RvcCleanMode } from '@matter/main/clusters/rvc-clean-mode';
29
- import { RvcOperationalState } from '@matter/main/clusters/rvc-operational-state';
30
- import { ServiceArea } from '@matter/main/clusters/service-area';
31
- import { ModeBase } from '@matter/main/clusters/mode-base';
32
- import { OperationalState } from '@matter/main/clusters/operational-state';
33
- import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
34
- export declare class RoboticVacuumCleaner extends MatterbridgeEndpoint {
35
- /**
36
- * Creates an instance of the RoboticVacuumCleaner class.
37
- *
38
- * @param {string} name - The name of the robotic vacuum cleaner.
39
- * @param {string} serial - The serial number of the robotic vacuum cleaner.
40
- * @param {'server' | 'matter' | undefined} [mode] - The mode of the robotic vacuum cleaner. Defaults to undefined. Use 'server' or 'matter' if you want Apple Home compatibility.
41
- * @param {number} [currentRunMode] - The current run mode of the robotic vacuum cleaner. Defaults to 1 (Idle).
42
- * @param {RvcRunMode.ModeOption[]} [supportedRunModes] - The supported run modes for the robotic vacuum cleaner. Defaults to a predefined set of modes.
43
- * @param {number} [currentCleanMode] - The current clean mode of the robotic vacuum cleaner. Defaults to 1 (Vacuum).
44
- * @param {RvcCleanMode.ModeOption[]} [supportedCleanModes] - The supported clean modes for the robotic vacuum cleaner. Defaults to a predefined set of modes.
45
- * @param {number | null} [currentPhase] - The current phase of the robotic vacuum cleaner. Defaults to null.
46
- * @param {string[] | null} [phaseList] - The list of phases for the robotic vacuum cleaner. Defaults to null.
47
- * @param {RvcOperationalState.OperationalState} [operationalState] - The current operational state of the robotic vacuum cleaner. Defaults to Docked.
48
- * @param {RvcOperationalState.OperationalStateStruct[]} [operationalStateList] - The list of operational states for the robotic vacuum cleaner. Defaults to a predefined set of states.
49
- * @param {ServiceArea.Area[]} [supportedAreas] - The supported areas for the robotic vacuum cleaner. Defaults to a predefined set of areas.
50
- * @param {number[]} [selectedAreas] - The selected areas for the robotic vacuum cleaner. Defaults to an empty array (all areas allowed).
51
- * @param {number} [currentArea] - The current area of the robotic vacuum cleaner. Defaults to 1 (Living).
52
- */
53
- constructor(name: string, serial: string, mode?: 'server' | 'matter' | undefined, currentRunMode?: number, supportedRunModes?: RvcRunMode.ModeOption[], currentCleanMode?: number, supportedCleanModes?: RvcCleanMode.ModeOption[], currentPhase?: number | null, phaseList?: string[] | null, operationalState?: RvcOperationalState.OperationalState, operationalStateList?: RvcOperationalState.OperationalStateStruct[], supportedAreas?: ServiceArea.Area[], selectedAreas?: number[], currentArea?: number);
54
- /**
55
- * Creates a default RvcRunMode Cluster Server.
56
- *
57
- * @param {number} [currentMode] - The current mode of the RvcRunMode cluster. Defaults to 1 (Idle).
58
- * @param {RvcRunMode.ModeOption[]} [supportedModes] - The supported modes for the RvcRunMode cluster. Defaults to a predefined set of modes.
59
- *
60
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
61
- *
62
- * @remarks
63
- * - supportedModes is a fixed attribute that defines the run modes available for the robotic vacuum cleaner.
64
- */
65
- createDefaultRvcRunModeClusterServer(currentMode?: number, supportedModes?: RvcRunMode.ModeOption[]): this;
66
- /**
67
- * Creates a default RvcCleanMode Cluster Server.
68
- *
69
- * @param {number} [currentMode] - The current mode of the RvcCleanMode cluster. Defaults to 1 (Vacuum).
70
- * @param {RvcCleanMode.ModeOption[]} [supportedModes] - The supported modes for the RvcCleanMode cluster. Defaults to a predefined set of modes.
71
- *
72
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
73
- *
74
- * @remarks
75
- * - supportedModes is a fixed attribute that defines the clean modes available for the robotic vacuum cleaner.
76
- */
77
- createDefaultRvcCleanModeClusterServer(currentMode?: number, supportedModes?: RvcCleanMode.ModeOption[]): this;
78
- /**
79
- * Creates a default ServiceArea Cluster Server.
80
- *
81
- * @param {ServiceArea.Area[]} [supportedAreas] - The supported areas for the ServiceArea cluster. Defaults to a predefined set of areas.
82
- * @param {number[]} [selectedAreas] - The selected areas for the ServiceArea cluster. Defaults to an empty array (all areas allowed).
83
- * @param {number} [currentArea] - The current areaId (not the index in the array!) of the ServiceArea cluster. Defaults to 1 (Living).
84
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
85
- */
86
- createDefaultServiceAreaClusterServer(supportedAreas?: ServiceArea.Area[], selectedAreas?: number[], currentArea?: number): this;
87
- /**
88
- * Creates a default RvcOperationalState Cluster Server.
89
- *
90
- * @param {string[] | null} [phaseList] - The list of phases for the RvcOperationalState cluster. Defaults to null.
91
- * @param {number | null} [currentPhase] - The current phase (the index of the phaseList) of the RvcOperationalState cluster. Defaults to null.
92
- * @param {RvcOperationalState.OperationalStateStruct[]} [operationalStateList] - The list of operational states for the RvcOperationalState cluster. Defaults to a predefined set of states.
93
- * @param {RvcOperationalState.OperationalState} [operationalState] - The current operationalStateId of the RvcOperationalState cluster. Defaults to Docked.
94
- * @param {RvcOperationalState.ErrorStateStruct} [operationalError] - The current operational error of the RvcOperationalState cluster. Defaults to NoError.
95
- * @returns {this} The current MatterbridgeEndpoint instance for chaining.
96
- */
97
- createDefaultRvcOperationalStateClusterServer(phaseList?: string[] | null, currentPhase?: number | null, operationalStateList?: RvcOperationalState.OperationalStateStruct[], operationalState?: RvcOperationalState.OperationalState, operationalError?: RvcOperationalState.ErrorStateStruct): this;
98
- }
99
- export declare class MatterbridgeRvcRunModeServer extends RvcRunModeServer {
100
- changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
101
- }
102
- export declare class MatterbridgeRvcCleanModeServer extends RvcCleanModeServer {
103
- changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
104
- }
105
- export declare class MatterbridgeRvcOperationalStateServer extends RvcOperationalStateServer {
106
- pause(): MaybePromise<OperationalState.OperationalCommandResponse>;
107
- resume(): MaybePromise<OperationalState.OperationalCommandResponse>;
108
- goHome(): MaybePromise<OperationalState.OperationalCommandResponse>;
109
- }
110
- //# sourceMappingURL=roboticVacuumCleaner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roboticVacuumCleaner.d.ts","sourceRoot":"","sources":["../../src/devices/roboticVacuumCleaner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;A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C,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACxJ,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,kHAAkH,CAAC,CAAC;QACrI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,0BAA0B;QAC9F,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAC1E,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAG,EAAE,YAAY,EAAE,mBAAmB,CAAC,UAAU,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;QAC5J,OAAO;YACL,oBAAoB,EAAE,EAAE,YAAY,EAAE,gBAAgB,CAAC,UAAU,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,EAAE;SAClG,CAAC;IACnD,CAAC;CACF"}
@@ -1,40 +0,0 @@
1
- /**
2
- * @description This file contains the SolarPower class.
3
- * @file src/devices/solarPower.ts
4
- * @author Luca Liguori
5
- * @contributor Ludovic BOUÉ
6
- * @created 2025-06-14
7
- * @version 1.0.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 { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
25
- export declare class SolarPower extends MatterbridgeEndpoint {
26
- /**
27
- * Creates an instance of the SolarPower class.
28
- *
29
- * @param {string} name - The name of the SolarPower.
30
- * @param {string} serial - The serial number of the SolarPower.
31
- * @param {number} voltage - The voltage value in millivolts.
32
- * @param {number} current - The current value in milliamperes.
33
- * @param {number} power - The power value in milliwatts.
34
- * @param {number} energyExported - The total production value in mW/h.
35
- * @param {number} [absMinPower] - Indicate the minimum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
36
- * @param {number} [absMaxPower] - Indicate the maximum electrical power in mw that the ESA can consume when switched on. Defaults to `0` if not provided.
37
- */
38
- constructor(name: string, serial: string, voltage?: number | bigint | null, current?: number | bigint | null, power?: number | bigint | null, energyExported?: number | bigint | null, absMinPower?: number, absMaxPower?: number);
39
- }
40
- //# sourceMappingURL=solarPower.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solarPower.d.ts","sourceRoot":"","sources":["../../src/devices/solarPower.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE,qBAAa,UAAW,SAAQ,oBAAoB;IAClD;;;;;;;;;;;OAWG;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;CAoB1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"solarPower.js","sourceRoot":"","sources":["../../src/devices/solarPower.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,UAAU;AACV,OAAO,EAAE,cAA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