matterbridge 3.1.0-dev-20250627-2b5adba → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/CHANGELOG.md +4 -8
  2. package/dist/cli.d.ts +29 -0
  3. package/dist/cli.d.ts.map +1 -0
  4. package/dist/cli.js +91 -2
  5. package/dist/cli.js.map +1 -0
  6. package/dist/clusters/export.d.ts +2 -0
  7. package/dist/clusters/export.d.ts.map +1 -0
  8. package/dist/clusters/export.js +2 -0
  9. package/dist/clusters/export.js.map +1 -0
  10. package/dist/defaultConfigSchema.d.ts +28 -0
  11. package/dist/defaultConfigSchema.d.ts.map +1 -0
  12. package/dist/defaultConfigSchema.js +24 -0
  13. package/dist/defaultConfigSchema.js.map +1 -0
  14. package/dist/deviceManager.d.ts +112 -0
  15. package/dist/deviceManager.d.ts.map +1 -0
  16. package/dist/deviceManager.js +94 -1
  17. package/dist/deviceManager.js.map +1 -0
  18. package/dist/devices/export.d.ts +5 -0
  19. package/dist/devices/export.d.ts.map +1 -0
  20. package/dist/devices/export.js +2 -0
  21. package/dist/devices/export.js.map +1 -0
  22. package/dist/evse.d.ts +72 -0
  23. package/dist/evse.d.ts.map +1 -0
  24. package/dist/evse.js +70 -9
  25. package/dist/evse.js.map +1 -0
  26. package/dist/frontend.d.ts +285 -0
  27. package/dist/frontend.d.ts.map +1 -0
  28. package/dist/frontend.js +413 -16
  29. package/dist/frontend.js.map +1 -0
  30. package/dist/globalMatterbridge.d.ts +59 -0
  31. package/dist/globalMatterbridge.d.ts.map +1 -0
  32. package/dist/globalMatterbridge.js +47 -0
  33. package/dist/globalMatterbridge.js.map +1 -0
  34. package/dist/helpers.d.ts +48 -0
  35. package/dist/helpers.d.ts.map +1 -0
  36. package/dist/helpers.js +53 -0
  37. package/dist/helpers.js.map +1 -0
  38. package/dist/index.d.ts +38 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +32 -1
  41. package/dist/index.js.map +1 -0
  42. package/dist/laundryWasher.d.ts +243 -0
  43. package/dist/laundryWasher.d.ts.map +1 -0
  44. package/dist/laundryWasher.js +92 -7
  45. package/dist/laundryWasher.js.map +1 -0
  46. package/dist/logger/export.d.ts +2 -0
  47. package/dist/logger/export.d.ts.map +1 -0
  48. package/dist/logger/export.js +1 -0
  49. package/dist/logger/export.js.map +1 -0
  50. package/dist/matter/behaviors.d.ts +2 -0
  51. package/dist/matter/behaviors.d.ts.map +1 -0
  52. package/dist/matter/behaviors.js +2 -0
  53. package/dist/matter/behaviors.js.map +1 -0
  54. package/dist/matter/clusters.d.ts +2 -0
  55. package/dist/matter/clusters.d.ts.map +1 -0
  56. package/dist/matter/clusters.js +2 -0
  57. package/dist/matter/clusters.js.map +1 -0
  58. package/dist/matter/devices.d.ts +2 -0
  59. package/dist/matter/devices.d.ts.map +1 -0
  60. package/dist/matter/devices.js +2 -0
  61. package/dist/matter/devices.js.map +1 -0
  62. package/dist/matter/endpoints.d.ts +2 -0
  63. package/dist/matter/endpoints.d.ts.map +1 -0
  64. package/dist/matter/endpoints.js +2 -0
  65. package/dist/matter/endpoints.js.map +1 -0
  66. package/dist/matter/export.d.ts +5 -0
  67. package/dist/matter/export.d.ts.map +1 -0
  68. package/dist/matter/export.js +3 -0
  69. package/dist/matter/export.js.map +1 -0
  70. package/dist/matter/types.d.ts +3 -0
  71. package/dist/matter/types.d.ts.map +1 -0
  72. package/dist/matter/types.js +3 -0
  73. package/dist/matter/types.js.map +1 -0
  74. package/dist/matterbridge.d.ts +450 -0
  75. package/dist/matterbridge.d.ts.map +1 -0
  76. package/dist/matterbridge.js +810 -56
  77. package/dist/matterbridge.js.map +1 -0
  78. package/dist/matterbridgeAccessoryPlatform.d.ts +42 -0
  79. package/dist/matterbridgeAccessoryPlatform.d.ts.map +1 -0
  80. package/dist/matterbridgeAccessoryPlatform.js +36 -0
  81. package/dist/matterbridgeAccessoryPlatform.js.map +1 -0
  82. package/dist/matterbridgeBehaviors.d.ts +1334 -0
  83. package/dist/matterbridgeBehaviors.d.ts.map +1 -0
  84. package/dist/matterbridgeBehaviors.js +55 -1
  85. package/dist/matterbridgeBehaviors.js.map +1 -0
  86. package/dist/matterbridgeDeviceTypes.d.ts +709 -0
  87. package/dist/matterbridgeDeviceTypes.d.ts.map +1 -0
  88. package/dist/matterbridgeDeviceTypes.js +579 -15
  89. package/dist/matterbridgeDeviceTypes.js.map +1 -0
  90. package/dist/matterbridgeDynamicPlatform.d.ts +42 -0
  91. package/dist/matterbridgeDynamicPlatform.d.ts.map +1 -0
  92. package/dist/matterbridgeDynamicPlatform.js +36 -0
  93. package/dist/matterbridgeDynamicPlatform.js.map +1 -0
  94. package/dist/matterbridgeEndpoint.d.ts +1173 -0
  95. package/dist/matterbridgeEndpoint.d.ts.map +1 -0
  96. package/dist/matterbridgeEndpoint.js +1023 -41
  97. package/dist/matterbridgeEndpoint.js.map +1 -0
  98. package/dist/matterbridgeEndpointHelpers.d.ts +3198 -0
  99. package/dist/matterbridgeEndpointHelpers.d.ts.map +1 -0
  100. package/dist/matterbridgeEndpointHelpers.js +322 -12
  101. package/dist/matterbridgeEndpointHelpers.js.map +1 -0
  102. package/dist/matterbridgePlatform.d.ts +310 -0
  103. package/dist/matterbridgePlatform.d.ts.map +1 -0
  104. package/dist/matterbridgePlatform.js +233 -0
  105. package/dist/matterbridgePlatform.js.map +1 -0
  106. package/dist/matterbridgeTypes.d.ts +184 -0
  107. package/dist/matterbridgeTypes.d.ts.map +1 -0
  108. package/dist/matterbridgeTypes.js +25 -0
  109. package/dist/matterbridgeTypes.js.map +1 -0
  110. package/dist/pluginManager.d.ts +291 -0
  111. package/dist/pluginManager.d.ts.map +1 -0
  112. package/dist/pluginManager.js +269 -3
  113. package/dist/pluginManager.js.map +1 -0
  114. package/dist/roboticVacuumCleaner.d.ts +104 -0
  115. package/dist/roboticVacuumCleaner.d.ts.map +1 -0
  116. package/dist/roboticVacuumCleaner.js +83 -6
  117. package/dist/roboticVacuumCleaner.js.map +1 -0
  118. package/dist/shelly.d.ts +174 -0
  119. package/dist/shelly.d.ts.map +1 -0
  120. package/dist/shelly.js +168 -7
  121. package/dist/shelly.js.map +1 -0
  122. package/dist/storage/export.d.ts +2 -0
  123. package/dist/storage/export.d.ts.map +1 -0
  124. package/dist/storage/export.js +1 -0
  125. package/dist/storage/export.js.map +1 -0
  126. package/dist/update.d.ts +59 -0
  127. package/dist/update.d.ts.map +1 -0
  128. package/dist/update.js +54 -0
  129. package/dist/update.js.map +1 -0
  130. package/dist/utils/colorUtils.d.ts +117 -0
  131. package/dist/utils/colorUtils.d.ts.map +1 -0
  132. package/dist/utils/colorUtils.js +263 -2
  133. package/dist/utils/colorUtils.js.map +1 -0
  134. package/dist/utils/commandLine.d.ts +59 -0
  135. package/dist/utils/commandLine.d.ts.map +1 -0
  136. package/dist/utils/commandLine.js +54 -0
  137. package/dist/utils/commandLine.js.map +1 -0
  138. package/dist/utils/copyDirectory.d.ts +33 -0
  139. package/dist/utils/copyDirectory.d.ts.map +1 -0
  140. package/dist/utils/copyDirectory.js +38 -1
  141. package/dist/utils/copyDirectory.js.map +1 -0
  142. package/dist/utils/createDirectory.d.ts +34 -0
  143. package/dist/utils/createDirectory.d.ts.map +1 -0
  144. package/dist/utils/createDirectory.js +33 -0
  145. package/dist/utils/createDirectory.js.map +1 -0
  146. package/dist/utils/createZip.d.ts +39 -0
  147. package/dist/utils/createZip.d.ts.map +1 -0
  148. package/dist/utils/createZip.js +47 -2
  149. package/dist/utils/createZip.js.map +1 -0
  150. package/dist/utils/deepCopy.d.ts +32 -0
  151. package/dist/utils/deepCopy.d.ts.map +1 -0
  152. package/dist/utils/deepCopy.js +39 -0
  153. package/dist/utils/deepCopy.js.map +1 -0
  154. package/dist/utils/deepEqual.d.ts +54 -0
  155. package/dist/utils/deepEqual.d.ts.map +1 -0
  156. package/dist/utils/deepEqual.js +72 -1
  157. package/dist/utils/deepEqual.js.map +1 -0
  158. package/dist/utils/export.d.ts +12 -0
  159. package/dist/utils/export.d.ts.map +1 -0
  160. package/dist/utils/export.js +1 -0
  161. package/dist/utils/export.js.map +1 -0
  162. package/dist/utils/hex.d.ts +49 -0
  163. package/dist/utils/hex.d.ts.map +1 -0
  164. package/dist/utils/hex.js +58 -0
  165. package/dist/utils/hex.js.map +1 -0
  166. package/dist/utils/isvalid.d.ts +103 -0
  167. package/dist/utils/isvalid.d.ts.map +1 -0
  168. package/dist/utils/isvalid.js +101 -0
  169. package/dist/utils/isvalid.js.map +1 -0
  170. package/dist/utils/network.d.ts +76 -0
  171. package/dist/utils/network.d.ts.map +1 -0
  172. package/dist/utils/network.js +83 -5
  173. package/dist/utils/network.js.map +1 -0
  174. package/dist/utils/spawn.d.ts +14 -0
  175. package/dist/utils/spawn.d.ts.map +1 -0
  176. package/dist/utils/spawn.js +18 -0
  177. package/dist/utils/spawn.js.map +1 -0
  178. package/dist/utils/wait.d.ts +56 -0
  179. package/dist/utils/wait.d.ts.map +1 -0
  180. package/dist/utils/wait.js +62 -9
  181. package/dist/utils/wait.js.map +1 -0
  182. package/dist/waterHeater.d.ts +106 -0
  183. package/dist/waterHeater.d.ts.map +1 -0
  184. package/dist/waterHeater.js +77 -2
  185. package/dist/waterHeater.js.map +1 -0
  186. package/npm-shrinkwrap.json +2 -2
  187. package/package.json +2 -1
