matterbridge 3.0.3 → 3.0.4-dev-20250525-b1cbfb7

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 (164) hide show
  1. package/CHANGELOG.md +25 -4
  2. package/README.md +6 -12
  3. package/dist/cli.js +2 -37
  4. package/dist/cluster/export.js +0 -2
  5. package/dist/defaultConfigSchema.js +0 -23
  6. package/dist/deviceManager.js +1 -94
  7. package/dist/frontend.js +100 -437
  8. package/dist/helpers.js +9 -53
  9. package/dist/index.js +1 -27
  10. package/dist/logger/export.js +0 -1
  11. package/dist/matter/behaviors.js +0 -2
  12. package/dist/matter/clusters.js +0 -2
  13. package/dist/matter/devices.js +0 -2
  14. package/dist/matter/endpoints.js +0 -2
  15. package/dist/matter/export.js +1 -3
  16. package/dist/matter/types.js +0 -2
  17. package/dist/matterbridge.js +47 -747
  18. package/dist/matterbridgeAccessoryPlatform.js +0 -34
  19. package/dist/matterbridgeBehaviors.js +43 -61
  20. package/dist/matterbridgeDeviceTypes.js +15 -563
  21. package/dist/matterbridgeDynamicPlatform.js +0 -34
  22. package/dist/matterbridgeEndpoint.js +68 -837
  23. package/dist/matterbridgeEndpointHelpers.js +33 -204
  24. package/dist/matterbridgePlatform.js +7 -225
  25. package/dist/matterbridgeTypes.js +0 -24
  26. package/dist/pluginManager.js +3 -264
  27. package/dist/roboticVacuumCleaner.js +3 -78
  28. package/dist/shelly.js +7 -155
  29. package/dist/storage/export.js +0 -1
  30. package/dist/update.js +0 -53
  31. package/dist/utils/colorUtils.js +2 -205
  32. package/dist/utils/commandLine.js +0 -53
  33. package/dist/utils/copyDirectory.js +1 -37
  34. package/dist/utils/createZip.js +2 -42
  35. package/dist/utils/deepCopy.js +0 -38
  36. package/dist/utils/deepEqual.js +1 -71
  37. package/dist/utils/export.js +0 -1
  38. package/dist/utils/hex.js +0 -57
  39. package/dist/utils/isvalid.js +0 -100
  40. package/dist/utils/network.js +5 -76
  41. package/dist/utils/wait.js +9 -58
  42. package/dist/waterHeater.js +0 -52
  43. package/npm-shrinkwrap.json +10 -10
  44. package/package.json +2 -3
  45. package/dist/cli.d.ts +0 -29
  46. package/dist/cli.d.ts.map +0 -1
  47. package/dist/cli.js.map +0 -1
  48. package/dist/cluster/export.d.ts +0 -2
  49. package/dist/cluster/export.d.ts.map +0 -1
  50. package/dist/cluster/export.js.map +0 -1
  51. package/dist/defaultConfigSchema.d.ts +0 -27
  52. package/dist/defaultConfigSchema.d.ts.map +0 -1
  53. package/dist/defaultConfigSchema.js.map +0 -1
  54. package/dist/deviceManager.d.ts +0 -114
  55. package/dist/deviceManager.d.ts.map +0 -1
  56. package/dist/deviceManager.js.map +0 -1
  57. package/dist/frontend.d.ts +0 -241
  58. package/dist/frontend.d.ts.map +0 -1
  59. package/dist/frontend.js.map +0 -1
  60. package/dist/helpers.d.ts +0 -47
  61. package/dist/helpers.d.ts.map +0 -1
  62. package/dist/helpers.js.map +0 -1
  63. package/dist/index.d.ts +0 -35
  64. package/dist/index.d.ts.map +0 -1
  65. package/dist/index.js.map +0 -1
  66. package/dist/logger/export.d.ts +0 -2
  67. package/dist/logger/export.d.ts.map +0 -1
  68. package/dist/logger/export.js.map +0 -1
  69. package/dist/matter/behaviors.d.ts +0 -2
  70. package/dist/matter/behaviors.d.ts.map +0 -1
  71. package/dist/matter/behaviors.js.map +0 -1
  72. package/dist/matter/clusters.d.ts +0 -2
  73. package/dist/matter/clusters.d.ts.map +0 -1
  74. package/dist/matter/clusters.js.map +0 -1
  75. package/dist/matter/devices.d.ts +0 -2
  76. package/dist/matter/devices.d.ts.map +0 -1
  77. package/dist/matter/devices.js.map +0 -1
  78. package/dist/matter/endpoints.d.ts +0 -2
  79. package/dist/matter/endpoints.d.ts.map +0 -1
  80. package/dist/matter/endpoints.js.map +0 -1
  81. package/dist/matter/export.d.ts +0 -5
  82. package/dist/matter/export.d.ts.map +0 -1
  83. package/dist/matter/export.js.map +0 -1
  84. package/dist/matter/types.d.ts +0 -3
  85. package/dist/matter/types.d.ts.map +0 -1
  86. package/dist/matter/types.js.map +0 -1
  87. package/dist/matterbridge.d.ts +0 -445
  88. package/dist/matterbridge.d.ts.map +0 -1
  89. package/dist/matterbridge.js.map +0 -1
  90. package/dist/matterbridgeAccessoryPlatform.d.ts +0 -40
  91. package/dist/matterbridgeAccessoryPlatform.d.ts.map +0 -1
  92. package/dist/matterbridgeAccessoryPlatform.js.map +0 -1
  93. package/dist/matterbridgeBehaviors.d.ts +0 -1201
  94. package/dist/matterbridgeBehaviors.d.ts.map +0 -1
  95. package/dist/matterbridgeBehaviors.js.map +0 -1
  96. package/dist/matterbridgeDeviceTypes.d.ts +0 -629
  97. package/dist/matterbridgeDeviceTypes.d.ts.map +0 -1
  98. package/dist/matterbridgeDeviceTypes.js.map +0 -1
  99. package/dist/matterbridgeDynamicPlatform.d.ts +0 -40
  100. package/dist/matterbridgeDynamicPlatform.d.ts.map +0 -1
  101. package/dist/matterbridgeDynamicPlatform.js.map +0 -1
  102. package/dist/matterbridgeEndpoint.d.ts +0 -967
  103. package/dist/matterbridgeEndpoint.d.ts.map +0 -1
  104. package/dist/matterbridgeEndpoint.js.map +0 -1
  105. package/dist/matterbridgeEndpointHelpers.d.ts +0 -2728
  106. package/dist/matterbridgeEndpointHelpers.d.ts.map +0 -1
  107. package/dist/matterbridgeEndpointHelpers.js.map +0 -1
  108. package/dist/matterbridgePlatform.d.ts +0 -294
  109. package/dist/matterbridgePlatform.d.ts.map +0 -1
  110. package/dist/matterbridgePlatform.js.map +0 -1
  111. package/dist/matterbridgeTypes.d.ts +0 -188
  112. package/dist/matterbridgeTypes.d.ts.map +0 -1
  113. package/dist/matterbridgeTypes.js.map +0 -1
  114. package/dist/pluginManager.d.ts +0 -273
  115. package/dist/pluginManager.d.ts.map +0 -1
  116. package/dist/pluginManager.js.map +0 -1
  117. package/dist/roboticVacuumCleaner.d.ts +0 -82
  118. package/dist/roboticVacuumCleaner.d.ts.map +0 -1
  119. package/dist/roboticVacuumCleaner.js.map +0 -1
  120. package/dist/shelly.d.ts +0 -153
  121. package/dist/shelly.d.ts.map +0 -1
  122. package/dist/shelly.js.map +0 -1
  123. package/dist/storage/export.d.ts +0 -2
  124. package/dist/storage/export.d.ts.map +0 -1
  125. package/dist/storage/export.js.map +0 -1
  126. package/dist/update.d.ts +0 -58
  127. package/dist/update.d.ts.map +0 -1
  128. package/dist/update.js.map +0 -1
  129. package/dist/utils/colorUtils.d.ts +0 -61
  130. package/dist/utils/colorUtils.d.ts.map +0 -1
  131. package/dist/utils/colorUtils.js.map +0 -1
  132. package/dist/utils/commandLine.d.ts +0 -58
  133. package/dist/utils/commandLine.d.ts.map +0 -1
  134. package/dist/utils/commandLine.js.map +0 -1
  135. package/dist/utils/copyDirectory.d.ts +0 -32
  136. package/dist/utils/copyDirectory.d.ts.map +0 -1
  137. package/dist/utils/copyDirectory.js.map +0 -1
  138. package/dist/utils/createZip.d.ts +0 -38
  139. package/dist/utils/createZip.d.ts.map +0 -1
  140. package/dist/utils/createZip.js.map +0 -1
  141. package/dist/utils/deepCopy.d.ts +0 -31
  142. package/dist/utils/deepCopy.d.ts.map +0 -1
  143. package/dist/utils/deepCopy.js.map +0 -1
  144. package/dist/utils/deepEqual.d.ts +0 -53
  145. package/dist/utils/deepEqual.d.ts.map +0 -1
  146. package/dist/utils/deepEqual.js.map +0 -1
  147. package/dist/utils/export.d.ts +0 -11
  148. package/dist/utils/export.d.ts.map +0 -1
  149. package/dist/utils/export.js.map +0 -1
  150. package/dist/utils/hex.d.ts +0 -48
  151. package/dist/utils/hex.d.ts.map +0 -1
  152. package/dist/utils/hex.js.map +0 -1
  153. package/dist/utils/isvalid.d.ts +0 -102
  154. package/dist/utils/isvalid.d.ts.map +0 -1
  155. package/dist/utils/isvalid.js.map +0 -1
  156. package/dist/utils/network.d.ts +0 -69
  157. package/dist/utils/network.d.ts.map +0 -1
  158. package/dist/utils/network.js.map +0 -1
  159. package/dist/utils/wait.d.ts +0 -52
  160. package/dist/utils/wait.d.ts.map +0 -1
  161. package/dist/utils/wait.js.map +0 -1
  162. package/dist/waterHeater.d.ts +0 -75
  163. package/dist/waterHeater.d.ts.map +0 -1
  164. package/dist/waterHeater.js.map +0 -1
