matterbridge 3.2.5-dev-20250831-218c05f → 3.2.5

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