matterbridge 1.5.3 → 1.5.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 (115) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README-DEV.md +13 -4
  3. package/README.md +32 -11
  4. package/dist/cluster/export.d.ts +1 -21
  5. package/dist/cluster/export.d.ts.map +1 -1
  6. package/dist/cluster/export.js +2 -21
  7. package/dist/cluster/export.js.map +1 -1
  8. package/dist/matterbridge.js +20 -20
  9. package/dist/matterbridge.js.map +1 -1
  10. package/dist/matterbridgeDevice.d.ts +105 -210
  11. package/dist/matterbridgeDevice.d.ts.map +1 -1
  12. package/dist/matterbridgeDevice.js +31 -48
  13. package/dist/matterbridgeDevice.js.map +1 -1
  14. package/dist/matterbridgePlatform.d.ts +6 -0
  15. package/dist/matterbridgePlatform.d.ts.map +1 -1
  16. package/dist/matterbridgePlatform.js +26 -0
  17. package/dist/matterbridgePlatform.js.map +1 -1
  18. package/dist/pluginManager.d.ts.map +1 -1
  19. package/dist/pluginManager.js +72 -5
  20. package/dist/pluginManager.js.map +1 -1
  21. package/frontend/build/asset-manifest.json +3 -3
  22. package/frontend/build/index.html +1 -1
  23. package/frontend/build/static/js/{main.6725e5ab.js → main.f86befcf.js} +3 -3
  24. package/frontend/build/static/js/{main.6725e5ab.js.map → main.f86befcf.js.map} +1 -1
  25. package/npm-shrinkwrap.json +7334 -0
  26. package/package.json +13 -12
  27. package/dist/cluster/AirQualityCluster.d.ts +0 -188
  28. package/dist/cluster/AirQualityCluster.d.ts.map +0 -1
  29. package/dist/cluster/AirQualityCluster.js +0 -98
  30. package/dist/cluster/AirQualityCluster.js.map +0 -1
  31. package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts +0 -396
  32. package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts.map +0 -1
  33. package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js +0 -30
  34. package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js.map +0 -1
  35. package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts +0 -396
  36. package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts.map +0 -1
  37. package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js +0 -30
  38. package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js.map +0 -1
  39. package/dist/cluster/ConcentrationMeasurementCluster.d.ts +0 -524
  40. package/dist/cluster/ConcentrationMeasurementCluster.d.ts.map +0 -1
  41. package/dist/cluster/ConcentrationMeasurementCluster.js +0 -282
  42. package/dist/cluster/ConcentrationMeasurementCluster.js.map +0 -1
  43. package/dist/cluster/DeviceEnergyManagementCluster.d.ts +0 -7851
  44. package/dist/cluster/DeviceEnergyManagementCluster.d.ts.map +0 -1
  45. package/dist/cluster/DeviceEnergyManagementCluster.js +0 -1634
  46. package/dist/cluster/DeviceEnergyManagementCluster.js.map +0 -1
  47. package/dist/cluster/DeviceEnergyManagementModeCluster.d.ts +0 -68
  48. package/dist/cluster/DeviceEnergyManagementModeCluster.d.ts.map +0 -1
  49. package/dist/cluster/DeviceEnergyManagementModeCluster.js +0 -49
  50. package/dist/cluster/DeviceEnergyManagementModeCluster.js.map +0 -1
  51. package/dist/cluster/ElectricalEnergyMeasurementCluster.d.ts +0 -4978
  52. package/dist/cluster/ElectricalEnergyMeasurementCluster.d.ts.map +0 -1
  53. package/dist/cluster/ElectricalEnergyMeasurementCluster.js +0 -510
  54. package/dist/cluster/ElectricalEnergyMeasurementCluster.js.map +0 -1
  55. package/dist/cluster/ElectricalPowerMeasurementCluster.d.ts +0 -3250
  56. package/dist/cluster/ElectricalPowerMeasurementCluster.d.ts.map +0 -1
  57. package/dist/cluster/ElectricalPowerMeasurementCluster.js +0 -675
  58. package/dist/cluster/ElectricalPowerMeasurementCluster.js.map +0 -1
  59. package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts +0 -396
  60. package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts.map +0 -1
  61. package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js +0 -30
  62. package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js.map +0 -1
  63. package/dist/cluster/MeasurementAccuracy.d.ts +0 -63
  64. package/dist/cluster/MeasurementAccuracy.d.ts.map +0 -1
  65. package/dist/cluster/MeasurementAccuracy.js +0 -47
  66. package/dist/cluster/MeasurementAccuracy.js.map +0 -1
  67. package/dist/cluster/MeasurementAccuracyRange.d.ts +0 -134
  68. package/dist/cluster/MeasurementAccuracyRange.d.ts.map +0 -1
  69. package/dist/cluster/MeasurementAccuracyRange.js +0 -103
  70. package/dist/cluster/MeasurementAccuracyRange.js.map +0 -1
  71. package/dist/cluster/MeasurementType.d.ts +0 -68
  72. package/dist/cluster/MeasurementType.d.ts.map +0 -1
  73. package/dist/cluster/MeasurementType.js +0 -69
  74. package/dist/cluster/MeasurementType.js.map +0 -1
  75. package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts +0 -396
  76. package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts.map +0 -1
  77. package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js +0 -34
  78. package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js.map +0 -1
  79. package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts +0 -395
  80. package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts.map +0 -1
  81. package/dist/cluster/OzoneConcentrationMeasurementCluster.js +0 -29
  82. package/dist/cluster/OzoneConcentrationMeasurementCluster.js.map +0 -1
  83. package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts +0 -395
  84. package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts.map +0 -1
  85. package/dist/cluster/Pm10ConcentrationMeasurementCluster.js +0 -29
  86. package/dist/cluster/Pm10ConcentrationMeasurementCluster.js.map +0 -1
  87. package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts +0 -395
  88. package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts.map +0 -1
  89. package/dist/cluster/Pm1ConcentrationMeasurementCluster.js +0 -29
  90. package/dist/cluster/Pm1ConcentrationMeasurementCluster.js.map +0 -1
  91. package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts +0 -395
  92. package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts.map +0 -1
  93. package/dist/cluster/Pm25ConcentrationMeasurementCluster.js +0 -29
  94. package/dist/cluster/Pm25ConcentrationMeasurementCluster.js.map +0 -1
  95. package/dist/cluster/PowerTopologyCluster.d.ts +0 -345
  96. package/dist/cluster/PowerTopologyCluster.d.ts.map +0 -1
  97. package/dist/cluster/PowerTopologyCluster.js +0 -138
  98. package/dist/cluster/PowerTopologyCluster.js.map +0 -1
  99. package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts +0 -395
  100. package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts.map +0 -1
  101. package/dist/cluster/RadonConcentrationMeasurementCluster.js +0 -29
  102. package/dist/cluster/RadonConcentrationMeasurementCluster.js.map +0 -1
  103. package/dist/cluster/ScenesCluster.d.ts +0 -1249
  104. package/dist/cluster/ScenesCluster.d.ts.map +0 -1
  105. package/dist/cluster/ScenesCluster.js +0 -436
  106. package/dist/cluster/ScenesCluster.js.map +0 -1
  107. package/dist/cluster/SmokeCoAlarmCluster.d.ts +0 -1575
  108. package/dist/cluster/SmokeCoAlarmCluster.d.ts.map +0 -1
  109. package/dist/cluster/SmokeCoAlarmCluster.js +0 -603
  110. package/dist/cluster/SmokeCoAlarmCluster.js.map +0 -1
  111. package/dist/cluster/TvocCluster.d.ts +0 -465
  112. package/dist/cluster/TvocCluster.d.ts.map +0 -1
  113. package/dist/cluster/TvocCluster.js +0 -197
  114. package/dist/cluster/TvocCluster.js.map +0 -1
  115. /package/frontend/build/static/js/{main.6725e5ab.js.LICENSE.txt → main.f86befcf.js.LICENSE.txt} +0 -0