@@ -0,0 +1,243 @@
1
+ /**
2
+ * This file contains the LaundryWasher class.
3
+ *
4
+ * @file laundryWasher.ts
5
+ * @author Luca Liguori
6
+ * @created 2025-05-25
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 { OperationalState } from '@matter/main/clusters/operational-state';
26
+ import { LaundryWasherControls } from '@matter/main/clusters/laundry-washer-controls';
27
+ import { LaundryWasherMode } from '@matter/main/clusters/laundry-washer-mode';
28
+ import { TemperatureControl } from '@matter/main/clusters/temperature-control';
29
+ import { ModeBase } from '@matter/main/clusters/mode-base';
30
+ import { TemperatureControlServer } from '@matter/main/behaviors/temperature-control';
31
+ import { LaundryWasherModeServer } from '@matter/main/behaviors/laundry-washer-mode';
32
+ import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
33
+ export declare class LaundryWasher extends MatterbridgeEndpoint {
34
+ /**
35
+ * Creates an instance of the LaundryWasher class.
36
+ *
37
+ * @param {string} name - The name of the laundry washer.
38
+ * @param {string} serial - The serial number of the laundry washer.
39
+ * @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.
40
+ * @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.
41
+ * @param {number} [spinSpeedCurrent] - The current spin speed as index of the spinSpeeds array. Defaults to 2 (which corresponds to '1200').
42
+ * @param {string[]} [spinSpeeds] - The supported spin speeds. Defaults to ['400', '800', '1200', '1600'].
43
+ * @param {LaundryWasherControls.NumberOfRinses} [numberOfRinses] - The number of rinses. Defaults to LaundryWasherControls.NumberOfRinses.Normal (which corresponds to 1 rinse).
44
+ * @param {LaundryWasherControls.NumberOfRinses[]} [supportedRinses] - The supported rinses. Defaults to [NumberOfRinses.None, NumberOfRinses.Normal, NumberOfRinses.Max, NumberOfRinses.Extra].
45
+ * @param {number} [selectedTemperatureLevel] - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
46
+ * @param {string[]} [supportedTemperatureLevels] - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']. Fixed attribute.
47
+ * @param {number} [temperatureSetpoint] - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
48
+ * @param {number} [minTemperature] - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
49
+ * @param {number} [maxTemperature] - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
50
+ * @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
51
+ * @param {OperationalState.OperationalStateEnum} [operationalState] - The operational state of the laundry washer. Defaults to OperationalState.OperationalStateEnum.Off.
52
+ *
53
+ * Remarks:
54
+ * - If `temperatureSetpoint` is provided, the `createNumberTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
55
+ * - If `temperatureSetpoint` is not provided, the `createLevelTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with feature TemperatureLevel.
56
+ */
57
+ 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);
58
+ /**
59
+ * Creates a default Laundry Washer Mode Cluster Server.
60
+ *
61
+ * @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.
62
+ * @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.
63
+ *
64
+ * @returns {this} The current MatterbridgeEndpoint instance for chaining.
65
+ */
66
+ createDefaultLaundryWasherModeClusterServer(currentMode?: number, supportedModes?: LaundryWasherMode.ModeOption[]): this;
67
+ /**
68
+ * Creates a Laundry Washer Controls Cluster Server with feature Spin for selecting the spin speed and feature Rinse for selecting the number of rinses.
69
+ *
70
+ * @param {number} spinSpeedCurrent - The current spin speed as index of the spinSpeeds array. Default to 2 (which corresponds to '1200').
71
+ * @param {string[]} spinSpeeds - The supported spin speeds. Default to ['400', '800', '1200', '1600'].
72
+ * @param {LaundryWasherControls.NumberOfRinses} numberOfRinses - The number of rinses. Default to LaundryWasherControls.NumberOfRinses.Normal (which corresponds to 1 rinse).
73
+ * @param {LaundryWasherControls.NumberOfRinses[]} supportedRinses - The supported rinses. Default to [NumberOfRinses.None, NumberOfRinses.Normal, NumberOfRinses.Max, NumberOfRinses.Extra].
74
+ *
75
+ * @returns {this} The current MatterbridgeEndpoint instance for chaining.
76
+ */
77
+ createDefaultLaundryWasherControlsClusterServer(spinSpeedCurrent?: number, spinSpeeds?: string[], numberOfRinses?: LaundryWasherControls.NumberOfRinses, supportedRinses?: LaundryWasherControls.NumberOfRinses[]): this;
78
+ /**
79
+ * Creates a TemperatureControl Cluster Server with feature TemperatureLevel.
80
+ *
81
+ * @param {number} selectedTemperatureLevel - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
82
+ * @param {string[]} supportedTemperatureLevels - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']. Fixed attribute.
83
+ *
84
+ * @returns {this} The current MatterbridgeEndpoint instance for chaining.
85
+ */
86
+ createLevelTemperatureControlClusterServer(selectedTemperatureLevel?: number, supportedTemperatureLevels?: string[]): this;
87
+ /**
88
+ * Creates a TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
89
+ *
90
+ * @param {number} temperatureSetpoint - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
91
+ * @param {number} minTemperature - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
92
+ * @param {number} maxTemperature - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
93
+ * @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
94
+ *
95
+ * @returns {this} The current MatterbridgeEndpoint instance for chaining.
96
+ */
97
+ createNumberTemperatureControlClusterServer(temperatureSetpoint?: number, minTemperature?: number, maxTemperature?: number, step?: number): this;
98
+ }
99
+ declare const MatterbridgeLevelTemperatureControlServer_base: import("@matter/main").ClusterBehavior.Type<import("@matter/types").ClusterComposer.WithFeatures<import("@matter/types").ClusterType.Of<{
100
+ readonly id: 86;
101
+ readonly name: "TemperatureControl";
102
+ readonly revision: 1;
103
+ readonly features: {
104
+ readonly temperatureNumber: import("@matter/types").BitFlag;
105
+ readonly temperatureLevel: import("@matter/types").BitFlag;
106
+ readonly temperatureStep: import("@matter/types").BitFlag;
107
+ };
108
+ readonly commands: {
109
+ readonly setTemperature: import("@matter/types").Command<import("@matter/types").TypeFromFields<{
110
+ targetTemperature: import("@matter/types").OptionalFieldType<number>;
111
+ targetTemperatureLevel: import("@matter/types").OptionalFieldType<number>;
112
+ }>, void, any>;
113
+ };
114
+ readonly extensions: readonly [{
115
+ readonly flags: {
116
+ readonly temperatureNumber: true;
117
+ };
118
+ readonly component: {
119
+ readonly attributes: {
120
+ readonly temperatureSetpoint: import("@matter/types").Attribute<number, any>;
121
+ readonly minTemperature: import("@matter/types").FixedAttribute<number, any>;
122
+ readonly maxTemperature: import("@matter/types").FixedAttribute<number, any>;
123
+ };
124
+ };
125
+ }, {
126
+ readonly flags: {
127
+ readonly temperatureStep: true;
128
+ };
129
+ readonly component: {
130
+ readonly attributes: {
131
+ readonly step: import("@matter/types").FixedAttribute<number, any>;
132
+ };
133
+ };
134
+ }, {
135
+ readonly flags: {
136
+ readonly temperatureLevel: true;
137
+ };
138
+ readonly component: {
139
+ readonly attributes: {
140
+ readonly selectedTemperatureLevel: import("@matter/types").Attribute<number, any>;
141
+ readonly supportedTemperatureLevels: import("@matter/types").Attribute<string[], any>;
142
+ };
143
+ };
144
+ }, {
145
+ readonly flags: {
146
+ readonly temperatureStep: true;
147
+ readonly temperatureNumber: false;
148
+ };
149
+ readonly component: false;
150
+ }, {
151
+ readonly flags: {
152
+ readonly temperatureNumber: true;
153
+ readonly temperatureLevel: true;
154
+ };
155
+ readonly component: false;
156
+ }, {
157
+ readonly flags: {
158
+ readonly temperatureNumber: false;
159
+ readonly temperatureLevel: false;
160
+ };
161
+ readonly component: false;
162
+ }];
163
+ }>, readonly [TemperatureControl.Feature.TemperatureLevel]>, typeof TemperatureControlServer, import("@matter/main/behaviors/temperature-control").TemperatureControlInterface>;
164
+ export declare class MatterbridgeLevelTemperatureControlServer extends MatterbridgeLevelTemperatureControlServer_base {
165
+ initialize(): void;
166
+ setTemperature(request: TemperatureControl.SetTemperatureRequest): MaybePromise;
167
+ }
168
+ declare const MatterbridgeNumberTemperatureControlServer_base: import("@matter/main").ClusterBehavior.Type<import("@matter/types").ClusterComposer.WithFeatures<import("@matter/types").ClusterType.Of<{
169
+ readonly id: 86;
170
+ readonly name: "TemperatureControl";
171
+ readonly revision: 1;
172
+ readonly features: {
173
+ readonly temperatureNumber: import("@matter/types").BitFlag;
174
+ readonly temperatureLevel: import("@matter/types").BitFlag;
175
+ readonly temperatureStep: import("@matter/types").BitFlag;
176
+ };
177
+ readonly commands: {
178
+ readonly setTemperature: import("@matter/types").Command<import("@matter/types").TypeFromFields<{
179
+ targetTemperature: import("@matter/types").OptionalFieldType<number>;
180
+ targetTemperatureLevel: import("@matter/types").OptionalFieldType<number>;
181
+ }>, void, any>;
182
+ };
183
+ readonly extensions: readonly [{
184
+ readonly flags: {
185
+ readonly temperatureNumber: true;
186
+ };
187
+ readonly component: {
188
+ readonly attributes: {
189
+ readonly temperatureSetpoint: import("@matter/types").Attribute<number, any>;
190
+ readonly minTemperature: import("@matter/types").FixedAttribute<number, any>;
191
+ readonly maxTemperature: import("@matter/types").FixedAttribute<number, any>;
192
+ };
193
+ };
194
+ }, {
195
+ readonly flags: {
196
+ readonly temperatureStep: true;
197
+ };
198
+ readonly component: {
199
+ readonly attributes: {
200
+ readonly step: import("@matter/types").FixedAttribute<number, any>;
201
+ };
202
+ };
203
+ }, {
204
+ readonly flags: {
205
+ readonly temperatureLevel: true;
206
+ };
207
+ readonly component: {
208
+ readonly attributes: {
209
+ readonly selectedTemperatureLevel: import("@matter/types").Attribute<number, any>;
210
+ readonly supportedTemperatureLevels: import("@matter/types").Attribute<string[], any>;
211
+ };
212
+ };
213
+ }, {
214
+ readonly flags: {
215
+ readonly temperatureStep: true;
216
+ readonly temperatureNumber: false;
217
+ };
218
+ readonly component: false;
219
+ }, {
220
+ readonly flags: {
221
+ readonly temperatureNumber: true;
222
+ readonly temperatureLevel: true;
223
+ };
224
+ readonly component: false;
225
+ }, {
226
+ readonly flags: {
227
+ readonly temperatureNumber: false;
228
+ readonly temperatureLevel: false;
229
+ };
230
+ readonly component: false;
231
+ }];
232
+ }>, readonly [TemperatureControl.Feature.TemperatureNumber, TemperatureControl.Feature.TemperatureStep]>, typeof TemperatureControlServer, import("@matter/main/behaviors/temperature-control").TemperatureControlInterface>;
233
+ export declare class MatterbridgeNumberTemperatureControlServer extends MatterbridgeNumberTemperatureControlServer_base {
234
+ initialize(): void;
235
+ setTemperature(request: TemperatureControl.SetTemperatureRequest): MaybePromise;
236
+ }
237
+ export declare class MatterbridgeLaundryWasherModeServer extends LaundryWasherModeServer {
238
+ initialize(): void;
239
+ protected handleOnOffChange(onOff: boolean): void;
240
+ changeToMode(request: ModeBase.ChangeToModeRequest): MaybePromise<ModeBase.ChangeToModeResponse>;
241
+ }
242
+ export {};
243
+ //# sourceMappingURL=laundryWasher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"laundryWasher.d.ts","sourceRoot":"","sources":["../src/laundryWasher.ts"],"names":[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ACA,IAAI;IAQP;;;;;;;;;OASG;IACH,+CAA+C,CAC7C,gBAAgB,SAAI,EACpB,UAAU,GAAE,MAAM,EAAmC,EACrD,cAAc,GAAE,qBAAqB,CAAC,cAA4D,EAClG,eAAe,GAAE,qBAAqB,CAAC,cAAc,EAAmL,GACvO,IAAI;IAUP;;;;;;;OAOG;IACH,0CAA0C,CAAC,wBAAwB,SAAI,EAAE,0BAA0B,WAAsD,GAAG,IAAI;IAOhK;;;;;;;;;OASG;IACH,2CAA2C,CAAC,mBAAmB,SAAW,EAAE,cAAc,SAAW,EAAE,cAAc,SAAW,EAAE,IAAI,SAAW,GAAG,IAAI;CASzJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAAa,yCAA0C,SAAQ,8CAA0E;IAC9H,UAAU;IAOV,cAAc,CAAC,OAAO,EAAE,kBAAkB,CAAC,qBAAqB,GAAG,YAAY;CAWzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAAa,0CAA2C,SAAQ,+CAAuH;IAC5K,UAAU;IAKV,cAAc,CAAC,OAAO,EAAE,kBAAkB,CAAC,qBAAqB,GAAG,YAAY;CAWzF;AAED,qBAAa,mCAAoC,SAAQ,uBAAuB;IACrE,UAAU;IAOnB,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO;IASjC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,mBAAmB,GAAG,YAAY,CAAC,QAAQ,CAAC,oBAAoB,CAAC;CAc1G"}
@@ -1,3 +1,26 @@
1
+ /**
2
+ * This file contains the LaundryWasher class.
3
+ *
4
+ * @file laundryWasher.ts
5
+ * @author Luca Liguori
6
+ * @created 2025-05-25
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
+ */
1
24
  import { LaundryWasherControls } from '@matter/main/clusters/laundry-washer-controls';
