@matterbridge/core 3.5.3

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 (295) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +22 -0
  3. package/dist/cli.d.ts +29 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +268 -0
  6. package/dist/cli.js.map +1 -0
  7. package/dist/cliEmitter.d.ts +50 -0
  8. package/dist/cliEmitter.d.ts.map +1 -0
  9. package/dist/cliEmitter.js +49 -0
  10. package/dist/cliEmitter.js.map +1 -0
  11. package/dist/cliHistory.d.ts +48 -0
  12. package/dist/cliHistory.d.ts.map +1 -0
  13. package/dist/cliHistory.js +826 -0
  14. package/dist/cliHistory.js.map +1 -0
  15. package/dist/clusters/export.d.ts +2 -0
  16. package/dist/clusters/export.d.ts.map +1 -0
  17. package/dist/clusters/export.js +3 -0
  18. package/dist/clusters/export.js.map +1 -0
  19. package/dist/crypto/attestationDecoder.d.ts +180 -0
  20. package/dist/crypto/attestationDecoder.d.ts.map +1 -0
  21. package/dist/crypto/attestationDecoder.js +176 -0
  22. package/dist/crypto/attestationDecoder.js.map +1 -0
  23. package/dist/crypto/declarationDecoder.d.ts +72 -0
  24. package/dist/crypto/declarationDecoder.d.ts.map +1 -0
  25. package/dist/crypto/declarationDecoder.js +241 -0
  26. package/dist/crypto/declarationDecoder.js.map +1 -0
  27. package/dist/crypto/extract/342/200/220cert/342/200/220extensions.d.ts +9 -0
  28. package/dist/crypto/extract/342/200/220cert/342/200/220extensions.d.ts.map +1 -0
  29. package/dist/crypto/extract/342/200/220cert/342/200/220extensions.js +120 -0
  30. package/dist/crypto/extract/342/200/220cert/342/200/220extensions.js.map +1 -0
  31. package/dist/crypto/read-extensions.d.ts +2 -0
  32. package/dist/crypto/read-extensions.d.ts.map +1 -0
  33. package/dist/crypto/read-extensions.js +81 -0
  34. package/dist/crypto/read-extensions.js.map +1 -0
  35. package/dist/crypto/testData.d.ts +31 -0
  36. package/dist/crypto/testData.d.ts.map +1 -0
  37. package/dist/crypto/testData.js +131 -0
  38. package/dist/crypto/testData.js.map +1 -0
  39. package/dist/crypto/walk-der.d.ts +2 -0
  40. package/dist/crypto/walk-der.d.ts.map +1 -0
  41. package/dist/crypto/walk-der.js +165 -0
  42. package/dist/crypto/walk-der.js.map +1 -0
  43. package/dist/deviceManager.d.ts +135 -0
  44. package/dist/deviceManager.d.ts.map +1 -0
  45. package/dist/deviceManager.js +270 -0
  46. package/dist/deviceManager.js.map +1 -0
  47. package/dist/devices/airConditioner.d.ts +98 -0
  48. package/dist/devices/airConditioner.d.ts.map +1 -0
  49. package/dist/devices/airConditioner.js +74 -0
  50. package/dist/devices/airConditioner.js.map +1 -0
  51. package/dist/devices/basicVideoPlayer.d.ts +88 -0
  52. package/dist/devices/basicVideoPlayer.d.ts.map +1 -0
  53. package/dist/devices/basicVideoPlayer.js +155 -0
  54. package/dist/devices/basicVideoPlayer.js.map +1 -0
  55. package/dist/devices/batteryStorage.d.ts +48 -0
  56. package/dist/devices/batteryStorage.d.ts.map +1 -0
  57. package/dist/devices/batteryStorage.js +75 -0
  58. package/dist/devices/batteryStorage.js.map +1 -0
  59. package/dist/devices/castingVideoPlayer.d.ts +79 -0
  60. package/dist/devices/castingVideoPlayer.d.ts.map +1 -0
  61. package/dist/devices/castingVideoPlayer.js +101 -0
  62. package/dist/devices/castingVideoPlayer.js.map +1 -0
  63. package/dist/devices/cooktop.d.ts +61 -0
  64. package/dist/devices/cooktop.d.ts.map +1 -0
  65. package/dist/devices/cooktop.js +77 -0
  66. package/dist/devices/cooktop.js.map +1 -0
  67. package/dist/devices/dishwasher.d.ts +71 -0
  68. package/dist/devices/dishwasher.d.ts.map +1 -0
  69. package/dist/devices/dishwasher.js +130 -0
  70. package/dist/devices/dishwasher.js.map +1 -0
  71. package/dist/devices/evse.d.ts +76 -0
  72. package/dist/devices/evse.d.ts.map +1 -0
  73. package/dist/devices/evse.js +156 -0
  74. package/dist/devices/evse.js.map +1 -0
  75. package/dist/devices/export.d.ts +19 -0
  76. package/dist/devices/export.d.ts.map +1 -0
  77. package/dist/devices/export.js +23 -0
  78. package/dist/devices/export.js.map +1 -0
  79. package/dist/devices/extractorHood.d.ts +46 -0
  80. package/dist/devices/extractorHood.d.ts.map +1 -0
  81. package/dist/devices/extractorHood.js +78 -0
  82. package/dist/devices/extractorHood.js.map +1 -0
  83. package/dist/devices/heatPump.d.ts +47 -0
  84. package/dist/devices/heatPump.d.ts.map +1 -0
  85. package/dist/devices/heatPump.js +84 -0
  86. package/dist/devices/heatPump.js.map +1 -0
  87. package/dist/devices/laundryDryer.d.ts +67 -0
  88. package/dist/devices/laundryDryer.d.ts.map +1 -0
  89. package/dist/devices/laundryDryer.js +106 -0
  90. package/dist/devices/laundryDryer.js.map +1 -0
  91. package/dist/devices/laundryWasher.d.ts +81 -0
  92. package/dist/devices/laundryWasher.d.ts.map +1 -0
  93. package/dist/devices/laundryWasher.js +147 -0
  94. package/dist/devices/laundryWasher.js.map +1 -0
  95. package/dist/devices/microwaveOven.d.ts +168 -0
  96. package/dist/devices/microwaveOven.d.ts.map +1 -0
  97. package/dist/devices/microwaveOven.js +179 -0
  98. package/dist/devices/microwaveOven.js.map +1 -0
  99. package/dist/devices/oven.d.ts +105 -0
  100. package/dist/devices/oven.d.ts.map +1 -0
  101. package/dist/devices/oven.js +190 -0
  102. package/dist/devices/oven.js.map +1 -0
  103. package/dist/devices/refrigerator.d.ts +118 -0
  104. package/dist/devices/refrigerator.d.ts.map +1 -0
  105. package/dist/devices/refrigerator.js +186 -0
  106. package/dist/devices/refrigerator.js.map +1 -0
  107. package/dist/devices/roboticVacuumCleaner.d.ts +112 -0
  108. package/dist/devices/roboticVacuumCleaner.d.ts.map +1 -0
  109. package/dist/devices/roboticVacuumCleaner.js +268 -0
  110. package/dist/devices/roboticVacuumCleaner.js.map +1 -0
  111. package/dist/devices/solarPower.d.ts +40 -0
  112. package/dist/devices/solarPower.d.ts.map +1 -0
  113. package/dist/devices/solarPower.js +59 -0
  114. package/dist/devices/solarPower.js.map +1 -0
  115. package/dist/devices/speaker.d.ts +87 -0
  116. package/dist/devices/speaker.d.ts.map +1 -0
  117. package/dist/devices/speaker.js +120 -0
  118. package/dist/devices/speaker.js.map +1 -0
  119. package/dist/devices/temperatureControl.d.ts +166 -0
  120. package/dist/devices/temperatureControl.d.ts.map +1 -0
  121. package/dist/devices/temperatureControl.js +78 -0
  122. package/dist/devices/temperatureControl.js.map +1 -0
  123. package/dist/devices/waterHeater.d.ts +111 -0
  124. package/dist/devices/waterHeater.d.ts.map +1 -0
  125. package/dist/devices/waterHeater.js +166 -0
  126. package/dist/devices/waterHeater.js.map +1 -0
  127. package/dist/dgram/export.d.ts +2 -0
  128. package/dist/dgram/export.d.ts.map +1 -0
  129. package/dist/dgram/export.js +2 -0
  130. package/dist/dgram/export.js.map +1 -0
  131. package/dist/export.d.ts +32 -0
  132. package/dist/export.d.ts.map +1 -0
  133. package/dist/export.js +39 -0
  134. package/dist/export.js.map +1 -0
  135. package/dist/frontend.d.ts +248 -0
  136. package/dist/frontend.d.ts.map +1 -0
  137. package/dist/frontend.js +2605 -0
  138. package/dist/frontend.js.map +1 -0
  139. package/dist/helpers.d.ts +48 -0
  140. package/dist/helpers.d.ts.map +1 -0
  141. package/dist/helpers.js +161 -0
  142. package/dist/helpers.js.map +1 -0
  143. package/dist/jestutils/export.d.ts +2 -0
  144. package/dist/jestutils/export.d.ts.map +1 -0
  145. package/dist/jestutils/export.js +2 -0
  146. package/dist/jestutils/export.js.map +1 -0
  147. package/dist/jestutils/jestHelpers.d.ts +349 -0
  148. package/dist/jestutils/jestHelpers.d.ts.map +1 -0
  149. package/dist/jestutils/jestHelpers.js +980 -0
  150. package/dist/jestutils/jestHelpers.js.map +1 -0
  151. package/dist/matter/behaviors.d.ts +2 -0
  152. package/dist/matter/behaviors.d.ts.map +1 -0
  153. package/dist/matter/behaviors.js +3 -0
  154. package/dist/matter/behaviors.js.map +1 -0
  155. package/dist/matter/clusters.d.ts +2 -0
  156. package/dist/matter/clusters.d.ts.map +1 -0
  157. package/dist/matter/clusters.js +3 -0
  158. package/dist/matter/clusters.js.map +1 -0
  159. package/dist/matter/devices.d.ts +2 -0
  160. package/dist/matter/devices.d.ts.map +1 -0
  161. package/dist/matter/devices.js +3 -0
  162. package/dist/matter/devices.js.map +1 -0
  163. package/dist/matter/endpoints.d.ts +2 -0
  164. package/dist/matter/endpoints.d.ts.map +1 -0
  165. package/dist/matter/endpoints.js +3 -0
  166. package/dist/matter/endpoints.js.map +1 -0
  167. package/dist/matter/export.d.ts +4 -0
  168. package/dist/matter/export.d.ts.map +1 -0
  169. package/dist/matter/export.js +5 -0
  170. package/dist/matter/export.js.map +1 -0
  171. package/dist/matter/types.d.ts +2 -0
  172. package/dist/matter/types.d.ts.map +1 -0
  173. package/dist/matter/types.js +3 -0
  174. package/dist/matter/types.js.map +1 -0
  175. package/dist/matterNode.d.ts +341 -0
  176. package/dist/matterNode.d.ts.map +1 -0
  177. package/dist/matterNode.js +1329 -0
  178. package/dist/matterNode.js.map +1 -0
  179. package/dist/matterbridge.d.ts +544 -0
  180. package/dist/matterbridge.d.ts.map +1 -0
  181. package/dist/matterbridge.js +2880 -0
  182. package/dist/matterbridge.js.map +1 -0
  183. package/dist/matterbridgeAccessoryPlatform.d.ts +49 -0
  184. package/dist/matterbridgeAccessoryPlatform.d.ts.map +1 -0
  185. package/dist/matterbridgeAccessoryPlatform.js +80 -0
  186. package/dist/matterbridgeAccessoryPlatform.js.map +1 -0
  187. package/dist/matterbridgeBehaviors.d.ts +2428 -0
  188. package/dist/matterbridgeBehaviors.d.ts.map +1 -0
  189. package/dist/matterbridgeBehaviors.js +620 -0
  190. package/dist/matterbridgeBehaviors.js.map +1 -0
  191. package/dist/matterbridgeDeviceTypes.d.ts +744 -0
  192. package/dist/matterbridgeDeviceTypes.d.ts.map +1 -0
  193. package/dist/matterbridgeDeviceTypes.js +1312 -0
  194. package/dist/matterbridgeDeviceTypes.js.map +1 -0
  195. package/dist/matterbridgeDynamicPlatform.d.ts +49 -0
  196. package/dist/matterbridgeDynamicPlatform.d.ts.map +1 -0
  197. package/dist/matterbridgeDynamicPlatform.js +80 -0
  198. package/dist/matterbridgeDynamicPlatform.js.map +1 -0
  199. package/dist/matterbridgeEndpoint.d.ts +1548 -0
  200. package/dist/matterbridgeEndpoint.d.ts.map +1 -0
  201. package/dist/matterbridgeEndpoint.js +2883 -0
  202. package/dist/matterbridgeEndpoint.js.map +1 -0
  203. package/dist/matterbridgeEndpointHelpers.d.ts +1855 -0
  204. package/dist/matterbridgeEndpointHelpers.d.ts.map +1 -0
  205. package/dist/matterbridgeEndpointHelpers.js +1270 -0
  206. package/dist/matterbridgeEndpointHelpers.js.map +1 -0
  207. package/dist/matterbridgeEndpointTypes.d.ts +172 -0
  208. package/dist/matterbridgeEndpointTypes.d.ts.map +1 -0
  209. package/dist/matterbridgeEndpointTypes.js +28 -0
  210. package/dist/matterbridgeEndpointTypes.js.map +1 -0
  211. package/dist/matterbridgePlatform.d.ts +520 -0
  212. package/dist/matterbridgePlatform.d.ts.map +1 -0
  213. package/dist/matterbridgePlatform.js +921 -0
  214. package/dist/matterbridgePlatform.js.map +1 -0
  215. package/dist/mb_coap.d.ts +24 -0
  216. package/dist/mb_coap.d.ts.map +1 -0
  217. package/dist/mb_coap.js +89 -0
  218. package/dist/mb_coap.js.map +1 -0
  219. package/dist/mb_health.d.ts +77 -0
  220. package/dist/mb_health.d.ts.map +1 -0
  221. package/dist/mb_health.js +147 -0
  222. package/dist/mb_health.js.map +1 -0
  223. package/dist/mb_mdns.d.ts +24 -0
  224. package/dist/mb_mdns.d.ts.map +1 -0
  225. package/dist/mb_mdns.js +285 -0
  226. package/dist/mb_mdns.js.map +1 -0
  227. package/dist/pluginManager.d.ts +388 -0
  228. package/dist/pluginManager.d.ts.map +1 -0
  229. package/dist/pluginManager.js +1574 -0
  230. package/dist/pluginManager.js.map +1 -0
  231. package/dist/spawn.d.ts +33 -0
  232. package/dist/spawn.d.ts.map +1 -0
  233. package/dist/spawn.js +165 -0
  234. package/dist/spawn.js.map +1 -0
  235. package/dist/utils/export.d.ts +2 -0
  236. package/dist/utils/export.d.ts.map +1 -0
  237. package/dist/utils/export.js +2 -0
  238. package/dist/utils/export.js.map +1 -0
  239. package/dist/workers/brand.d.ts +25 -0
  240. package/dist/workers/brand.d.ts.map +1 -0
  241. package/dist/workers/brand.extend.d.ts +10 -0
  242. package/dist/workers/brand.extend.d.ts.map +1 -0
  243. package/dist/workers/brand.extend.js +15 -0
  244. package/dist/workers/brand.extend.js.map +1 -0
  245. package/dist/workers/brand.invalid.d.ts +9 -0
  246. package/dist/workers/brand.invalid.d.ts.map +1 -0
  247. package/dist/workers/brand.invalid.js +19 -0
  248. package/dist/workers/brand.invalid.js.map +1 -0
  249. package/dist/workers/brand.js +67 -0
  250. package/dist/workers/brand.js.map +1 -0
  251. package/dist/workers/clusterTypes.d.ts +47 -0
  252. package/dist/workers/clusterTypes.d.ts.map +1 -0
  253. package/dist/workers/clusterTypes.js +57 -0
  254. package/dist/workers/clusterTypes.js.map +1 -0
  255. package/dist/workers/frontendWorker.d.ts +2 -0
  256. package/dist/workers/frontendWorker.d.ts.map +1 -0
  257. package/dist/workers/frontendWorker.js +90 -0
  258. package/dist/workers/frontendWorker.js.map +1 -0
  259. package/dist/workers/helloWorld.d.ts +2 -0
  260. package/dist/workers/helloWorld.d.ts.map +1 -0
  261. package/dist/workers/helloWorld.js +135 -0
  262. package/dist/workers/helloWorld.js.map +1 -0
  263. package/dist/workers/matterWorker.d.ts +2 -0
  264. package/dist/workers/matterWorker.d.ts.map +1 -0
  265. package/dist/workers/matterWorker.js +104 -0
  266. package/dist/workers/matterWorker.js.map +1 -0
  267. package/dist/workers/matterbridgeWorker.d.ts +2 -0
  268. package/dist/workers/matterbridgeWorker.d.ts.map +1 -0
  269. package/dist/workers/matterbridgeWorker.js +75 -0
  270. package/dist/workers/matterbridgeWorker.js.map +1 -0
  271. package/dist/workers/messageLab.d.ts +134 -0
  272. package/dist/workers/messageLab.d.ts.map +1 -0
  273. package/dist/workers/messageLab.js +129 -0
  274. package/dist/workers/messageLab.js.map +1 -0
  275. package/dist/workers/testWorker.d.ts +2 -0
  276. package/dist/workers/testWorker.d.ts.map +1 -0
  277. package/dist/workers/testWorker.js +45 -0
  278. package/dist/workers/testWorker.js.map +1 -0
  279. package/dist/workers/usage.d.ts +19 -0
  280. package/dist/workers/usage.d.ts.map +1 -0
  281. package/dist/workers/usage.js +140 -0
  282. package/dist/workers/usage.js.map +1 -0
  283. package/dist/workers/workerManager.d.ts +115 -0
  284. package/dist/workers/workerManager.d.ts.map +1 -0
  285. package/dist/workers/workerManager.js +464 -0
  286. package/dist/workers/workerManager.js.map +1 -0
  287. package/dist/workers/workerServer.d.ts +126 -0
  288. package/dist/workers/workerServer.d.ts.map +1 -0
  289. package/dist/workers/workerServer.js +340 -0
  290. package/dist/workers/workerServer.js.map +1 -0
  291. package/dist/workers/workerTypes.d.ts +23 -0
  292. package/dist/workers/workerTypes.d.ts.map +1 -0
  293. package/dist/workers/workerTypes.js +3 -0
  294. package/dist/workers/workerTypes.js.map +1 -0
  295. package/package.json +120 -0
