matterbridge 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README-DEV.md +4 -2
- package/dist/cluster/export.d.ts +1 -21
- package/dist/cluster/export.d.ts.map +1 -1
- package/dist/cluster/export.js +2 -21
- package/dist/cluster/export.js.map +1 -1
- package/dist/matterbridge.js +3 -3
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +126 -212
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +30 -43
- package/dist/matterbridgeDevice.js.map +1 -1
- package/dist/pluginManager.d.ts.map +1 -1
- package/dist/pluginManager.js +20 -4
- package/dist/pluginManager.js.map +1 -1
- package/frontend/build/asset-manifest.json +3 -3
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/js/{main.6725e5ab.js → main.f86befcf.js} +3 -3
- package/frontend/build/static/js/{main.6725e5ab.js.map → main.f86befcf.js.map} +1 -1
- package/package.json +2 -2
- package/dist/cluster/AirQualityCluster.d.ts +0 -188
- package/dist/cluster/AirQualityCluster.d.ts.map +0 -1
- package/dist/cluster/AirQualityCluster.js +0 -98
- package/dist/cluster/AirQualityCluster.js.map +0 -1
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts +0 -396
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js +0 -30
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts +0 -396
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js +0 -30
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/ConcentrationMeasurementCluster.d.ts +0 -524
- package/dist/cluster/ConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/ConcentrationMeasurementCluster.js +0 -282
- package/dist/cluster/ConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/DeviceEnergyManagementCluster.d.ts +0 -7851
- package/dist/cluster/DeviceEnergyManagementCluster.d.ts.map +0 -1
- package/dist/cluster/DeviceEnergyManagementCluster.js +0 -1634
- package/dist/cluster/DeviceEnergyManagementCluster.js.map +0 -1
- package/dist/cluster/DeviceEnergyManagementModeCluster.d.ts +0 -68
- package/dist/cluster/DeviceEnergyManagementModeCluster.d.ts.map +0 -1
- package/dist/cluster/DeviceEnergyManagementModeCluster.js +0 -49
- package/dist/cluster/DeviceEnergyManagementModeCluster.js.map +0 -1
- package/dist/cluster/ElectricalEnergyMeasurementCluster.d.ts +0 -4978
- package/dist/cluster/ElectricalEnergyMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/ElectricalEnergyMeasurementCluster.js +0 -510
- package/dist/cluster/ElectricalEnergyMeasurementCluster.js.map +0 -1
- package/dist/cluster/ElectricalPowerMeasurementCluster.d.ts +0 -3250
- package/dist/cluster/ElectricalPowerMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/ElectricalPowerMeasurementCluster.js +0 -675
- package/dist/cluster/ElectricalPowerMeasurementCluster.js.map +0 -1
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts +0 -396
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js +0 -30
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/MeasurementAccuracy.d.ts +0 -63
- package/dist/cluster/MeasurementAccuracy.d.ts.map +0 -1
- package/dist/cluster/MeasurementAccuracy.js +0 -47
- package/dist/cluster/MeasurementAccuracy.js.map +0 -1
- package/dist/cluster/MeasurementAccuracyRange.d.ts +0 -134
- package/dist/cluster/MeasurementAccuracyRange.d.ts.map +0 -1
- package/dist/cluster/MeasurementAccuracyRange.js +0 -103
- package/dist/cluster/MeasurementAccuracyRange.js.map +0 -1
- package/dist/cluster/MeasurementType.d.ts +0 -68
- package/dist/cluster/MeasurementType.d.ts.map +0 -1
- package/dist/cluster/MeasurementType.js +0 -69
- package/dist/cluster/MeasurementType.js.map +0 -1
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts +0 -396
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js +0 -34
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/OzoneConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/OzoneConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/PowerTopologyCluster.d.ts +0 -345
- package/dist/cluster/PowerTopologyCluster.d.ts.map +0 -1
- package/dist/cluster/PowerTopologyCluster.js +0 -138
- package/dist/cluster/PowerTopologyCluster.js.map +0 -1
- package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts +0 -395
- package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts.map +0 -1
- package/dist/cluster/RadonConcentrationMeasurementCluster.js +0 -29
- package/dist/cluster/RadonConcentrationMeasurementCluster.js.map +0 -1
- package/dist/cluster/ScenesCluster.d.ts +0 -1249
- package/dist/cluster/ScenesCluster.d.ts.map +0 -1
- package/dist/cluster/ScenesCluster.js +0 -436
- package/dist/cluster/ScenesCluster.js.map +0 -1
- package/dist/cluster/SmokeCoAlarmCluster.d.ts +0 -1575
- package/dist/cluster/SmokeCoAlarmCluster.d.ts.map +0 -1
- package/dist/cluster/SmokeCoAlarmCluster.js +0 -603
- package/dist/cluster/SmokeCoAlarmCluster.js.map +0 -1
- package/dist/cluster/TvocCluster.d.ts +0 -465
- package/dist/cluster/TvocCluster.d.ts.map +0 -1
- package/dist/cluster/TvocCluster.js +0 -197
- package/dist/cluster/TvocCluster.js.map +0 -1
- /package/frontend/build/static/js/{main.6725e5ab.js.LICENSE.txt → main.f86befcf.js.LICENSE.txt} +0 -0
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022-2024 Matter.js Authors
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { MutableCluster } from '@project-chip/matter-node.js/cluster';
|
|
7
|
-
import { FixedAttribute, Attribute } from '@project-chip/matter-node.js/cluster';
|
|
8
|
-
import { BitFlag } from '@project-chip/matter-node.js/schema';
|
|
9
|
-
import { Identity } from '@project-chip/matter-node.js/util';
|
|
10
|
-
export declare namespace PowerTopology {
|
|
11
|
-
/**
|
|
12
|
-
* A PowerTopologyCluster supports these elements if it supports feature SetTopology.
|
|
13
|
-
*/
|
|
14
|
-
const SetTopologyComponent: {
|
|
15
|
-
readonly attributes: {
|
|
16
|
-
/**
|
|
17
|
-
* Indicates the list of endpoints capable of providing power to and/or consuming power from the endpoint
|
|
18
|
-
* hosting this server.
|
|
19
|
-
*
|
|
20
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.5.1
|
|
21
|
-
*/
|
|
22
|
-
readonly availableEndpoints: FixedAttribute<import("@project-chip/matter-node.js/datatype").EndpointNumber[], any>;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* A PowerTopologyCluster supports these elements if it supports feature DynamicPowerFlow.
|
|
27
|
-
*/
|
|
28
|
-
const DynamicPowerFlowComponent: {
|
|
29
|
-
readonly attributes: {
|
|
30
|
-
/**
|
|
31
|
-
* Indicates the current list of endpoints currently providing or consuming power to or from the endpoint
|
|
32
|
-
* hosting this server. This list shall be a subset of the value of the AvailableEndpoints attribute.
|
|
33
|
-
*
|
|
34
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.5.2
|
|
35
|
-
*/
|
|
36
|
-
readonly activeEndpoints: Attribute<import("@project-chip/matter-node.js/datatype").EndpointNumber[], any>;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* These are optional features supported by PowerTopologyCluster.
|
|
41
|
-
*
|
|
42
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.4
|
|
43
|
-
*/
|
|
44
|
-
enum Feature {
|
|
45
|
-
/**
|
|
46
|
-
* NodeTopology
|
|
47
|
-
*
|
|
48
|
-
* This endpoint provides or consumes power to/from the entire node
|
|
49
|
-
*/
|
|
50
|
-
NodeTopology = "NodeTopology",
|
|
51
|
-
/**
|
|
52
|
-
* TreeTopology
|
|
53
|
-
*
|
|
54
|
-
* This endpoint provides or consumes power to/from itself and its child endpoints
|
|
55
|
-
*/
|
|
56
|
-
TreeTopology = "TreeTopology",
|
|
57
|
-
/**
|
|
58
|
-
* SetTopology
|
|
59
|
-
*
|
|
60
|
-
* This endpoint provides or consumes power to/from a specified set of endpoints
|
|
61
|
-
*/
|
|
62
|
-
SetTopology = "SetTopology",
|
|
63
|
-
/**
|
|
64
|
-
* DynamicPowerFlow
|
|
65
|
-
*
|
|
66
|
-
* The specified set of endpoints may change
|
|
67
|
-
*/
|
|
68
|
-
DynamicPowerFlow = "DynamicPowerFlow"
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* These elements and properties are present in all PowerTopology clusters.
|
|
72
|
-
*/
|
|
73
|
-
const Base: {
|
|
74
|
-
readonly id: 156;
|
|
75
|
-
readonly name: "PowerTopology";
|
|
76
|
-
readonly revision: 1;
|
|
77
|
-
readonly features: {
|
|
78
|
-
/**
|
|
79
|
-
* NodeTopology
|
|
80
|
-
*
|
|
81
|
-
* This endpoint provides or consumes power to/from the entire node
|
|
82
|
-
*/
|
|
83
|
-
readonly nodeTopology: BitFlag;
|
|
84
|
-
/**
|
|
85
|
-
* TreeTopology
|
|
86
|
-
*
|
|
87
|
-
* This endpoint provides or consumes power to/from itself and its child endpoints
|
|
88
|
-
*/
|
|
89
|
-
readonly treeTopology: BitFlag;
|
|
90
|
-
/**
|
|
91
|
-
* SetTopology
|
|
92
|
-
*
|
|
93
|
-
* This endpoint provides or consumes power to/from a specified set of endpoints
|
|
94
|
-
*/
|
|
95
|
-
readonly setTopology: BitFlag;
|
|
96
|
-
/**
|
|
97
|
-
* DynamicPowerFlow
|
|
98
|
-
*
|
|
99
|
-
* The specified set of endpoints may change
|
|
100
|
-
*/
|
|
101
|
-
readonly dynamicPowerFlow: BitFlag;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* This metadata controls which PowerTopologyCluster elements matter.js activates for specific feature
|
|
105
|
-
* combinations.
|
|
106
|
-
*/
|
|
107
|
-
readonly extensions: readonly [{
|
|
108
|
-
readonly flags: {
|
|
109
|
-
readonly setTopology: true;
|
|
110
|
-
};
|
|
111
|
-
readonly component: {
|
|
112
|
-
readonly attributes: {
|
|
113
|
-
/**
|
|
114
|
-
* Indicates the list of endpoints capable of providing power to and/or consuming power from the endpoint
|
|
115
|
-
* hosting this server.
|
|
116
|
-
*
|
|
117
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.5.1
|
|
118
|
-
*/
|
|
119
|
-
readonly availableEndpoints: FixedAttribute<import("@project-chip/matter-node.js/datatype").EndpointNumber[], any>;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
}, {
|
|
123
|
-
readonly flags: {
|
|
124
|
-
readonly dynamicPowerFlow: true;
|
|
125
|
-
};
|
|
126
|
-
readonly component: {
|
|
127
|
-
readonly attributes: {
|
|
128
|
-
/**
|
|
129
|
-
* Indicates the current list of endpoints currently providing or consuming power to or from the endpoint
|
|
130
|
-
* hosting this server. This list shall be a subset of the value of the AvailableEndpoints attribute.
|
|
131
|
-
*
|
|
132
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.5.2
|
|
133
|
-
*/
|
|
134
|
-
readonly activeEndpoints: Attribute<import("@project-chip/matter-node.js/datatype").EndpointNumber[], any>;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
}, {
|
|
138
|
-
readonly flags: {
|
|
139
|
-
readonly dynamicPowerFlow: true;
|
|
140
|
-
readonly setTopology: false;
|
|
141
|
-
};
|
|
142
|
-
readonly component: false;
|
|
143
|
-
}, {
|
|
144
|
-
readonly flags: {
|
|
145
|
-
readonly nodeTopology: true;
|
|
146
|
-
readonly treeTopology: true;
|
|
147
|
-
};
|
|
148
|
-
readonly component: false;
|
|
149
|
-
}, {
|
|
150
|
-
readonly flags: {
|
|
151
|
-
readonly nodeTopology: true;
|
|
152
|
-
readonly setTopology: true;
|
|
153
|
-
};
|
|
154
|
-
readonly component: false;
|
|
155
|
-
}, {
|
|
156
|
-
readonly flags: {
|
|
157
|
-
readonly treeTopology: true;
|
|
158
|
-
readonly setTopology: true;
|
|
159
|
-
};
|
|
160
|
-
readonly component: false;
|
|
161
|
-
}, {
|
|
162
|
-
readonly flags: {
|
|
163
|
-
readonly nodeTopology: false;
|
|
164
|
-
readonly treeTopology: false;
|
|
165
|
-
readonly setTopology: false;
|
|
166
|
-
};
|
|
167
|
-
readonly component: false;
|
|
168
|
-
}];
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* @see {@link Cluster}
|
|
172
|
-
*/
|
|
173
|
-
const ClusterInstance: MutableCluster.ExtensibleOnly<{
|
|
174
|
-
readonly id: 156;
|
|
175
|
-
readonly name: "PowerTopology";
|
|
176
|
-
readonly revision: 1;
|
|
177
|
-
readonly features: {
|
|
178
|
-
/**
|
|
179
|
-
* NodeTopology
|
|
180
|
-
*
|
|
181
|
-
* This endpoint provides or consumes power to/from the entire node
|
|
182
|
-
*/
|
|
183
|
-
readonly nodeTopology: BitFlag;
|
|
184
|
-
/**
|
|
185
|
-
* TreeTopology
|
|
186
|
-
*
|
|
187
|
-
* This endpoint provides or consumes power to/from itself and its child endpoints
|
|
188
|
-
*/
|
|
189
|
-
readonly treeTopology: BitFlag;
|
|
190
|
-
/**
|
|
191
|
-
* SetTopology
|
|
192
|
-
*
|
|
193
|
-
* This endpoint provides or consumes power to/from a specified set of endpoints
|
|
194
|
-
*/
|
|
195
|
-
readonly setTopology: BitFlag;
|
|
196
|
-
/**
|
|
197
|
-
* DynamicPowerFlow
|
|
198
|
-
*
|
|
199
|
-
* The specified set of endpoints may change
|
|
200
|
-
*/
|
|
201
|
-
readonly dynamicPowerFlow: BitFlag;
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* This metadata controls which PowerTopologyCluster elements matter.js activates for specific feature
|
|
205
|
-
* combinations.
|
|
206
|
-
*/
|
|
207
|
-
readonly extensions: readonly [{
|
|
208
|
-
readonly flags: {
|
|
209
|
-
readonly setTopology: true;
|
|
210
|
-
};
|
|
211
|
-
readonly component: {
|
|
212
|
-
readonly attributes: {
|
|
213
|
-
/**
|
|
214
|
-
* Indicates the list of endpoints capable of providing power to and/or consuming power from the endpoint
|
|
215
|
-
* hosting this server.
|
|
216
|
-
*
|
|
217
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.5.1
|
|
218
|
-
*/
|
|
219
|
-
readonly availableEndpoints: FixedAttribute<import("@project-chip/matter-node.js/datatype").EndpointNumber[], any>;
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
}, {
|
|
223
|
-
readonly flags: {
|
|
224
|
-
readonly dynamicPowerFlow: true;
|
|
225
|
-
};
|
|
226
|
-
readonly component: {
|
|
227
|
-
readonly attributes: {
|
|
228
|
-
/**
|
|
229
|
-
* Indicates the current list of endpoints currently providing or consuming power to or from the endpoint
|
|
230
|
-
* hosting this server. This list shall be a subset of the value of the AvailableEndpoints attribute.
|
|
231
|
-
*
|
|
232
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.5.2
|
|
233
|
-
*/
|
|
234
|
-
readonly activeEndpoints: Attribute<import("@project-chip/matter-node.js/datatype").EndpointNumber[], any>;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
}, {
|
|
238
|
-
readonly flags: {
|
|
239
|
-
readonly dynamicPowerFlow: true;
|
|
240
|
-
readonly setTopology: false;
|
|
241
|
-
};
|
|
242
|
-
readonly component: false;
|
|
243
|
-
}, {
|
|
244
|
-
readonly flags: {
|
|
245
|
-
readonly nodeTopology: true;
|
|
246
|
-
readonly treeTopology: true;
|
|
247
|
-
};
|
|
248
|
-
readonly component: false;
|
|
249
|
-
}, {
|
|
250
|
-
readonly flags: {
|
|
251
|
-
readonly nodeTopology: true;
|
|
252
|
-
readonly setTopology: true;
|
|
253
|
-
};
|
|
254
|
-
readonly component: false;
|
|
255
|
-
}, {
|
|
256
|
-
readonly flags: {
|
|
257
|
-
readonly treeTopology: true;
|
|
258
|
-
readonly setTopology: true;
|
|
259
|
-
};
|
|
260
|
-
readonly component: false;
|
|
261
|
-
}, {
|
|
262
|
-
readonly flags: {
|
|
263
|
-
readonly nodeTopology: false;
|
|
264
|
-
readonly treeTopology: false;
|
|
265
|
-
readonly setTopology: false;
|
|
266
|
-
};
|
|
267
|
-
readonly component: false;
|
|
268
|
-
}];
|
|
269
|
-
}>;
|
|
270
|
-
/**
|
|
271
|
-
* The Power Topology Cluster provides a mechanism for expressing how power is flowing between endpoints.
|
|
272
|
-
*
|
|
273
|
-
* Per the Matter specification you cannot use {@link PowerTopologyCluster} without enabling certain feature
|
|
274
|
-
* combinations. You must use the {@link with} factory method to obtain a working cluster.
|
|
275
|
-
*
|
|
276
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8
|
|
277
|
-
*/
|
|
278
|
-
interface Cluster extends Identity<typeof ClusterInstance> {
|
|
279
|
-
}
|
|
280
|
-
const Cluster: Cluster;
|
|
281
|
-
/**
|
|
282
|
-
* @see {@link Complete}
|
|
283
|
-
*/
|
|
284
|
-
const CompleteInstance: MutableCluster<{
|
|
285
|
-
readonly id: 156;
|
|
286
|
-
readonly name: "PowerTopology";
|
|
287
|
-
readonly revision: 1;
|
|
288
|
-
readonly features: {
|
|
289
|
-
/**
|
|
290
|
-
* NodeTopology
|
|
291
|
-
*
|
|
292
|
-
* This endpoint provides or consumes power to/from the entire node
|
|
293
|
-
*/
|
|
294
|
-
readonly nodeTopology: BitFlag;
|
|
295
|
-
/**
|
|
296
|
-
* TreeTopology
|
|
297
|
-
*
|
|
298
|
-
* This endpoint provides or consumes power to/from itself and its child endpoints
|
|
299
|
-
*/
|
|
300
|
-
readonly treeTopology: BitFlag;
|
|
301
|
-
/**
|
|
302
|
-
* SetTopology
|
|
303
|
-
*
|
|
304
|
-
* This endpoint provides or consumes power to/from a specified set of endpoints
|
|
305
|
-
*/
|
|
306
|
-
readonly setTopology: BitFlag;
|
|
307
|
-
/**
|
|
308
|
-
* DynamicPowerFlow
|
|
309
|
-
*
|
|
310
|
-
* The specified set of endpoints may change
|
|
311
|
-
*/
|
|
312
|
-
readonly dynamicPowerFlow: BitFlag;
|
|
313
|
-
};
|
|
314
|
-
readonly attributes: {
|
|
315
|
-
readonly availableEndpoints: FixedAttribute<import("@project-chip/matter-node.js/datatype").EndpointNumber[], any> & {
|
|
316
|
-
readonly optional: true;
|
|
317
|
-
readonly isConditional: true;
|
|
318
|
-
readonly optionalIf: [] | import("@project-chip/matter-node.js/cluster").ConditionalFeatureList<import("@project-chip/matter-node.js/schema").BitSchema>;
|
|
319
|
-
readonly mandatoryIf: [] | [{
|
|
320
|
-
setTopology: boolean;
|
|
321
|
-
}];
|
|
322
|
-
};
|
|
323
|
-
readonly activeEndpoints: Attribute<import("@project-chip/matter-node.js/datatype").EndpointNumber[], any> & {
|
|
324
|
-
readonly optional: true;
|
|
325
|
-
readonly isConditional: true;
|
|
326
|
-
readonly optionalIf: [] | import("@project-chip/matter-node.js/cluster").ConditionalFeatureList<import("@project-chip/matter-node.js/schema").BitSchema>;
|
|
327
|
-
readonly mandatoryIf: [] | [{
|
|
328
|
-
dynamicPowerFlow: boolean;
|
|
329
|
-
}];
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
}, []>;
|
|
333
|
-
/**
|
|
334
|
-
* This cluster supports all PowerTopology features. It may support illegal feature combinations.
|
|
335
|
-
*
|
|
336
|
-
* If you use this cluster you must manually specify which features are active and ensure the set of active
|
|
337
|
-
* features is legal per the Matter specification.
|
|
338
|
-
*/
|
|
339
|
-
interface Complete extends Identity<typeof CompleteInstance> {
|
|
340
|
-
}
|
|
341
|
-
const Complete: Complete;
|
|
342
|
-
}
|
|
343
|
-
export type PowerTopologyCluster = PowerTopology.Cluster;
|
|
344
|
-
export declare const PowerTopologyCluster: PowerTopology.Cluster;
|
|
345
|
-
//# sourceMappingURL=PowerTopologyCluster.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PowerTopologyCluster.d.ts","sourceRoot":"","sources":["../../src/cluster/PowerTopologyCluster.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH,OAAO,EAAmB,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE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S,SAAQ,QAAQ,CAAC,OAAO,gBAAgB,CAAC;KAAG;IAE/D,MAAM,QAAQ,EAAE,QAA2B,CAAC;CACpD;AAED,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,OAAO,CAAC;AACzD,eAAO,MAAM,oBAAoB,uBAAwB,CAAC"}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright 2022-2024 Matter.js Authors
|
|
6
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
7
|
-
*/
|
|
8
|
-
import { ClusterRegistry, MutableCluster } from '@project-chip/matter-node.js/cluster';
|
|
9
|
-
import { FixedAttribute, Attribute } from '@project-chip/matter-node.js/cluster';
|
|
10
|
-
import { TlvEndpointNumber } from '@project-chip/matter-node.js/datatype';
|
|
11
|
-
import { BitFlag } from '@project-chip/matter-node.js/schema';
|
|
12
|
-
import { TlvArray } from '@project-chip/matter-node.js/tlv';
|
|
13
|
-
export var PowerTopology;
|
|
14
|
-
(function (PowerTopology) {
|
|
15
|
-
/**
|
|
16
|
-
* A PowerTopologyCluster supports these elements if it supports feature SetTopology.
|
|
17
|
-
*/
|
|
18
|
-
PowerTopology.SetTopologyComponent = MutableCluster.Component({
|
|
19
|
-
attributes: {
|
|
20
|
-
/**
|
|
21
|
-
* Indicates the list of endpoints capable of providing power to and/or consuming power from the endpoint
|
|
22
|
-
* hosting this server.
|
|
23
|
-
*
|
|
24
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.5.1
|
|
25
|
-
*/
|
|
26
|
-
availableEndpoints: FixedAttribute(0x0, TlvArray(TlvEndpointNumber, { maxLength: 20 }), { default: [] }),
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* A PowerTopologyCluster supports these elements if it supports feature DynamicPowerFlow.
|
|
31
|
-
*/
|
|
32
|
-
PowerTopology.DynamicPowerFlowComponent = MutableCluster.Component({
|
|
33
|
-
attributes: {
|
|
34
|
-
/**
|
|
35
|
-
* Indicates the current list of endpoints currently providing or consuming power to or from the endpoint
|
|
36
|
-
* hosting this server. This list shall be a subset of the value of the AvailableEndpoints attribute.
|
|
37
|
-
*
|
|
38
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.5.2
|
|
39
|
-
*/
|
|
40
|
-
activeEndpoints: Attribute(0x1, TlvArray(TlvEndpointNumber, { maxLength: 20 }), { persistent: true, default: [] }),
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
/**
|
|
44
|
-
* These are optional features supported by PowerTopologyCluster.
|
|
45
|
-
*
|
|
46
|
-
* @see {@link MatterSpecification.v13.Core} § 11.8.4
|
|
47
|
-
*/
|
|
48
|
-
let Feature;
|
|
49
|
-
(function (Feature) {
|
|
50
|
-
/**
|
|
51
|
-
* NodeTopology
|
|
52
|
-
*
|
|
53
|
-
* This endpoint provides or consumes power to/from the entire node
|
|
54
|
-
*/
|
|
55
|
-
Feature["NodeTopology"] = "NodeTopology";
|
|
56
|
-
/**
|
|
57
|
-
* TreeTopology
|
|
58
|
-
*
|
|
59
|
-
* This endpoint provides or consumes power to/from itself and its child endpoints
|
|
60
|
-
*/
|
|
61
|
-
Feature["TreeTopology"] = "TreeTopology";
|
|
62
|
-
/**
|
|
63
|
-
* SetTopology
|
|
64
|
-
*
|
|
65
|
-
* This endpoint provides or consumes power to/from a specified set of endpoints
|
|
66
|
-
*/
|
|
67
|
-
Feature["SetTopology"] = "SetTopology";
|
|
68
|
-
/**
|
|
69
|
-
* DynamicPowerFlow
|
|
70
|
-
*
|
|
71
|
-
* The specified set of endpoints may change
|
|
72
|
-
*/
|
|
73
|
-
Feature["DynamicPowerFlow"] = "DynamicPowerFlow";
|
|
74
|
-
})(Feature = PowerTopology.Feature || (PowerTopology.Feature = {}));
|
|
75
|
-
/**
|
|
76
|
-
* These elements and properties are present in all PowerTopology clusters.
|
|
77
|
-
*/
|
|
78
|
-
PowerTopology.Base = MutableCluster.Component({
|
|
79
|
-
id: 0x9c,
|
|
80
|
-
name: 'PowerTopology',
|
|
81
|
-
revision: 1,
|
|
82
|
-
features: {
|
|
83
|
-
/**
|
|
84
|
-
* NodeTopology
|
|
85
|
-
*
|
|
86
|
-
* This endpoint provides or consumes power to/from the entire node
|
|
87
|
-
*/
|
|
88
|
-
nodeTopology: BitFlag(0),
|
|
89
|
-
/**
|
|
90
|
-
* TreeTopology
|
|
91
|
-
*
|
|
92
|
-
* This endpoint provides or consumes power to/from itself and its child endpoints
|
|
93
|
-
*/
|
|
94
|
-
treeTopology: BitFlag(1),
|
|
95
|
-
/**
|
|
96
|
-
* SetTopology
|
|
97
|
-
*
|
|
98
|
-
* This endpoint provides or consumes power to/from a specified set of endpoints
|
|
99
|
-
*/
|
|
100
|
-
setTopology: BitFlag(2),
|
|
101
|
-
/**
|
|
102
|
-
* DynamicPowerFlow
|
|
103
|
-
*
|
|
104
|
-
* The specified set of endpoints may change
|
|
105
|
-
*/
|
|
106
|
-
dynamicPowerFlow: BitFlag(3),
|
|
107
|
-
},
|
|
108
|
-
/**
|
|
109
|
-
* This metadata controls which PowerTopologyCluster elements matter.js activates for specific feature
|
|
110
|
-
* combinations.
|
|
111
|
-
*/
|
|
112
|
-
extensions: MutableCluster.Extensions({ flags: { setTopology: true }, component: PowerTopology.SetTopologyComponent }, { flags: { dynamicPowerFlow: true }, component: PowerTopology.DynamicPowerFlowComponent }, { flags: { dynamicPowerFlow: true, setTopology: false }, component: false }, { flags: { nodeTopology: true, treeTopology: true }, component: false }, { flags: { nodeTopology: true, setTopology: true }, component: false }, { flags: { treeTopology: true, setTopology: true }, component: false }, { flags: { nodeTopology: false, treeTopology: false, setTopology: false }, component: false }),
|
|
113
|
-
});
|
|
114
|
-
/**
|
|
115
|
-
* @see {@link Cluster}
|
|
116
|
-
*/
|
|
117
|
-
PowerTopology.ClusterInstance = MutableCluster.ExtensibleOnly(PowerTopology.Base);
|
|
118
|
-
PowerTopology.Cluster = PowerTopology.ClusterInstance;
|
|
119
|
-
const SET = { setTopology: true };
|
|
120
|
-
const DYPF = { dynamicPowerFlow: true };
|
|
121
|
-
/**
|
|
122
|
-
* @see {@link Complete}
|
|
123
|
-
*/
|
|
124
|
-
PowerTopology.CompleteInstance = MutableCluster({
|
|
125
|
-
id: PowerTopology.Base.id,
|
|
126
|
-
name: PowerTopology.Base.name,
|
|
127
|
-
revision: PowerTopology.Base.revision,
|
|
128
|
-
features: PowerTopology.Base.features,
|
|
129
|
-
attributes: {
|
|
130
|
-
availableEndpoints: MutableCluster.AsConditional(PowerTopology.SetTopologyComponent.attributes.availableEndpoints, { mandatoryIf: [SET] }),
|
|
131
|
-
activeEndpoints: MutableCluster.AsConditional(PowerTopology.DynamicPowerFlowComponent.attributes.activeEndpoints, { mandatoryIf: [DYPF] }),
|
|
132
|
-
},
|
|
133
|
-
});
|
|
134
|
-
PowerTopology.Complete = PowerTopology.CompleteInstance;
|
|
135
|
-
})(PowerTopology || (PowerTopology = {}));
|
|
136
|
-
export const PowerTopologyCluster = PowerTopology.Cluster;
|
|
137
|
-
ClusterRegistry.register(PowerTopology.Complete);
|
|
138
|
-
//# sourceMappingURL=PowerTopologyCluster.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PowerTopologyCluster.js","sourceRoot":"","sources":["../../src/cluster/PowerTopologyCluster.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAE5D,oDAAoD;AACpD;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MA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