matterbridge 3.0.7-dev-20250618-fb768ee → 3.0.7

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