@@ -0,0 +1,1312 @@
1
+ /**
2
+ * This file contains the matter device type definitions for MatterbridgeEndpoint.
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
+ // eslint-disable-next-line no-console
25
+ if (process.argv.includes('--loader') || process.argv.includes('-loader'))
26
+ console.log('\u001B[32mMatterbridgeDeviceTypes loaded.\u001B[40;0m');
27
+ // @matter
28
+ import { DeviceTypeId } from '@matter/types/datatype';
29
+ // @matter clusters
30
+ import { AccountLogin } from '@matter/types/clusters/account-login';
31
+ import { Actions } from '@matter/types/clusters/actions';
32
+ import { ActivatedCarbonFilterMonitoring } from '@matter/types/clusters/activated-carbon-filter-monitoring';
33
+ import { AdministratorCommissioning } from '@matter/types/clusters/administrator-commissioning';
34
+ import { AirQuality } from '@matter/types/clusters/air-quality';
35
+ import { ApplicationLauncher } from '@matter/types/clusters/application-launcher';
36
+ import { AudioOutput } from '@matter/types/clusters/audio-output';
37
+ import { BooleanState } from '@matter/types/clusters/boolean-state';
38
+ import { BooleanStateConfiguration } from '@matter/types/clusters/boolean-state-configuration';
39
+ import { BridgedDeviceBasicInformation } from '@matter/types/clusters/bridged-device-basic-information';
40
+ import { CarbonDioxideConcentrationMeasurement } from '@matter/types/clusters/carbon-dioxide-concentration-measurement';
41
+ import { CarbonMonoxideConcentrationMeasurement } from '@matter/types/clusters/carbon-monoxide-concentration-measurement';
42
+ import { Channel } from '@matter/types/clusters/channel';
43
+ import { ColorControl } from '@matter/types/clusters/color-control';
44
+ import { CommissionerControl } from '@matter/types/clusters/commissioner-control';
45
+ import { ContentControl } from '@matter/types/clusters/content-control';
46
+ import { ContentLauncher } from '@matter/types/clusters/content-launcher';
47
+ import { DeviceEnergyManagement } from '@matter/types/clusters/device-energy-management';
48
+ import { DeviceEnergyManagementMode } from '@matter/types/clusters/device-energy-management-mode';
49
+ import { DishwasherAlarm } from '@matter/types/clusters/dishwasher-alarm';
50
+ import { DishwasherMode } from '@matter/types/clusters/dishwasher-mode';
51
+ import { DoorLock } from '@matter/types/clusters/door-lock';
52
+ import { EcosystemInformation } from '@matter/types/clusters/ecosystem-information';
53
+ import { ElectricalEnergyMeasurement } from '@matter/types/clusters/electrical-energy-measurement';
54
+ import { ElectricalPowerMeasurement } from '@matter/types/clusters/electrical-power-measurement';
55
+ import { EnergyEvse } from '@matter/types/clusters/energy-evse';
56
+ import { EnergyEvseMode } from '@matter/types/clusters/energy-evse-mode';
57
+ import { EnergyPreference } from '@matter/types/clusters/energy-preference';
58
+ import { FanControl } from '@matter/types/clusters/fan-control';
59
+ import { FlowMeasurement } from '@matter/types/clusters/flow-measurement';
60
+ import { FormaldehydeConcentrationMeasurement } from '@matter/types/clusters/formaldehyde-concentration-measurement';
61
+ import { Groups } from '@matter/types/clusters/groups';
62
+ import { HepaFilterMonitoring } from '@matter/types/clusters/hepa-filter-monitoring';
63
+ import { Identify } from '@matter/types/clusters/identify';
64
+ import { IlluminanceMeasurement } from '@matter/types/clusters/illuminance-measurement';
65
+ import { KeypadInput } from '@matter/types/clusters/keypad-input';
66
+ import { LaundryDryerControls } from '@matter/types/clusters/laundry-dryer-controls';
67
+ import { LaundryWasherControls } from '@matter/types/clusters/laundry-washer-controls';
68
+ import { LaundryWasherMode } from '@matter/types/clusters/laundry-washer-mode';
69
+ import { LevelControl } from '@matter/types/clusters/level-control';
70
+ import { LowPower } from '@matter/types/clusters/low-power';
71
+ import { MediaInput } from '@matter/types/clusters/media-input';
72
+ import { MediaPlayback } from '@matter/types/clusters/media-playback';
73
+ import { Messages } from '@matter/types/clusters/messages';
74
+ import { MicrowaveOvenControl } from '@matter/types/clusters/microwave-oven-control';
75
+ import { MicrowaveOvenMode } from '@matter/types/clusters/microwave-oven-mode';
76
+ import { ModeSelect } from '@matter/types/clusters/mode-select';
77
+ import { NitrogenDioxideConcentrationMeasurement } from '@matter/types/clusters/nitrogen-dioxide-concentration-measurement';
78
+ import { OccupancySensing } from '@matter/types/clusters/occupancy-sensing';
79
+ import { OnOff } from '@matter/types/clusters/on-off';
80
+ import { OperationalState } from '@matter/types/clusters/operational-state';
81
+ import { OtaSoftwareUpdateProvider } from '@matter/types/clusters/ota-software-update-provider';
82
+ import { OtaSoftwareUpdateRequestor } from '@matter/types/clusters/ota-software-update-requestor';
83
+ import { OvenCavityOperationalState } from '@matter/types/clusters/oven-cavity-operational-state';
84
+ import { OvenMode } from '@matter/types/clusters/oven-mode';
85
+ import { OzoneConcentrationMeasurement } from '@matter/types/clusters/ozone-concentration-measurement';
86
+ import { Pm1ConcentrationMeasurement } from '@matter/types/clusters/pm1-concentration-measurement';
87
+ import { Pm10ConcentrationMeasurement } from '@matter/types/clusters/pm10-concentration-measurement';
88
+ import { Pm25ConcentrationMeasurement } from '@matter/types/clusters/pm25-concentration-measurement';
89
+ import { PowerSource } from '@matter/types/clusters/power-source';
90
+ import { PowerTopology } from '@matter/types/clusters/power-topology';
91
+ import { PressureMeasurement } from '@matter/types/clusters/pressure-measurement';
92
+ import { PumpConfigurationAndControl } from '@matter/types/clusters/pump-configuration-and-control';
93
+ import { RadonConcentrationMeasurement } from '@matter/types/clusters/radon-concentration-measurement';
94
+ import { RefrigeratorAlarm } from '@matter/types/clusters/refrigerator-alarm';
95
+ import { RefrigeratorAndTemperatureControlledCabinetMode } from '@matter/types/clusters/refrigerator-and-temperature-controlled-cabinet-mode';
96
+ import { RelativeHumidityMeasurement } from '@matter/types/clusters/relative-humidity-measurement';
97
+ import { RvcCleanMode } from '@matter/types/clusters/rvc-clean-mode';
98
+ import { RvcOperationalState } from '@matter/types/clusters/rvc-operational-state';
99
+ import { RvcRunMode } from '@matter/types/clusters/rvc-run-mode';
100
+ import { ServiceArea } from '@matter/types/clusters/service-area';
101
+ import { SmokeCoAlarm } from '@matter/types/clusters/smoke-co-alarm';
102
+ import { Switch } from '@matter/types/clusters/switch';
103
+ import { TargetNavigator } from '@matter/types/clusters/target-navigator';
104
+ import { TemperatureControl } from '@matter/types/clusters/temperature-control';
105
+ import { TemperatureMeasurement } from '@matter/types/clusters/temperature-measurement';
106
+ import { Thermostat } from '@matter/types/clusters/thermostat';
107
+ import { ThermostatUserInterfaceConfiguration } from '@matter/types/clusters/thermostat-user-interface-configuration';
108
+ import { TotalVolatileOrganicCompoundsConcentrationMeasurement } from '@matter/types/clusters/total-volatile-organic-compounds-concentration-measurement';
109
+ import { ValveConfigurationAndControl } from '@matter/types/clusters/valve-configuration-and-control';
110
+ import { WakeOnLan } from '@matter/types/clusters/wake-on-lan';
111
+ import { WaterHeaterManagement } from '@matter/types/clusters/water-heater-management';
112
+ import { WaterHeaterMode } from '@matter/types/clusters/water-heater-mode';
113
+ import { WindowCovering } from '@matter/types/clusters/window-covering';
114
+ import { ScenesManagement } from '@matter/types/clusters/scenes-management';
115
+ export var DeviceClasses;
116
+ (function (DeviceClasses) {
117
+ /** 1.1.5. Device Type Class Conditions */
118
+ /** Node device type. */
119
+ DeviceClasses["Node"] = "Node";
120
+ /**
121
+ * Application device type.
122
+ * Application devices types are typically the most datatype endpoints on a node and in the network.
123
+ */
124
+ DeviceClasses["App"] = "App";
125
+ /**
126
+ * Utility device type.
127
+ * A Utility device type supports configuration and settings.
128
+ */
129
+ DeviceClasses["Utility"] = "Utility";
130
+ /**
131
+ * Simple device type.
132
+ * A Simple device type supports local control that is persistent, independent, and unsupervised.
133
+ */
134
+ DeviceClasses["Simple"] = "Simple";
135
+ /**
136
+ * Dynamic device type.
137
+ * A Dynamic device type supports intelligent and supervisory services, such as commissioning,
138
+ * monitoring, trend analysis, scheduling and central management. A dynamic device type is an
139
+ * application device type.
140
+ */
141
+ DeviceClasses["Dynamic"] = "Dynamic";
142
+ /** The device type is composed of 2 or more device types. */
143
+ DeviceClasses["Composed"] = "Composed";
144
+ /** 1.1.6. Endpoint Type Class Conditions */
145
+ /** There exists a client application cluster on the endpoint. */
146
+ DeviceClasses["Client"] = "Client";
147
+ /** There exists a server application cluster on the endpoint. */
148
+ DeviceClasses["Server"] = "Server";
149
+ /**
150
+ * The endpoint and at least one of its sibling endpoints have an overlap in application device type(s),
151
+ * as defined in the "Disambiguation" section in the System Model specification. This condition triggers
152
+ * requirements for providing additional information about the endpoints in order to disambiguate
153
+ * between the endpoints (see "Disambiguation" section in the System Model specification).
154
+ */
155
+ DeviceClasses["Duplicate"] = "Duplicate";
156
+ /**
157
+ * The endpoint represents a Bridged Device, for which information about the state of
158
+ * its power source is available to the Bridge
159
+ */
160
+ DeviceClasses["BridgedPowerSourceInfo"] = "BridgedPowerSourceInfo";
161
+ })(DeviceClasses || (DeviceClasses = {}));
162
+ export const DeviceTypeDefinition = ({ name, code, deviceClass, revision, requiredServerClusters = [], optionalServerClusters = [], requiredClientClusters = [], optionalClientClusters = [], }) => ({
163
+ name,
164
+ code: DeviceTypeId(code),
165
+ deviceClass,
166
+ revision,
167
+ requiredServerClusters,
168
+ optionalServerClusters,
169
+ requiredClientClusters,
170
+ optionalClientClusters,
171
+ });
172
+ // Chapter 2. Utility device types
173
+ export const rootNode = DeviceTypeDefinition({
174
+ name: 'MA-rootNode',
175
+ code: 0x0016,
176
+ deviceClass: DeviceClasses.Node,
177
+ revision: 3,
178
+ requiredServerClusters: [], // Intentionally left empty to avoid imports
179
+ optionalServerClusters: [], // Intentionally left empty to avoid imports
180
+ });
181
+ export const powerSource = DeviceTypeDefinition({
182
+ name: 'MA-powerSource',
183
+ code: 0x0011,
184
+ deviceClass: DeviceClasses.Utility,
185
+ revision: 1,
186
+ requiredServerClusters: [PowerSource.Cluster.id],
187
+ optionalServerClusters: [],
188
+ });
189
+ export const OTARequestor = DeviceTypeDefinition({
190
+ name: 'MA-OTARequestor',
191
+ code: 0x0012,
192
+ deviceClass: DeviceClasses.Utility,
193
+ revision: 1,
194
+ requiredServerClusters: [OtaSoftwareUpdateRequestor.Cluster.id],
195
+ optionalServerClusters: [],
196
+ requiredClientClusters: [OtaSoftwareUpdateProvider.Cluster.id],
197
+ optionalClientClusters: [],
198
+ });
199
+ export const OTAProvider = DeviceTypeDefinition({
200
+ name: 'MA-OTAProvider',
201
+ code: 0x0014,
202
+ deviceClass: DeviceClasses.Utility,
203
+ revision: 1,
204
+ requiredServerClusters: [OtaSoftwareUpdateProvider.Cluster.id],
205
+ optionalServerClusters: [],
206
+ requiredClientClusters: [OtaSoftwareUpdateRequestor.Cluster.id],
207
+ optionalClientClusters: [],
208
+ });
209
+ /**
210
+ 2.5.3. Conditions
211
+ Please see the Base Device Type definition for conformance tags.
212
+ This device type SHALL only be used for Nodes which have a device type of Bridge.
213
+
214
+ 2.5.5. Cluster Requirements
215
+ Each endpoint supporting this device type SHALL include these clusters based on the conformance
216
+ defined below.
217
+ - 0x0039 Bridged Device Basic Information Server
218
+
219
+ 2.5.6. Endpoint Composition
220
+ • A Bridged Node endpoint SHALL support one of the following composition patterns:
221
+ ◦ Separate Endpoints: All application device types are supported on separate endpoints, and
222
+ not on the Bridged Node endpoint. The Bridged Node endpoint’s Descriptor cluster PartsList
223
+ attribute SHALL indicate a list of all endpoints representing the functionality of the bridged
224
+ device, including the endpoints supporting the application device types, i.e. the full-family
225
+ pattern defined in the System Model specification.
226
+ ◦ One Endpoint: Both the Bridged Node and one or more application device types are supported
227
+ on the same endpoint (following application device type rules). Endpoint composition
228
+ SHALL conform to the application device type(s) definition.
229
+ */
230
+ export const bridgedNode = DeviceTypeDefinition({
231
+ name: 'MA-bridgedNode',
232
+ code: 0x0013,
233
+ deviceClass: DeviceClasses.Utility,
234
+ revision: 3,
235
+ requiredServerClusters: [BridgedDeviceBasicInformation.Cluster.id], // omitted PowerSourceConfiguration cause is deprecated
236
+ optionalServerClusters: [PowerSource.Cluster.id, EcosystemInformation.Cluster.id, AdministratorCommissioning.Cluster.id],
237
+ });
238
+ /**
239
+ * An Electrical Sensor device measures the electrical power and/or energy being imported and/or
240
+ * exported.
241
+ * It is a utility device type that provides information about the electrical power and/or energy
242
+ * consumption and generation.
243
+ *
244
+ * 2.6.3. Device Type Requirements
245
+ * Electrical measurements made by either the Electrical Power Measurement cluster, the Electrical
246
+ * Energy Measurement cluster, or both SHALL apply to the endpoints indicated by the Power Topology
247
+ * cluster.
248
+ */
249
+ export const electricalSensor = DeviceTypeDefinition({
250
+ name: 'MA-electricalSensor',
251
+ code: 0x0510,
252
+ deviceClass: DeviceClasses.Utility,
253
+ revision: 1,
254
+ requiredServerClusters: [PowerTopology.Cluster.id],
255
+ optionalServerClusters: [ElectricalPowerMeasurement.Cluster.id, ElectricalEnergyMeasurement.Cluster.id],
256
+ });
257
+ /**
258
+ * A Device Energy Management device provides reporting and optionally adjustment of the electrical
259
+ * power planned on being consumed or produced by the device.
260
+ */
261
+ export const deviceEnergyManagement = DeviceTypeDefinition({
262
+ name: 'MA-deviceEnergyManagement',
263
+ code: 0x050d,
264
+ deviceClass: DeviceClasses.Utility,
265
+ revision: 2,
266
+ requiredServerClusters: [DeviceEnergyManagement.Cluster.id],
267
+ optionalServerClusters: [DeviceEnergyManagementMode.Cluster.id],
268
+ });
269
+ /** Chapter 3. Application Device Types */
270
+ /** Chapter 4. Lighting device types */
271
+ /**
272
+ * Element Requirements:
273
+ * - Identify Command TriggerEffect
274
+ * - Scenes Management Command CopyScene
275
+ * - On/Off Feature Lighting
276
+ * - Level Control Feature OnOff
277
+ * - Level Control Feature Lighting
278
+ * - Level Control Attribute CurrentLevel 1 to 254
279
+ * - Level Control Attribute MinLevel 1
280
+ * - Level Control Attribute MaxLevel 254
281
+ */
282
+ export const onOffLight = DeviceTypeDefinition({
283
+ name: 'MA-onofflight',
284
+ code: 0x0100,
285
+ deviceClass: DeviceClasses.Simple,
286
+ revision: 3,
287
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, ScenesManagement.Cluster.id, OnOff.Cluster.id],
288
+ optionalServerClusters: [LevelControl.Cluster.id],
289
+ });
290
+ /**
291
+ * Element Requirements:
292
+ * - Identify Command TriggerEffect
293
+ * - Scenes Management Command CopyScene
294
+ * - On/Off Feature Lighting
295
+ * - Level Control Feature OnOff
296
+ * - Level Control Feature Lighting
297
+ * - Level Control Attribute CurrentLevel 1 to 254
298
+ * - Level Control Attribute MinLevel 1
299
+ * - Level Control Attribute MaxLevel 254
300
+ */
301
+ export const dimmableLight = DeviceTypeDefinition({
302
+ name: 'MA-dimmablelight',
303
+ code: 0x0101,
304
+ deviceClass: DeviceClasses.Simple,
305
+ revision: 3,
306
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, ScenesManagement.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
307
+ optionalServerClusters: [],
308
+ });
309
+ /**
310
+ * Element Requirements:
311
+ * - Identify Command TriggerEffect
312
+ * - Scenes Management Command CopyScene
313
+ * - On/Off Feature Lighting
314
+ * - Level Control Feature OnOff
315
+ * - Level Control Feature Lighting
316
+ * - Level Control Attribute CurrentLevel 1 to 254
317
+ * - Level Control Attribute MinLevel 1
318
+ * - Level Control Attribute MaxLevel 254
319
+ * - Color Control Feature ColorTemperature
320
+ * - Color Control Attribute RemainingTime
321
+ */
322
+ export const colorTemperatureLight = DeviceTypeDefinition({
323
+ name: 'MA-colortemperaturelight',
324
+ code: 0x010c,
325
+ deviceClass: DeviceClasses.Simple,
326
+ revision: 4,
327
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, ScenesManagement.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
328
+ optionalServerClusters: [],
329
+ });
330
+ /**
331
+ * Element Requirements:
332
+ * - Identify Command TriggerEffect
333
+ * - Scenes Management Command CopyScene
334
+ * - On/Off Feature Lighting
335
+ * - Level Control Feature OnOff
336
+ * - Level Control Feature Lighting
337
+ * - Level Control Attribute CurrentLevel 1 to 254
338
+ * - Level Control Attribute MinLevel 1
339
+ * - Level Control Attribute MaxLevel 254
340
+ * - Color Control Feature XY
341
+ * - Color Control Feature ColorTemperature
342
+ * - Color Control Attribute RemainingTime
343
+ */
344
+ export const extendedColorLight = DeviceTypeDefinition({
345
+ name: 'MA-extendedcolorlight',
346
+ code: 0x010d,
347
+ deviceClass: DeviceClasses.Simple,
348
+ revision: 4,
349
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, ScenesManagement.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
350
+ optionalServerClusters: [],
351
+ });
352
+ // Chapter 5. Smart plugs/Outlets and other Actuators device types
353
+ /**
354
+ * An On/Off Plug-in Unit is a device that provides power to another device that is plugged into it, and
355
+ * is capable of switching that provided power on or off.
356
+ * The Mounted On/Off Control (added in Matter 1.4) has identical cluster requirements as the On/Off
357
+ * Plug-In Unit, and is marked as superset of this device type (since Matter 1.4.2). For devices intended
358
+ * to be mounted permanently, the Mounted On/Off Control device type SHALL be used, with the
359
+ * On/Off Plug-In Unit device type optionally added in the DeviceTypeList of the Descriptor cluster in
360
+ * addition to the On/Off Plug-In Unit device type (see [ref_MountedOnOffControlServerGuidance]).
361
+ *
362
+ * Element Requirements:
363
+ * - Identify Command TriggerEffect
364
+ * - Scenes Management Command CopyScene
365
+ * - On/Off Feature Lighting
366
+ * - Level Control Feature OnOff
367
+ * - Level Control Feature Lighting
368
+ * - Level Control Attribute CurrentLevel 1 to 254
369
+ * - Level Control Attribute MinLevel 1
370
+ * - Level Control Attribute MaxLevel 254
371
+ */
372
+ export const onOffOutlet = DeviceTypeDefinition({
373
+ name: 'MA-onoffpluginunit',
374
+ code: 0x010a,
375
+ deviceClass: DeviceClasses.Simple,
376
+ revision: 4,
377
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, ScenesManagement.Cluster.id, OnOff.Cluster.id],
378
+ optionalServerClusters: [LevelControl.Cluster.id],
379
+ });
380
+ /**
381
+ * A Dimmable Plug-In Unit is a device that provides power to another device that is plugged into it,
382
+ * and is capable of being switched on or off and have its level adjusted. The Dimmable Plug-in Unit is
383
+ * typically used to control a conventional non-communicating light through its mains connection
384
+ * using phase cutting.
385
+ * The Mounted Dimmable Load Control (added in Matter 1.4) has identical cluster requirements as
386
+ * the Dimmable Plug-In Unit, and is marked as a superset of this device type (since Matter 1.4.2). For
387
+ * devices intended to be mounted permanently, the Mounted Dimmable Load Control device type
388
+ * SHALL be used, with the Dimmable Plug-In Unit device type optionally added to the DeviceTypeList
389
+ * of the Descriptor cluster in addition to the Mounted Dimmable Load Control device type (see [ref_MountedDimmableLoadControlServerGuidance]).
390
+ *
391
+ * Element Requirements:
392
+ * - Identify Command TriggerEffect
393
+ * - Scenes Management Command CopyScene
394
+ * - On/Off Feature Lighting
395
+ * - Level Control Feature OnOff
396
+ * - Level Control Feature Lighting
397
+ * - Level Control Attribute CurrentLevel 1 to 254
398
+ * - Level Control Attribute MinLevel 1
399
+ * - Level Control Attribute MaxLevel 254
400
+ */
401
+ export const dimmableOutlet = DeviceTypeDefinition({
402
+ name: 'MA-dimmablepluginunit',
403
+ code: 0x010b,
404
+ deviceClass: DeviceClasses.Simple,
405
+ revision: 5,
406
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, ScenesManagement.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
407
+ optionalServerClusters: [],
408
+ });
409
+ /**
410
+ * A Mounted On/Off Control is a fixed device that provides power to another device that is plugged
411
+ * into it, and is capable of switching that provided power on or off.
412
+ * This device type is intended for any wall-mounted or hardwired load controller, while On/Off Plugin
413
+ * Unit is intended only for smart plugs and other power switching devices that are not permaMatter
414
+ * Device Library Specification R1.4.2 Connectivity Standards Alliance Document 23-27351 July 16, 2025
415
+ * Copyright © Connectivity Standards Alliance, Inc. All rights reserved. Page 53
416
+ * nently connected, and which can be unplugged from their power source.
417
+ *
418
+ * It is a simple device type that does not require any client clusters. As per matter 1.4.2 it should be added also on/Off Plug-In Unit for backward compatibility.
419
+ *
420
+ * Element Requirements:
421
+ * - Identify Command TriggerEffect
422
+ * - Scenes Management Command CopyScene
423
+ * - On/Off Feature Lighting
424
+ * - Level Control Feature OnOff
425
+ * - Level Control Feature Lighting
426
+ * - Level Control Attribute CurrentLevel 1 to 254
427
+ * - Level Control Attribute MinLevel 1
428
+ * - Level Control Attribute MaxLevel 254
429
+ */
430
+ export const onOffMountedSwitch = DeviceTypeDefinition({
431
+ name: 'MA-onoffmountedswitch',
432
+ code: 0x010f,
433
+ deviceClass: DeviceClasses.Simple,
434
+ revision: 2,
435
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, ScenesManagement.Cluster.id, OnOff.Cluster.id],
436
+ optionalServerClusters: [LevelControl.Cluster.id],
437
+ });
438
+ /**
439
+ * A Mounted Dimmable Load Control is a fixed device that provides power to a load connected to it,
440
+ * and is capable of being switched on or off and have its level adjusted. The Mounted Dimmable Load
441
+ * Control is typically used to control a conventional non-communicating light through its mains connection
442
+ * using phase cutting.
443
+ * This device type is intended for any wall-mounted or hardwired dimmer-capable load controller,
444
+ * while Dimmable Plug-In Unit is intended only for dimmer-capable smart plugs that are not permanently
445
+ * connected, and which can be unplugged from their power source.
446
+ *
447
+ * It is a simple device type that does not require any client clusters. As per matter 1.4.2 it should be added also dimmable Plug-In Unit for backward compatibility.
448
+ *
449
+ * Element Requirements:
450
+ * - Identify Command TriggerEffect
451
+ * - Scenes Management Command CopyScene
452
+ * - On/Off Feature Lighting
453
+ * - Level Control Feature OnOff
454
+ * - Level Control Feature Lighting
455
+ * - Level Control Attribute CurrentLevel 1 to 254
456
+ * - Level Control Attribute MinLevel 1
457
+ * - Level Control Attribute MaxLevel 254
458
+ */
459
+ export const dimmableMountedSwitch = DeviceTypeDefinition({
460
+ name: 'MA-dimmablemountedswitch',
461
+ code: 0x0110,
462
+ deviceClass: DeviceClasses.Simple,
463
+ revision: 2,
464
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, ScenesManagement.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
465
+ optionalServerClusters: [],
466
+ });
467
+ /**
468
+ * Remark:
469
+ * On/Off Cluster:
470
+ * - Off If the pump is powered on, store the current level then immediately power it off.
471
+ * - 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,
472
+ * move immediately to the maximum level allowed for the pump.
473
+ * - 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.
474
+ *
475
+ * LevelControl cluster:
476
+ * Level Setpoint Meaning
477
+ * 0 N/A Pump is stopped,
478
+ * 1–200 Level / 2 (0.5–100.0%) Pump setpoint in percent
479
+ * 201–255 100.0% Pump setpoint is 100.0%
480
+ */
481
+ export const pumpDevice = DeviceTypeDefinition({
482
+ name: 'MA-pump',
483
+ code: 0x303,
484
+ deviceClass: DeviceClasses.Simple,
485
+ revision: 3,
486
+ requiredServerClusters: [OnOff.Cluster.id, PumpConfigurationAndControl.Cluster.id, Identify.Cluster.id],
487
+ optionalServerClusters: [
488
+ LevelControl.Cluster.id,
489
+ Groups.Cluster.id,
490
+ ScenesManagement.Cluster.id,
491
+ TemperatureMeasurement.Cluster.id,
492
+ PressureMeasurement.Cluster.id,
493
+ FlowMeasurement.Cluster.id,
494
+ ],
495
+ });
496
+ export const waterValve = DeviceTypeDefinition({
497
+ name: 'MA-waterValve',
498
+ code: 0x42,
499
+ deviceClass: DeviceClasses.Simple,
500
+ revision: 1,
501
+ requiredServerClusters: [Identify.Cluster.id, ValveConfigurationAndControl.Cluster.id],
502
+ optionalServerClusters: [FlowMeasurement.Cluster.id],
503
+ });
504
+ // Chapter 6. Switches and Controls device types
505
+ // Custom device types with server cluster instead of client clusters (not working in Alexa)
506
+ export const onOffSwitch = DeviceTypeDefinition({
507
+ name: 'MA-onoffswitch',
508
+ code: 0x0103,
509
+ deviceClass: DeviceClasses.Simple,
510
+ revision: 3,
511
+ requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id],
512
+ optionalServerClusters: [Groups.Cluster.id, ScenesManagement.Cluster.id],
513
+ });
514
+ // Custom device types with server cluster instead of client clusters (not working in Alexa)
515
+ export const dimmableSwitch = DeviceTypeDefinition({
516
+ name: 'MA-dimmableswitch',
517
+ code: 0x0104,
518
+ deviceClass: DeviceClasses.Simple,
519
+ revision: 3,
520
+ requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id],
521
+ optionalServerClusters: [Groups.Cluster.id, ScenesManagement.Cluster.id],
522
+ });
523
+ // Custom device types with server cluster instead of client clusters (not working in Alexa)
524
+ export const colorTemperatureSwitch = DeviceTypeDefinition({
525
+ name: 'MA-colortemperatureswitch',
526
+ code: 0x0105,
527
+ deviceClass: DeviceClasses.Simple,
528
+ revision: 3,
529
+ requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, LevelControl.Cluster.id, ColorControl.Cluster.id],
530
+ optionalServerClusters: [Groups.Cluster.id, ScenesManagement.Cluster.id],
531
+ });
532
+ export const genericSwitch = DeviceTypeDefinition({
533
+ name: 'MA-genericswitch',
534
+ code: 0x000f,
535
+ deviceClass: DeviceClasses.Simple,
536
+ revision: 3,
537
+ requiredServerClusters: [Identify.Cluster.id, Switch.Cluster.id],
538
+ optionalServerClusters: [],
539
+ });
540
+ // Chapter 7. Sensor device types
541
+ /**
542
+ * Closed or contact: state true
543
+ * Open or no contact: state false
544
+ */
545
+ export const contactSensor = DeviceTypeDefinition({
546
+ name: 'MA-contactsensor',
547
+ code: 0x0015,
548
+ deviceClass: DeviceClasses.Simple,
549
+ revision: 2,
550
+ requiredServerClusters: [Identify.Cluster.id, BooleanState.Cluster.id],
551
+ optionalServerClusters: [BooleanStateConfiguration.Cluster.id],
552
+ });
553
+ export const lightSensor = DeviceTypeDefinition({
554
+ name: 'MA-lightsensor',
555
+ code: 0x0106,
556
+ deviceClass: DeviceClasses.Simple,
557
+ revision: 3,
558
+ requiredServerClusters: [Identify.Cluster.id, IlluminanceMeasurement.Cluster.id],
559
+ });
560
+ export const occupancySensor = DeviceTypeDefinition({
561
+ name: 'MA-occupancysensor',
562
+ code: 0x0107,
563
+ deviceClass: DeviceClasses.Simple,
564
+ revision: 4,
565
+ requiredServerClusters: [Identify.Cluster.id, OccupancySensing.Cluster.id],
566
+ optionalServerClusters: [BooleanStateConfiguration.Cluster.id],
567
+ });
568
+ export const temperatureSensor = DeviceTypeDefinition({
569
+ name: 'MA-tempsensor',
570
+ code: 0x0302,
571
+ deviceClass: DeviceClasses.Simple,
572
+ revision: 2,
573
+ requiredServerClusters: [Identify.Cluster.id, TemperatureMeasurement.Cluster.id],
574
+ });
575
+ export const pressureSensor = DeviceTypeDefinition({
576
+ name: 'MA-pressuresensor',
577
+ code: 0x0305,
578
+ deviceClass: DeviceClasses.Simple,
579
+ revision: 2,
580
+ requiredServerClusters: [Identify.Cluster.id, PressureMeasurement.Cluster.id],
581
+ });
582
+ export const flowSensor = DeviceTypeDefinition({
583
+ name: 'MA-flowsensor',
584
+ code: 0x0306,
585
+ deviceClass: DeviceClasses.Simple,
586
+ revision: 2,
587
+ requiredServerClusters: [Identify.Cluster.id, FlowMeasurement.Cluster.id],
588
+ });
589
+ export const humiditySensor = DeviceTypeDefinition({
590
+ name: 'MA-humiditysensor',
591
+ code: 0x0307,
592
+ deviceClass: DeviceClasses.Simple,
593
+ revision: 2,
594
+ requiredServerClusters: [Identify.Cluster.id, RelativeHumidityMeasurement.Cluster.id],
595
+ });
596
+ // Remark: A Smoke CO Alarm device type SHALL support an instance of a Power Source device type on some endpoint.
597
+ export const smokeCoAlarm = DeviceTypeDefinition({
598
+ name: 'MA-smokeCoAlarm',
599
+ code: 0x0076,
600
+ deviceClass: DeviceClasses.Simple,
601
+ revision: 1,
602
+ requiredServerClusters: [Identify.Cluster.id, SmokeCoAlarm.Cluster.id],
603
+ optionalServerClusters: [Groups.Cluster.id, TemperatureMeasurement.Cluster.id, RelativeHumidityMeasurement.Cluster.id, CarbonMonoxideConcentrationMeasurement.Cluster.id],
604
+ });
605
+ export const airQualitySensor = DeviceTypeDefinition({
606
+ name: 'MA-airQualitySensor',
607
+ code: 0x002c,
608
+ deviceClass: DeviceClasses.Simple,
609
+ revision: 1,
610
+ requiredServerClusters: [Identify.Cluster.id, AirQuality.Cluster.id],
611
+ optionalServerClusters: [
612
+ TemperatureMeasurement.Cluster.id,
613
+ RelativeHumidityMeasurement.Cluster.id,
614
+ CarbonMonoxideConcentrationMeasurement.Cluster.id,
615
+ CarbonDioxideConcentrationMeasurement.Cluster.id,
616
+ NitrogenDioxideConcentrationMeasurement.Cluster.id,
617
+ OzoneConcentrationMeasurement.Cluster.id,
618
+ FormaldehydeConcentrationMeasurement.Cluster.id,
619
+ Pm1ConcentrationMeasurement.Cluster.id,
620
+ Pm25ConcentrationMeasurement.Cluster.id,
621
+ Pm10ConcentrationMeasurement.Cluster.id,
622
+ RadonConcentrationMeasurement.Cluster.id,
623
+ TotalVolatileOrganicCompoundsConcentrationMeasurement.Cluster.id,
624
+ ],
625
+ });
626
+ export const waterFreezeDetector = DeviceTypeDefinition({
627
+ name: 'MA-waterFreezeDetector',
628
+ code: 0x0041,
629
+ deviceClass: DeviceClasses.Simple,
630
+ revision: 1,
631
+ requiredServerClusters: [Identify.Cluster.id, BooleanState.Cluster.id],
632
+ optionalServerClusters: [BooleanStateConfiguration.Cluster.id],
633
+ });
634
+ export const waterLeakDetector = DeviceTypeDefinition({
635
+ name: 'MA-waterLeakDetector',
636
+ code: 0x0043,
637
+ deviceClass: DeviceClasses.Simple,
638
+ revision: 1,
639
+ requiredServerClusters: [Identify.Cluster.id, BooleanState.Cluster.id],
640
+ optionalServerClusters: [BooleanStateConfiguration.Cluster.id],
641
+ });
642
+ export const rainSensor = DeviceTypeDefinition({
643
+ name: 'MA-rainSensor',
644
+ code: 0x0044,
645
+ deviceClass: DeviceClasses.Simple,
646
+ revision: 1,
647
+ requiredServerClusters: [Identify.Cluster.id, BooleanState.Cluster.id],
648
+ optionalServerClusters: [BooleanStateConfiguration.Cluster.id],
649
+ });
650
+ // Chapter 8. Closures device types
651
+ /**
652
+ * 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.
653
+ * Element Requirements:
654
+ *
655
+ * - AccessControl Attribute Extension
656
+ * - DoorLock Feature User
657
+ * - DoorLock Attribute AlarmMask
658
+ */
659
+ export const doorLockDevice = DeviceTypeDefinition({
660
+ name: 'MA-doorLock',
661
+ code: 0xa,
662
+ deviceClass: DeviceClasses.Simple,
663
+ revision: 3,
664
+ requiredServerClusters: [Identify.Cluster.id, DoorLock.Cluster.id],
665
+ optionalServerClusters: [ScenesManagement.Cluster.id, Groups.Cluster.id],
666
+ });
667
+ export const coverDevice = DeviceTypeDefinition({
668
+ name: 'MA-windowCovering',
669
+ code: 0x202,
670
+ deviceClass: DeviceClasses.Simple,
671
+ revision: 4,
672
+ requiredServerClusters: [Identify.Cluster.id, WindowCovering.Cluster.id],
673
+ optionalServerClusters: [Groups.Cluster.id],
674
+ });
675
+ // Chapter 9. HVAC device types
676
+ /**
677
+ * A Thermostat device is capable of having either built-in or separate sensors for temperature,
678
+ * humidity or occupancy. It allows the desired temperature to be set either remotely or locally. The
679
+ * thermostat is capable of sending heating and/or cooling requirement notifications to a heating/cooling
680
+ * unit (for example, an indoor air handler) or is capable of including a mechanism to control a
681
+ * heating or cooling unit directly.
682
+ *
683
+ */
684
+ export const thermostatDevice = DeviceTypeDefinition({
685
+ name: 'MA-thermostat',
686
+ code: 0x301,
687
+ deviceClass: DeviceClasses.Simple,
688
+ revision: 4,
689
+ requiredServerClusters: [Identify.Cluster.id, Thermostat.Cluster.id],
690
+ optionalServerClusters: [Groups.Cluster.id, ThermostatUserInterfaceConfiguration.Cluster.id, EnergyPreference.Cluster.id],
691
+ });
692
+ /**
693
+ * A Fan device is typically standalone or mounted on a ceiling or wall and is used to circulate air in a room.
694
+ * Remark: it may have a thermostat device type.
695
+ * Additional device types MAY also be included in device compositions.
696
+ * Element Requirements:
697
+ * The FanControl cluster must have the FanModeSequence attribute.
698
+ *
699
+ * The On/Off cluster is independent from the Fan Control Cluster’s FanMode attribute, which also
700
+ * includes an Off setting.
701
+ * If the FanMode attribute of the Fan Control cluster is set to a value other than Off when the OnOff
702
+ * attribute of the On/Off cluster transitions from TRUE to FALSE, it may be desirable to restore the
703
+ * FanMode, SpeedSetting and PercentSetting attribute values of the Fan Control cluster when the OnOff
704
+ * attribute of the On/Off cluster later transitions from FALSE to TRUE. If the FanMode is set to Off when
705
+ * the device is turned off, this information is lost, as the SpeedSetting and PercentSetting will be set to
706
+ * zero. Using the On/Off cluster alongside the Fan Control cluster allows the FanMode, SpeedSetting and
707
+ * PercentSetting to remain unchanged when the device is turned off. In this case, the On/Off cluster
708
+ * would be set to Off, and the SpeedCurrent and PercentCurrent set to zero, without changing FanMode,
709
+ * SpeedSetting and PercentSetting.
710
+ */
711
+ export const fanDevice = DeviceTypeDefinition({
712
+ name: 'MA-fan',
713
+ code: 0x2b,
714
+ deviceClass: DeviceClasses.Simple,
715
+ revision: 3,
716
+ requiredServerClusters: [Identify.Cluster.id, Groups.Cluster.id, FanControl.Cluster.id],
717
+ optionalServerClusters: [OnOff.Cluster.id],
718
+ });
719
+ /**
720
+ * An Air Purifier is a standalone device that is designed to clean the air in a room.
721
+ * It is a device that has a fan to control the air speed while it is operating. Optionally, it can report on
722
+ * the condition of its filters.
723
+ *
724
+ * Remark:
725
+ * An Air Purifier MAY expose elements of its functionality through one or more additional device
726
+ * types on different endpoints. All devices used in compositions SHALL adhere to the disambiguation
727
+ * requirements of the System Model. Other device types, not explicitly listed in the table, MAY also be
728
+ * included in device compositions but are not considered part of the core functionality of the device.
729
+ * 0x0301 Thermostat O
730
+ * 0x0302 Temperature Sensor O
731
+ * 0x0307 Humidity Sensor O
732
+ * 0x002C Air Quality Sensor O
733
+ *
734
+ * Cluster Restrictions:
735
+ * The On/Off cluster is independent from the Fan Control Cluster’s FanMode attribute, which also
736
+ * includes an Off setting.
737
+ * If the FanMode attribute of the Fan Control cluster is set to a value other than Off when the OnOff
738
+ * attribute of the On/Off cluster transitions from TRUE to FALSE, it may be desirable to restore the
739
+ * FanMode, SpeedSetting and PercentSetting attribute values of the Fan Control cluster when the OnOff
740
+ * attribute of the On/Off cluster later transitions from FALSE to TRUE. If the FanMode is set to Off when
741
+ * the device is turned off, this information is lost, as the SpeedSetting and PercentSetting will be set to
742
+ * zero. Using the On/Off cluster alongside the Fan Control cluster allows the FanMode, SpeedSetting and
743
+ * PercentSetting to remain unchanged when the device is turned off. In this case, the On/Off cluster
744
+ * would be set to Off, and the SpeedCurrent and PercentCurrent set to zero, without changing FanMode,
745
+ * SpeedSetting and PercentSetting.
746
+ *
747
+ */
748
+ export const airPurifier = DeviceTypeDefinition({
749
+ name: 'MA-airPurifier',
750
+ code: 0x2d,
751
+ deviceClass: DeviceClasses.Simple,
752
+ revision: 2,
753
+ requiredServerClusters: [Identify.Cluster.id, FanControl.Cluster.id],
754
+ optionalServerClusters: [Groups.Cluster.id, OnOff.Cluster.id, HepaFilterMonitoring.Cluster.id, ActivatedCarbonFilterMonitoring.Cluster.id],
755
+ });
756
+ // Chapter 10. Media Device Types
757
+ /**
758
+ * 10.2. A Basic Video Player has playback controls (play, pause, etc.) and keypad remote controls (up, down, number input),
759
+ * but is not able to launch arbitrary content applications. It is a commissionable node.
760
+ *
761
+ * Required server clusters (minimum features per spec):
762
+ * - Media Playback (media playback controls)
763
+ * - Keypad Input (remote key events)
764
+ * - On/Off (basic power control)
765
+ *
766
+ * Optional server clusters (additional capabilities commonly implemented):
767
+ * - Audio Output (speaker selection / volume endpoints)
768
+ * - Channel (linear channel navigation)
769
+ * - Target Navigator (high level app / target navigation)
770
+ * - Media Input (input source selection)
771
+ * - Low Power (power saving / wake logic)
772
+ * - Wake On LAN (remote wake capabilities)
773
+ * - Messages (device messaging / notifications)
774
+ * - Content Control (parental or content access control)
775
+ */
776
+ export const basicVideoPlayer = DeviceTypeDefinition({
777
+ name: 'MA-basicVideoPlayer',
778
+ code: 0x0028,
779
+ deviceClass: DeviceClasses.Simple,
780
+ revision: 2,
781
+ requiredServerClusters: [OnOff.Cluster.id, MediaPlayback.Cluster.id, KeypadInput.Cluster.id],
782
+ optionalServerClusters: [
783
+ WakeOnLan.Cluster.id,
784
+ Channel.Cluster.id,
785
+ TargetNavigator.Cluster.id,
786
+ MediaInput.Cluster.id,
787
+ LowPower.Cluster.id,
788
+ AudioOutput.Cluster.id,
789
+ ContentControl.Cluster.id,
790
+ Messages.Cluster.id,
791
+ ],
792
+ });
793
+ /**
794
+ * 10.3. A Casting Video Player supports Basic Video Player features and content launching features.
795
+ * It is a Commissioner and can launch Content Apps (Content Launcher cluster) and optionally expose
796
+ * an Application Launcher cluster when acting as a Content App Platform.
797
+ *
798
+ * Required server clusters (minimum features per spec):
799
+ * - Media Playback (playback controls)
800
+ * - Keypad Input (remote key events)
801
+ * - Content Launcher (content launching capability)
802
+ * - On/Off (basic power control)
803
+ *
804
+ * Optional server clusters (additional capabilities):
805
+ * - Application Launcher (hosting content apps)
806
+ * - Account Login (account / session association)
807
+ * - Audio Output (output / volume endpoints)
808
+ * - Channel (linear channel navigation)
809
+ * - Target Navigator (high level target navigation)
810
+ * - Media Input (input source selection)
811
+ * - Low Power (power saving / wake logic)
812
+ * - Wake On LAN (remote wake capabilities)
813
+ * - Messages (device messaging / notifications)
814
+ * - Content Control (parental or content access control)
815
+ */
816
+ export const castingVideoPlayer = DeviceTypeDefinition({
817
+ name: 'MA-castingVideoPlayer',
818
+ code: 0x0023,
819
+ deviceClass: DeviceClasses.Simple,
820
+ revision: 2,
821
+ requiredServerClusters: [OnOff.Cluster.id, MediaPlayback.Cluster.id, KeypadInput.Cluster.id, ContentLauncher.Cluster.id],
822
+ optionalServerClusters: [
823
+ WakeOnLan.Cluster.id,
824
+ Channel.Cluster.id,
825
+ TargetNavigator.Cluster.id,
826
+ MediaInput.Cluster.id,
827
+ LowPower.Cluster.id,
828
+ AudioOutput.Cluster.id,
829
+ ApplicationLauncher.Cluster.id,
830
+ AccountLogin.Cluster.id,
831
+ ContentControl.Cluster.id,
832
+ Messages.Cluster.id,
833
+ ],
834
+ });
835
+ /**
836
+ * 10.4. A Speaker device type controls the speaker.
837
+ * unmute/mute, the On/Off cluster SHALL be used. A value of TRUE for the OnOff attribute
838
+ * SHALL represent the volume on (not muted) state, while a value of FALSE SHALL represent the volume
839
+ * off (muted) state. For volume level control, the Level cluster SHALL be used.
840
+ */
841
+ export const speakerDevice = DeviceTypeDefinition({
842
+ name: 'MA-speaker',
843
+ code: 0x0022,
844
+ deviceClass: DeviceClasses.Simple,
845
+ revision: 1,
846
+ requiredServerClusters: [OnOff.Cluster.id, LevelControl.Cluster.id],
847
+ optionalServerClusters: [],
848
+ });
849
+ // Chapter 11. Generic Device Types
850
+ export const modeSelect = DeviceTypeDefinition({
851
+ name: 'MA-modeselect',
852
+ code: 0x27,
853
+ deviceClass: DeviceClasses.Simple,
854
+ revision: 1,
855
+ requiredServerClusters: [ModeSelect.Cluster.id],
856
+ });
857
+ /**
858
+ * This device type aggregates endpoints as a collection. Clusters on the endpoint indicating this
859
+ * device type provide functionality for the collection of descendant endpoints present in the PartsList
860
+ * of the endpoint’s descriptor, for example the Actions cluster.
861
+ *
862
+ * Endpoint Composition:
863
+ * An Aggregator endpoint’s Descriptor cluster PartsList attribute SHALL list the collection of all endpoints
864
+ * aggregated by the Aggregator device type, i.e. the full-family pattern defined in the System Model specification.
865
+ *
866
+ * Disambiguation:
867
+ * If the Duplicate condition applies to child endpoints of an Aggregator endpoint that represent multiple
868
+ * independent bridged devices, the endpoints SHOULD make available metadata to allow a
869
+ * client to disambiguate distinct bridged devices with an overlap in application device types.
870
+ *
871
+ * Typically this is done using the NodeLabel attribute of the Bridged Device Basic Information cluster
872
+ * - thus reusing the naming information which the bridge already has to allow disambiguation to the
873
+ * user when using a direct user interface to the bridge.
874
+ *
875
+ * Actions cluster (9.14 Matter specification):
876
+ * If a Bridge has (such) information on topology or logical grouping, it SHOULD expose such information
877
+ * in the EndpointLists attribute of an Actions cluster (the ActionLists of which MAY be empty if
878
+ * no actions are exposed). 9.12 Matter specification
879
+ *
880
+ * 9.12.5. New features for Bridged Devices
881
+ * Bridged Devices can have their software updated independently of the Bridge, through Bridge Manufacturer-
882
+ * specific means. These updates MAY result in one or more changes to their capabilities,
883
+ * such as supported clusters and/or attributes, for an endpoint. Like every Matter Node, every endpoint
884
+ * on the Bridge’s Node contains a Descriptor cluster that contains attributes for the device types
885
+ * (DeviceTypeList), endpoints (PartsList) and supported clusters (ServerList and ClientList). Nodes
886
+ * that wish to be notified of such changes SHOULD monitor changes of these attributes.
887
+ */
888
+ export const aggregator = DeviceTypeDefinition({
889
+ name: 'MA-aggregator',
890
+ code: 0x000e,
891
+ deviceClass: DeviceClasses.Dynamic,
892
+ revision: 2,
893
+ requiredServerClusters: [],
894
+ optionalServerClusters: [Actions.Cluster.id, Identify.Cluster.id, CommissionerControl.Cluster.id],
895
+ });
896
+ export const bridge = aggregator;
897
+ // Chapter 12. Robotic Device Types
898
+ /**
899
+ * A Robotic Vacuum Cleaner is a device that is capable of cleaning floors and other surfaces
900
+ * in a home or office environment. It is typically a mobile device that can navigate around
901
+ * obstacles and can be controlled remotely.
902
+ *
903
+ * Cluster Usage:
904
+ * The RVC Operational State cluster’s OperationalState attribute SHALL be updated according to the
905
+ * state of the device, and therefore it SHOULD be used for monitoring purposes.
906
+ *
907
+ * To attempt starting a cleaning operation, the RVC Run Mode cluster can be sent a ChangeToMode
908
+ * command with the NewMode field set to a mode that has the Cleaning mode tag associated with it.
909
+ *
910
+ * To attempt stopping a cleaning operation, the RVC Run Mode cluster can be sent a ChangeToMode
911
+ * command with the NewMode field set to a mode that has the Idle mode tag associated with it.
912
+ *
913
+ * To attempt pausing a cleaning operation, the RVC Operational State cluster can be sent a Pause command.
914
+ *
915
+ * To attempt resuming a cleaning operation, the RVC Operational State cluster can be sent a Resume
916
+ * command.
917
+ *
918
+ *
919
+ */
920
+ export const roboticVacuumCleaner = DeviceTypeDefinition({
921
+ name: 'MA-roboticvacuumcleaner',
922
+ code: 0x74,
923
+ deviceClass: DeviceClasses.Simple,
924
+ revision: 4,
925
+ requiredServerClusters: [Identify.Cluster.id, RvcRunMode.Cluster.id, RvcOperationalState.Cluster.id],
926
+ optionalServerClusters: [RvcCleanMode.Cluster.id, ServiceArea.Cluster.id],
927
+ });
928
+ // Chapter 13. Appliances device types
929
+ /**
930
+ * Cluster Restrictions:
931
+ * On/Off Cluster: the DF (Dead Front) feature is required
932
+ * Operational State Event OperationCompletion
933
+ */
934
+ export const laundryWasher = DeviceTypeDefinition({
935
+ name: 'MA-laundrywasher',
936
+ code: 0x73,
937
+ deviceClass: DeviceClasses.Simple,
938
+ revision: 2,
939
+ requiredServerClusters: [OperationalState.Cluster.id],
940
+ optionalServerClusters: [Identify.Cluster.id, LaundryWasherMode.Cluster.id, OnOff.Cluster.id, LaundryWasherControls.Cluster.id, TemperatureControl.Cluster.id],
941
+ });
942
+ /**
943
+ * A refrigerator represents a device that contains one or more cabinets that are capable of chilling or freezing food.
944
+ * A Refrigerator SHALL be composed of at least one endpoint with the Temperature Controlled Cabinet device type.
945
+ * A Refrigerator SHALL have the Cooler condition applied to at least one endpoint containing the Temperature Control Cluster.
946
+ *
947
+ * Device Type Requirements:
948
+ * 0x0071 Temperature Controlled Cabinet with Cooler condition
949
+ */
950
+ export const refrigerator = DeviceTypeDefinition({
951
+ name: 'MA-refrigerator',
952
+ code: 0x70,
953
+ deviceClass: DeviceClasses.Simple,
954
+ revision: 2,
955
+ requiredServerClusters: [],
956
+ optionalServerClusters: [Identify.Cluster.id, RefrigeratorAndTemperatureControlledCabinetMode.Cluster.id, RefrigeratorAlarm.Cluster.id],
957
+ });
958
+ /**
959
+ * A Room Air Conditioner is a device with the primary function of controlling the air temperature in a single room.
960
+ *
961
+ * A Room Air Conditioner MAY have zero or more of each device type listed in this table subject to
962
+ * the conformance column of the table. All devices used in compositions SHALL adhere to the disambiguation
963
+ * requirements of the System Model. Additional device types not listed in this table MAY also be included in device compositions.
964
+ * 0x0302 Temperature Sensor O
965
+ * 0x0307 Humidity Sensor O
966
+ *
967
+ * Remark:
968
+ * The DF (Dead Front) feature is required for the On/Off cluster in this device type:
969
+ * - Thermostat LocalTemperature null
970
+ * - Temperature Measurement MeasuredValue null
971
+ * - Relative Humidity Measurement MeasuredValue null
972
+ * - Fan Control SpeedSetting null
973
+ * - Fan Control PercentSetting null
974
+ */
975
+ export const airConditioner = DeviceTypeDefinition({
976
+ name: 'MA-airConditioner',
977
+ code: 0x72,
978
+ deviceClass: DeviceClasses.Simple,
979
+ revision: 2,
980
+ requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, Thermostat.Cluster.id],
981
+ optionalServerClusters: [
982
+ Groups.Cluster.id,
983
+ ScenesManagement.Cluster.id,
984
+ FanControl.Cluster.id,
985
+ ThermostatUserInterfaceConfiguration.Cluster.id,
986
+ TemperatureMeasurement.Cluster.id,
987
+ RelativeHumidityMeasurement.Cluster.id,
988
+ ],
989
+ });
990
+ /**
991
+ * A Temperature Controlled Cabinet only exists composed as part of another device type. It represents
992
+ * a single cabinet that is capable of having its temperature controlled. Such a cabinet may be
993
+ * chilling or freezing food, for example as part of a refrigerator, freezer, wine chiller, or other similar
994
+ * device. Equally, such a cabinet may be warming or heating food, for example as part of an oven,
995
+ * range, or similar device.
996
+ *
997
+ * Conditions:
998
+ * Cooler The device has cooling functionality.
999
+ *
1000
+ * Cluster Restrictions:
1001
+ * TemperatureNumber is the only valid temperature control mode
1002
+ */
1003
+ export const temperatureControlledCabinetCooler = DeviceTypeDefinition({
1004
+ name: 'MA-temperaturecontrolledcabinetcooler',
1005
+ code: 0x71,
1006
+ deviceClass: DeviceClasses.Simple,
1007
+ revision: 5,
1008
+ requiredServerClusters: [TemperatureControl.Cluster.id, RefrigeratorAndTemperatureControlledCabinetMode.Cluster.id],
1009
+ optionalServerClusters: [TemperatureMeasurement.Cluster.id],
1010
+ });
1011
+ /**
1012
+ * A Temperature Controlled Cabinet only exists composed as part of another device type. It represents
1013
+ * a single cabinet that is capable of having its temperature controlled. Such a cabinet may be
1014
+ * chilling or freezing food, for example as part of a refrigerator, freezer, wine chiller, or other similar
1015
+ * device. Equally, such a cabinet may be warming or heating food, for example as part of an oven,
1016
+ * range, or similar device.
1017
+ *
1018
+ * Conditions:
1019
+ * Heater The device has heating functionality.
1020
+ *
1021
+ * Cluster Restrictions:
1022
+ * TemperatureNumber is the only valid temperature control mode
1023
+ * OperationCompletion event for Oven Cavity Operational State cluster
1024
+ */
1025
+ export const temperatureControlledCabinetHeater = DeviceTypeDefinition({
1026
+ name: 'MA-temperaturecontrolledcabinetheater',
1027
+ code: 0x71,
1028
+ deviceClass: DeviceClasses.Simple,
1029
+ revision: 5,
1030
+ requiredServerClusters: [TemperatureControl.Cluster.id, OvenMode.Cluster.id, OvenCavityOperationalState.Cluster.id],
1031
+ optionalServerClusters: [TemperatureMeasurement.Cluster.id],
1032
+ });
1033
+ /**
1034
+ * Cluster Restrictions:
1035
+ * On/Off Cluster: the DF (Dead Front) feature is required
1036
+ * Operational State Event OperationCompletion
1037
+ */
1038
+ export const dishwasher = DeviceTypeDefinition({
1039
+ name: 'MA-dishwasher',
1040
+ code: 0x75,
1041
+ deviceClass: DeviceClasses.Simple,
1042
+ revision: 2,
1043
+ requiredServerClusters: [OperationalState.Cluster.id],
1044
+ optionalServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, TemperatureControl.Cluster.id, DishwasherMode.Cluster.id, DishwasherAlarm.Cluster.id],
1045
+ });
1046
+ /**
1047
+ * Cluster Restrictions:
1048
+ * On/Off Cluster: the DF (Dead Front) feature is required
1049
+ * Operational State Event OperationCompletion
1050
+ */
1051
+ export const laundryDryer = DeviceTypeDefinition({
1052
+ name: 'MA-laundrydryer',
1053
+ code: 0x7c,
1054
+ deviceClass: DeviceClasses.Simple,
1055
+ revision: 2,
1056
+ requiredServerClusters: [OperationalState.Cluster.id],
1057
+ optionalServerClusters: [Identify.Cluster.id, LaundryWasherMode.Cluster.id, OnOff.Cluster.id, LaundryDryerControls.Cluster.id, TemperatureControl.Cluster.id],
1058
+ });
1059
+ /**
1060
+ * A Cook Surface device type represents a heating object on a cooktop or other similar device. It
1061
+ * SHALL only be used when composed as part of another device type (cooktop).
1062
+ *
1063
+ * Cluster Restrictions:
1064
+ * The OffOnly feature is required for the On/Off cluster in this device type due to safety requirements. OnOff Cluster is optional.
1065
+ * The TemperatureLevel feature is the only valid temperature control feature.
1066
+ */
1067
+ export const cookSurface = DeviceTypeDefinition({
1068
+ name: 'MA-cooksurface',
1069
+ code: 0x77,
1070
+ deviceClass: DeviceClasses.Simple,
1071
+ revision: 2,
1072
+ requiredServerClusters: [],
1073
+ optionalServerClusters: [TemperatureControl.Cluster.id, TemperatureMeasurement.Cluster.id, OnOff.Cluster.id],
1074
+ });
1075
+ /**
1076
+ * A cooktop is a cooking surface that heats food either by transferring currents from an electromagnetic
1077
+ * field located below the glass surface directly to the magnetic induction cookware placed
1078
+ * above or through traditional gas or electric burners.
1079
+ *
1080
+ * Device Type Requirements:
1081
+ * A Cooktop SHALL be composed of zero or more endpoints with the Cook Surface device type as defined by the conformance below.
1082
+ * 0x0077 Cook Surface min 1 O
1083
+ *
1084
+ * Cluster Restrictions:
1085
+ * The OffOnly feature is required for the On/Off cluster in this device type due to safety requirements.
1086
+ */
1087
+ export const cooktop = DeviceTypeDefinition({
1088
+ name: 'MA-cooktop',
1089
+ code: 0x78,
1090
+ deviceClass: DeviceClasses.Simple,
1091
+ revision: 1,
1092
+ requiredServerClusters: [OnOff.Cluster.id],
1093
+ optionalServerClusters: [Identify.Cluster.id],
1094
+ });
1095
+ /**
1096
+ * An oven represents a device that contains one or more cabinets, and optionally a single cooktop, that are all capable of heating food.
1097
+ * An oven is always defined via endpoint composition.
1098
+ * Conditions:
1099
+ * An Oven SHALL have the Heater condition applied to at least one endpoint containing the Temperature Control Cluster.
1100
+ * Device Type Requirements:
1101
+ * - 0x0071 Temperature Controlled Cabinet min 1
1102
+ * - 0x0078 Cooktop max 1 Optional
1103
+ */
1104
+ export const oven = DeviceTypeDefinition({
1105
+ name: 'MA-oven',
1106
+ code: 0x7b,
1107
+ deviceClass: DeviceClasses.Simple,
1108
+ revision: 2,
1109
+ requiredServerClusters: [],
1110
+ optionalServerClusters: [Identify.Cluster.id],
1111
+ });
1112
+ /**
1113
+ * An Extractor Hood is a device that is generally installed above a cooking surface in residential kitchens.
1114
+ * Additional device types not listed in this table MAY also be included in device compositions.
1115
+ * Device Type Requirements:
1116
+ * 0x0100+ On/Off Light+ O
1117
+ *
1118
+ *
1119
+ * Element Requirements:
1120
+ * - 0x0202 Fan Control Feature Rocking X
1121
+ * - 0x0202 Fan Control Feature Wind X
1122
+ * - 0x0202 Fan Control Feature AirflowDirection X
1123
+ */
1124
+ export const extractorHood = DeviceTypeDefinition({
1125
+ name: 'MA-extractorhood',
1126
+ code: 0x7a,
1127
+ deviceClass: DeviceClasses.Simple,
1128
+ revision: 1,
1129
+ requiredServerClusters: [FanControl.Cluster.id],
1130
+ optionalServerClusters: [Identify.Cluster.id, HepaFilterMonitoring.Cluster.id, ActivatedCarbonFilterMonitoring.Cluster.id],
1131
+ });
1132
+ /**
1133
+ * A Microwave Oven is a device with the primary function of heating foods and beverages using a magnetron.
1134
+ * A Microwave Oven is a device which at a minimum is capable of being started and stopped and of setting a power level.
1135
+ * A Microwave Oven MAY also support additional capabilities via endpoint composition.
1136
+ *
1137
+ * Element Requirements:
1138
+ * Operational State Event OperationCompletion
1139
+ */
1140
+ export const microwaveOven = DeviceTypeDefinition({
1141
+ name: 'MA-microwaveoven',
1142
+ code: 0x79,
1143
+ deviceClass: DeviceClasses.Simple,
1144
+ revision: 2,
1145
+ requiredServerClusters: [OperationalState.Cluster.id, MicrowaveOvenMode.Cluster.id, MicrowaveOvenControl.Cluster.id],
1146
+ optionalServerClusters: [Identify.Cluster.id, FanControl.Cluster.id],
1147
+ });
1148
+ // Chapter 14. Energy Device Types
1149
+ /**
1150
+ * An EVSE (Electric Vehicle Supply Equipment) is a device that allows an EV (Electric Vehicle) to be
1151
+ * connected to the mains electricity supply to allow it to be charged (or discharged in case of Vehicle
1152
+ * to Grid / Vehicle to Home applications).
1153
+ *
1154
+ * 14.1.5. Device Type Requirements
1155
+ * An EVSE SHALL be composed of at least one endpoint with device types as defined by the conformance
1156
+ * below. There MAY be more endpoints with other device types existing in the EVSE.
1157
+ * - ID Name Constraint Conformance
1158
+ * - 0x0011 Power Source min 1 M
1159
+ * - 0x0510 Electrical Sensor min 1 M
1160
+ * - 0x050D Device Energy Management min 1 M
1161
+ *
1162
+ * The Electrical Sensor device SHALL include both the Electrical Energy Measurement and Electrical
1163
+ * Power Measurement clusters, measuring the total energy and power of the EVSE.
1164
+ *
1165
+ * The Device Energy Management cluster included in the Device Energy Management device SHALL
1166
+ * support the Power Forecast Reporting (PFR) feature.
1167
+ */
1168
+ export const evse = DeviceTypeDefinition({
1169
+ name: 'MA-evse',
1170
+ code: 0x050c,
1171
+ deviceClass: DeviceClasses.Simple,
1172
+ revision: 2,
1173
+ requiredServerClusters: [EnergyEvse.Cluster.id, EnergyEvseMode.Cluster.id],
1174
+ optionalServerClusters: [Identify.Cluster.id, TemperatureMeasurement.Cluster.id],
1175
+ });
1176
+ /**
1177
+ * A water heater is a device that is generally installed in properties to heat water for showers, baths etc.
1178
+ * A Water Heater is always defined via endpoint composition.
1179
+ *
1180
+ * 14.2.5. Device Type Requirements
1181
+ * A Water Heater SHALL be composed of at least one endpoint with device types as defined by the
1182
+ * conformance below. There MAY be more endpoints with other device types existing in the Water Heater.
1183
+ * - ID Name Constraint Conformance
1184
+ * - 0x0011 Power Source O
1185
+ * - 0x0302 Temperature Sensor O
1186
+ * - 0x0510 Electrical Sensor desc
1187
+ * - 0x050D Device Energy Management O
1188
+ *
1189
+ * 14.2.7. Element Requirements
1190
+ * 0x0201 Thermostat Feature Heating M
1191
+ *
1192
+ * The Energy Management feature of the Water Heater cluster SHALL be supported if the Device
1193
+ * Energy Management device type is included.
1194
+ * If Off is a supported SystemMode in the Thermostat cluster, setting the SystemMode of the Thermostat
1195
+ * cluster to Off SHALL set the CurrentMode attribute of the Water Heater Mode cluster to a mode
1196
+ * having the Off mode tag value and vice versa.
1197
+ * At least one entry in the SupportedModes attribute of the Water Heater Mode cluster SHALL
1198
+ * include the Timed mode tag in the ModeTags field list.
1199
+ *
1200
+ * WaterHeaterMode Cluster
1201
+ * 9.6.6.1. SupportedModes Attribute
1202
+ * At least one entry in the SupportedModes attribute SHALL include the Manual mode tag in the
1203
+ * ModeTags field list.
1204
+ * At least one entry in the SupportedModes attribute SHALL include the Off mode tag in the ModeTags
1205
+ * field list.
1206
+ * An entry in the SupportedModes attribute that includes one of an Off, Manual, or Timed tag SHALL
1207
+ * NOT also include an additional instance of any one of these tag types.
1208
+ */
1209
+ export const waterHeater = DeviceTypeDefinition({
1210
+ name: 'MA-waterheater',
1211
+ code: 0x050f,
1212
+ deviceClass: DeviceClasses.Simple,
1213
+ revision: 1,
1214
+ requiredServerClusters: [Thermostat.Cluster.id, WaterHeaterManagement.Cluster.id, WaterHeaterMode.Cluster.id],
1215
+ optionalServerClusters: [Identify.Cluster.id],
1216
+ });
1217
+ /**
1218
+ * A Solar Power device is a device that allows a solar panel array, which can optionally be comprised
1219
+ * of a set parallel strings of solar panels, and its associated controller and, if appropriate, inverter, to
1220
+ * be monitored and controlled by an Energy Management System.
1221
+ *
1222
+ * 14.3.5. Device Type Requirements
1223
+ * A Solar Power device SHALL be composed of at least one endpoint with device types as defined by
1224
+ * the conformance below. There MAY be more endpoints with additional instances of these device
1225
+ * types or additional device types existing in the Solar Power device.
1226
+ *
1227
+ * - ID Name Constraint Conformance
1228
+ * - 0x0011 Power Source min 1 M
1229
+ * - 0x0510 Electrical Sensor min 1 M
1230
+ * - 0x050D Device Energy Management O
1231
+ * - 0x0302 Temperature Sensor O
1232
+ *
1233
+ * 14.3.5.1. Cluster Requirements on Composing Device Types
1234
+ *
1235
+ * - 0x0011 Power Source 0x002F Power Source Feature Wired M
1236
+ * - 0x0011 Power Source 0x001D Descriptor Feature TagList M
1237
+ * - 0x0510 Electrical Sensor 0x0090 Electrical Power Measurement M
1238
+ * - 0x0510 Electrical Sensor 0x0090 Electrical Power Measurement Attribute Voltage M
1239
+ * - 0x0510 Electrical Sensor 0x0090 Electrical Power Measurement Attribute ActiveCurrent M
1240
+ * - 0x0510 Electrical Sensor 0x0091 Electrical Energy Measurement M
1241
+ * - 0x0510 Electrical Sensor 0x0091 Electrical Energy Measurement Feature ExportedEnergy M
1242
+ * - 0x050D Device Energy Management 0x0098 Device Energy Management Feature PowerAdjustment M
1243
+ * - 0x0302 Temperature Sensor 0x001D Descriptor Feature TagList M
1244
+ */
1245
+ export const solarPower = DeviceTypeDefinition({
1246
+ name: 'MA-solarpower',
1247
+ code: 0x0017,
1248
+ deviceClass: DeviceClasses.Simple,
1249
+ revision: 1,
1250
+ requiredServerClusters: [], // See 14.3.5.1. Cluster Requirements on Composing Device Types
1251
+ optionalServerClusters: [Identify.Cluster.id],
1252
+ });
1253
+ /**
1254
+ * A Battery Storage device is a device that allows a DC battery, which can optionally be comprised of
1255
+ * a set parallel strings of battery packs and associated controller, and an AC inverter, to be monitored
1256
+ * and controlled by an Energy Management System in order to manage the peaks and troughs of supply
1257
+ * and demand, and/or to optimize cost of the energy consumed in premises. It is not intended to
1258
+ * be used for a UPS directly supplying a set of appliances, nor for portable battery storage devices.
1259
+ *
1260
+ * 14.4.5. Device Type Requirements
1261
+ * A Battery Storage device SHALL be composed of at least one endpoint with device types as defined by
1262
+ * the conformance below. There MAY be more endpoints with additional instances of these device
1263
+ * types or additional device types existing in the Battery Storage device.
1264
+ * - ID Name Constraint Conformance
1265
+ * - 0x0011 Power Source min 1 M
1266
+ * - 0x0510 Electrical Sensor min 1 M
1267
+ * - 0x050D Device Energy Management M
1268
+ * - 0x0302 Temperature Sensor O
1269
+ * - 0x0017 Solar Power O
1270
+ *
1271
+ * See 14.4.5.1. Cluster Requirements on Composing Device Types
1272
+ */
1273
+ export const batteryStorage = DeviceTypeDefinition({
1274
+ name: 'MA-batterystorage',
1275
+ code: 0x0018,
1276
+ deviceClass: DeviceClasses.Simple,
1277
+ revision: 1,
1278
+ requiredServerClusters: [], // See 14.4.5.1. Cluster Requirements on Composing Device Types
1279
+ optionalServerClusters: [Identify.Cluster.id],
1280
+ });
1281
+ /**
1282
+ * A Heat Pump device is a device that uses electrical energy to heat either spaces or water tanks using
1283
+ * ground, water or air as the heat source. These typically can heat the air or can pump water via central
1284
+ * heating radiators or underfloor heating systems. It is typical to also heat hot water and store
1285
+ * the heat in a hot water tank.
1286
+ *
1287
+ * 14.5.1. Heat Pump Architecture
1288
+ * A Heat Pump device is always defined via endpoint composition.
1289
+ *
1290
+ * 14.5.5. Device Type Requirements
1291
+ * A Heat Pump device SHALL be composed of at least one endpoint with device types as defined by
1292
+ * the conformance below. There MAY be more endpoints with additional instances of these device
1293
+ * types or additional device types existing in the Heat Pump device.
1294
+ * - ID Name Constraint Conformance
1295
+ * - 0x0011 Power Source M
1296
+ * - 0x0510 Electrical Sensor min 1 M
1297
+ * - 0x050D Device Energy Management M
1298
+ * - 0x0301 Thermostat O
1299
+ * - 0x050f Water Heater O
1300
+ * - 0x0302 Temperature Sensor O
1301
+ *
1302
+ * See 14.5.5.1. Cluster Requirements on Composing Device Types
1303
+ */
1304
+ export const heatPump = DeviceTypeDefinition({
1305
+ name: 'MA-heatpump',
1306
+ code: 0x0309,
1307
+ deviceClass: DeviceClasses.Simple,
1308
+ revision: 1,
1309
+ requiredServerClusters: [], // See 14.5.5.1. Cluster Requirements on Composing Device Types
1310
+ optionalServerClusters: [Identify.Cluster.id, Thermostat.Cluster.id],
1311
+ });
1312
+ //# sourceMappingURL=matterbridgeDeviceTypes.js.map