@@ -1,28 +1,4 @@
1
- /**
2
- * This file contains the class MatterbridgeDevice.
3
- *
4
- * @file matterbridgeDeviceTypes.ts
5
- * @author Luca Liguori
6
- * @date 2024-11-08
7
- * @version 1.0.0
8
- *
9
- * Copyright 2024, 2025, 2026 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
- // @matter
24
1
  import { DeviceTypeId } from '@matter/main';
25
- // @matter clusters
26
2
  import { BooleanState } from '@matter/main/clusters/boolean-state';
27
3
  import { BooleanStateConfiguration } from '@matter/main/clusters/boolean-state-configuration';
28
4
  import { BridgedDeviceBasicInformation } from '@matter/main/clusters/bridged-device-basic-information';
@@ -92,42 +68,15 @@ import { OtaSoftwareUpdateRequestor } from '@matter/main/clusters/ota-software-u
92
68
  import { EnergyEvse, EnergyEvseMode, OtaSoftwareUpdateProvider, WaterHeaterManagement, WaterHeaterMode } from '@matter/main/clusters';
93
69
  export var DeviceClasses;
94
70
  (function (DeviceClasses) {
95
- /** Node device type. */
96
71
  DeviceClasses["Node"] = "Node";
97
- /**
98
- * Application device type.
99
- * Application devices types are typically the most datatype endpoints on a node and in the network.
100
- */
101
72
  DeviceClasses["App"] = "App";
102
- /**
103
- * Utility device type.
104
- * A Utility device type supports configuration and settings.
105
- */
106
73
  DeviceClasses["Utility"] = "Utility";
107
- /**
108
- * Simple device type.
109
- * A Simple device type supports local control that is persistent, independent, and unsupervised.
110
- */
111
74
  DeviceClasses["Simple"] = "Simple";
112
- /**
113
- * Dynamic device type.
114
- * A Dynamic device type supports intelligent and supervisory services, such as commissioning,
115
- * monitoring, trend analysis, scheduling and central management. A dynamic device type is an
116
- * application device type.
117
- */
118
75
  DeviceClasses["Dynamic"] = "Dynamic";
119
- /** There exists a client application cluster on the endpoint. */
120
76
  DeviceClasses["Client"] = "Client";
121
- /** There exists a server application cluster on the endpoint. */
122
77
  DeviceClasses["Server"] = "Server";
123
- /** The device type is composed of 2 or more device types. */
124
78
  DeviceClasses["Composed"] = "Composed";
125
- /** The endpoint and at least one of its sibling endpoints have an overlap in application device type(s). */
126
79
  DeviceClasses["Duplicate"] = "Duplicate";
127
- /**
128
- * The endpoint represents a Bridged Device, for which information about the state of
129
- * its power source is available to the Bridge
130
- */
131
80
  DeviceClasses["BridgedPowerSourceInfo"] = "BridgedPowerSourceInfo";
132
81
  })(DeviceClasses || (DeviceClasses = {}));