2
25
  import { LaundryWasherMode } from '@matter/main/clusters/laundry-washer-mode';
3
26
  import { TemperatureControl } from '@matter/main/clusters/temperature-control';
@@ -5,10 +28,34 @@ import { ModeBase } from '@matter/main/clusters/mode-base';
5
28
  import { TemperatureControlServer } from '@matter/main/behaviors/temperature-control';
6
29
  import { LaundryWasherModeServer } from '@matter/main/behaviors/laundry-washer-mode';
7
30
  import { LaundryWasherControlsServer } from '@matter/main/behaviors/laundry-washer-controls';
31
+ // Matterbridge
8
32
  import { laundryWasher } from './matterbridgeDeviceTypes.js';
9
33
  import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
10
34
  import { MatterbridgeOnOffServer, MatterbridgeServer } from './matterbridgeBehaviors.js';
11
35
  export class LaundryWasher extends MatterbridgeEndpoint {
36
+ /**
37
+ * Creates an instance of the LaundryWasher class.
38
+ *
39
+ * @param {string} name - The name of the laundry washer.
40
+ * @param {string} serial - The serial number of the laundry washer.
41
+ * @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.
42
+ * @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.
43
+ * @param {number} [spinSpeedCurrent] - The current spin speed as index of the spinSpeeds array. Defaults to 2 (which corresponds to '1200').
44
+ * @param {string[]} [spinSpeeds] - The supported spin speeds. Defaults to ['400', '800', '1200', '1600'].
45
+ * @param {LaundryWasherControls.NumberOfRinses} [numberOfRinses] - The number of rinses. Defaults to LaundryWasherControls.NumberOfRinses.Normal (which corresponds to 1 rinse).
46
+ * @param {LaundryWasherControls.NumberOfRinses[]} [supportedRinses] - The supported rinses. Defaults to [NumberOfRinses.None, NumberOfRinses.Normal, NumberOfRinses.Max, NumberOfRinses.Extra].
47
+ * @param {number} [selectedTemperatureLevel] - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
48
+ * @param {string[]} [supportedTemperatureLevels] - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']. Fixed attribute.
49
+ * @param {number} [temperatureSetpoint] - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
50
+ * @param {number} [minTemperature] - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
51
+ * @param {number} [maxTemperature] - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
52
+ * @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
53
+ * @param {OperationalState.OperationalStateEnum} [operationalState] - The operational state of the laundry washer. Defaults to OperationalState.OperationalStateEnum.Off.
54
+ *
55
+ * Remarks:
56
+ * - If `temperatureSetpoint` is provided, the `createNumberTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
57
+ * - If `temperatureSetpoint` is not provided, the `createLevelTemperatureControlClusterServer` method will be used to create the TemperatureControl Cluster Server with feature TemperatureLevel.
58
+ */
12
59
  constructor(name, serial, currentMode, supportedModes, spinSpeedCurrent, spinSpeeds, numberOfRinses, supportedRinses, selectedTemperatureLevel, supportedTemperatureLevels, temperatureSetpoint, minTemperature, maxTemperature, step, operationalState) {
13
60
  super(laundryWasher, { uniqueStorageKey: `${name.replaceAll(' ', '')}-${serial.replaceAll(' ', '')}` }, true);
14
61
  this.createDefaultIdentifyClusterServer();
@@ -23,6 +70,14 @@ export class LaundryWasher extends MatterbridgeEndpoint {
23
70
  this.createLevelTemperatureControlClusterServer(selectedTemperatureLevel, supportedTemperatureLevels);
24
71
  this.createDefaultOperationalStateClusterServer(operationalState);
25
72
  }
73
+ /**
74
+ * Creates a default Laundry Washer Mode Cluster Server.
75
+ *
76
+ * @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.
77
+ * @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.
78
+ *
79
+ * @returns {this} The current MatterbridgeEndpoint instance for chaining.
80
+ */
26
81
  createDefaultLaundryWasherModeClusterServer(currentMode = 2, supportedModes = [
27
82
  { label: 'Delicate', mode: 1, modeTags: [{ value: LaundryWasherMode.ModeTag.Delicate }] },
28
83
  { label: 'Normal', mode: 2, modeTags: [{ value: LaundryWasherMode.ModeTag.Normal }] },
@@ -30,20 +85,38 @@ export class LaundryWasher extends MatterbridgeEndpoint {
30
85
  { label: 'Whites', mode: 4, modeTags: [{ value: LaundryWasherMode.ModeTag.Whites }] },
31
86
  ]) {
32
87
  this.behaviors.require(MatterbridgeLaundryWasherModeServer, {
33
- supportedModes,
34
- currentMode,
88
+ supportedModes, // Fixed attribute.
89
+ currentMode, // Persistent attribute.
35
90
  });
36
91
  return this;
37
92
  }
93
+ /**
94
+ * Creates a Laundry Washer Controls Cluster Server with feature Spin for selecting the spin speed and feature Rinse for selecting the number of rinses.
95
+ *
96
+ * @param {number} spinSpeedCurrent - The current spin speed as index of the spinSpeeds array. Default to 2 (which corresponds to '1200').
97
+ * @param {string[]} spinSpeeds - The supported spin speeds. Default to ['400', '800', '1200', '1600'].
98
+ * @param {LaundryWasherControls.NumberOfRinses} numberOfRinses - The number of rinses. Default to LaundryWasherControls.NumberOfRinses.Normal (which corresponds to 1 rinse).
99
+ * @param {LaundryWasherControls.NumberOfRinses[]} supportedRinses - The supported rinses. Default to [NumberOfRinses.None, NumberOfRinses.Normal, NumberOfRinses.Max, NumberOfRinses.Extra].
100
+ *
101
+ * @returns {this} The current MatterbridgeEndpoint instance for chaining.
102
+ */
38
103
  createDefaultLaundryWasherControlsClusterServer(spinSpeedCurrent = 2, spinSpeeds = ['400', '800', '1200', '1600'], numberOfRinses = LaundryWasherControls.NumberOfRinses.Normal, supportedRinses = [LaundryWasherControls.NumberOfRinses.None, LaundryWasherControls.NumberOfRinses.Normal, LaundryWasherControls.NumberOfRinses.Max, LaundryWasherControls.NumberOfRinses.Extra]) {
39
104
  this.behaviors.require(LaundryWasherControlsServer.with(LaundryWasherControls.Feature.Spin, LaundryWasherControls.Feature.Rinse), {
40
105
  spinSpeeds,
41
- spinSpeedCurrent,
106
+ spinSpeedCurrent, // Writable and nullable
42
107
  supportedRinses,
43
- numberOfRinses,
108
+ numberOfRinses, // Writable
44
109
  });
45
110
  return this;
46
111
  }
112
+ /**
113
+ * Creates a TemperatureControl Cluster Server with feature TemperatureLevel.
114
+ *
115
+ * @param {number} selectedTemperatureLevel - The selected temperature level as an index of the supportedTemperatureLevels array. Defaults to 1 (which corresponds to 'Warm').
116
+ * @param {string[]} supportedTemperatureLevels - The supported temperature levels. Defaults to ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']. Fixed attribute.
117
+ *
118
+ * @returns {this} The current MatterbridgeEndpoint instance for chaining.
119
+ */
47
120
  createLevelTemperatureControlClusterServer(selectedTemperatureLevel = 1, supportedTemperatureLevels = ['Cold', 'Warm', 'Hot', '30°', '40°', '60°', '80°']) {
48
121
  this.behaviors.require(MatterbridgeLevelTemperatureControlServer.with(TemperatureControl.Feature.TemperatureLevel), {
49
122
  selectedTemperatureLevel,
@@ -51,12 +124,22 @@ export class LaundryWasher extends MatterbridgeEndpoint {
51
124
  });
52
125
  return this;
53
126
  }
127
+ /**
128
+ * Creates a TemperatureControl Cluster Server with features TemperatureNumber and TemperatureStep.
129
+ *
130
+ * @param {number} temperatureSetpoint - The temperature setpoint * 100. Defaults to 40 * 100 (which corresponds to 40°C).
131
+ * @param {number} minTemperature - The minimum temperature * 100. Defaults to 30 * 100 (which corresponds to 30°C). Fixed attribute.
132
+ * @param {number} maxTemperature - The maximum temperature * 100. Defaults to 60 * 100 (which corresponds to 60°C). Fixed attribute.
133
+ * @param {number} [step] - The step size for temperature changes. Defaults to 10 * 100 (which corresponds to 10°C). Fixed attribute.
134
+ *
135
+ * @returns {this} The current MatterbridgeEndpoint instance for chaining.
136
+ */
54
137
  createNumberTemperatureControlClusterServer(temperatureSetpoint = 40 * 100, minTemperature = 30 * 100, maxTemperature = 60 * 100, step = 10 * 100) {
55
138
  this.behaviors.require(MatterbridgeNumberTemperatureControlServer.with(TemperatureControl.Feature.TemperatureNumber, TemperatureControl.Feature.TemperatureStep), {
56
139
  temperatureSetpoint,
57
- minTemperature,
58
- maxTemperature,
59
- step,
140
+ minTemperature, // Fixed attribute
141
+ maxTemperature, // Fixed attribute
142
+ step, // Fixed attribute
60
143
  });
61
144
  return this;
62
145
  }
@@ -105,6 +188,7 @@ export class MatterbridgeLaundryWasherModeServer extends LaundryWasherModeServer
105
188
  device.log.info(`MatterbridgeLaundryWasherModeServer initialized: currentMode is ${this.state.currentMode}`);
106
189
  this.reactTo(this.agent.get(MatterbridgeOnOffServer).events.onOff$Changed, this.handleOnOffChange);
107
190
  }
191
+ // Dead Front OnOff Cluster
108
192
  handleOnOffChange(onOff) {
109
193
  const device = this.endpoint.stateOf(MatterbridgeServer);
110
194
  device.log.info(`HandleOnOffChange (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
@@ -129,3 +213,4 @@ export class MatterbridgeLaundryWasherModeServer extends LaundryWasherModeServer
129
213
  }
130
214
  }
131
215
  }
216
+ //# sourceMappingURL=laundryWasher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"laundryWasher.js","sourceRoot":"","s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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"}
@@ -0,0 +1,2 @@
1
+ export * from 'node-ansi-logger';
2
+ //# sourceMappingURL=export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/logger/export.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from 'node-ansi-logger';
2
+ //# sourceMappingURL=export.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/logger/export.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@matter/node/behaviors';
2
+ //# sourceMappingURL=behaviors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"behaviors.d.ts","sourceRoot":"","sources":["../../src/matter/behaviors.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC"}
@@ -1 +1,3 @@
1
+ // @matter
1
2
  export * from '@matter/node/behaviors';
3
+ //# sourceMappingURL=behaviors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"behaviors.js","sourceRoot":"","sources":["../../src/matter/behaviors.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@matter/types/clusters';
2
+ //# sourceMappingURL=clusters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusters.d.ts","sourceRoot":"","sources":["../../src/matter/clusters.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC"}
@@ -1 +1,3 @@
1
+ // @matter
1
2
  export * from '@matter/types/clusters';
3
+ //# sourceMappingURL=clusters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusters.js","sourceRoot":"","sources":["../../src/matter/clusters.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '@matter/node/devices';
2
+ //# sourceMappingURL=devices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../../src/matter/devices.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC"}
@@ -1 +1,3 @@
1
+ // @matter
1
2
  export * from '@matter/node/devices';
3
+ //# sourceMappingURL=devices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/matter/devices.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { AggregatorEndpoint, ElectricalSensorEndpoint, PowerSourceEndpoint, BridgedNodeEndpoint, RootEndpoint, DeviceEnergyManagementEndpoint, OtaProviderEndpoint, OtaRequestorEndpoint } from '@matter/node/endpoints';
2
+ //# sourceMappingURL=endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/matter/endpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,YAAY,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1 +1,3 @@
1
+ // @matter
1
2
  export { AggregatorEndpoint, ElectricalSensorEndpoint, PowerSourceEndpoint, BridgedNodeEndpoint, RootEndpoint, DeviceEnergyManagementEndpoint, OtaProviderEndpoint, OtaRequestorEndpoint } from '@matter/node/endpoints';
3
+ //# sourceMappingURL=endpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/matter/endpoints.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,YAAY,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from '@matter/main';
2
+ export { SemanticNamespace, ClosureTag, CompassDirectionTag, CompassLocationTag, DirectionTag, ElectricalMeasurementTag, LaundryTag, LevelTag, LocationTag, NumberTag, PositionTag, PowerSourceTag, RefrigeratorTag, RoomAirConditionerTag, SwitchesTag, } from '@matter/main';
3
+ export { AttributeElement, ClusterElement, ClusterModel, CommandElement, EventElement, FieldElement } from '@matter/main/model';
4
+ export { MdnsService, Val } from '@matter/main/protocol';
5
+ //# sourceMappingURL=export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/matter/export.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,WAAW,EACX,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAChI,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,4 +1,7 @@
1
+ /* eslint-disable import/export */
2
+ // @matter
1
3
  export * from '@matter/main';
2
4
  export { SemanticNamespace, ClosureTag, CompassDirectionTag, CompassLocationTag, DirectionTag, ElectricalMeasurementTag, LaundryTag, LevelTag, LocationTag, NumberTag, PositionTag, PowerSourceTag, RefrigeratorTag, RoomAirConditionerTag, SwitchesTag, } from '@matter/main';
3
5
  export { AttributeElement, ClusterElement, ClusterModel, CommandElement, EventElement, FieldElement } from '@matter/main/model';
4
6
  export { MdnsService, Val } from '@matter/main/protocol';
7
+ //# sourceMappingURL=export.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/matter/export.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,UAAU;AACV,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,WAAW,EACX,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAChI,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from '@matter/types';
2
+ export { Semtag, ClusterRegistry } from '@matter/types';
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/matter/types.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
@@ -1,2 +1,5 @@
1
+ /* eslint-disable import/export */
2
+ // @matter
1
3
  export * from '@matter/types';
2
4
  export { ClusterRegistry } from '@matter/types';
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/matter/types.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,UAAU;AACV,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAU,eAAe,EAAE,MAAM,eAAe,CAAC"}