matterbridge 3.2.4-dev-20250830-5c48452 → 3.2.4

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