133
82
  export const DeviceTypeDefinition = ({ name, code, deviceClass, revision, requiredServerClusters = [], optionalServerClusters = [], requiredClientClusters = [], optionalClientClusters = [], }) => ({
@@ -140,7 +89,6 @@ export const DeviceTypeDefinition = ({ name, code, deviceClass, revision, requir
140
89
  requiredClientClusters,
141
90
  optionalClientClusters,
142
91
  });
143
- // Chapter 2. Utility device types
144
92
  export const powerSource = DeviceTypeDefinition({
145
93
  name: 'MA-powerSource',
146
94
  code: 0x0011,
@@ -169,27 +117,6 @@ export const OTAProvider = DeviceTypeDefinition({
169
117
  requiredClientClusters: [OtaSoftwareUpdateRequestor.Cluster.id],
170
118
  optionalClientClusters: [],
171
119
  });
172
- /**
173
- 2.5.3. Conditions
174
- Please see the Base Device Type definition for conformance tags.
175
- This device type SHALL only be used for Nodes which have a device type of Bridge.
176
-
177
- 2.5.5. Cluster Requirements
178
- Each endpoint supporting this device type SHALL include these clusters based on the conformance
179
- defined below.
180
- - 0x0039 Bridged Device Basic Information Server
181
-
182
- 2.5.6. Endpoint Composition
183
- • A Bridged Node endpoint SHALL support one of the following composition patterns:
184
- ◦ Separate Endpoints: All application device types are supported on separate endpoints, and
185
- not on the Bridged Node endpoint. The Bridged Node endpoint’s Descriptor cluster PartsList
186
- attribute SHALL indicate a list of all endpoints representing the functionality of the bridged
187
- device, including the endpoints supporting the application device types, i.e. the full-family
188
- pattern defined in the System Model specification.
189
- ◦ One Endpoint: Both the Bridged Node and one or more application device types are sup
190
- ported on the same endpoint (following application device type rules). Endpoint composi
191
- tion SHALL conform to the application device type(s) definition
192
- */
193
120
  export const bridgedNode = DeviceTypeDefinition({
194
121
  name: 'MA-bridgedNode',
195
122
  code: 0x0013,
@@ -198,12 +125,6 @@ export const bridgedNode = DeviceTypeDefinition({
198
125
  requiredServerClusters: [BridgedDeviceBasicInformation.Cluster.id],
199
126
  optionalServerClusters: [PowerSource.Cluster.id, EcosystemInformation.Cluster.id, AdministratorCommissioning.Cluster.id],
200
127
  });
201
- /**
202
- 2.6.3. Device Type Requirements
203
- Electrical measurements made by either the Electrical Power Measurement cluster, the Electrical
204
- Energy Measurement cluster, or both SHALL apply to the endpoints indicated by the Power Topology
205
- cluster.
206
- */
207
128
  export const electricalSensor = DeviceTypeDefinition({
208
129
  name: 'MA-electricalSensor',
209
130
  code: 0x0510,
@@ -220,194 +141,77 @@ export const deviceEnergyManagement = DeviceTypeDefinition({
220
141
  requiredServerClusters: [DeviceEnergyManagement.Cluster.id],
221
142
  optionalServerClusters: [DeviceEnergyManagementMode.Cluster.id],
222
143
  });
223
- // Chapter 4. Lightning device types
224
- /**
225
- * Element Requirements:
226
- * - Identify Command TriggerEffect
227
- * - Scenes Management Command CopyScene
228
- * - On/Off Feature Lighting
229
- * - Level Control Feature OnOff
230
- * - Level Control Feature Lighting
231
- * - Level Control Attribute CurrentLevel 1 to 254
232
- * - Level Control Attribute MinLevel 1
233
- * - Level Control Attribute MaxLevel 254
234
- */
235
144
  export const onOffLight = DeviceTypeDefinition({
236
145
  name: 'MA-onofflight',
237
146
  code: 0x0100,
238
147
  deviceClass: DeviceClasses.Simple,
239
148
  revision: 3,
240
- requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, /* ScenesManagement.Cluster.id,*/ OnOff.Cluster.id],
149
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id],
241
150
  optionalServerClusters: [LevelControl.Cluster.id],
242
151
  });
243
- /**
244
- * Element Requirements:
245
- * - Identify Command TriggerEffect
246
- * - Scenes Management Command CopyScene
247
- * - On/Off Feature Lighting
248
- * - Level Control Feature OnOff
249
- * - Level Control Feature Lighting
250
- * - Level Control Attribute CurrentLevel 1 to 254
251
- * - Level Control Attribute MinLevel 1
252
- * - Level Control Attribute MaxLevel 254
253
- */
254
152
  export const dimmableLight = DeviceTypeDefinition({
255
153
  name: 'MA-dimmablelight',
256
154
  code: 0x0101,
257
155
  deviceClass: DeviceClasses.Simple,
258
156
  revision: 3,
259
- requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, /* ScenesManagement.Cluster.id,*/ OnOff.Cluster.id, LevelControl.Cluster.id],
157
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
260
158
  optionalServerClusters: [],
261
159
  });
262
- /**
263
- * Element Requirements:
264
- * - Identify Command TriggerEffect
265
- * - Scenes Management Command CopyScene
266
- * - On/Off Feature Lighting
267
- * - Level Control Feature OnOff
268
- * - Level Control Feature Lighting
269
- * - Level Control Attribute CurrentLevel 1 to 254
270
- * - Level Control Attribute MinLevel 1
271
- * - Level Control Attribute MaxLevel 254
272
- * - Color Control Feature ColorTemperature
273
- * - Color Control Attribute RemainingTime
274
- */
275
160
  export const colorTemperatureLight = DeviceTypeDefinition({
276
161
  name: 'MA-colortemperaturelight',
277
162
  code: 0x010c,
278
163
  deviceClass: DeviceClasses.Simple,
279
164
  revision: 4,
280
- requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, /* ScenesManagement.Cluster.id,*/ OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
165
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
281
166
  optionalServerClusters: [],
282
167
  });
283
- /**
284
- * Element Requirements:
285
- * - Identify Command TriggerEffect
286
- * - Scenes Management Command CopyScene
287
- * - On/Off Feature Lighting
288
- * - Level Control Feature OnOff
289
- * - Level Control Feature Lighting
290
- * - Level Control Attribute CurrentLevel 1 to 254
291
- * - Level Control Attribute MinLevel 1
292
- * - Level Control Attribute MaxLevel 254
293
- * - Color Control Feature XY
294
- * - Color Control Feature ColorTemperature
295
- * - Color Control Attribute RemainingTime
296
- */
297
168
  export const extendedColorLight = DeviceTypeDefinition({
298
169
  name: 'MA-extendedcolorlight',
299
170
  code: 0x010d,
300
171
  deviceClass: DeviceClasses.Simple,
301
172
  revision: 4,
302
- requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, /* ScenesManagement.Cluster.id,*/ OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
173
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
303
174
  optionalServerClusters: [],
304
175
  });
305
- // Chapter 5. Smart plugs/Outlets and other Actuators device types
306
- /**
307
- * Element Requirements:
308
- * - Identify Command TriggerEffect
309
- * - Scenes Management Command CopyScene
310
- * - On/Off Feature Lighting
311
- * - Level Control Feature OnOff
312
- * - Level Control Feature Lighting
313
- * - Level Control Attribute CurrentLevel 1 to 254
314
- * - Level Control Attribute MinLevel 1
315
- * - Level Control Attribute MaxLevel 254
316
- */
317
176
  export const onOffOutlet = DeviceTypeDefinition({
318
177
  name: 'MA-onoffpluginunit',
319
178
  code: 0x010a,
320
179
  deviceClass: DeviceClasses.Simple,
321
180
  revision: 3,
322
- requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, /* ScenesManagement.Cluster.id,*/ OnOff.Cluster.id],
181
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id],
323
182
  optionalServerClusters: [LevelControl.Cluster.id],
324
183
  });
325
- /**
326
- * Element Requirements:
327
- * - Identify Command TriggerEffect
328
- * - Scenes Management Command CopyScene
329
- * - On/Off Feature Lighting
330
- * - Level Control Feature OnOff
331
- * - Level Control Feature Lighting
332
- * - Level Control Attribute CurrentLevel 1 to 254
333
- * - Level Control Attribute MinLevel 1
334
- * - Level Control Attribute MaxLevel 254
335
- */
336
184
  export const dimmableOutlet = DeviceTypeDefinition({
337
185
  name: 'MA-dimmablepluginunit',
338
186
  code: 0x010b,
339
187
  deviceClass: DeviceClasses.Simple,
340
188
  revision: 4,
341
- requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, /* ScenesManagement.Cluster.id,*/ OnOff.Cluster.id, LevelControl.Cluster.id],
189
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
342
190
  optionalServerClusters: [],
343
191
  });
344
- /**
345
- * A Mounted On/Off Control is a fixed device that provides power to another device that is plugged
346
- * into it, and is capable of switching that provided power on or off.
347
- * It is a simple device type that does not require any client clusters.
348
- * Element Requirements:
349
- * - Identify Command TriggerEffect
350
- * - Scenes Management Command CopyScene
351
- * - On/Off Feature Lighting
352
- * - Level Control Feature OnOff
353
- * - Level Control Feature Lighting
354
- * - Level Control Attribute CurrentLevel 1 to 254
355
- * - Level Control Attribute MinLevel 1
356
- * - Level Control Attribute MaxLevel 254
357
- */
358
192
  export const onOffMountedSwitch = DeviceTypeDefinition({
359
193
  name: 'MA-onoffmountedswitch',
360
194
  code: 0x010f,
361
195
  deviceClass: DeviceClasses.Simple,
362
196
  revision: 1,
363
- requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, /* ScenesManagement.Cluster.id,*/ OnOff.Cluster.id],
197
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id],
364
198
  optionalServerClusters: [LevelControl.Cluster.id],
365
199
  });