@@ -1 +0,0 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,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAElD,MAAM,QAAQ,EAAE,QAA2B,CAAC;CACpD;AAED,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,CAAC;AACvD,eAAO,MAAM,mBAAmB;;;;;QAlP1B;;;;WAIG;;QAGH;;;;WAIG;;;;QAKH;;;;;;;;;;;;;WAaG;;QAGH;;;;;;;WAOG;;QAGH;;;;;WAKG;;QAGH;;;;;WAKG;;QAGH;;;;;WAKG;;QAGH;;;;;WAKG;;QAGH;;;;;;WAMG;;QAGH;;;;;;WAMG;;QAGH;;;;;;;;WAQG;;;;QAKH;;;;;;;;;;;;;;WAcG;;;;QAKH;;;;WAIG;;YAzPL;;;;eAIG;;;QAwPD;;;;;WAKG;;QAGH;;;;WAIG;;QAGH;;;;;WAKG;;QAGH;;;;WAIG;;QAGH;;;;WAIG;;QAGH;;;;WAIG;;;IAIL;;;OAGG;;;;;;;gBAxRD;;;;mBAIG;;gBAGH;;;;mBAIG;;gBAGH;;;;mBAIG;;;;gBAKH;;;;mBAIG;;oBAtRL;;;;uBAIG;;;gBAqRD;;;;;mBAKG;;oBAzQL;;;;uBAIG;;;;;;;;;;;gBA+QD;;;;mBAIG;;;;gBAKH;;;;mBAIG;;oBA3QL;;;;uBAIG;;;gBA0QD;;;;;mBAKG;;oBA9PL;;;;uBAIG;;;;;;;;;;;;EA+gBgD,CAAC"}
@@ -1,603 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-namespace */
2
- /**
3
- * @license
4
- * Copyright 2022-2024 Matter.js Authors
5
- * SPDX-License-Identifier: Apache-2.0
6
- */
7
- /** * THIS FILE IS GENERATED, DO NOT EDIT ***/
8
- import { AccessLevel, ClusterRegistry, EventPriority, MutableCluster, OptionalAttribute, OptionalCommand, OptionalEvent, OptionalFixedAttribute, OptionalWritableAttribute, TlvNoResponse } from '@project-chip/matter-node.js/cluster';
9
- import { Attribute, Event } from '@project-chip/matter-node.js/cluster';
10
- import { BitFlag } from '@project-chip/matter-node.js/schema';
11
- import { TlvObject, TlvField, TlvEpochS, TlvEnum, TlvBoolean, TlvNoArguments } from '@project-chip/matter-node.js/tlv';
12
- export var SmokeCoAlarm;
13
- (function (SmokeCoAlarm) {
14
- /**
15
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.1
16
- */
17
- let AlarmState;
18
- (function (AlarmState) {
19
- /**
20
- * Nominal state, the device is not alarming
21
- *
22
- * This value shall indicate that this alarm is not alarming.
23
- *
24
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.1.1
25
- */
26
- AlarmState[AlarmState["Normal"] = 0] = "Normal";
27
- /**
28
- * Warning state
29
- *
30
- * This value shall indicate that this alarm is in a warning state. Alarms in this state SHOULD be subject to
31
- * being muted via physical interaction.
32
- *
33
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.1.2
34
- */
35
- AlarmState[AlarmState["Warning"] = 1] = "Warning";
36
- /**
37
- * Critical state
38
- *
39
- * This value shall indicate that this alarm is in a critical state. Alarms in this state shall NOT be subject
40
- * to being muted via physical interaction.
41
- *
42
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.1.3
43
- */
44
- AlarmState[AlarmState["Critical"] = 2] = "Critical";
45
- })(AlarmState = SmokeCoAlarm.AlarmState || (SmokeCoAlarm.AlarmState = {}));
46
- /**
47
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.6
48
- */
49
- let ContaminationState;
50
- (function (ContaminationState) {
51
- /**
52
- * Nominal state, the sensor is not contaminated
53
- *
54
- * This value shall indicate that the smoke sensor has nominal contamination levels, no customer action is
55
- * required.
56
- *
57
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.6.1
58
- */
59
- ContaminationState[ContaminationState["Normal"] = 0] = "Normal";
60
- /**
61
- * Low contamination
62
- *
63
- * This value shall indicate that the smoke sensor has detectable contamination levels, but the contamination
64
- * is too low to cause a visible or audible alarm.
65
- *
66
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.6.2
67
- */
68
- ContaminationState[ContaminationState["Low"] = 1] = "Low";
69
- /**
70
- * Warning state
71
- *
72
- * This value shall indicate that the smoke sensor has contamination levels in a warning state. At this level,
73
- * the contamination may cause a visible or audible alarm. User intervention is suggested.
74
- *
75
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.6.3
76
- */
77
- ContaminationState[ContaminationState["Warning"] = 2] = "Warning";
78
- /**
79
- * Critical state, will cause nuisance alarms
80
- *
81
- * This value shall indicate that the smoke sensor has contamination levels in a critical state. At this level,
82
- * the contamination should cause a visible or audible alarm. User intervention is required. Critical
83
- * contamination of the sensor shall also be reflected as a HardwareFault.
84
- *
85
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.6.4
86
- */
87
- ContaminationState[ContaminationState["Critical"] = 3] = "Critical";
88
- })(ContaminationState = SmokeCoAlarm.ContaminationState || (SmokeCoAlarm.ContaminationState = {}));
89
- /**
90
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.2
91
- */
92
- let Sensitivity;
93
- (function (Sensitivity) {
94
- /**
95
- * High sensitivity
96
- */
97
- Sensitivity[Sensitivity["High"] = 0] = "High";
98
- /**
99
- * Standard Sensitivity
100
- */
101
- Sensitivity[Sensitivity["Standard"] = 1] = "Standard";
102
- /**
103
- * Low sensitivity
104
- */
105
- Sensitivity[Sensitivity["Low"] = 2] = "Low";
106
- })(Sensitivity = SmokeCoAlarm.Sensitivity || (SmokeCoAlarm.Sensitivity = {}));
107
- /**
108
- * Body of the SmokeCoAlarm smokeAlarm event
109
- *
110
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.1
111
- */
112
- SmokeCoAlarm.TlvSmokeAlarmEvent = TlvObject({
113
- /**
114
- * This field shall indicate the current value of the SmokeState attribute.
115
- *
116
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.1.1
117
- */
118
- alarmSeverityLevel: TlvField(0, TlvEnum()),
119
- });
120
- /**
121
- * Body of the SmokeCoAlarm interconnectSmokeAlarm event
122
- *
123
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.9
124
- */
125
- SmokeCoAlarm.TlvInterconnectSmokeAlarmEvent = TlvObject({
126
- /**
127
- * This field shall indicate the current value of the InterconnectSmokeAlarm attribute.
128
- *
129
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.9.1
130
- */
131
- alarmSeverityLevel: TlvField(0, TlvEnum()),
132
- });
133
- /**
134
- * Body of the SmokeCoAlarm coAlarm event
135
- *
136
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.2
137
- */
138
- SmokeCoAlarm.TlvCoAlarmEvent = TlvObject({
139
- /**
140
- * This field shall indicate the current value of the COState attribute.
141
- *
142
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.2.1
143
- */
144
- alarmSeverityLevel: TlvField(0, TlvEnum()),
145
- });
146
- /**
147
- * Body of the SmokeCoAlarm interconnectCoAlarm event
148
- *
149
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.10
150
- */
151
- SmokeCoAlarm.TlvInterconnectCoAlarmEvent = TlvObject({
152
- /**
153
- * This field shall indicate the current value of the InterconnectCOAlarm attribute.
154
- *
155
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.10.1
156
- */
157
- alarmSeverityLevel: TlvField(0, TlvEnum()),
158
- });
159
- /**
160
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3
161
- */
162
- let ExpressedState;
163
- (function (ExpressedState) {
164
- /**
165
- * Nominal state, the device is not alarming
166
- *
167
- * This value shall indicate that this alarm is not alarming.
168
- *
169
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3.1
170
- */
171
- ExpressedState[ExpressedState["Normal"] = 0] = "Normal";
172
- /**
173
- * Smoke Alarm state
174
- *
175
- * This value shall indicate that this alarm is currently expressing visual indication of Smoke Alarm. This
176
- * value shall indicate that the alarm is currently expressing audible indication of Smoke Alarm unless the
177
- * DeviceMuted attribute is supported and set to Muted.
178
- *
179
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3.2
180
- */
181
- ExpressedState[ExpressedState["SmokeAlarm"] = 1] = "SmokeAlarm";
182
- /**
183
- * CO Alarm state
184
- *
185
- * This value shall indicate that this alarm is currently expressing visual indication of CO Alarm. This value
186
- * shall indicate that the alarm is currently expressing audible indication of CO Alarm unless the DeviceMuted
187
- * attribute is supported and set to Muted.
188
- *
189
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3.3
190
- */
191
- ExpressedState[ExpressedState["CoAlarm"] = 2] = "CoAlarm";
192
- /**
193
- * Battery Alert State
194
- *
195
- * This value shall indicate that this alarm is currently expressing visual indication of Critical Low Battery.
196
- * This value shall indicate that the alarm is currently expressing audible indication of Critical Low Battery
197
- * unless the DeviceMuted attribute is supported and set to Muted.
198
- *
199
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3.4
200
- */
201
- ExpressedState[ExpressedState["BatteryAlert"] = 3] = "BatteryAlert";
202
- /**
203
- * Test in Progress
204
- *
205
- * This value shall indicate that this alarm is currently expressing visual and audible indication of SelfTest.
206
- *
207
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3.5
208
- */
209
- ExpressedState[ExpressedState["Testing"] = 4] = "Testing";
210
- /**
211
- * Hardware Fault Alert State
212
- *
213
- * This value shall indicate that this alarm is currently expressing visual indication of Hardware Fault. This
214
- * value shall indicate that the alarm is currently expressing audible indication of Hardware Fault unless the
215
- * DeviceMuted attribute is supported and set to Muted.
216
- *
217
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3.6
218
- */
219
- ExpressedState[ExpressedState["HardwareFault"] = 5] = "HardwareFault";
220
- /**
221
- * End of Service Alert State
222
- *
223
- * This value shall indicate that this alarm is currently expressing visual indication of End Of Service. This
224
- * value shall indicate that the alarm is currently expressing audible indication of End of Service unless the
225
- * DeviceMuted attribute is supported and set to Muted.
226
- *
227
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3.7
228
- */
229
- ExpressedState[ExpressedState["EndOfService"] = 6] = "EndOfService";
230
- /**
231
- * Interconnected Smoke Alarm State
232
- *
233
- * This value shall indicate that this alarm is currently expressing visual indication of Smoke Alarm caused by
234
- * Interconnect. This value shall indicate that the alarm is currently expressing audible indication of Smoke
235
- * Alarm caused by Interconnect unless the DeviceMuted attribute is supported and set to Muted.
236
- *
237
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3.8
238
- */
239
- ExpressedState[ExpressedState["InterconnectSmoke"] = 7] = "InterconnectSmoke";
240
- /**
241
- * Interconnected CO Alarm State
242
- *
243
- * This value shall indicate that this alarm is currently expressing visual indication of CO Alarm caused by
244
- * Interconnect. This value shall indicate that the alarm is currently expressing audible indication of CO
245
- * Alarm caused by Interconnect unless the DeviceMuted attribute is supported and set to Muted.
246
- *
247
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.3.9
248
- */
249
- ExpressedState[ExpressedState["InterconnectCo"] = 8] = "InterconnectCo";
250
- })(ExpressedState = SmokeCoAlarm.ExpressedState || (SmokeCoAlarm.ExpressedState = {}));
251
- /**
252
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.4
253
- */
254
- let MuteState;
255
- (function (MuteState) {
256
- /**
257
- * Not Muted
258
- *
259
- * This value shall indicate that the device is not muted.
260
- *
261
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.4.1
262
- */
263
- MuteState[MuteState["NotMuted"] = 0] = "NotMuted";
264
- /**
265
- * Muted
266
- *
267
- * This value shall indicate that the device is muted.
268
- *
269
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.4.2
270
- */
271
- MuteState[MuteState["Muted"] = 1] = "Muted";
272
- })(MuteState = SmokeCoAlarm.MuteState || (SmokeCoAlarm.MuteState = {}));
273
- /**
274
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.5
275
- */
276
- let EndOfService;
277
- (function (EndOfService) {
278
- /**
279
- * Device has not expired
280
- *
281
- * This value shall indicate that the device has not yet reached its end of service, and does not need to be
282
- * imminently replaced.
283
- *
284
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.5.2
285
- */
286
- EndOfService[EndOfService["Normal"] = 0] = "Normal";
287
- /**
288
- * Device has reached its end of service
289
- *
290
- * This value shall indicate that the device has reached its end of service, and needs to be replaced.
291
- *
292
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.5.5.1
293
- */
294
- EndOfService[EndOfService["Expired"] = 1] = "Expired";
295
- })(EndOfService = SmokeCoAlarm.EndOfService || (SmokeCoAlarm.EndOfService = {}));
296
- /**
297
- * Body of the SmokeCoAlarm lowBattery event
298
- *
299
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.3
300
- */
301
- SmokeCoAlarm.TlvLowBatteryEvent = TlvObject({
302
- /**
303
- * This field shall indicate the current value of the BatteryAlert attribute.
304
- *
305
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.3.1
306
- */
307
- alarmSeverityLevel: TlvField(0, TlvEnum()),
308
- });
309
- /**
310
- * A SmokeCoAlarmCluster supports these elements if it supports feature SmokeAlarm.
311
- */
312
- SmokeCoAlarm.SmokeAlarmComponent = MutableCluster.Component({
313
- attributes: {
314
- /**
315
- * Indicates whether the device’s smoke sensor is currently triggering a smoke alarm.
316
- *
317
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.2
318
- */
319
- smokeState: Attribute(0x1, TlvEnum(), { persistent: true }),
320
- /**
321
- * Indicates the contamination level of the smoke sensor.
322
- *
323
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.11
324
- */
325
- contaminationState: OptionalAttribute(0xa, TlvEnum()),
326
- /**
327
- * Indicates the sensitivity level of the smoke sensor configured on the device.
328
- *
329
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.12
330
- */
331
- smokeSensitivityLevel: OptionalWritableAttribute(0xb, TlvEnum(), { writeAcl: AccessLevel.Manage }),
332
- },
333
- events: {
334
- /**
335
- * This event shall be generated when SmokeState attribute changes to either Warning or Critical state.
336
- *
337
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.1
338
- */
339
- smokeAlarm: Event(0x0, EventPriority.Critical, SmokeCoAlarm.TlvSmokeAlarmEvent),
340
- /**
341
- * This event shall be generated when the device hosting the server receives a smoke alarm from an
342
- * interconnected sensor.
343
- *
344
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.9
345
- */
346
- interconnectSmokeAlarm: OptionalEvent(0x8, EventPriority.Critical, SmokeCoAlarm.TlvInterconnectSmokeAlarmEvent),
347
- },
348
- });
349
- /**
350
- * A SmokeCoAlarmCluster supports these elements if it supports feature CoAlarm.
351
- */
352
- SmokeCoAlarm.CoAlarmComponent = MutableCluster.Component({
353
- attributes: {
354
- /**
355
- * Indicates whether the device’s CO sensor is currently triggering a CO alarm.
356
- *
357
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.3
358
- */
359
- coState: Attribute(0x2, TlvEnum(), { persistent: true }),
360
- },
361
- events: {
362
- /**
363
- * This event shall be generated when COState attribute changes to either Warning or Critical state.
364
- *
365
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.2
366
- */
367
- coAlarm: Event(0x1, EventPriority.Critical, SmokeCoAlarm.TlvCoAlarmEvent),
368
- /**
369
- * This event shall be generated when the device hosting the server receives a CO alarm from an
370
- * interconnected sensor.
371
- *
372
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.10
373
- */
374
- interconnectCoAlarm: OptionalEvent(0x9, EventPriority.Critical, SmokeCoAlarm.TlvInterconnectCoAlarmEvent),
375
- },
376
- });
377
- /**
378
- * These are optional features supported by SmokeCoAlarmCluster.
379
- *
380
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.4
381
- */
382
- let Feature;
383
- (function (Feature) {
384
- /**
385
- * SmokeAlarm (SMOKE)
386
- *
387
- * Supports Smoke alarm
388
- */
389
- Feature["SmokeAlarm"] = "SmokeAlarm";
390
- /**
391
- * CoAlarm (CO)
392
- *
393
- * Supports CO alarm
394
- */
395
- Feature["CoAlarm"] = "CoAlarm";
396
- })(Feature = SmokeCoAlarm.Feature || (SmokeCoAlarm.Feature = {}));
397
- /**
398
- * These elements and properties are present in all SmokeCoAlarm clusters.
399
- */
400
- SmokeCoAlarm.Base = MutableCluster.Component({
401
- id: 0x5c,
402
- name: 'SmokeCoAlarm',
403
- revision: 1,
404
- features: {
405
- /**
406
- * SmokeAlarm
407
- *
408
- * Supports Smoke alarm
409
- */
410
- smokeAlarm: BitFlag(0),
411
- /**
412
- * CoAlarm
413
- *
414
- * Supports CO alarm
415
- */
416
- coAlarm: BitFlag(1),
417
- },
418
- attributes: {
419
- /**
420
- * Indicates the visibly- and audibly-expressed state of the alarm. When multiple alarm conditions are
421
- * being reflected in the server, this attribute shall indicate the condition with the highest priority.
422
- * Priority order of conditions is determined by the manufacturer and shall be supplied as a part of
423
- * certification procedure. If the value of ExpressedState is not Normal, the attribute corresponding to
424
- * the value shall NOT be Normal. For example, if the ExpressedState is set to SmokeAlarm, the value of the
425
- * SmokeState will indicate the severity of the alarm (Warning or Critical). Clients SHOULD also read the
426
- * other attributes to be aware of further alarm conditions beyond the one indicated in ExpressedState.
427
- *
428
- * Visible expression is typically a LED light pattern. Audible expression is a horn or speaker pattern.
429
- * Audible expression shall BE suppressed if the DeviceMuted attribute is supported and set to Muted.
430
- *
431
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.1
432
- */
433
- expressedState: Attribute(0x0, TlvEnum(), { persistent: true }),
434
- /**
435
- * Indicates whether the power resource fault detection mechanism is currently triggered at the device. If
436
- * the detection mechanism is triggered, this attribute shall be set to Warning or Critical, otherwise it
437
- * shall be set to Normal. The battery state shall also be reflected in the Power Source cluster
438
- * representing the device’s battery using the appropriate supported attributes and events.
439
- *
440
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.4
441
- */
442
- batteryAlert: Attribute(0x3, TlvEnum(), { persistent: true }),
443
- /**
444
- * Indicates the whether the audible expression of the device is currently muted. Audible expression is
445
- * typically a horn or speaker pattern.
446
- *
447
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.5
448
- */
449
- deviceMuted: OptionalAttribute(0x4, TlvEnum(), { persistent: true }),
450
- /**
451
- * Indicates whether the device self-test is currently activated. If the device self- test is activated,
452
- * this attribute shall be set to True, otherwise it shall be set to False.
453
- *
454
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.6
455
- */
456
- testInProgress: Attribute(0x5, TlvBoolean),
457
- /**
458
- * Indicates whether the hardware fault detection mechanism is currently triggered. If the detection
459
- * mechanism is triggered, this attribute shall be set to True, otherwise it shall be set to False.
460
- *
461
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.7
462
- */
463
- hardwareFaultAlert: Attribute(0x6, TlvBoolean, { persistent: true }),
464
- /**
465
- * Indicates whether the end-of-service has been triggered at the device. This attribute shall be set to
466
- * Expired when the device reaches the end-of-service.
467
- *
468
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.8
469
- */
470
- endOfServiceAlert: Attribute(0x7, TlvEnum(), { persistent: true }),
471
- /**
472
- * Indicates whether the interconnected smoke alarm is currently triggering by branching devices. When the
473
- * interconnected smoke alarm is being triggered, this attribute shall be set to Warning or Critical,
474
- * otherwise it shall be set to Normal.
475
- *
476
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.9
477
- */
478
- interconnectSmokeAlarm: OptionalAttribute(0x8, TlvEnum()),
479
- /**
480
- * Indicates whether the interconnected CO alarm is currently triggering by branching devices. When the
481
- * interconnected CO alarm is being triggered, this attribute shall be set to Warning or Critical,
482
- * otherwise it shall be set to Normal.
483
- *
484
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.10
485
- */
486
- interconnectCoAlarm: OptionalAttribute(0x9, TlvEnum()),
487
- /**
488
- * Indicates the date when the device reaches its stated expiry date. After the ExpiryDate has been
489
- * reached, the EndOfServiceAlert shall start to be triggered. To account for better customer experience
490
- * across time zones, the EndOfServiceAlert may be delayed by up to 24 hours after the ExpiryDate.
491
- * Similarly, clients may delay any actions based on the ExpiryDate by up to 24 hours to best align with
492
- * the local time zone.
493
- *
494
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.6.13
495
- */
496
- expiryDate: OptionalFixedAttribute(0xc, TlvEpochS),
497
- },
498
- commands: {
499
- /**
500
- * This command shall initiate a device self-test. The return status shall indicate whether the test was
501
- * successfully initiated. Only one SelfTestRequest may be processed at a time. When the value of the
502
- * ExpressedState attribute is any of SmokeAlarm, COAlarm, Testing, InterconnectSmoke, Inter
503
- *
504
- * connectCO, the device shall NOT execute the self-test, and shall return status code BUSY.
505
- *
506
- * Upon successful acceptance of SelfTestRequest, the TestInProgress attribute shall be set to True and
507
- * ExpressedState attribute shall be set to Testing. Any faults identified during the test shall be
508
- * reflected in the appropriate attributes and events. Upon completion of the self test procedure, the
509
- * SelfTestComplete event shall be generated, the TestInProgress attribute shall be set to False and
510
- * ExpressedState attribute shall be updated to reflect the current state of the server.
511
- *
512
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.7.1
513
- */
514
- selfTestRequest: OptionalCommand(0x0, TlvNoArguments, 0x0, TlvNoResponse),
515
- },
516
- events: {
517
- /**
518
- * This event shall be generated when BatteryAlert attribute changes to either Warning or Critical state.
519
- *
520
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.3
521
- */
522
- lowBattery: Event(0x2, EventPriority.Info, SmokeCoAlarm.TlvLowBatteryEvent),
523
- /**
524
- * This event shall be generated when the device detects a hardware fault that leads to setting
525
- * HardwareFaultAlert to True.
526
- *
527
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.4
528
- */
529
- hardwareFault: Event(0x3, EventPriority.Info, TlvNoArguments),
530
- /**
531
- * This event shall be generated when the EndOfServiceAlert is set to Expired.
532
- *
533
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.5
534
- */
535
- endOfService: Event(0x4, EventPriority.Info, TlvNoArguments),
536
- /**
537
- * This event shall be generated when the SelfTest completes, and the attribute TestInProgress changes to
538
- * False.
539
- *
540
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.6
541
- */
542
- selfTestComplete: Event(0x5, EventPriority.Info, TlvNoArguments),
543
- /**
544
- * This event shall be generated when the DeviceMuted attribute changes to Muted.
545
- *
546
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.7
547
- */
548
- alarmMuted: OptionalEvent(0x6, EventPriority.Info, TlvNoArguments),
549
- /**
550
- * This event shall be generated when DeviceMuted attribute changes to NotMuted.
551
- *
552
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.8
553
- */
554
- muteEnded: OptionalEvent(0x7, EventPriority.Info, TlvNoArguments),
555
- /**
556
- * This event shall be generated when ExpressedState attribute returns to Normal state.
557
- *
558
- * @see {@link MatterSpecification.v13.Cluster} § 2.11.8.11
559
- */
560
- allClear: Event(0xa, EventPriority.Info, TlvNoArguments),
561
- },
562
- /**
563
- * This metadata controls which SmokeCoAlarmCluster elements matter.js activates for specific feature
564
- * combinations.
565
- */
566
- extensions: MutableCluster.Extensions({ flags: { smokeAlarm: true }, component: SmokeCoAlarm.SmokeAlarmComponent }, { flags: { coAlarm: true }, component: SmokeCoAlarm.CoAlarmComponent }, { flags: { smokeAlarm: false, coAlarm: false }, component: false }),
567
- });
568
- /**
569
- * @see {@link Cluster}
570
- */
571
- SmokeCoAlarm.ClusterInstance = MutableCluster.ExtensibleOnly(SmokeCoAlarm.Base);
572
- SmokeCoAlarm.Cluster = SmokeCoAlarm.ClusterInstance;
573
- const SMOKE = { smokeAlarm: true };
574
- const CO = { coAlarm: true };
575
- /**
576
- * @see {@link Complete}
577
- */
578
- SmokeCoAlarm.CompleteInstance = MutableCluster({
579
- id: SmokeCoAlarm.Base.id,
580
- name: SmokeCoAlarm.Base.name,
581
- revision: SmokeCoAlarm.Base.revision,
582
- features: SmokeCoAlarm.Base.features,
583
- attributes: {
584
- ...SmokeCoAlarm.Base.attributes,
585
- smokeState: MutableCluster.AsConditional(SmokeCoAlarm.SmokeAlarmComponent.attributes.smokeState, { mandatoryIf: [SMOKE] }),
586
- coState: MutableCluster.AsConditional(SmokeCoAlarm.CoAlarmComponent.attributes.coState, { mandatoryIf: [CO] }),
587
- contaminationState: MutableCluster.AsConditional(SmokeCoAlarm.SmokeAlarmComponent.attributes.contaminationState, { optionalIf: [SMOKE] }),
588
- smokeSensitivityLevel: MutableCluster.AsConditional(SmokeCoAlarm.SmokeAlarmComponent.attributes.smokeSensitivityLevel, { optionalIf: [SMOKE] }),
589
- },
590
- commands: SmokeCoAlarm.Base.commands,
591
- events: {
592
- ...SmokeCoAlarm.Base.events,
593
- smokeAlarm: MutableCluster.AsConditional(SmokeCoAlarm.SmokeAlarmComponent.events.smokeAlarm, { mandatoryIf: [SMOKE] }),
594
- coAlarm: MutableCluster.AsConditional(SmokeCoAlarm.CoAlarmComponent.events.coAlarm, { mandatoryIf: [CO] }),
595
- interconnectSmokeAlarm: MutableCluster.AsConditional(SmokeCoAlarm.SmokeAlarmComponent.events.interconnectSmokeAlarm, { optionalIf: [SMOKE] }),
596
- interconnectCoAlarm: MutableCluster.AsConditional(SmokeCoAlarm.CoAlarmComponent.events.interconnectCoAlarm, { optionalIf: [CO] }),
597
- },
598
- });
599
- SmokeCoAlarm.Complete = SmokeCoAlarm.CompleteInstance;
600
- })(SmokeCoAlarm || (SmokeCoAlarm = {}));
601
- export const SmokeCoAlarmCluster = SmokeCoAlarm.Cluster;
602
- ClusterRegistry.register(SmokeCoAlarm.Complete);
603
- //# sourceMappingURL=SmokeCoAlarmCluster.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SmokeCoAlarmCluster.js","sourceRoot":"","sources":["../../src/cluster/SmokeCoAlarmCluster.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD;;;;GAIG;AAEH,8CAA8C;AAE9C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACx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