366
- /**
367
- * A Mounted Dimmable Load Control is a fixed device that provides power to another device that is
368
- * plugged into it, and is capable of being switched on or off and have its level adjusted. The Mounted
369
- * Dimmable Load Control is typically used to control a conventional non-communicating light
370
- * through its mains connection using phase cutting.
371
- * It is a simple device type that does not require any client clusters.
372
- * Element Requirements:
373
- * - Identify Command TriggerEffect
374
- * - Scenes Management Command CopyScene
375
- * - On/Off Feature Lighting
376
- * - Level Control Feature OnOff
377
- * - Level Control Feature Lighting
378
- * - Level Control Attribute CurrentLevel 1 to 254
379
- * - Level Control Attribute MinLevel 1
380
- * - Level Control Attribute MaxLevel 254
381
- */
382
200
  export const dimmableMountedSwitch = DeviceTypeDefinition({
383
201
  name: 'MA-dimmablemountedswitch',
384
202
  code: 0x0110,
385
203
  deviceClass: DeviceClasses.Simple,
386
204
  revision: 1,
387
- requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, /* ScenesManagement.Cluster.id,*/ OnOff.Cluster.id, LevelControl.Cluster.id],
205
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
388
206
  optionalServerClusters: [],
389
207
  });
390
- /**
391
- * Remark:
392
- * On/Off Cluster:
393
- * - Off If the pump is powered on, store the current level then immediately power it off.
394
- * - On If the pump is powered off, power it on and move immediately to the level stored by a previous Off command. If no such level has been stored,
395
- * move immediately to the maximum level allowed for the pump.
396
- * - Toggle If the pump is powered on, proceed as for the Off command. If the device is powered off, proceed as for the On command.
397
- *
398
- * LevelControl cluster:
399
- * Level Setpoint Meaning
400
- * 0 N/A Pump is stopped,
401
- * 1–200 Level / 2 (0.5–100.0%) Pump setpoint in percent
402
- * 201–255 100.0% Pump setpoint is 100.0%
403
- */
404
208
  export const pumpDevice = DeviceTypeDefinition({
405
209
  name: 'MA-pump',
406
210
  code: 0x303,
407
211
  deviceClass: DeviceClasses.Simple,
408
212
  revision: 3,
409
213
  requiredServerClusters: [OnOff.Cluster.id, PumpConfigurationAndControl.Cluster.id, Identify.Cluster.id],
410
- optionalServerClusters: [LevelControl.Cluster.id, Groups.Cluster.id, /* ScenesManagement.Cluster.id, */ TemperatureMeasurement.Cluster.id, PressureMeasurement.Cluster.id, FlowMeasurement.Cluster.id],
214
+ optionalServerClusters: [LevelControl.Cluster.id, Groups.Cluster.id, TemperatureMeasurement.Cluster.id, PressureMeasurement.Cluster.id, FlowMeasurement.Cluster.id],
411
215
  });
412
216
  export const waterValve = DeviceTypeDefinition({
413
217
  name: 'MA-waterValve',
@@ -417,33 +221,29 @@ export const waterValve = DeviceTypeDefinition({
417
221
  requiredServerClusters: [Identify.Cluster.id, ValveConfigurationAndControl.Cluster.id],
418
222
  optionalServerClusters: [FlowMeasurement.Cluster.id],
419
223
  });
420
- // Chapter 6. Switches and Controls device types
421
- // Custom device types without client clusters (not working in Alexa)
422
224
  export const onOffSwitch = DeviceTypeDefinition({
423
225
  name: 'MA-onoffswitch',
424
226
  code: 0x0103,
425
227
  deviceClass: DeviceClasses.Simple,
426
228
  revision: 3,
427
229
  requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id],
428
- optionalServerClusters: [Groups.Cluster.id /* , ScenesManagement.Cluster.id*/],
230
+ optionalServerClusters: [Groups.Cluster.id],
429
231
  });
430
- // Custom device types without client clusters (not working in Alexa)
431
232
  export const dimmableSwitch = DeviceTypeDefinition({
432
233
  name: 'MA-dimmableswitch',
433
234
  code: 0x0104,
434
235
  deviceClass: DeviceClasses.Simple,
435
236
  revision: 3,
436
237
  requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
437
- optionalServerClusters: [Groups.Cluster.id /* , ScenesManagement.Cluster.id*/],
238
+ optionalServerClusters: [Groups.Cluster.id],
438
239
  });
439
- // Custom device types without client clusters (not working in Alexa)
440
240
  export const colorTemperatureSwitch = DeviceTypeDefinition({
441
241
  name: 'MA-colortemperatureswitch',
442
242
  code: 0x0105,
443
243
  deviceClass: DeviceClasses.Simple,
444
244
  revision: 3,
445
245
  requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
446
- optionalServerClusters: [Groups.Cluster.id /* , ScenesManagement.Cluster.id*/],
246
+ optionalServerClusters: [Groups.Cluster.id],
447
247
  });
448
248
  export const genericSwitch = DeviceTypeDefinition({
449
249
  name: 'MA-genericswitch',
@@ -453,11 +253,6 @@ export const genericSwitch = DeviceTypeDefinition({
453
253
  requiredServerClusters: [Identify.Cluster.id, Switch.Cluster.id],
454
254
  optionalServerClusters: [],
455
255
  });
456
- // Chapter 7. Sensor device types
457
- /**
458
- * Closed or contact: state true
459
- * Open or no contact: state false
460
- */
461
256
  export const contactSensor = DeviceTypeDefinition({
462
257
  name: 'MA-contactsensor',
463
258
  code: 0x0015,
@@ -509,7 +304,6 @@ export const humiditySensor = DeviceTypeDefinition({
509
304
  revision: 2,
510
305
  requiredServerClusters: [Identify.Cluster.id, RelativeHumidityMeasurement.Cluster.id],
511
306
  });
512
- // Remark: A Smoke CO Alarm device type SHALL support an instance of a Power Source device type on some endpoint.
513
307
  export const smokeCoAlarm = DeviceTypeDefinition({
514
308
  name: 'MA-smokeCoAlarm',
515
309
  code: 0x0076,
@@ -563,15 +357,6 @@ export const rainSensor = DeviceTypeDefinition({
563
357
  requiredServerClusters: [Identify.Cluster.id, BooleanState.Cluster.id],
564
358
  optionalServerClusters: [BooleanStateConfiguration.Cluster.id],
565
359
  });
566
- // Closures device types
567
- /**
568
- * A Door Lock is a device used to secure a door. It is possible to actuate a door lock either by means of a manual or a remote method.
569
- * Element Requirements:
570
- *
571
- * - AccessControl Attribute Extension
572
- * - DoorLock Feature User
573
- * - DoorLock Attribute AlarmMask
574
- */
575
360
  export const doorLockDevice = DeviceTypeDefinition({
576
361
  name: 'MA-doorLock',
577
362
  code: 0xa,
@@ -588,15 +373,6 @@ export const coverDevice = DeviceTypeDefinition({
588
373
  requiredServerClusters: [Identify.Cluster.id, WindowCovering.Cluster.id],
589
374
  optionalServerClusters: [Groups.Cluster.id],
590
375
  });
591
- // HVAC device types
592
- /**
593
- * A Thermostat device is capable of having either built-in or separate sensors for temperature,
594
- * humidity or occupancy. It allows the desired temperature to be set either remotely or locally. The
595
- * thermostat is capable of sending heating and/or cooling requirement notifications to a heating/cooling
596
- * unit (for example, an indoor air handler) or is capable of including a mechanism to control a
597
- * heating or cooling unit directly.
598
- *
599
- */
600
376
  export const thermostatDevice = DeviceTypeDefinition({
601
377
  name: 'MA-thermostat',
602
378
  code: 0x301,
@@ -605,25 +381,6 @@ export const thermostatDevice = DeviceTypeDefinition({
605
381
  requiredServerClusters: [Identify.Cluster.id, Thermostat.Cluster.id],
606
382
  optionalServerClusters: [Groups.Cluster.id, ThermostatUserInterfaceConfiguration.Cluster.id, EnergyPreference.Cluster.id],
607
383
  });
608
- /**
609
- * A Fan device is typically standalone or mounted on a ceiling or wall and is used to circulate air in a room.
610
- * Remark: it may have a thermostat device type.
611
- * Additional device types MAY also be included in device compositions.
612
- * Element Requirements:
613
- * The FanControl cluster must have the FanModeSequence attribute.
614
- *
615
- * The On/Off cluster is independent from the Fan Control Cluster’s FanMode attribute, which also
616
- * includes an Off setting.
617
- * If the FanMode attribute of the Fan Control cluster is set to a value other than Off when the OnOff
618
- * attribute of the On/Off cluster transitions from TRUE to FALSE, it may be desirable to restore the
619
- * FanMode, SpeedSetting and PercentSetting attribute values of the Fan Control cluster when the OnOff
620
- * attribute of the On/Off cluster later transitions from FALSE to TRUE. If the FanMode is set to Off when
621
- * the device is turned off, this information is lost, as the SpeedSetting and PercentSetting will be set to
622
- * zero. Using the On/Off cluster alongside the Fan Control cluster allows the FanMode, SpeedSetting and
623
- * PercentSetting to remain unchanged when the device is turned off. In this case, the On/Off cluster
624
- * would be set to Off, and the SpeedCurrent and PercentCurrent set to zero, without changing FanMode,
625
- * SpeedSetting and PercentSetting.
626
- */
627
384
  export const fanDevice = DeviceTypeDefinition({
628
385
  name: 'MA-fan',
629
386
  code: 0x2b,
@@ -632,35 +389,6 @@ export const fanDevice = DeviceTypeDefinition({
632
389
  requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, FanControl.Cluster.id],
633
390
  optionalServerClusters: [OnOff.Cluster.id],
634
391
  });
635
- /**
636
- * An Air Purifier is a standalone device that is designed to clean the air in a room.
637
- * It is a device that has a fan to control the air speed while it is operating. Optionally, it can report on
638
- * the condition of its filters.
639
- *
640
- * Remark:
641
- * An Air Purifier MAY expose elements of its functionality through one or more additional device
642
- * types on different endpoints. All devices used in compositions SHALL adhere to the disambiguation
643
- * requirements of the System Model. Other device types, not explicitly listed in the table, MAY also be
644
- * included in device compositions but are not considered part of the core functionality of the device.
645
- * 0x0301 Thermostat O
646
- * 0x0302 Temperature Sensor O
647
- * 0x0307 Humidity Sensor O
648
- * 0x002C Air Quality Sensor O
649
- *
650
- * Cluster Restrictions:
651
- * The On/Off cluster is independent from the Fan Control Cluster’s FanMode attribute, which also
652
- * includes an Off setting.
653
- * If the FanMode attribute of the Fan Control cluster is set to a value other than Off when the OnOff
654
- * attribute of the On/Off cluster transitions from TRUE to FALSE, it may be desirable to restore the
655
- * FanMode, SpeedSetting and PercentSetting attribute values of the Fan Control cluster when the OnOff
656
- * attribute of the On/Off cluster later transitions from FALSE to TRUE. If the FanMode is set to Off when
657
- * the device is turned off, this information is lost, as the SpeedSetting and PercentSetting will be set to
658
- * zero. Using the On/Off cluster alongside the Fan Control cluster allows the FanMode, SpeedSetting and
659
- * PercentSetting to remain unchanged when the device is turned off. In this case, the On/Off cluster
660
- * would be set to Off, and the SpeedCurrent and PercentCurrent set to zero, without changing FanMode,
661
- * SpeedSetting and PercentSetting.
662
- *
663
- */
664
392
  export const airPurifier = DeviceTypeDefinition({
665
393
  name: 'MA-airPurifier',
666
394
  code: 0x2d,
@@ -669,7 +397,6 @@ export const airPurifier = DeviceTypeDefinition({
669
397
  requiredServerClusters: [Identify.Cluster.id, FanControl.Cluster.id],
670
398
  optionalServerClusters: [Groups.Cluster.id, OnOff.Cluster.id, HepaFilterMonitoring.Cluster.id, ActivatedCarbonFilterMonitoring.Cluster.id],
671
399
  });
672
- // Generic device types
673
400
  export const modeSelect = DeviceTypeDefinition({
674
401
  name: 'MA-modeselect',
675
402
  code: 0x27,
@@ -677,37 +404,6 @@ export const modeSelect = DeviceTypeDefinition({
677
404
  revision: 1,
678
405
  requiredServerClusters: [ModeSelect.Cluster.id],
679
406
  });
680
- /**
681
- * This device type aggregates endpoints as a collection. Clusters on the endpoint indicating this
682
- * device type provide functionality for the collection of descendant endpoints present in the PartsList
683
- * of the endpoint’s descriptor, for example the Actions cluster.
684
- *
685
- * Endpoint Composition:
686
- * An Aggregator endpoint’s Descriptor cluster PartsList attribute SHALL list the collection of all endpoints
687
- * aggregated by the Aggregator device type, i.e. the full-family pattern defined in the System Model specification.
688
- *
689
- * Disambiguation:
690
- * If the Duplicate condition applies to child endpoints of an Aggregator endpoint that represent multiple
691
- * independent bridged devices, the endpoints SHOULD make available metadata to allow a
692
- * client to disambiguate distinct bridged devices with an overlap in application device types.
693
- *
694
- * Typically this is done using the NodeLabel attribute of the Bridged Device Basic Information cluster
695
- * - thus reusing the naming information which the bridge already has to allow disambiguation to the
696
- * user when using a direct user interface to the bridge.
697
- *
698
- * Actions cluster (9.14 Matter specification):
699
- * If a Bridge has (such) information on topology or logical grouping, it SHOULD expose such information
700
- * in the EndpointLists attribute of an Actions cluster (the ActionLists of which MAY be empty if
701
- * no actions are exposed). 9.12 Matter specification
702
- *
703
- * 9.12.5. New features for Bridged Devices
704
- * Bridged Devices can have their software updated independently of the Bridge, through Bridge Manufacturer-
705
- * specific means. These updates MAY result in one or more changes to their capabilities,
706
- * such as supported clusters and/or attributes, for an endpoint. Like every Matter Node, every endpoint
707
- * on the Bridge’s Node contains a Descriptor cluster that contains attributes for the device types
708
- * (DeviceTypeList), endpoints (PartsList) and supported clusters (ServerList and ClientList). Nodes
709
- * that wish to be notified of such changes SHOULD monitor changes of these attributes.
710
- */
711
407
  export const aggregator = DeviceTypeDefinition({
712
408
  name: 'MA-aggregator',
713
409
  code: 0x000e,
@@ -717,29 +413,6 @@ export const aggregator = DeviceTypeDefinition({
717
413
  optionalServerClusters: [Actions.Cluster.id, Identify.Cluster.id, CommissionerControl.Cluster.id],
718
414
  });
719
415
  export const bridge = aggregator;
720
- // Robotic device types
721
- /**
722
- * A Robotic Vacuum Cleaner is a device that is capable of cleaning floors and other surfaces
723
- * in a home or office environment. It is typically a mobile device that can navigate around
724
- * obstacles and can be controlled remotely.
725
- *
726
- * Cluster Usage:
727
- * The RVC Operational State cluster’s OperationalState attribute SHALL be updated according to the
728
- * state of the device, and therefore it SHOULD be used for monitoring purposes.
729
- *
730
- * To attempt starting a cleaning operation, the RVC Run Mode cluster can be sent a ChangeToMode
731
- * command with the NewMode field set to a mode that has the Cleaning mode tag associated with it.
732
- *
733
- * To attempt stopping a cleaning operation, the RVC Run Mode cluster can be sent a ChangeToMode
734
- * command with the NewMode field set to a mode that has the Idle mode tag associated with it.
735
- *
736
- * To attempt pausing a cleaning operation, the RVC Operational State cluster can be sent a Pause command.
737
- *
738
- * To attempt resuming a cleaning operation, the RVC Operational State cluster can be sent a Resume
739
- * command.
740
- *
741
- *
742
- */
743
416
  export const roboticVacuumCleaner = DeviceTypeDefinition({
744
417
  name: 'MA-roboticvacuumcleaner',
745
418
  code: 0x74,
@@ -748,11 +421,6 @@ export const roboticVacuumCleaner = DeviceTypeDefinition({
748
421
  requiredServerClusters: [Identify.Cluster.id, RvcRunMode.Cluster.id, RvcOperationalState.Cluster.id],
749
422
  optionalServerClusters: [RvcCleanMode.Cluster.id, ServiceArea.Cluster.id],
750
423
  });
751
- // Chapter 13. Appliances device types
752
- /**
753
- * Cluster Restrictions:
754
- * On/Off Cluster: the DF (Dead Front) feature is required
755
- */
756
424
  export const laundryWasher = DeviceTypeDefinition({
757
425
  name: 'MA-laundrywasher',
758
426
  code: 0x73,
@@ -761,13 +429,6 @@ export const laundryWasher = DeviceTypeDefinition({
761
429
  requiredServerClusters: [OperationalState.Cluster.id],
762
430
  optionalServerClusters: [Identify.Cluster.id, LaundryWasherMode.Cluster.id, OnOff.Cluster.id, LaundryWasherControls.Cluster.id, TemperatureControl.Cluster.id],
763
431
  });
764
- /**
765
- * A refrigerator represents a device that contains one or more cabinets that are capable of chilling or freezing food.
766
- * A Refrigerator SHALL be composed of at least one endpoint with the Temperature Controlled Cabinet device type.
767
- *
768
- * Device Type Requirements:
769
- * 0x0071 Temperature Controlled Cabinet
770
- */
771
432
  export const refrigerator = DeviceTypeDefinition({
772
433
  name: 'MA-refrigerator',
773
434
  code: 0x70,
@@ -776,23 +437,6 @@ export const refrigerator = DeviceTypeDefinition({
776
437
  requiredServerClusters: [Identify.Cluster.id, RefrigeratorAndTemperatureControlledCabinetMode.Cluster.id, RefrigeratorAlarm.Cluster.id],
777
438
  optionalServerClusters: [],
778
439
  });
779
- /**
780
- * A Room Air Conditioner is a device with the primary function of controlling the air temperature in a single room.
781
- *
782
- * A Room Air Conditioner MAY have zero or more of each device type listed in this table subject to
783
- * the conformance column of the table. All devices used in compositions SHALL adhere to the disambiguation
784
- * requirements of the System Model. Additional device types not listed in this table MAY also be included in device compositions.
785
- * 0x0302 Temperature Sensor O
786
- * 0x0307 Humidity Sensor O
787
- *
788
- * Remark:
789
- * The DF (Dead Front) feature is required for the On/Off cluster in this device type:
790
- * - Thermostat LocalTemperature null
791
- * - Temperature Measurement MeasuredValue null
792
- * - Relative Humidity Measurement MeasuredValue null
793
- * - Fan Control SpeedSetting null
794
- * - Fan Control PercentSetting null
795
- */
796
440
  export const airConditioner = DeviceTypeDefinition({
797
441
  name: 'MA-airConditioner',
798
442
  code: 0x72,
@@ -801,22 +445,12 @@ export const airConditioner = DeviceTypeDefinition({
801
445
  requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, Thermostat.Cluster.id],
802
446
  optionalServerClusters: [
803
447
  Groups.Cluster.id,
804
- /* ScenesManagement.Cluster.id,*/
805
448
  FanControl.Cluster.id,
806
449
  ThermostatUserInterfaceConfiguration.Cluster.id,
807
450
  TemperatureMeasurement.Cluster.id,
808
451
  RelativeHumidityMeasurement.Cluster.id,
809
452
  ],
810
453
  });
811
- /**
812
- * A Temperature Controlled Cabinet only exists composed as part of another device type. It represents
813
- * a single cabinet that is capable of having its temperature controlled. Such a cabinet may be
814
- * chilling or freezing food, for example as part of a refrigerator, freezer, wine chiller, or other similar
815
- * device. Equally, such a cabinet may be warming or heating food, for example as part of an oven,
816
- * range, or similar device.
817
- * Conditions:
818
- * Cooler The device has cooling functionality.
819
- */
820
454
  export const temperatureControlledCabinetCooler = DeviceTypeDefinition({
821
455
  name: 'MA-temperaturecontrolledcabinetcooler',
822
456
  code: 0x71,
@@ -825,15 +459,6 @@ export const temperatureControlledCabinetCooler = DeviceTypeDefinition({
825
459
  requiredServerClusters: [TemperatureControl.Cluster.id, RefrigeratorAndTemperatureControlledCabinetMode.Cluster.id],
826
460
  optionalServerClusters: [TemperatureMeasurement.Cluster.id],
827
461
  });
828
- /**
829
- * A Temperature Controlled Cabinet only exists composed as part of another device type. It represents
830
- * a single cabinet that is capable of having its temperature controlled. Such a cabinet may be
831
- * chilling or freezing food, for example as part of a refrigerator, freezer, wine chiller, or other similar
832
- * device. Equally, such a cabinet may be warming or heating food, for example as part of an oven,
833
- * range, or similar device.
834
- * Conditions:
835
- * Heater The device has heating functionality.
836
- */
837
462
  export const temperatureControlledCabinetHeater = DeviceTypeDefinition({
838
463
  name: 'MA-temperaturecontrolledcabinetheater',
839
464
  code: 0x71,
@@ -842,10 +467,6 @@ export const temperatureControlledCabinetHeater = DeviceTypeDefinition({
842
467
  requiredServerClusters: [TemperatureControl.Cluster.id, OvenMode.Cluster.id, OvenCavityOperationalState.Cluster.id],
843
468
  optionalServerClusters: [TemperatureMeasurement.Cluster.id],
844
469
  });
845
- /**
846
- * Cluster Restrictions:
847
- * On/Off Cluster: the DF (Dead Front) feature is required
848
- */
849
470
  export const dishwasher = DeviceTypeDefinition({
850
471
  name: 'MA-dishwasher',
851
472
  code: 0x75,
@@ -854,10 +475,6 @@ export const dishwasher = DeviceTypeDefinition({
854
475
  requiredServerClusters: [OperationalState.Cluster.id],
855
476
  optionalServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, TemperatureControl.Cluster.id, DishwasherMode.Cluster.id, DishwasherAlarm.Cluster.id],
856
477
  });
857
- /**
858
- * Cluster Restrictions:
859
- * On/Off Cluster: the DF (Dead Front) feature is required
860
- */
861
478
  export const laundryDryer = DeviceTypeDefinition({
862
479
  name: 'MA-laundrydryer',
863
480
  code: 0x7c,
@@ -866,13 +483,6 @@ export const laundryDryer = DeviceTypeDefinition({
866
483
  requiredServerClusters: [OperationalState.Cluster.id],
867
484
  optionalServerClusters: [Identify.Cluster.id, LaundryWasherMode.Cluster.id, OnOff.Cluster.id, LaundryDryerControls.Cluster.id, TemperatureControl.Cluster.id],
868
485
  });
869
- /**
870
- * A Cook Surface device type represents a heating object on a cooktop or other similar device. It
871
- * SHALL only be used when composed as part of another device type (cooktop).
872
- *
873
- * Cluster Restrictions:
874
- * The OffOnly feature is required for the On/Off cluster in this device type due to safety requirements.
875
- */
876
486
  export const cookSurface = DeviceTypeDefinition({
877
487
  name: 'MA-cooksurface',
878
488
  code: 0x77,
@@ -881,18 +491,6 @@ export const cookSurface = DeviceTypeDefinition({
881
491
  requiredServerClusters: [TemperatureControl.Cluster.id, TemperatureMeasurement.Cluster.id],
882
492
  optionalServerClusters: [OnOff.Cluster.id],
883
493
  });
884
- /**
885
- * A cooktop is a cooking surface that heats food either by transferring currents from an electromagnetic
886
- * field located below the glass surface directly to the magnetic induction cookware placed
887
- * above or through traditional gas or electric burners.
888
- *
889
- * Device Type Requirements:
890
- * A Cooktop SHALL be composed of zero or more endpoints with the Cook Surface device type as defined by the conformance below.
891
- * 0x0077 Cook Surface min 1 O
892
- *
893
- * Cluster Restrictions:
894
- * The OffOnly feature is required for the On/Off cluster in this device type due to safety requirements.
895
- */
896
494
  export const cooktop = DeviceTypeDefinition({
897
495
  name: 'MA-cooktop',
898
496
  code: 0x78,
@@ -901,15 +499,6 @@ export const cooktop = DeviceTypeDefinition({
901
499
  requiredServerClusters: [OnOff.Cluster.id],
902
500
  optionalServerClusters: [Identify.Cluster.id],
903
501
  });
904
- /**
905
- * An oven represents a device that contains one or more cabinets, and optionally a single cooktop, that are all capable of heating food.
906
- * An oven is always defined via endpoint composition.
907
- * Conditions:
908
- * An Oven SHALL have the Heater condition applied to at least one endpoint containing the Temperature Control Cluster.
909
- * Device Type Requirements:
910
- * 0x0071 Temperature Controlled Cabinet min 1
911
- * 0x0078 Cooktop
912
- */
913
502
  export const oven = DeviceTypeDefinition({
914
503
  name: 'MA-oven',
915
504
  code: 0x7b,
@@ -918,18 +507,6 @@ export const oven = DeviceTypeDefinition({
918
507
  requiredServerClusters: [Identify.Cluster.id],
919
508
  optionalServerClusters: [],
920
509
  });
921
- /**
922
- * An Extractor Hood is a device that is generally installed above a cooking surface in residential kitchens.
923
- * Additional device types not listed in this table MAY also be included in device compositions.
924
- * Device Type Requirements:
925
- * 0x0100+ On/Off Light+ O
926
- *
927
- *
928
- * Element Requirements:
929
- * 0x0202 Fan Control Feature Rocking X
930
- * 0x0202 Fan Control Feature Wind X
931
- * 0x0202 Fan Control Feature AirflowDirection X
932
- */
933
510
  export const extractorHood = DeviceTypeDefinition({
934
511
  name: 'MA-extractorhood',
935
512
  code: 0x7a,
@@ -938,12 +515,6 @@ export const extractorHood = DeviceTypeDefinition({
938
515
  requiredServerClusters: [FanControl.Cluster.id],
939
516
  optionalServerClusters: [Identify.Cluster.id, HepaFilterMonitoring.Cluster.id, ActivatedCarbonFilterMonitoring.Cluster.id],
940
517
  });
941
- /**
942
- * A Microwave Oven is a device with the primary function of heating foods and beverages using a magnetron.
943
- * A Microwave Oven is a device which at a minimum is capable of being started and stopped and of setting a power level.
944
- * A Microwave Oven MAY also support additional capabilities via endpoint composition.
945
- *
946
- */
947
518
  export const microwaveOven = DeviceTypeDefinition({
948
519
  name: 'MA-microwaveoven',
949
520
  code: 0x79,
@@ -952,20 +523,6 @@ export const microwaveOven = DeviceTypeDefinition({
952
523
  requiredServerClusters: [OperationalState.Cluster.id, MicrowaveOvenMode.Cluster.id, MicrowaveOvenControl.Cluster.id],
953
524
  optionalServerClusters: [Identify.Cluster.id, FanControl.Cluster.id],
954
525
  });
955
- // Chapter 14. Energy Device Types
956
- /**
957
- * An EVSE (Electric Vehicle Supply Equipment) is a device that allows an EV (Electric Vehicle) to be
958
- * connected to the mains electricity supply to allow it to be charged (or discharged in case of Vehicle
959
- * to Grid / Vehicle to Home applications).
960
- *
961
- * 14.1.5. Device Type Requirements
962
- * An EVSE SHALL be composed of at least one endpoint with device types as defined by the conformance
963
- * below. There MAY be more endpoints with other device types existing in the EVSE.
964
- * ID Name Constraint Conformance
965
- * 0x0011 Power Source min 1 M
966
- * 0x0510 Electrical Sensor min 1 M
967
- * 0x050D Device Energy Management min 1 M
968
- */
969
526
  export const evse = DeviceTypeDefinition({
970
527
  name: 'MA-evse',
971
528
  code: 0x050c,
@@ -974,39 +531,6 @@ export const evse = DeviceTypeDefinition({
974
531
  requiredServerClusters: [EnergyEvse.Cluster.id, EnergyEvseMode.Cluster.id],
975
532
  optionalServerClusters: [Identify.Cluster.id, TemperatureMeasurement.Cluster.id],
976
533
  });
977
- /**
978
- * A water heater is a device that is generally installed in properties to heat water for showers, baths etc.
979
- * A Water Heater is always defined via endpoint composition.
980
- *
981
- * 14.2.5. Device Type Requirements
982
- * A Water Heater SHALL be composed of at least one endpoint with device types as defined by the
983
- * conformance below. There MAY be more endpoints with other device types existing in the Water Heater.
984
- * ID Name Constraint Conformance
985
- * 0x0011 Power Source O
986
- * 0x0302 Temperature Sensor O
987
- * 0x0510 Electrical Sensor desc
988
- * 0x050D Device Energy Management O
989
- *
990
- * 14.2.7. Element Requirements
991
- * 0x0201 Thermostat Feature Heating M
992
- *
993
- * The Energy Management feature of the Water Heater cluster SHALL be supported if the Device
994
- * Energy Management device type is included.
995
- * If Off is a supported SystemMode in the Thermostat cluster, setting the SystemMode of the Thermostat
996
- * cluster to Off SHALL set the CurrentMode attribute of the Water Heater Mode cluster to a mode
997
- * having the Off mode tag value and vice versa.
998
- * At least one entry in the SupportedModes attribute of the Water Heater Mode cluster SHALL
999
- * include the Timed mode tag in the ModeTags field list.
1000
- *
1001
- * WaterHeaterMode Cluster
1002
- * 9.6.6.1. SupportedModes Attribute
1003
- * At least one entry in the SupportedModes attribute SHALL include the Manual mode tag in the
1004
- * ModeTags field list.
1005
- * At least one entry in the SupportedModes attribute SHALL include the Off mode tag in the ModeTags
1006
- * field list.
1007
- * An entry in the SupportedModes attribute that includes one of an Off, Manual, or Timed tag SHALL
1008
- * NOT also include an additional instance of any one of these tag types.
1009
- */
1010
534
  export const waterHeater = DeviceTypeDefinition({
1011
535
  name: 'MA-waterheater',
1012
536
  code: 0x050f,
@@ -1015,99 +539,27 @@ export const waterHeater = DeviceTypeDefinition({
1015
539
  requiredServerClusters: [Thermostat.Cluster.id, WaterHeaterManagement.Cluster.id, WaterHeaterMode.Cluster.id],
1016
540
  optionalServerClusters: [Identify.Cluster.id],
1017
541
  });
1018
- /**
1019
- * A Solar Power device is a device that allows a solar panel array, which can optionally be comprised
1020
- * of a set parallel strings of solar panels, and its associated controller and, if appropriate, inverter, to
1021
- * be monitored and controlled by an Energy Management System.
1022
- *
1023
- * 14.3.5. Device Type Requirements
1024
- * A Solar Power device SHALL be composed of at least one endpoint with device types as defined by
1025
- * the conformance below. There MAY be more endpoints with additional instances of these device
1026
- * types or additional device types existing in the Solar Power device.
1027
- *
1028
- * ID Name Constraint Conformance
1029
- * 0x0011 Power Source min 1 M
1030
- * 0x0510 Electrical Sensor min 1 M
1031
- * 0x050D Device Energy Management O
1032
- * 0x0302 Temperature Sensor O
1033
- *
1034
- * 14.3.5.1. Cluster Requirements on Composing Device Types
1035
- *
1036
- * 0x0011 Power Source 0x002F Power Source Feature Wired M
1037
- * 0x0011 Power Source 0x001D Descriptor Feature TagList M
1038
- * 0x0510 Electrical Sensor 0x0090 Electrical Power Measurement M
1039
- * 0x0510 Electrical Sensor 0x0090 Electrical Power Measurement Attribute Voltage M
1040
- * 0x0510 Electrical Sensor 0x0090 Electrical Power Measurement Attribute ActiveCurrent M
1041
- * 0x0510 Electrical Sensor 0x0091 Electrical Energy Measurement M
1042
- * 0x0510 Electrical Sensor 0x0091 Electrical Energy Measurement Feature ExportedEnergy M
1043
- * 0x050D Device Energy Management 0x0098 Device Energy Management Feature PowerAdjustment M
1044
- * 0x0302 Temperature Sensor 0x001D Descriptor Feature TagList M
1045
- */
1046
542
  export const solarPower = DeviceTypeDefinition({
1047
543
  name: 'MA-solarpower',
1048
544
  code: 0x0017,
1049
545
  deviceClass: DeviceClasses.Simple,
1050
546
  revision: 1,
1051
- requiredServerClusters: [], // See 14.3.5.1. Cluster Requirements on Composing Device Types
547
+ requiredServerClusters: [],
1052
548
  optionalServerClusters: [Identify.Cluster.id],
1053
549
  });
1054
- /**
1055
- * A Battery Storage device is a device that allows a DC battery, which can optionally be comprised of
1056
- * a set parallel strings of battery packs and associated controller, and an AC inverter, to be monitored
1057
- * and controlled by an Energy Management System in order to manage the peaks and troughs of supply
1058
- * and demand, and/or to optimize cost of the energy consumed in premises. It is not intended to
1059
- * be used for a UPS directly supplying a set of appliances, nor for portable battery storage devices.
1060
- *
1061
- * 14.4.5. Device Type Requirements
1062
- * A Battery Storage device SHALL be composed of at least one endpoint with device types as defined by
1063
- * the conformance below. There MAY be more endpoints with additional instances of these device
1064
- * types or additional device types existing in the Battery Storage device.
1065
- * ID Name Constraint Conformance
1066
- * 0x0011 Power Source min 1 M
1067
- * 0x0510 Electrical Sensor min 1 M
1068
- * 0x050D Device Energy Management M
1069
- * 0x0302 Temperature Sensor O
1070
- * 0x0017 Solar Power O
1071
- *
1072
- * See 14.4.5.1. Cluster Requirements on Composing Device Types
1073
- */
1074
550
  export const batteryStorage = DeviceTypeDefinition({
1075
551
  name: 'MA-batterystorage',
1076
552
  code: 0x0018,
1077
553
  deviceClass: DeviceClasses.Simple,
1078
554
  revision: 1,
1079
- requiredServerClusters: [], // See 14.4.5.1. Cluster Requirements on Composing Device Types
555
+ requiredServerClusters: [],
1080
556
  optionalServerClusters: [Identify.Cluster.id],
1081
557
  });
1082
- /**
1083
- * A Heat Pump device is a device that uses electrical energy to heat either spaces or water tanks using
1084
- * ground, water or air as the heat source. These typically can heat the air or can pump water via central
1085
- * heating radiators or underfloor heating systems. It is typical to also heat hot water and store
1086
- * the heat in a hot water tank.
1087
- *
1088
- * 14.5.1. Heat Pump Architecture
1089
- * A Heat Pump device is always defined via endpoint composition.
1090
- *
1091
- * 14.5.5. Device Type Requirements
1092
- * A Heat Pump device SHALL be composed of at least one endpoint with device types as defined by
1093
- * the conformance below. There MAY be more endpoints with additional instances of these device
1094
- * types or additional device types existing in the Heat Pump device.
1095
- * ID Name Constraint Conformance
1096
- * 0x0011 Power Source M
1097
- * 0x0510 Electrical Sensor min 1 M
1098
- * 0x050D Device Energy Management M
1099
- * 0x0301 Thermostat O
1100
- * 0x050f Water Heater O
1101
- * 0x0302 Temperature Sensor O
1102
- *
1103
- * See 14.5.5.1. Cluster Requirements on Composing Device Types
1104
- */
1105
558
  export const heatPump = DeviceTypeDefinition({
1106
559
  name: 'MA-heatpump',
1107
560
  code: 0x0309,
1108
561
  deviceClass: DeviceClasses.Simple,
1109
562
  revision: 1,
1110
- requiredServerClusters: [], // See 14.5.5.1. Cluster Requirements on Composing Device Types
563
+ requiredServerClusters: [],
1111
564
  optionalServerClusters: [Identify.Cluster.id, Thermostat.Cluster.id],
1112
565
  });
1113
- //# sourceMappingURL=matterbridgeDeviceTypes.js.map