matterbridge 3.5.0-dev-20260113-29ad318 → 3.5.0-dev-20260114-67b3c1f
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 +44 -0
- package/dist/devices/evse.js +0 -1
- package/dist/frontend.js +12 -2
- package/dist/jestutils/jestHelpers.js +7 -10
- package/dist/matterNode.js +17 -9
- package/dist/matterbridge.js +9 -7
- package/dist/matterbridgeBehaviors.d.ts +44 -20
- package/dist/matterbridgeDeviceTypes.js +21 -21
- package/dist/matterbridgeEndpoint.js +6 -0
- package/dist/matterbridgeEndpointHelpers.d.ts +1391 -323
- package/npm-shrinkwrap.json +59 -59
- package/package.json +5 -5
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
import { AnsiLogger } from 'node-ansi-logger';
|
|
2
|
-
import { ActionContext, Behavior, Endpoint } from '@matter/node';
|
|
2
|
+
import { ActionContext, Behavior, ClusterBehavior, Endpoint } from '@matter/node';
|
|
3
3
|
import { ClusterId } from '@matter/types/datatype';
|
|
4
|
+
import { MeasurementType } from '@matter/types/globals';
|
|
4
5
|
import { ClusterType } from '@matter/types/cluster';
|
|
5
6
|
import { PowerSource } from '@matter/types/clusters/power-source';
|
|
7
|
+
import { ElectricalPowerMeasurement } from '@matter/types/clusters/electrical-power-measurement';
|
|
8
|
+
import { ElectricalEnergyMeasurement } from '@matter/types/clusters/electrical-energy-measurement';
|
|
9
|
+
import { TemperatureMeasurement } from '@matter/types/clusters/temperature-measurement';
|
|
10
|
+
import { RelativeHumidityMeasurement } from '@matter/types/clusters/relative-humidity-measurement';
|
|
11
|
+
import { PressureMeasurement } from '@matter/types/clusters/pressure-measurement';
|
|
12
|
+
import { FlowMeasurement } from '@matter/types/clusters/flow-measurement';
|
|
13
|
+
import { IlluminanceMeasurement } from '@matter/types/clusters/illuminance-measurement';
|
|
14
|
+
import { OccupancySensing } from '@matter/types/clusters/occupancy-sensing';
|
|
6
15
|
import { OperationalState } from '@matter/types/clusters/operational-state';
|
|
7
16
|
import { DeviceEnergyManagement } from '@matter/types/clusters/device-energy-management';
|
|
8
17
|
import { DeviceEnergyManagementMode } from '@matter/types/clusters/device-energy-management-mode';
|
|
18
|
+
import { ElectricalPowerMeasurementServer } from '@matter/node/behaviors/electrical-power-measurement';
|
|
19
|
+
import { ElectricalEnergyMeasurementServer } from '@matter/node/behaviors/electrical-energy-measurement';
|
|
20
|
+
import { OccupancySensingServer } from '@matter/node/behaviors/occupancy-sensing';
|
|
9
21
|
import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
|
|
10
22
|
import { MatterbridgeEndpointCommands } from './matterbridgeEndpointTypes.js';
|
|
23
|
+
import { MatterbridgeOperationalStateServer, MatterbridgePowerSourceServer, MatterbridgeDeviceEnergyManagementServer, MatterbridgeDeviceEnergyManagementModeServer } from './matterbridgeBehaviors.js';
|
|
11
24
|
export declare function capitalizeFirstLetter(name: string): string;
|
|
12
25
|
export declare function lowercaseFirstLetter(name: string): string;
|
|
13
26
|
export declare function checkNotLatinCharacters(deviceName: string): boolean;
|
|
@@ -34,329 +47,1384 @@ export declare function setAttribute(endpoint: MatterbridgeEndpoint, cluster: Be
|
|
|
34
47
|
export declare function updateAttribute(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, attribute: string, value: boolean | number | bigint | string | object | null, log?: AnsiLogger): Promise<boolean>;
|
|
35
48
|
export declare function subscribeAttribute(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, attribute: string, listener: (newValue: any, oldValue: any, context: ActionContext) => void, log?: AnsiLogger): Promise<boolean>;
|
|
36
49
|
export declare function triggerEvent(endpoint: MatterbridgeEndpoint, cluster: Behavior.Type | ClusterType | ClusterId | string, event: string, payload: Record<string, boolean | number | bigint | string | object | undefined | null>, log?: AnsiLogger): Promise<boolean>;
|
|
37
|
-
export declare function getDefaultPowerSourceWiredClusterServer(wiredCurrentType?: PowerSource.WiredCurrentType): Partial<{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
description: string;
|
|
47
|
-
wiredCurrentType: number;
|
|
48
|
-
wiredNominalVoltage?: number | undefined;
|
|
49
|
-
wiredMaximumCurrent?: number | undefined;
|
|
50
|
-
}>;
|
|
51
|
-
export declare function getDefaultPowerSourceBatteryClusterServer(batPercentRemaining?: null | number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: null | number, batReplaceability?: PowerSource.BatReplaceability): Partial<{
|
|
52
|
-
status: number;
|
|
53
|
-
order: number;
|
|
54
|
-
endpointList: number[];
|
|
55
|
-
batChargeLevel: number;
|
|
56
|
-
batReplacementNeeded: boolean;
|
|
57
|
-
batVoltage?: number | null | undefined;
|
|
58
|
-
batPercentRemaining?: number | null | undefined;
|
|
59
|
-
batTimeRemaining?: number | null | undefined;
|
|
60
|
-
batPresent?: boolean | undefined;
|
|
61
|
-
activeBatFaults?: number[] | undefined;
|
|
62
|
-
description: string;
|
|
63
|
-
batReplaceability: number;
|
|
64
|
-
}>;
|
|
65
|
-
export declare function getDefaultPowerSourceReplaceableBatteryClusterServer(batPercentRemaining?: number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: number, batReplacementDescription?: string, batQuantity?: number, batReplaceability?: PowerSource.BatReplaceability): Partial<{
|
|
66
|
-
status: number;
|
|
67
|
-
order: number;
|
|
68
|
-
endpointList: number[];
|
|
69
|
-
batChargeLevel: number;
|
|
70
|
-
batReplacementNeeded: boolean;
|
|
71
|
-
batVoltage?: number | null | undefined;
|
|
72
|
-
batPercentRemaining?: number | null | undefined;
|
|
73
|
-
batTimeRemaining?: number | null | undefined;
|
|
74
|
-
batPresent?: boolean | undefined;
|
|
75
|
-
activeBatFaults?: number[] | undefined;
|
|
76
|
-
description: string;
|
|
77
|
-
batReplaceability: number;
|
|
78
|
-
batReplacementDescription: string;
|
|
79
|
-
batQuantity: number;
|
|
80
|
-
batCommonDesignation?: number | undefined;
|
|
81
|
-
batAnsiDesignation?: string | undefined;
|
|
82
|
-
batIecDesignation?: string | undefined;
|
|
83
|
-
batApprovedChemistry?: number | undefined;
|
|
84
|
-
batCapacity?: number | undefined;
|
|
85
|
-
}>;
|
|
86
|
-
export declare function getDefaultPowerSourceRechargeableBatteryClusterServer(batPercentRemaining?: number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: number, batReplaceability?: PowerSource.BatReplaceability): Partial<{
|
|
87
|
-
status: number;
|
|
88
|
-
order: number;
|
|
89
|
-
endpointList: number[];
|
|
90
|
-
batChargeLevel: number;
|
|
91
|
-
batReplacementNeeded: boolean;
|
|
92
|
-
batChargeState: number;
|
|
93
|
-
batFunctionalWhileCharging: boolean;
|
|
94
|
-
batVoltage?: number | null | undefined;
|
|
95
|
-
batPercentRemaining?: number | null | undefined;
|
|
96
|
-
batTimeRemaining?: number | null | undefined;
|
|
97
|
-
batPresent?: boolean | undefined;
|
|
98
|
-
activeBatFaults?: number[] | undefined;
|
|
99
|
-
batTimeToFullCharge?: number | null | undefined;
|
|
100
|
-
batChargingCurrent?: number | null | undefined;
|
|
101
|
-
activeBatChargeFaults?: number[] | undefined;
|
|
102
|
-
description: string;
|
|
103
|
-
batReplaceability: number;
|
|
104
|
-
batCapacity?: number | undefined;
|
|
105
|
-
}>;
|
|
106
|
-
export declare function getDefaultElectricalEnergyMeasurementClusterServer(energyImported?: number | bigint | null, energyExported?: number | bigint | null): Partial<{
|
|
107
|
-
cumulativeEnergyImported: {
|
|
108
|
-
energy: number | bigint;
|
|
109
|
-
startTimestamp?: number | undefined;
|
|
110
|
-
endTimestamp?: number | undefined;
|
|
111
|
-
startSystime?: number | bigint | undefined;
|
|
112
|
-
endSystime?: number | bigint | undefined;
|
|
113
|
-
} | null;
|
|
114
|
-
cumulativeEnergyExported: {
|
|
115
|
-
energy: number | bigint;
|
|
116
|
-
startTimestamp?: number | undefined;
|
|
117
|
-
endTimestamp?: number | undefined;
|
|
118
|
-
startSystime?: number | bigint | undefined;
|
|
119
|
-
endSystime?: number | bigint | undefined;
|
|
120
|
-
} | null;
|
|
121
|
-
cumulativeEnergyReset?: {
|
|
122
|
-
importedResetTimestamp?: number | null | undefined;
|
|
123
|
-
exportedResetTimestamp?: number | null | undefined;
|
|
124
|
-
importedResetSystime?: number | bigint | null | undefined;
|
|
125
|
-
exportedResetSystime?: number | bigint | null | undefined;
|
|
126
|
-
} | null | undefined;
|
|
127
|
-
accuracy: {
|
|
128
|
-
measurementType: number;
|
|
129
|
-
measured: boolean;
|
|
130
|
-
minMeasuredValue: number | bigint;
|
|
131
|
-
maxMeasuredValue: number | bigint;
|
|
132
|
-
accuracyRanges: {
|
|
133
|
-
rangeMin: number | bigint;
|
|
134
|
-
rangeMax: number | bigint;
|
|
135
|
-
percentMax?: number | undefined;
|
|
136
|
-
percentMin?: number | undefined;
|
|
137
|
-
percentTypical?: number | undefined;
|
|
138
|
-
fixedMax?: number | bigint | undefined;
|
|
139
|
-
fixedMin?: number | bigint | undefined;
|
|
140
|
-
fixedTypical?: number | bigint | undefined;
|
|
141
|
-
}[];
|
|
50
|
+
export declare function getDefaultPowerSourceWiredClusterServer(wiredCurrentType?: PowerSource.WiredCurrentType): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
|
|
51
|
+
readonly id: 47;
|
|
52
|
+
readonly name: "PowerSource";
|
|
53
|
+
readonly revision: 3;
|
|
54
|
+
readonly features: {
|
|
55
|
+
readonly wired: import("@matter/types").BitFlag;
|
|
56
|
+
readonly battery: import("@matter/types").BitFlag;
|
|
57
|
+
readonly rechargeable: import("@matter/types").BitFlag;
|
|
58
|
+
readonly replaceable: import("@matter/types").BitFlag;
|
|
142
59
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
measurementType: number;
|
|
149
|
-
min: number | bigint;
|
|
150
|
-
max: number | bigint;
|
|
151
|
-
startTimestamp?: number | undefined;
|
|
152
|
-
endTimestamp?: number | undefined;
|
|
153
|
-
minTimestamp?: number | undefined;
|
|
154
|
-
maxTimestamp?: number | undefined;
|
|
155
|
-
startSystime?: number | bigint | undefined;
|
|
156
|
-
endSystime?: number | bigint | undefined;
|
|
157
|
-
minSystime?: number | bigint | undefined;
|
|
158
|
-
maxSystime?: number | bigint | undefined;
|
|
159
|
-
}[] | undefined;
|
|
160
|
-
voltage?: number | bigint | null | undefined;
|
|
161
|
-
activeCurrent?: number | bigint | null | undefined;
|
|
162
|
-
frequency?: number | bigint | null | undefined;
|
|
163
|
-
reactiveCurrent?: number | bigint | null | undefined;
|
|
164
|
-
apparentCurrent?: number | bigint | null | undefined;
|
|
165
|
-
reactivePower?: number | bigint | null | undefined;
|
|
166
|
-
apparentPower?: number | bigint | null | undefined;
|
|
167
|
-
rmsVoltage?: number | bigint | null | undefined;
|
|
168
|
-
rmsCurrent?: number | bigint | null | undefined;
|
|
169
|
-
rmsPower?: number | bigint | null | undefined;
|
|
170
|
-
powerFactor?: number | bigint | null | undefined;
|
|
171
|
-
numberOfMeasurementTypes: number;
|
|
172
|
-
accuracy: {
|
|
173
|
-
measurementType: number;
|
|
174
|
-
measured: boolean;
|
|
175
|
-
minMeasuredValue: number | bigint;
|
|
176
|
-
maxMeasuredValue: number | bigint;
|
|
177
|
-
accuracyRanges: {
|
|
178
|
-
rangeMin: number | bigint;
|
|
179
|
-
rangeMax: number | bigint;
|
|
180
|
-
percentMax?: number | undefined;
|
|
181
|
-
percentMin?: number | undefined;
|
|
182
|
-
percentTypical?: number | undefined;
|
|
183
|
-
fixedMax?: number | bigint | undefined;
|
|
184
|
-
fixedMin?: number | bigint | undefined;
|
|
185
|
-
fixedTypical?: number | bigint | undefined;
|
|
186
|
-
}[];
|
|
187
|
-
}[];
|
|
188
|
-
}>;
|
|
189
|
-
export declare function getApparentElectricalPowerMeasurementClusterServer(voltage?: number | bigint | null, apparentCurrent?: number | bigint | null, apparentPower?: number | bigint | null, frequency?: number | bigint | null): Partial<{
|
|
190
|
-
powerMode: number;
|
|
191
|
-
activePower: number | bigint | null;
|
|
192
|
-
ranges?: {
|
|
193
|
-
measurementType: number;
|
|
194
|
-
min: number | bigint;
|
|
195
|
-
max: number | bigint;
|
|
196
|
-
startTimestamp?: number | undefined;
|
|
197
|
-
endTimestamp?: number | undefined;
|
|
198
|
-
minTimestamp?: number | undefined;
|
|
199
|
-
maxTimestamp?: number | undefined;
|
|
200
|
-
startSystime?: number | bigint | undefined;
|
|
201
|
-
endSystime?: number | bigint | undefined;
|
|
202
|
-
minSystime?: number | bigint | undefined;
|
|
203
|
-
maxSystime?: number | bigint | undefined;
|
|
204
|
-
}[] | undefined;
|
|
205
|
-
voltage?: number | bigint | null | undefined;
|
|
206
|
-
activeCurrent?: number | bigint | null | undefined;
|
|
207
|
-
frequency?: number | bigint | null | undefined;
|
|
208
|
-
reactiveCurrent?: number | bigint | null | undefined;
|
|
209
|
-
apparentCurrent?: number | bigint | null | undefined;
|
|
210
|
-
reactivePower?: number | bigint | null | undefined;
|
|
211
|
-
apparentPower?: number | bigint | null | undefined;
|
|
212
|
-
rmsVoltage?: number | bigint | null | undefined;
|
|
213
|
-
rmsCurrent?: number | bigint | null | undefined;
|
|
214
|
-
rmsPower?: number | bigint | null | undefined;
|
|
215
|
-
powerFactor?: number | bigint | null | undefined;
|
|
216
|
-
numberOfMeasurementTypes: number;
|
|
217
|
-
accuracy: {
|
|
218
|
-
measurementType: number;
|
|
219
|
-
measured: boolean;
|
|
220
|
-
minMeasuredValue: number | bigint;
|
|
221
|
-
maxMeasuredValue: number | bigint;
|
|
222
|
-
accuracyRanges: {
|
|
223
|
-
rangeMin: number | bigint;
|
|
224
|
-
rangeMax: number | bigint;
|
|
225
|
-
percentMax?: number | undefined;
|
|
226
|
-
percentMin?: number | undefined;
|
|
227
|
-
percentTypical?: number | undefined;
|
|
228
|
-
fixedMax?: number | bigint | undefined;
|
|
229
|
-
fixedMin?: number | bigint | undefined;
|
|
230
|
-
fixedTypical?: number | bigint | undefined;
|
|
231
|
-
}[];
|
|
232
|
-
}[];
|
|
233
|
-
}>;
|
|
234
|
-
export declare function getDefaultDeviceEnergyManagementClusterServer(esaType?: DeviceEnergyManagement.EsaType, esaCanGenerate?: boolean, esaState?: DeviceEnergyManagement.EsaState, absMinPower?: number, absMaxPower?: number): Partial<{
|
|
235
|
-
powerAdjustmentCapability: {
|
|
236
|
-
powerAdjustCapability: {
|
|
237
|
-
minPower: number | bigint;
|
|
238
|
-
maxPower: number | bigint;
|
|
239
|
-
minDuration: number;
|
|
240
|
-
maxDuration: number;
|
|
241
|
-
}[] | null;
|
|
242
|
-
cause: number;
|
|
243
|
-
} | null;
|
|
244
|
-
forecast: {
|
|
245
|
-
forecastId: number;
|
|
246
|
-
activeSlotNumber: number | null;
|
|
247
|
-
startTime: number;
|
|
248
|
-
endTime: number;
|
|
249
|
-
isPausable: boolean;
|
|
250
|
-
slots: {
|
|
251
|
-
minDuration: number;
|
|
252
|
-
maxDuration: number;
|
|
253
|
-
defaultDuration: number;
|
|
254
|
-
elapsedSlotTime: number;
|
|
255
|
-
remainingSlotTime: number;
|
|
256
|
-
minPower?: number | bigint | undefined;
|
|
257
|
-
maxPower?: number | bigint | undefined;
|
|
258
|
-
slotIsPausable?: boolean | undefined;
|
|
259
|
-
minPauseDuration?: number | undefined;
|
|
260
|
-
maxPauseDuration?: number | undefined;
|
|
261
|
-
manufacturerEsaState?: number | undefined;
|
|
262
|
-
nominalPower?: number | bigint | undefined;
|
|
263
|
-
nominalEnergy?: number | bigint | undefined;
|
|
264
|
-
costs?: {
|
|
265
|
-
value: number;
|
|
266
|
-
costType: number;
|
|
267
|
-
decimalPoints: number;
|
|
268
|
-
currency?: number | undefined;
|
|
269
|
-
}[] | undefined;
|
|
270
|
-
minPowerAdjustment?: number | bigint | undefined;
|
|
271
|
-
maxPowerAdjustment?: number | bigint | undefined;
|
|
272
|
-
minDurationAdjustment?: number | undefined;
|
|
273
|
-
maxDurationAdjustment?: number | undefined;
|
|
274
|
-
}[];
|
|
275
|
-
forecastUpdateReason: number;
|
|
276
|
-
earliestStartTime?: number | null | undefined;
|
|
277
|
-
latestEndTime?: number | undefined;
|
|
278
|
-
} | null;
|
|
279
|
-
optOutState: number;
|
|
280
|
-
esaState: number;
|
|
281
|
-
absMinPower: number | bigint;
|
|
282
|
-
absMaxPower: number | bigint;
|
|
283
|
-
esaType: number;
|
|
284
|
-
esaCanGenerate: boolean;
|
|
285
|
-
}>;
|
|
286
|
-
export declare function getDefaultDeviceEnergyManagementModeClusterServer(currentMode?: number, supportedModes?: DeviceEnergyManagementMode.ModeOption[]): Partial<{
|
|
287
|
-
currentMode: number;
|
|
288
|
-
supportedModes: {
|
|
289
|
-
mode: number;
|
|
290
|
-
label: string;
|
|
291
|
-
modeTags: {
|
|
292
|
-
value: number;
|
|
293
|
-
mfgCode?: number | undefined;
|
|
294
|
-
}[];
|
|
295
|
-
}[];
|
|
296
|
-
}>;
|
|
297
|
-
export declare function getDefaultOperationalStateClusterServer(operationalState?: OperationalState.OperationalStateEnum): Partial<{
|
|
298
|
-
phaseList: string[] | null;
|
|
299
|
-
currentPhase: number | null;
|
|
300
|
-
operationalStateList: {
|
|
301
|
-
operationalStateId: number;
|
|
302
|
-
operationalStateLabel?: string | undefined;
|
|
303
|
-
}[];
|
|
304
|
-
operationalState: number;
|
|
305
|
-
operationalError: {
|
|
306
|
-
errorStateId: number;
|
|
307
|
-
errorStateLabel?: string | undefined;
|
|
308
|
-
errorStateDetails?: string | undefined;
|
|
60
|
+
readonly attributes: {
|
|
61
|
+
readonly status: import("@matter/types/cluster").Attribute<PowerSource.PowerSourceStatus, any>;
|
|
62
|
+
readonly order: import("@matter/types/cluster").Attribute<number, any>;
|
|
63
|
+
readonly description: import("@matter/types/cluster").FixedAttribute<string, any>;
|
|
64
|
+
readonly endpointList: import("@matter/types/cluster").Attribute<import("@matter/types/datatype").EndpointNumber[], any>;
|
|
309
65
|
};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}>;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
66
|
+
readonly extensions: readonly [{
|
|
67
|
+
readonly flags: {
|
|
68
|
+
readonly wired: true;
|
|
69
|
+
};
|
|
70
|
+
readonly component: {
|
|
71
|
+
readonly attributes: {
|
|
72
|
+
readonly wiredAssessedInputVoltage: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
73
|
+
readonly wiredAssessedInputFrequency: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
74
|
+
readonly wiredCurrentType: import("@matter/types/cluster").FixedAttribute<PowerSource.WiredCurrentType, any>;
|
|
75
|
+
readonly wiredAssessedCurrent: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
76
|
+
readonly wiredNominalVoltage: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
77
|
+
readonly wiredMaximumCurrent: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
78
|
+
readonly wiredPresent: import("@matter/types/cluster").OptionalAttribute<boolean, any>;
|
|
79
|
+
readonly activeWiredFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.WiredFault[], any>;
|
|
80
|
+
};
|
|
81
|
+
readonly events: {
|
|
82
|
+
readonly wiredFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
83
|
+
current: import("@matter/types").FieldType<PowerSource.WiredFault[]>;
|
|
84
|
+
previous: import("@matter/types").FieldType<PowerSource.WiredFault[]>;
|
|
85
|
+
}>, any>;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}, {
|
|
89
|
+
readonly flags: {
|
|
90
|
+
readonly battery: true;
|
|
91
|
+
};
|
|
92
|
+
readonly component: {
|
|
93
|
+
readonly attributes: {
|
|
94
|
+
readonly batVoltage: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
95
|
+
readonly batPercentRemaining: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
96
|
+
readonly batTimeRemaining: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
97
|
+
readonly batChargeLevel: import("@matter/types/cluster").Attribute<PowerSource.BatChargeLevel, any>;
|
|
98
|
+
readonly batReplacementNeeded: import("@matter/types/cluster").Attribute<boolean, any>;
|
|
99
|
+
readonly batReplaceability: import("@matter/types/cluster").FixedAttribute<PowerSource.BatReplaceability, any>;
|
|
100
|
+
readonly batPresent: import("@matter/types/cluster").OptionalAttribute<boolean, any>;
|
|
101
|
+
readonly activeBatFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.BatFault[], any>;
|
|
102
|
+
};
|
|
103
|
+
readonly events: {
|
|
104
|
+
readonly batFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
105
|
+
current: import("@matter/types").FieldType<PowerSource.BatFault[]>;
|
|
106
|
+
previous: import("@matter/types").FieldType<PowerSource.BatFault[]>;
|
|
107
|
+
}>, any>;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
readonly flags: {
|
|
112
|
+
readonly replaceable: true;
|
|
113
|
+
};
|
|
114
|
+
readonly component: {
|
|
115
|
+
readonly attributes: {
|
|
116
|
+
readonly batReplacementDescription: import("@matter/types/cluster").FixedAttribute<string, any>;
|
|
117
|
+
readonly batCommonDesignation: import("@matter/types/cluster").OptionalFixedAttribute<PowerSource.BatCommonDesignation, any>;
|
|
118
|
+
readonly batAnsiDesignation: import("@matter/types/cluster").OptionalFixedAttribute<string, any>;
|
|
119
|
+
readonly batIecDesignation: import("@matter/types/cluster").OptionalFixedAttribute<string, any>;
|
|
120
|
+
readonly batApprovedChemistry: import("@matter/types/cluster").OptionalFixedAttribute<PowerSource.BatApprovedChemistry, any>;
|
|
121
|
+
readonly batQuantity: import("@matter/types/cluster").FixedAttribute<number, any>;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}, {
|
|
125
|
+
readonly flags: {
|
|
126
|
+
readonly replaceable: true;
|
|
127
|
+
};
|
|
128
|
+
readonly component: {
|
|
129
|
+
readonly attributes: {
|
|
130
|
+
readonly batCapacity: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
}, {
|
|
134
|
+
readonly flags: {
|
|
135
|
+
readonly rechargeable: true;
|
|
136
|
+
};
|
|
137
|
+
readonly component: {
|
|
138
|
+
readonly attributes: {
|
|
139
|
+
readonly batCapacity: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
}, {
|
|
143
|
+
readonly flags: {
|
|
144
|
+
readonly rechargeable: true;
|
|
145
|
+
};
|
|
146
|
+
readonly component: {
|
|
147
|
+
readonly attributes: {
|
|
148
|
+
readonly batChargeState: import("@matter/types/cluster").Attribute<PowerSource.BatChargeState, any>;
|
|
149
|
+
readonly batTimeToFullCharge: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
150
|
+
readonly batFunctionalWhileCharging: import("@matter/types/cluster").Attribute<boolean, any>;
|
|
151
|
+
readonly batChargingCurrent: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
152
|
+
readonly activeBatChargeFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.BatChargeFault[], any>;
|
|
153
|
+
};
|
|
154
|
+
readonly events: {
|
|
155
|
+
readonly batChargeFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
156
|
+
current: import("@matter/types").FieldType<PowerSource.BatChargeFault[]>;
|
|
157
|
+
previous: import("@matter/types").FieldType<PowerSource.BatChargeFault[]>;
|
|
158
|
+
}>, any>;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
}, {
|
|
162
|
+
readonly flags: {
|
|
163
|
+
readonly rechargeable: true;
|
|
164
|
+
readonly battery: false;
|
|
165
|
+
};
|
|
166
|
+
readonly component: false;
|
|
167
|
+
}, {
|
|
168
|
+
readonly flags: {
|
|
169
|
+
readonly replaceable: true;
|
|
170
|
+
readonly battery: false;
|
|
171
|
+
};
|
|
172
|
+
readonly component: false;
|
|
173
|
+
}, {
|
|
174
|
+
readonly flags: {
|
|
175
|
+
readonly wired: true;
|
|
176
|
+
readonly battery: true;
|
|
177
|
+
};
|
|
178
|
+
readonly component: false;
|
|
179
|
+
}, {
|
|
180
|
+
readonly flags: {
|
|
181
|
+
readonly wired: false;
|
|
182
|
+
readonly battery: false;
|
|
183
|
+
};
|
|
184
|
+
readonly component: false;
|
|
185
|
+
}];
|
|
186
|
+
}>, readonly [PowerSource.Feature.Wired]>, typeof MatterbridgePowerSourceServer>>;
|
|
187
|
+
export declare function getDefaultPowerSourceBatteryClusterServer(batPercentRemaining?: null | number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: null | number, batReplaceability?: PowerSource.BatReplaceability): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
|
|
188
|
+
readonly id: 47;
|
|
189
|
+
readonly name: "PowerSource";
|
|
190
|
+
readonly revision: 3;
|
|
191
|
+
readonly features: {
|
|
192
|
+
readonly wired: import("@matter/types").BitFlag;
|
|
193
|
+
readonly battery: import("@matter/types").BitFlag;
|
|
194
|
+
readonly rechargeable: import("@matter/types").BitFlag;
|
|
195
|
+
readonly replaceable: import("@matter/types").BitFlag;
|
|
346
196
|
};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
occupancySensorTypeBitmap: {
|
|
353
|
-
pir?: boolean | undefined;
|
|
354
|
-
ultrasonic?: boolean | undefined;
|
|
355
|
-
physicalContact?: boolean | undefined;
|
|
197
|
+
readonly attributes: {
|
|
198
|
+
readonly status: import("@matter/types/cluster").Attribute<PowerSource.PowerSourceStatus, any>;
|
|
199
|
+
readonly order: import("@matter/types/cluster").Attribute<number, any>;
|
|
200
|
+
readonly description: import("@matter/types/cluster").FixedAttribute<string, any>;
|
|
201
|
+
readonly endpointList: import("@matter/types/cluster").Attribute<import("@matter/types/datatype").EndpointNumber[], any>;
|
|
356
202
|
};
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
203
|
+
readonly extensions: readonly [{
|
|
204
|
+
readonly flags: {
|
|
205
|
+
readonly wired: true;
|
|
206
|
+
};
|
|
207
|
+
readonly component: {
|
|
208
|
+
readonly attributes: {
|
|
209
|
+
readonly wiredAssessedInputVoltage: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
210
|
+
readonly wiredAssessedInputFrequency: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
211
|
+
readonly wiredCurrentType: import("@matter/types/cluster").FixedAttribute<PowerSource.WiredCurrentType, any>;
|
|
212
|
+
readonly wiredAssessedCurrent: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
213
|
+
readonly wiredNominalVoltage: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
214
|
+
readonly wiredMaximumCurrent: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
215
|
+
readonly wiredPresent: import("@matter/types/cluster").OptionalAttribute<boolean, any>;
|
|
216
|
+
readonly activeWiredFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.WiredFault[], any>;
|
|
217
|
+
};
|
|
218
|
+
readonly events: {
|
|
219
|
+
readonly wiredFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
220
|
+
current: import("@matter/types").FieldType<PowerSource.WiredFault[]>;
|
|
221
|
+
previous: import("@matter/types").FieldType<PowerSource.WiredFault[]>;
|
|
222
|
+
}>, any>;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
}, {
|
|
226
|
+
readonly flags: {
|
|
227
|
+
readonly battery: true;
|
|
228
|
+
};
|
|
229
|
+
readonly component: {
|
|
230
|
+
readonly attributes: {
|
|
231
|
+
readonly batVoltage: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
232
|
+
readonly batPercentRemaining: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
233
|
+
readonly batTimeRemaining: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
234
|
+
readonly batChargeLevel: import("@matter/types/cluster").Attribute<PowerSource.BatChargeLevel, any>;
|
|
235
|
+
readonly batReplacementNeeded: import("@matter/types/cluster").Attribute<boolean, any>;
|
|
236
|
+
readonly batReplaceability: import("@matter/types/cluster").FixedAttribute<PowerSource.BatReplaceability, any>;
|
|
237
|
+
readonly batPresent: import("@matter/types/cluster").OptionalAttribute<boolean, any>;
|
|
238
|
+
readonly activeBatFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.BatFault[], any>;
|
|
239
|
+
};
|
|
240
|
+
readonly events: {
|
|
241
|
+
readonly batFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
242
|
+
current: import("@matter/types").FieldType<PowerSource.BatFault[]>;
|
|
243
|
+
previous: import("@matter/types").FieldType<PowerSource.BatFault[]>;
|
|
244
|
+
}>, any>;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
}, {
|
|
248
|
+
readonly flags: {
|
|
249
|
+
readonly replaceable: true;
|
|
250
|
+
};
|
|
251
|
+
readonly component: {
|
|
252
|
+
readonly attributes: {
|
|
253
|
+
readonly batReplacementDescription: import("@matter/types/cluster").FixedAttribute<string, any>;
|
|
254
|
+
readonly batCommonDesignation: import("@matter/types/cluster").OptionalFixedAttribute<PowerSource.BatCommonDesignation, any>;
|
|
255
|
+
readonly batAnsiDesignation: import("@matter/types/cluster").OptionalFixedAttribute<string, any>;
|
|
256
|
+
readonly batIecDesignation: import("@matter/types/cluster").OptionalFixedAttribute<string, any>;
|
|
257
|
+
readonly batApprovedChemistry: import("@matter/types/cluster").OptionalFixedAttribute<PowerSource.BatApprovedChemistry, any>;
|
|
258
|
+
readonly batQuantity: import("@matter/types/cluster").FixedAttribute<number, any>;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
}, {
|
|
262
|
+
readonly flags: {
|
|
263
|
+
readonly replaceable: true;
|
|
264
|
+
};
|
|
265
|
+
readonly component: {
|
|
266
|
+
readonly attributes: {
|
|
267
|
+
readonly batCapacity: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
}, {
|
|
271
|
+
readonly flags: {
|
|
272
|
+
readonly rechargeable: true;
|
|
273
|
+
};
|
|
274
|
+
readonly component: {
|
|
275
|
+
readonly attributes: {
|
|
276
|
+
readonly batCapacity: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
}, {
|
|
280
|
+
readonly flags: {
|
|
281
|
+
readonly rechargeable: true;
|
|
282
|
+
};
|
|
283
|
+
readonly component: {
|
|
284
|
+
readonly attributes: {
|
|
285
|
+
readonly batChargeState: import("@matter/types/cluster").Attribute<PowerSource.BatChargeState, any>;
|
|
286
|
+
readonly batTimeToFullCharge: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
287
|
+
readonly batFunctionalWhileCharging: import("@matter/types/cluster").Attribute<boolean, any>;
|
|
288
|
+
readonly batChargingCurrent: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
289
|
+
readonly activeBatChargeFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.BatChargeFault[], any>;
|
|
290
|
+
};
|
|
291
|
+
readonly events: {
|
|
292
|
+
readonly batChargeFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
293
|
+
current: import("@matter/types").FieldType<PowerSource.BatChargeFault[]>;
|
|
294
|
+
previous: import("@matter/types").FieldType<PowerSource.BatChargeFault[]>;
|
|
295
|
+
}>, any>;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
}, {
|
|
299
|
+
readonly flags: {
|
|
300
|
+
readonly rechargeable: true;
|
|
301
|
+
readonly battery: false;
|
|
302
|
+
};
|
|
303
|
+
readonly component: false;
|
|
304
|
+
}, {
|
|
305
|
+
readonly flags: {
|
|
306
|
+
readonly replaceable: true;
|
|
307
|
+
readonly battery: false;
|
|
308
|
+
};
|
|
309
|
+
readonly component: false;
|
|
310
|
+
}, {
|
|
311
|
+
readonly flags: {
|
|
312
|
+
readonly wired: true;
|
|
313
|
+
readonly battery: true;
|
|
314
|
+
};
|
|
315
|
+
readonly component: false;
|
|
316
|
+
}, {
|
|
317
|
+
readonly flags: {
|
|
318
|
+
readonly wired: false;
|
|
319
|
+
readonly battery: false;
|
|
320
|
+
};
|
|
321
|
+
readonly component: false;
|
|
322
|
+
}];
|
|
323
|
+
}>, readonly [PowerSource.Feature.Battery]>, typeof MatterbridgePowerSourceServer>>;
|
|
324
|
+
export declare function getDefaultPowerSourceReplaceableBatteryClusterServer(batPercentRemaining?: number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: number, batReplacementDescription?: string, batQuantity?: number, batReplaceability?: PowerSource.BatReplaceability): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
|
|
325
|
+
readonly id: 47;
|
|
326
|
+
readonly name: "PowerSource";
|
|
327
|
+
readonly revision: 3;
|
|
328
|
+
readonly features: {
|
|
329
|
+
readonly wired: import("@matter/types").BitFlag;
|
|
330
|
+
readonly battery: import("@matter/types").BitFlag;
|
|
331
|
+
readonly rechargeable: import("@matter/types").BitFlag;
|
|
332
|
+
readonly replaceable: import("@matter/types").BitFlag;
|
|
333
|
+
};
|
|
334
|
+
readonly attributes: {
|
|
335
|
+
readonly status: import("@matter/types/cluster").Attribute<PowerSource.PowerSourceStatus, any>;
|
|
336
|
+
readonly order: import("@matter/types/cluster").Attribute<number, any>;
|
|
337
|
+
readonly description: import("@matter/types/cluster").FixedAttribute<string, any>;
|
|
338
|
+
readonly endpointList: import("@matter/types/cluster").Attribute<import("@matter/types/datatype").EndpointNumber[], any>;
|
|
339
|
+
};
|
|
340
|
+
readonly extensions: readonly [{
|
|
341
|
+
readonly flags: {
|
|
342
|
+
readonly wired: true;
|
|
343
|
+
};
|
|
344
|
+
readonly component: {
|
|
345
|
+
readonly attributes: {
|
|
346
|
+
readonly wiredAssessedInputVoltage: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
347
|
+
readonly wiredAssessedInputFrequency: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
348
|
+
readonly wiredCurrentType: import("@matter/types/cluster").FixedAttribute<PowerSource.WiredCurrentType, any>;
|
|
349
|
+
readonly wiredAssessedCurrent: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
350
|
+
readonly wiredNominalVoltage: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
351
|
+
readonly wiredMaximumCurrent: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
352
|
+
readonly wiredPresent: import("@matter/types/cluster").OptionalAttribute<boolean, any>;
|
|
353
|
+
readonly activeWiredFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.WiredFault[], any>;
|
|
354
|
+
};
|
|
355
|
+
readonly events: {
|
|
356
|
+
readonly wiredFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
357
|
+
current: import("@matter/types").FieldType<PowerSource.WiredFault[]>;
|
|
358
|
+
previous: import("@matter/types").FieldType<PowerSource.WiredFault[]>;
|
|
359
|
+
}>, any>;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
}, {
|
|
363
|
+
readonly flags: {
|
|
364
|
+
readonly battery: true;
|
|
365
|
+
};
|
|
366
|
+
readonly component: {
|
|
367
|
+
readonly attributes: {
|
|
368
|
+
readonly batVoltage: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
369
|
+
readonly batPercentRemaining: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
370
|
+
readonly batTimeRemaining: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
371
|
+
readonly batChargeLevel: import("@matter/types/cluster").Attribute<PowerSource.BatChargeLevel, any>;
|
|
372
|
+
readonly batReplacementNeeded: import("@matter/types/cluster").Attribute<boolean, any>;
|
|
373
|
+
readonly batReplaceability: import("@matter/types/cluster").FixedAttribute<PowerSource.BatReplaceability, any>;
|
|
374
|
+
readonly batPresent: import("@matter/types/cluster").OptionalAttribute<boolean, any>;
|
|
375
|
+
readonly activeBatFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.BatFault[], any>;
|
|
376
|
+
};
|
|
377
|
+
readonly events: {
|
|
378
|
+
readonly batFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
379
|
+
current: import("@matter/types").FieldType<PowerSource.BatFault[]>;
|
|
380
|
+
previous: import("@matter/types").FieldType<PowerSource.BatFault[]>;
|
|
381
|
+
}>, any>;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
}, {
|
|
385
|
+
readonly flags: {
|
|
386
|
+
readonly replaceable: true;
|
|
387
|
+
};
|
|
388
|
+
readonly component: {
|
|
389
|
+
readonly attributes: {
|
|
390
|
+
readonly batReplacementDescription: import("@matter/types/cluster").FixedAttribute<string, any>;
|
|
391
|
+
readonly batCommonDesignation: import("@matter/types/cluster").OptionalFixedAttribute<PowerSource.BatCommonDesignation, any>;
|
|
392
|
+
readonly batAnsiDesignation: import("@matter/types/cluster").OptionalFixedAttribute<string, any>;
|
|
393
|
+
readonly batIecDesignation: import("@matter/types/cluster").OptionalFixedAttribute<string, any>;
|
|
394
|
+
readonly batApprovedChemistry: import("@matter/types/cluster").OptionalFixedAttribute<PowerSource.BatApprovedChemistry, any>;
|
|
395
|
+
readonly batQuantity: import("@matter/types/cluster").FixedAttribute<number, any>;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
}, {
|
|
399
|
+
readonly flags: {
|
|
400
|
+
readonly replaceable: true;
|
|
401
|
+
};
|
|
402
|
+
readonly component: {
|
|
403
|
+
readonly attributes: {
|
|
404
|
+
readonly batCapacity: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
}, {
|
|
408
|
+
readonly flags: {
|
|
409
|
+
readonly rechargeable: true;
|
|
410
|
+
};
|
|
411
|
+
readonly component: {
|
|
412
|
+
readonly attributes: {
|
|
413
|
+
readonly batCapacity: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
}, {
|
|
417
|
+
readonly flags: {
|
|
418
|
+
readonly rechargeable: true;
|
|
419
|
+
};
|
|
420
|
+
readonly component: {
|
|
421
|
+
readonly attributes: {
|
|
422
|
+
readonly batChargeState: import("@matter/types/cluster").Attribute<PowerSource.BatChargeState, any>;
|
|
423
|
+
readonly batTimeToFullCharge: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
424
|
+
readonly batFunctionalWhileCharging: import("@matter/types/cluster").Attribute<boolean, any>;
|
|
425
|
+
readonly batChargingCurrent: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
426
|
+
readonly activeBatChargeFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.BatChargeFault[], any>;
|
|
427
|
+
};
|
|
428
|
+
readonly events: {
|
|
429
|
+
readonly batChargeFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
430
|
+
current: import("@matter/types").FieldType<PowerSource.BatChargeFault[]>;
|
|
431
|
+
previous: import("@matter/types").FieldType<PowerSource.BatChargeFault[]>;
|
|
432
|
+
}>, any>;
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
}, {
|
|
436
|
+
readonly flags: {
|
|
437
|
+
readonly rechargeable: true;
|
|
438
|
+
readonly battery: false;
|
|
439
|
+
};
|
|
440
|
+
readonly component: false;
|
|
441
|
+
}, {
|
|
442
|
+
readonly flags: {
|
|
443
|
+
readonly replaceable: true;
|
|
444
|
+
readonly battery: false;
|
|
445
|
+
};
|
|
446
|
+
readonly component: false;
|
|
447
|
+
}, {
|
|
448
|
+
readonly flags: {
|
|
449
|
+
readonly wired: true;
|
|
450
|
+
readonly battery: true;
|
|
451
|
+
};
|
|
452
|
+
readonly component: false;
|
|
453
|
+
}, {
|
|
454
|
+
readonly flags: {
|
|
455
|
+
readonly wired: false;
|
|
456
|
+
readonly battery: false;
|
|
457
|
+
};
|
|
458
|
+
readonly component: false;
|
|
459
|
+
}];
|
|
460
|
+
}>, readonly [PowerSource.Feature.Battery, PowerSource.Feature.Replaceable]>, typeof MatterbridgePowerSourceServer>>;
|
|
461
|
+
export declare function getDefaultPowerSourceRechargeableBatteryClusterServer(batPercentRemaining?: number, batChargeLevel?: PowerSource.BatChargeLevel, batVoltage?: number, batReplaceability?: PowerSource.BatReplaceability): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
|
|
462
|
+
readonly id: 47;
|
|
463
|
+
readonly name: "PowerSource";
|
|
464
|
+
readonly revision: 3;
|
|
465
|
+
readonly features: {
|
|
466
|
+
readonly wired: import("@matter/types").BitFlag;
|
|
467
|
+
readonly battery: import("@matter/types").BitFlag;
|
|
468
|
+
readonly rechargeable: import("@matter/types").BitFlag;
|
|
469
|
+
readonly replaceable: import("@matter/types").BitFlag;
|
|
470
|
+
};
|
|
471
|
+
readonly attributes: {
|
|
472
|
+
readonly status: import("@matter/types/cluster").Attribute<PowerSource.PowerSourceStatus, any>;
|
|
473
|
+
readonly order: import("@matter/types/cluster").Attribute<number, any>;
|
|
474
|
+
readonly description: import("@matter/types/cluster").FixedAttribute<string, any>;
|
|
475
|
+
readonly endpointList: import("@matter/types/cluster").Attribute<import("@matter/types/datatype").EndpointNumber[], any>;
|
|
476
|
+
};
|
|
477
|
+
readonly extensions: readonly [{
|
|
478
|
+
readonly flags: {
|
|
479
|
+
readonly wired: true;
|
|
480
|
+
};
|
|
481
|
+
readonly component: {
|
|
482
|
+
readonly attributes: {
|
|
483
|
+
readonly wiredAssessedInputVoltage: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
484
|
+
readonly wiredAssessedInputFrequency: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
485
|
+
readonly wiredCurrentType: import("@matter/types/cluster").FixedAttribute<PowerSource.WiredCurrentType, any>;
|
|
486
|
+
readonly wiredAssessedCurrent: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
487
|
+
readonly wiredNominalVoltage: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
488
|
+
readonly wiredMaximumCurrent: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
489
|
+
readonly wiredPresent: import("@matter/types/cluster").OptionalAttribute<boolean, any>;
|
|
490
|
+
readonly activeWiredFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.WiredFault[], any>;
|
|
491
|
+
};
|
|
492
|
+
readonly events: {
|
|
493
|
+
readonly wiredFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
494
|
+
current: import("@matter/types").FieldType<PowerSource.WiredFault[]>;
|
|
495
|
+
previous: import("@matter/types").FieldType<PowerSource.WiredFault[]>;
|
|
496
|
+
}>, any>;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
}, {
|
|
500
|
+
readonly flags: {
|
|
501
|
+
readonly battery: true;
|
|
502
|
+
};
|
|
503
|
+
readonly component: {
|
|
504
|
+
readonly attributes: {
|
|
505
|
+
readonly batVoltage: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
506
|
+
readonly batPercentRemaining: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
507
|
+
readonly batTimeRemaining: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
508
|
+
readonly batChargeLevel: import("@matter/types/cluster").Attribute<PowerSource.BatChargeLevel, any>;
|
|
509
|
+
readonly batReplacementNeeded: import("@matter/types/cluster").Attribute<boolean, any>;
|
|
510
|
+
readonly batReplaceability: import("@matter/types/cluster").FixedAttribute<PowerSource.BatReplaceability, any>;
|
|
511
|
+
readonly batPresent: import("@matter/types/cluster").OptionalAttribute<boolean, any>;
|
|
512
|
+
readonly activeBatFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.BatFault[], any>;
|
|
513
|
+
};
|
|
514
|
+
readonly events: {
|
|
515
|
+
readonly batFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
516
|
+
current: import("@matter/types").FieldType<PowerSource.BatFault[]>;
|
|
517
|
+
previous: import("@matter/types").FieldType<PowerSource.BatFault[]>;
|
|
518
|
+
}>, any>;
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
}, {
|
|
522
|
+
readonly flags: {
|
|
523
|
+
readonly replaceable: true;
|
|
524
|
+
};
|
|
525
|
+
readonly component: {
|
|
526
|
+
readonly attributes: {
|
|
527
|
+
readonly batReplacementDescription: import("@matter/types/cluster").FixedAttribute<string, any>;
|
|
528
|
+
readonly batCommonDesignation: import("@matter/types/cluster").OptionalFixedAttribute<PowerSource.BatCommonDesignation, any>;
|
|
529
|
+
readonly batAnsiDesignation: import("@matter/types/cluster").OptionalFixedAttribute<string, any>;
|
|
530
|
+
readonly batIecDesignation: import("@matter/types/cluster").OptionalFixedAttribute<string, any>;
|
|
531
|
+
readonly batApprovedChemistry: import("@matter/types/cluster").OptionalFixedAttribute<PowerSource.BatApprovedChemistry, any>;
|
|
532
|
+
readonly batQuantity: import("@matter/types/cluster").FixedAttribute<number, any>;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
}, {
|
|
536
|
+
readonly flags: {
|
|
537
|
+
readonly replaceable: true;
|
|
538
|
+
};
|
|
539
|
+
readonly component: {
|
|
540
|
+
readonly attributes: {
|
|
541
|
+
readonly batCapacity: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
}, {
|
|
545
|
+
readonly flags: {
|
|
546
|
+
readonly rechargeable: true;
|
|
547
|
+
};
|
|
548
|
+
readonly component: {
|
|
549
|
+
readonly attributes: {
|
|
550
|
+
readonly batCapacity: import("@matter/types/cluster").OptionalFixedAttribute<number, any>;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
}, {
|
|
554
|
+
readonly flags: {
|
|
555
|
+
readonly rechargeable: true;
|
|
556
|
+
};
|
|
557
|
+
readonly component: {
|
|
558
|
+
readonly attributes: {
|
|
559
|
+
readonly batChargeState: import("@matter/types/cluster").Attribute<PowerSource.BatChargeState, any>;
|
|
560
|
+
readonly batTimeToFullCharge: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
561
|
+
readonly batFunctionalWhileCharging: import("@matter/types/cluster").Attribute<boolean, any>;
|
|
562
|
+
readonly batChargingCurrent: import("@matter/types/cluster").OptionalAttribute<number | null, any>;
|
|
563
|
+
readonly activeBatChargeFaults: import("@matter/types/cluster").OptionalAttribute<PowerSource.BatChargeFault[], any>;
|
|
564
|
+
};
|
|
565
|
+
readonly events: {
|
|
566
|
+
readonly batChargeFaultChange: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
567
|
+
current: import("@matter/types").FieldType<PowerSource.BatChargeFault[]>;
|
|
568
|
+
previous: import("@matter/types").FieldType<PowerSource.BatChargeFault[]>;
|
|
569
|
+
}>, any>;
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
}, {
|
|
573
|
+
readonly flags: {
|
|
574
|
+
readonly rechargeable: true;
|
|
575
|
+
readonly battery: false;
|
|
576
|
+
};
|
|
577
|
+
readonly component: false;
|
|
578
|
+
}, {
|
|
579
|
+
readonly flags: {
|
|
580
|
+
readonly replaceable: true;
|
|
581
|
+
readonly battery: false;
|
|
582
|
+
};
|
|
583
|
+
readonly component: false;
|
|
584
|
+
}, {
|
|
585
|
+
readonly flags: {
|
|
586
|
+
readonly wired: true;
|
|
587
|
+
readonly battery: true;
|
|
588
|
+
};
|
|
589
|
+
readonly component: false;
|
|
590
|
+
}, {
|
|
591
|
+
readonly flags: {
|
|
592
|
+
readonly wired: false;
|
|
593
|
+
readonly battery: false;
|
|
594
|
+
};
|
|
595
|
+
readonly component: false;
|
|
596
|
+
}];
|
|
597
|
+
}>, readonly [PowerSource.Feature.Battery, PowerSource.Feature.Rechargeable]>, typeof MatterbridgePowerSourceServer>>;
|
|
598
|
+
export declare function getDefaultElectricalEnergyMeasurementClusterServer(energyImported?: number | bigint | null, energyExported?: number | bigint | null): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
|
|
599
|
+
readonly id: 145;
|
|
600
|
+
readonly name: "ElectricalEnergyMeasurement";
|
|
601
|
+
readonly revision: 1;
|
|
602
|
+
readonly features: {
|
|
603
|
+
readonly importedEnergy: import("@matter/types").BitFlag;
|
|
604
|
+
readonly exportedEnergy: import("@matter/types").BitFlag;
|
|
605
|
+
readonly cumulativeEnergy: import("@matter/types").BitFlag;
|
|
606
|
+
readonly periodicEnergy: import("@matter/types").BitFlag;
|
|
607
|
+
};
|
|
608
|
+
readonly attributes: {
|
|
609
|
+
readonly accuracy: import("@matter/types/cluster").FixedAttribute<import("@matter/types").TypeFromFields<{
|
|
610
|
+
measurementType: import("@matter/types").FieldType<import("@matter/types").MeasurementType>;
|
|
611
|
+
measured: import("@matter/types").FieldType<boolean>;
|
|
612
|
+
minMeasuredValue: import("@matter/types").FieldType<number | bigint>;
|
|
613
|
+
maxMeasuredValue: import("@matter/types").FieldType<number | bigint>;
|
|
614
|
+
accuracyRanges: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
615
|
+
rangeMin: import("@matter/types").FieldType<number | bigint>;
|
|
616
|
+
rangeMax: import("@matter/types").FieldType<number | bigint>;
|
|
617
|
+
percentMax: import("@matter/types").OptionalFieldType<number>;
|
|
618
|
+
percentMin: import("@matter/types").OptionalFieldType<number>;
|
|
619
|
+
percentTypical: import("@matter/types").OptionalFieldType<number>;
|
|
620
|
+
fixedMax: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
621
|
+
fixedMin: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
622
|
+
fixedTypical: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
623
|
+
}>[]>;
|
|
624
|
+
}>, any>;
|
|
625
|
+
};
|
|
626
|
+
readonly extensions: readonly [{
|
|
627
|
+
readonly flags: {
|
|
628
|
+
readonly importedEnergy: true;
|
|
629
|
+
readonly cumulativeEnergy: true;
|
|
630
|
+
};
|
|
631
|
+
readonly component: {
|
|
632
|
+
readonly attributes: {
|
|
633
|
+
readonly cumulativeEnergyImported: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
634
|
+
energy: import("@matter/types").FieldType<number | bigint>;
|
|
635
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
636
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
637
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
638
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
639
|
+
}> | null, any>;
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
}, {
|
|
643
|
+
readonly flags: {
|
|
644
|
+
readonly exportedEnergy: true;
|
|
645
|
+
readonly cumulativeEnergy: true;
|
|
646
|
+
};
|
|
647
|
+
readonly component: {
|
|
648
|
+
readonly attributes: {
|
|
649
|
+
readonly cumulativeEnergyExported: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
650
|
+
energy: import("@matter/types").FieldType<number | bigint>;
|
|
651
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
652
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
653
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
654
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
655
|
+
}> | null, any>;
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
}, {
|
|
659
|
+
readonly flags: {
|
|
660
|
+
readonly importedEnergy: true;
|
|
661
|
+
readonly periodicEnergy: true;
|
|
662
|
+
};
|
|
663
|
+
readonly component: {
|
|
664
|
+
readonly attributes: {
|
|
665
|
+
readonly periodicEnergyImported: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
666
|
+
energy: import("@matter/types").FieldType<number | bigint>;
|
|
667
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
668
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
669
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
670
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
671
|
+
}> | null, any>;
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
}, {
|
|
675
|
+
readonly flags: {
|
|
676
|
+
readonly exportedEnergy: true;
|
|
677
|
+
readonly periodicEnergy: true;
|
|
678
|
+
};
|
|
679
|
+
readonly component: {
|
|
680
|
+
readonly attributes: {
|
|
681
|
+
readonly periodicEnergyExported: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
682
|
+
energy: import("@matter/types").FieldType<number | bigint>;
|
|
683
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
684
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
685
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
686
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
687
|
+
}> | null, any>;
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
}, {
|
|
691
|
+
readonly flags: {
|
|
692
|
+
readonly cumulativeEnergy: true;
|
|
693
|
+
};
|
|
694
|
+
readonly component: {
|
|
695
|
+
readonly attributes: {
|
|
696
|
+
readonly cumulativeEnergyReset: import("@matter/types/cluster").OptionalAttribute<import("@matter/types").TypeFromFields<{
|
|
697
|
+
importedResetTimestamp: import("@matter/types").OptionalFieldType<number | null>;
|
|
698
|
+
exportedResetTimestamp: import("@matter/types").OptionalFieldType<number | null>;
|
|
699
|
+
importedResetSystime: import("@matter/types").OptionalFieldType<number | bigint | null>;
|
|
700
|
+
exportedResetSystime: import("@matter/types").OptionalFieldType<number | bigint | null>;
|
|
701
|
+
}> | null, any>;
|
|
702
|
+
};
|
|
703
|
+
readonly events: {
|
|
704
|
+
readonly cumulativeEnergyMeasured: import("@matter/types/cluster").Event<import("@matter/types").TypeFromFields<{
|
|
705
|
+
energyImported: import("@matter/types").OptionalFieldType<import("@matter/types").TypeFromFields<{
|
|
706
|
+
energy: import("@matter/types").FieldType<number | bigint>;
|
|
707
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
708
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
709
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
710
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
711
|
+
}>>;
|
|
712
|
+
energyExported: import("@matter/types").OptionalFieldType<import("@matter/types").TypeFromFields<{
|
|
713
|
+
energy: import("@matter/types").FieldType<number | bigint>;
|
|
714
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
715
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
716
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
717
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
718
|
+
}>>;
|
|
719
|
+
}>, any>;
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
}, {
|
|
723
|
+
readonly flags: {
|
|
724
|
+
readonly periodicEnergy: true;
|
|
725
|
+
};
|
|
726
|
+
readonly component: {
|
|
727
|
+
readonly events: {
|
|
728
|
+
readonly periodicEnergyMeasured: import("@matter/types/cluster").Event<import("@matter/types").TypeFromFields<{
|
|
729
|
+
energyImported: import("@matter/types").OptionalFieldType<import("@matter/types").TypeFromFields<{
|
|
730
|
+
energy: import("@matter/types").FieldType<number | bigint>;
|
|
731
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
732
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
733
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
734
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
735
|
+
}>>;
|
|
736
|
+
energyExported: import("@matter/types").OptionalFieldType<import("@matter/types").TypeFromFields<{
|
|
737
|
+
energy: import("@matter/types").FieldType<number | bigint>;
|
|
738
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
739
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
740
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
741
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
742
|
+
}>>;
|
|
743
|
+
}>, any>;
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
}, {
|
|
747
|
+
readonly flags: {
|
|
748
|
+
readonly importedEnergy: false;
|
|
749
|
+
readonly exportedEnergy: false;
|
|
750
|
+
};
|
|
751
|
+
readonly component: false;
|
|
752
|
+
}, {
|
|
753
|
+
readonly flags: {
|
|
754
|
+
readonly cumulativeEnergy: false;
|
|
755
|
+
readonly periodicEnergy: false;
|
|
756
|
+
};
|
|
757
|
+
readonly component: false;
|
|
758
|
+
}];
|
|
759
|
+
}>, readonly [ElectricalEnergyMeasurement.Feature.ImportedEnergy, ElectricalEnergyMeasurement.Feature.ExportedEnergy, ElectricalEnergyMeasurement.Feature.CumulativeEnergy]>, typeof ElectricalEnergyMeasurementServer>>;
|
|
760
|
+
export declare function getDefaultElectricalPowerMeasurementClusterServer(voltage?: number | bigint | null, current?: number | bigint | null, power?: number | bigint | null, frequency?: number | bigint | null): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
|
|
761
|
+
readonly id: 144;
|
|
762
|
+
readonly name: "ElectricalPowerMeasurement";
|
|
763
|
+
readonly revision: 3;
|
|
764
|
+
readonly features: {
|
|
765
|
+
readonly directCurrent: import("@matter/types").BitFlag;
|
|
766
|
+
readonly alternatingCurrent: import("@matter/types").BitFlag;
|
|
767
|
+
readonly polyphasePower: import("@matter/types").BitFlag;
|
|
768
|
+
readonly harmonics: import("@matter/types").BitFlag;
|
|
769
|
+
readonly powerQuality: import("@matter/types").BitFlag;
|
|
770
|
+
};
|
|
771
|
+
readonly attributes: {
|
|
772
|
+
readonly powerMode: import("@matter/types/cluster").Attribute<ElectricalPowerMeasurement.PowerMode, any>;
|
|
773
|
+
readonly numberOfMeasurementTypes: import("@matter/types/cluster").FixedAttribute<number, any>;
|
|
774
|
+
readonly accuracy: import("@matter/types/cluster").FixedAttribute<import("@matter/types").TypeFromFields<{
|
|
775
|
+
measurementType: import("@matter/types").FieldType<import("@matter/types").MeasurementType>;
|
|
776
|
+
measured: import("@matter/types").FieldType<boolean>;
|
|
777
|
+
minMeasuredValue: import("@matter/types").FieldType<number | bigint>;
|
|
778
|
+
maxMeasuredValue: import("@matter/types").FieldType<number | bigint>;
|
|
779
|
+
accuracyRanges: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
780
|
+
rangeMin: import("@matter/types").FieldType<number | bigint>;
|
|
781
|
+
rangeMax: import("@matter/types").FieldType<number | bigint>;
|
|
782
|
+
percentMax: import("@matter/types").OptionalFieldType<number>;
|
|
783
|
+
percentMin: import("@matter/types").OptionalFieldType<number>;
|
|
784
|
+
percentTypical: import("@matter/types").OptionalFieldType<number>;
|
|
785
|
+
fixedMax: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
786
|
+
fixedMin: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
787
|
+
fixedTypical: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
788
|
+
}>[]>;
|
|
789
|
+
}>[], any>;
|
|
790
|
+
readonly ranges: import("@matter/types/cluster").OptionalAttribute<import("@matter/types").TypeFromFields<{
|
|
791
|
+
measurementType: import("@matter/types").FieldType<ElectricalPowerMeasurement.MeasurementType>;
|
|
792
|
+
min: import("@matter/types").FieldType<number | bigint>;
|
|
793
|
+
max: import("@matter/types").FieldType<number | bigint>;
|
|
794
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
795
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
796
|
+
minTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
797
|
+
maxTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
798
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
799
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
800
|
+
minSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
801
|
+
maxSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
802
|
+
}>[], any>;
|
|
803
|
+
readonly voltage: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
804
|
+
readonly activeCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
805
|
+
readonly activePower: import("@matter/types/cluster").Attribute<number | bigint | null, any>;
|
|
806
|
+
};
|
|
807
|
+
readonly events: {
|
|
808
|
+
readonly measurementPeriodRanges: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
809
|
+
ranges: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
810
|
+
measurementType: import("@matter/types").FieldType<ElectricalPowerMeasurement.MeasurementType>;
|
|
811
|
+
min: import("@matter/types").FieldType<number | bigint>;
|
|
812
|
+
max: import("@matter/types").FieldType<number | bigint>;
|
|
813
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
814
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
815
|
+
minTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
816
|
+
maxTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
817
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
818
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
819
|
+
minSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
820
|
+
maxSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
821
|
+
}>[]>;
|
|
822
|
+
}>, any>;
|
|
823
|
+
};
|
|
824
|
+
readonly extensions: readonly [{
|
|
825
|
+
readonly flags: {
|
|
826
|
+
readonly alternatingCurrent: true;
|
|
827
|
+
};
|
|
828
|
+
readonly component: {
|
|
829
|
+
readonly attributes: {
|
|
830
|
+
readonly reactiveCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
831
|
+
readonly apparentCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
832
|
+
readonly reactivePower: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
833
|
+
readonly apparentPower: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
834
|
+
readonly rmsVoltage: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
835
|
+
readonly rmsCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
836
|
+
readonly rmsPower: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
837
|
+
readonly frequency: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
838
|
+
readonly powerFactor: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
}, {
|
|
842
|
+
readonly flags: {
|
|
843
|
+
readonly harmonics: true;
|
|
844
|
+
};
|
|
845
|
+
readonly component: {
|
|
846
|
+
readonly attributes: {
|
|
847
|
+
readonly harmonicCurrents: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
848
|
+
order: import("@matter/types").FieldType<number>;
|
|
849
|
+
measurement: import("@matter/types").FieldType<number | bigint | null>;
|
|
850
|
+
}>[] | null, any>;
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
}, {
|
|
854
|
+
readonly flags: {
|
|
855
|
+
readonly powerQuality: true;
|
|
856
|
+
};
|
|
857
|
+
readonly component: {
|
|
858
|
+
readonly attributes: {
|
|
859
|
+
readonly harmonicPhases: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
860
|
+
order: import("@matter/types").FieldType<number>;
|
|
861
|
+
measurement: import("@matter/types").FieldType<number | bigint | null>;
|
|
862
|
+
}>[] | null, any>;
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
}, {
|
|
866
|
+
readonly flags: {
|
|
867
|
+
readonly polyphasePower: true;
|
|
868
|
+
};
|
|
869
|
+
readonly component: {
|
|
870
|
+
readonly attributes: {
|
|
871
|
+
readonly neutralCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
}, {
|
|
875
|
+
readonly flags: {
|
|
876
|
+
readonly polyphasePower: true;
|
|
877
|
+
readonly alternatingCurrent: false;
|
|
878
|
+
};
|
|
879
|
+
readonly component: false;
|
|
880
|
+
}, {
|
|
881
|
+
readonly flags: {
|
|
882
|
+
readonly harmonics: true;
|
|
883
|
+
readonly alternatingCurrent: false;
|
|
884
|
+
};
|
|
885
|
+
readonly component: false;
|
|
886
|
+
}, {
|
|
887
|
+
readonly flags: {
|
|
888
|
+
readonly powerQuality: true;
|
|
889
|
+
readonly alternatingCurrent: false;
|
|
890
|
+
};
|
|
891
|
+
readonly component: false;
|
|
892
|
+
}, {
|
|
893
|
+
readonly flags: {
|
|
894
|
+
readonly directCurrent: false;
|
|
895
|
+
readonly alternatingCurrent: false;
|
|
896
|
+
};
|
|
897
|
+
readonly component: false;
|
|
898
|
+
}];
|
|
899
|
+
}>, readonly [ElectricalPowerMeasurement.Feature.AlternatingCurrent]>, typeof ElectricalPowerMeasurementServer>>;
|
|
900
|
+
export declare function getApparentElectricalPowerMeasurementClusterServer(voltage?: number | bigint | null, apparentCurrent?: number | bigint | null, apparentPower?: number | bigint | null, frequency?: number | bigint | null): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
|
|
901
|
+
readonly id: 144;
|
|
902
|
+
readonly name: "ElectricalPowerMeasurement";
|
|
903
|
+
readonly revision: 3;
|
|
904
|
+
readonly features: {
|
|
905
|
+
readonly directCurrent: import("@matter/types").BitFlag;
|
|
906
|
+
readonly alternatingCurrent: import("@matter/types").BitFlag;
|
|
907
|
+
readonly polyphasePower: import("@matter/types").BitFlag;
|
|
908
|
+
readonly harmonics: import("@matter/types").BitFlag;
|
|
909
|
+
readonly powerQuality: import("@matter/types").BitFlag;
|
|
910
|
+
};
|
|
911
|
+
readonly attributes: {
|
|
912
|
+
readonly powerMode: import("@matter/types/cluster").Attribute<ElectricalPowerMeasurement.PowerMode, any>;
|
|
913
|
+
readonly numberOfMeasurementTypes: import("@matter/types/cluster").FixedAttribute<number, any>;
|
|
914
|
+
readonly accuracy: import("@matter/types/cluster").FixedAttribute<import("@matter/types").TypeFromFields<{
|
|
915
|
+
measurementType: import("@matter/types").FieldType<import("@matter/types").MeasurementType>;
|
|
916
|
+
measured: import("@matter/types").FieldType<boolean>;
|
|
917
|
+
minMeasuredValue: import("@matter/types").FieldType<number | bigint>;
|
|
918
|
+
maxMeasuredValue: import("@matter/types").FieldType<number | bigint>;
|
|
919
|
+
accuracyRanges: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
920
|
+
rangeMin: import("@matter/types").FieldType<number | bigint>;
|
|
921
|
+
rangeMax: import("@matter/types").FieldType<number | bigint>;
|
|
922
|
+
percentMax: import("@matter/types").OptionalFieldType<number>;
|
|
923
|
+
percentMin: import("@matter/types").OptionalFieldType<number>;
|
|
924
|
+
percentTypical: import("@matter/types").OptionalFieldType<number>;
|
|
925
|
+
fixedMax: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
926
|
+
fixedMin: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
927
|
+
fixedTypical: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
928
|
+
}>[]>;
|
|
929
|
+
}>[], any>;
|
|
930
|
+
readonly ranges: import("@matter/types/cluster").OptionalAttribute<import("@matter/types").TypeFromFields<{
|
|
931
|
+
measurementType: import("@matter/types").FieldType<ElectricalPowerMeasurement.MeasurementType>;
|
|
932
|
+
min: import("@matter/types").FieldType<number | bigint>;
|
|
933
|
+
max: import("@matter/types").FieldType<number | bigint>;
|
|
934
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
935
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
936
|
+
minTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
937
|
+
maxTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
938
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
939
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
940
|
+
minSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
941
|
+
maxSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
942
|
+
}>[], any>;
|
|
943
|
+
readonly voltage: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
944
|
+
readonly activeCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
945
|
+
readonly activePower: import("@matter/types/cluster").Attribute<number | bigint | null, any>;
|
|
946
|
+
};
|
|
947
|
+
readonly events: {
|
|
948
|
+
readonly measurementPeriodRanges: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
949
|
+
ranges: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
950
|
+
measurementType: import("@matter/types").FieldType<ElectricalPowerMeasurement.MeasurementType>;
|
|
951
|
+
min: import("@matter/types").FieldType<number | bigint>;
|
|
952
|
+
max: import("@matter/types").FieldType<number | bigint>;
|
|
953
|
+
startTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
954
|
+
endTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
955
|
+
minTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
956
|
+
maxTimestamp: import("@matter/types").OptionalFieldType<number>;
|
|
957
|
+
startSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
958
|
+
endSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
959
|
+
minSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
960
|
+
maxSystime: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
961
|
+
}>[]>;
|
|
962
|
+
}>, any>;
|
|
963
|
+
};
|
|
964
|
+
readonly extensions: readonly [{
|
|
965
|
+
readonly flags: {
|
|
966
|
+
readonly alternatingCurrent: true;
|
|
967
|
+
};
|
|
968
|
+
readonly component: {
|
|
969
|
+
readonly attributes: {
|
|
970
|
+
readonly reactiveCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
971
|
+
readonly apparentCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
972
|
+
readonly reactivePower: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
973
|
+
readonly apparentPower: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
974
|
+
readonly rmsVoltage: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
975
|
+
readonly rmsCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
976
|
+
readonly rmsPower: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
977
|
+
readonly frequency: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
978
|
+
readonly powerFactor: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
}, {
|
|
982
|
+
readonly flags: {
|
|
983
|
+
readonly harmonics: true;
|
|
984
|
+
};
|
|
985
|
+
readonly component: {
|
|
986
|
+
readonly attributes: {
|
|
987
|
+
readonly harmonicCurrents: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
988
|
+
order: import("@matter/types").FieldType<number>;
|
|
989
|
+
measurement: import("@matter/types").FieldType<number | bigint | null>;
|
|
990
|
+
}>[] | null, any>;
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
}, {
|
|
994
|
+
readonly flags: {
|
|
995
|
+
readonly powerQuality: true;
|
|
996
|
+
};
|
|
997
|
+
readonly component: {
|
|
998
|
+
readonly attributes: {
|
|
999
|
+
readonly harmonicPhases: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
1000
|
+
order: import("@matter/types").FieldType<number>;
|
|
1001
|
+
measurement: import("@matter/types").FieldType<number | bigint | null>;
|
|
1002
|
+
}>[] | null, any>;
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly flags: {
|
|
1007
|
+
readonly polyphasePower: true;
|
|
1008
|
+
};
|
|
1009
|
+
readonly component: {
|
|
1010
|
+
readonly attributes: {
|
|
1011
|
+
readonly neutralCurrent: import("@matter/types/cluster").OptionalAttribute<number | bigint | null, any>;
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
}, {
|
|
1015
|
+
readonly flags: {
|
|
1016
|
+
readonly polyphasePower: true;
|
|
1017
|
+
readonly alternatingCurrent: false;
|
|
1018
|
+
};
|
|
1019
|
+
readonly component: false;
|
|
1020
|
+
}, {
|
|
1021
|
+
readonly flags: {
|
|
1022
|
+
readonly harmonics: true;
|
|
1023
|
+
readonly alternatingCurrent: false;
|
|
1024
|
+
};
|
|
1025
|
+
readonly component: false;
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly flags: {
|
|
1028
|
+
readonly powerQuality: true;
|
|
1029
|
+
readonly alternatingCurrent: false;
|
|
1030
|
+
};
|
|
1031
|
+
readonly component: false;
|
|
1032
|
+
}, {
|
|
1033
|
+
readonly flags: {
|
|
1034
|
+
readonly directCurrent: false;
|
|
1035
|
+
readonly alternatingCurrent: false;
|
|
1036
|
+
};
|
|
1037
|
+
readonly component: false;
|
|
1038
|
+
}];
|
|
1039
|
+
}>, readonly [ElectricalPowerMeasurement.Feature.AlternatingCurrent]>, typeof ElectricalPowerMeasurementServer>>;
|
|
1040
|
+
export declare function getDefaultDeviceEnergyManagementClusterServer(esaType?: DeviceEnergyManagement.EsaType, esaCanGenerate?: boolean, esaState?: DeviceEnergyManagement.EsaState, absMinPower?: number, absMaxPower?: number): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
|
|
1041
|
+
readonly id: 152;
|
|
1042
|
+
readonly name: "DeviceEnergyManagement";
|
|
1043
|
+
readonly revision: 4;
|
|
1044
|
+
readonly features: {
|
|
1045
|
+
readonly powerAdjustment: import("@matter/types").BitFlag;
|
|
1046
|
+
readonly powerForecastReporting: import("@matter/types").BitFlag;
|
|
1047
|
+
readonly stateForecastReporting: import("@matter/types").BitFlag;
|
|
1048
|
+
readonly startTimeAdjustment: import("@matter/types").BitFlag;
|
|
1049
|
+
readonly pausable: import("@matter/types").BitFlag;
|
|
1050
|
+
readonly forecastAdjustment: import("@matter/types").BitFlag;
|
|
1051
|
+
readonly constraintBasedAdjustment: import("@matter/types").BitFlag;
|
|
1052
|
+
};
|
|
1053
|
+
readonly attributes: {
|
|
1054
|
+
readonly esaType: import("@matter/types/cluster").FixedAttribute<DeviceEnergyManagement.EsaType, any>;
|
|
1055
|
+
readonly esaCanGenerate: import("@matter/types/cluster").FixedAttribute<boolean, any>;
|
|
1056
|
+
readonly esaState: import("@matter/types/cluster").Attribute<DeviceEnergyManagement.EsaState, any>;
|
|
1057
|
+
readonly absMinPower: import("@matter/types/cluster").Attribute<number | bigint, any>;
|
|
1058
|
+
readonly absMaxPower: import("@matter/types/cluster").Attribute<number | bigint, any>;
|
|
1059
|
+
};
|
|
1060
|
+
readonly extensions: readonly [{
|
|
1061
|
+
readonly flags: {
|
|
1062
|
+
readonly powerAdjustment: true;
|
|
1063
|
+
};
|
|
1064
|
+
readonly component: {
|
|
1065
|
+
readonly attributes: {
|
|
1066
|
+
readonly powerAdjustmentCapability: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
1067
|
+
powerAdjustCapability: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
1068
|
+
minPower: import("@matter/types").FieldType<number | bigint>;
|
|
1069
|
+
maxPower: import("@matter/types").FieldType<number | bigint>;
|
|
1070
|
+
minDuration: import("@matter/types").FieldType<number>;
|
|
1071
|
+
maxDuration: import("@matter/types").FieldType<number>;
|
|
1072
|
+
}>[] | null>;
|
|
1073
|
+
cause: import("@matter/types").FieldType<DeviceEnergyManagement.PowerAdjustReason>;
|
|
1074
|
+
}> | null, any>;
|
|
1075
|
+
};
|
|
1076
|
+
readonly commands: {
|
|
1077
|
+
readonly powerAdjustRequest: import("@matter/types/cluster").Command<import("@matter/types").TypeFromFields<{
|
|
1078
|
+
power: import("@matter/types").FieldType<number | bigint>;
|
|
1079
|
+
duration: import("@matter/types").FieldType<number>;
|
|
1080
|
+
cause: import("@matter/types").FieldType<DeviceEnergyManagement.AdjustmentCause>;
|
|
1081
|
+
}>, void, any>;
|
|
1082
|
+
readonly cancelPowerAdjustRequest: import("@matter/types/cluster").Command<void, void, any>;
|
|
1083
|
+
};
|
|
1084
|
+
readonly events: {
|
|
1085
|
+
readonly powerAdjustStart: import("@matter/types/cluster").Event<void, any>;
|
|
1086
|
+
readonly powerAdjustEnd: import("@matter/types/cluster").Event<import("@matter/types").TypeFromFields<{
|
|
1087
|
+
cause: import("@matter/types").FieldType<DeviceEnergyManagement.Cause>;
|
|
1088
|
+
duration: import("@matter/types").FieldType<number>;
|
|
1089
|
+
energyUse: import("@matter/types").FieldType<number | bigint>;
|
|
1090
|
+
}>, any>;
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly flags: {
|
|
1095
|
+
readonly powerForecastReporting: true;
|
|
1096
|
+
};
|
|
1097
|
+
readonly component: {
|
|
1098
|
+
readonly attributes: {
|
|
1099
|
+
readonly forecast: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
1100
|
+
forecastId: import("@matter/types").FieldType<number>;
|
|
1101
|
+
activeSlotNumber: import("@matter/types").FieldType<number | null>;
|
|
1102
|
+
startTime: import("@matter/types").FieldType<number>;
|
|
1103
|
+
endTime: import("@matter/types").FieldType<number>;
|
|
1104
|
+
earliestStartTime: import("@matter/types").OptionalFieldType<number | null>;
|
|
1105
|
+
latestEndTime: import("@matter/types").OptionalFieldType<number>;
|
|
1106
|
+
isPausable: import("@matter/types").FieldType<boolean>;
|
|
1107
|
+
slots: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
1108
|
+
minDuration: import("@matter/types").FieldType<number>;
|
|
1109
|
+
maxDuration: import("@matter/types").FieldType<number>;
|
|
1110
|
+
defaultDuration: import("@matter/types").FieldType<number>;
|
|
1111
|
+
elapsedSlotTime: import("@matter/types").FieldType<number>;
|
|
1112
|
+
remainingSlotTime: import("@matter/types").FieldType<number>;
|
|
1113
|
+
slotIsPausable: import("@matter/types").OptionalFieldType<boolean>;
|
|
1114
|
+
minPauseDuration: import("@matter/types").OptionalFieldType<number>;
|
|
1115
|
+
maxPauseDuration: import("@matter/types").OptionalFieldType<number>;
|
|
1116
|
+
manufacturerEsaState: import("@matter/types").OptionalFieldType<number>;
|
|
1117
|
+
nominalPower: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1118
|
+
minPower: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1119
|
+
maxPower: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1120
|
+
nominalEnergy: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1121
|
+
costs: import("@matter/types").OptionalFieldType<import("@matter/types").TypeFromFields<{
|
|
1122
|
+
costType: import("@matter/types").FieldType<DeviceEnergyManagement.CostType>;
|
|
1123
|
+
value: import("@matter/types").FieldType<number>;
|
|
1124
|
+
decimalPoints: import("@matter/types").FieldType<number>;
|
|
1125
|
+
currency: import("@matter/types").OptionalFieldType<number>;
|
|
1126
|
+
}>[]>;
|
|
1127
|
+
minPowerAdjustment: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1128
|
+
maxPowerAdjustment: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1129
|
+
minDurationAdjustment: import("@matter/types").OptionalFieldType<number>;
|
|
1130
|
+
maxDurationAdjustment: import("@matter/types").OptionalFieldType<number>;
|
|
1131
|
+
}>[]>;
|
|
1132
|
+
forecastUpdateReason: import("@matter/types").FieldType<DeviceEnergyManagement.ForecastUpdateReason>;
|
|
1133
|
+
}> | null, any>;
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly flags: {
|
|
1138
|
+
readonly stateForecastReporting: true;
|
|
1139
|
+
};
|
|
1140
|
+
readonly component: {
|
|
1141
|
+
readonly attributes: {
|
|
1142
|
+
readonly forecast: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromFields<{
|
|
1143
|
+
forecastId: import("@matter/types").FieldType<number>;
|
|
1144
|
+
activeSlotNumber: import("@matter/types").FieldType<number | null>;
|
|
1145
|
+
startTime: import("@matter/types").FieldType<number>;
|
|
1146
|
+
endTime: import("@matter/types").FieldType<number>;
|
|
1147
|
+
earliestStartTime: import("@matter/types").OptionalFieldType<number | null>;
|
|
1148
|
+
latestEndTime: import("@matter/types").OptionalFieldType<number>;
|
|
1149
|
+
isPausable: import("@matter/types").FieldType<boolean>;
|
|
1150
|
+
slots: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
1151
|
+
minDuration: import("@matter/types").FieldType<number>;
|
|
1152
|
+
maxDuration: import("@matter/types").FieldType<number>;
|
|
1153
|
+
defaultDuration: import("@matter/types").FieldType<number>;
|
|
1154
|
+
elapsedSlotTime: import("@matter/types").FieldType<number>;
|
|
1155
|
+
remainingSlotTime: import("@matter/types").FieldType<number>;
|
|
1156
|
+
slotIsPausable: import("@matter/types").OptionalFieldType<boolean>;
|
|
1157
|
+
minPauseDuration: import("@matter/types").OptionalFieldType<number>;
|
|
1158
|
+
maxPauseDuration: import("@matter/types").OptionalFieldType<number>;
|
|
1159
|
+
manufacturerEsaState: import("@matter/types").OptionalFieldType<number>;
|
|
1160
|
+
nominalPower: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1161
|
+
minPower: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1162
|
+
maxPower: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1163
|
+
nominalEnergy: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1164
|
+
costs: import("@matter/types").OptionalFieldType<import("@matter/types").TypeFromFields<{
|
|
1165
|
+
costType: import("@matter/types").FieldType<DeviceEnergyManagement.CostType>;
|
|
1166
|
+
value: import("@matter/types").FieldType<number>;
|
|
1167
|
+
decimalPoints: import("@matter/types").FieldType<number>;
|
|
1168
|
+
currency: import("@matter/types").OptionalFieldType<number>;
|
|
1169
|
+
}>[]>;
|
|
1170
|
+
minPowerAdjustment: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1171
|
+
maxPowerAdjustment: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1172
|
+
minDurationAdjustment: import("@matter/types").OptionalFieldType<number>;
|
|
1173
|
+
maxDurationAdjustment: import("@matter/types").OptionalFieldType<number>;
|
|
1174
|
+
}>[]>;
|
|
1175
|
+
forecastUpdateReason: import("@matter/types").FieldType<DeviceEnergyManagement.ForecastUpdateReason>;
|
|
1176
|
+
}> | null, any>;
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
}, {
|
|
1180
|
+
readonly flags: {
|
|
1181
|
+
readonly powerAdjustment: true;
|
|
1182
|
+
};
|
|
1183
|
+
readonly component: {
|
|
1184
|
+
readonly attributes: {
|
|
1185
|
+
readonly optOutState: import("@matter/types/cluster").Attribute<DeviceEnergyManagement.OptOutState, any>;
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly flags: {
|
|
1190
|
+
readonly startTimeAdjustment: true;
|
|
1191
|
+
};
|
|
1192
|
+
readonly component: {
|
|
1193
|
+
readonly attributes: {
|
|
1194
|
+
readonly optOutState: import("@matter/types/cluster").Attribute<DeviceEnergyManagement.OptOutState, any>;
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1197
|
+
}, {
|
|
1198
|
+
readonly flags: {
|
|
1199
|
+
readonly pausable: true;
|
|
1200
|
+
};
|
|
1201
|
+
readonly component: {
|
|
1202
|
+
readonly attributes: {
|
|
1203
|
+
readonly optOutState: import("@matter/types/cluster").Attribute<DeviceEnergyManagement.OptOutState, any>;
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
}, {
|
|
1207
|
+
readonly flags: {
|
|
1208
|
+
readonly forecastAdjustment: true;
|
|
1209
|
+
};
|
|
1210
|
+
readonly component: {
|
|
1211
|
+
readonly attributes: {
|
|
1212
|
+
readonly optOutState: import("@matter/types/cluster").Attribute<DeviceEnergyManagement.OptOutState, any>;
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
}, {
|
|
1216
|
+
readonly flags: {
|
|
1217
|
+
readonly constraintBasedAdjustment: true;
|
|
1218
|
+
};
|
|
1219
|
+
readonly component: {
|
|
1220
|
+
readonly attributes: {
|
|
1221
|
+
readonly optOutState: import("@matter/types/cluster").Attribute<DeviceEnergyManagement.OptOutState, any>;
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
}, {
|
|
1225
|
+
readonly flags: {
|
|
1226
|
+
readonly pausable: true;
|
|
1227
|
+
};
|
|
1228
|
+
readonly component: {
|
|
1229
|
+
readonly commands: {
|
|
1230
|
+
readonly pauseRequest: import("@matter/types/cluster").Command<import("@matter/types").TypeFromFields<{
|
|
1231
|
+
duration: import("@matter/types").FieldType<number>;
|
|
1232
|
+
cause: import("@matter/types").FieldType<DeviceEnergyManagement.AdjustmentCause>;
|
|
1233
|
+
}>, void, any>;
|
|
1234
|
+
readonly resumeRequest: import("@matter/types/cluster").Command<void, void, any>;
|
|
1235
|
+
};
|
|
1236
|
+
readonly events: {
|
|
1237
|
+
readonly paused: import("@matter/types/cluster").Event<void, any>;
|
|
1238
|
+
readonly resumed: import("@matter/types/cluster").Event<import("@matter/types").TypeFromFields<{
|
|
1239
|
+
cause: import("@matter/types").FieldType<DeviceEnergyManagement.Cause>;
|
|
1240
|
+
}>, any>;
|
|
1241
|
+
};
|
|
1242
|
+
};
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly flags: {
|
|
1245
|
+
readonly startTimeAdjustment: true;
|
|
1246
|
+
};
|
|
1247
|
+
readonly component: {
|
|
1248
|
+
readonly commands: {
|
|
1249
|
+
readonly startTimeAdjustRequest: import("@matter/types/cluster").Command<import("@matter/types").TypeFromFields<{
|
|
1250
|
+
requestedStartTime: import("@matter/types").FieldType<number>;
|
|
1251
|
+
cause: import("@matter/types").FieldType<DeviceEnergyManagement.AdjustmentCause>;
|
|
1252
|
+
}>, void, any>;
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly flags: {
|
|
1257
|
+
readonly forecastAdjustment: true;
|
|
1258
|
+
};
|
|
1259
|
+
readonly component: {
|
|
1260
|
+
readonly commands: {
|
|
1261
|
+
readonly modifyForecastRequest: import("@matter/types/cluster").Command<import("@matter/types").TypeFromFields<{
|
|
1262
|
+
forecastId: import("@matter/types").FieldType<number>;
|
|
1263
|
+
slotAdjustments: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
1264
|
+
slotIndex: import("@matter/types").FieldType<number>;
|
|
1265
|
+
nominalPower: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1266
|
+
duration: import("@matter/types").FieldType<number>;
|
|
1267
|
+
}>[]>;
|
|
1268
|
+
cause: import("@matter/types").FieldType<DeviceEnergyManagement.AdjustmentCause>;
|
|
1269
|
+
}>, void, any>;
|
|
1270
|
+
};
|
|
1271
|
+
};
|
|
1272
|
+
}, {
|
|
1273
|
+
readonly flags: {
|
|
1274
|
+
readonly constraintBasedAdjustment: true;
|
|
1275
|
+
};
|
|
1276
|
+
readonly component: {
|
|
1277
|
+
readonly commands: {
|
|
1278
|
+
readonly requestConstraintBasedForecast: import("@matter/types/cluster").Command<import("@matter/types").TypeFromFields<{
|
|
1279
|
+
constraints: import("@matter/types").FieldType<import("@matter/types").TypeFromFields<{
|
|
1280
|
+
startTime: import("@matter/types").FieldType<number>;
|
|
1281
|
+
duration: import("@matter/types").FieldType<number>;
|
|
1282
|
+
nominalPower: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1283
|
+
maximumEnergy: import("@matter/types").OptionalFieldType<number | bigint>;
|
|
1284
|
+
loadControl: import("@matter/types").OptionalFieldType<number>;
|
|
1285
|
+
}>[]>;
|
|
1286
|
+
cause: import("@matter/types").FieldType<DeviceEnergyManagement.AdjustmentCause>;
|
|
1287
|
+
}>, void, any>;
|
|
1288
|
+
};
|
|
1289
|
+
};
|
|
1290
|
+
}, {
|
|
1291
|
+
readonly flags: {
|
|
1292
|
+
readonly startTimeAdjustment: true;
|
|
1293
|
+
};
|
|
1294
|
+
readonly component: {
|
|
1295
|
+
readonly commands: {
|
|
1296
|
+
readonly cancelRequest: import("@matter/types/cluster").Command<void, void, any>;
|
|
1297
|
+
};
|
|
1298
|
+
};
|
|
1299
|
+
}, {
|
|
1300
|
+
readonly flags: {
|
|
1301
|
+
readonly forecastAdjustment: true;
|
|
1302
|
+
};
|
|
1303
|
+
readonly component: {
|
|
1304
|
+
readonly commands: {
|
|
1305
|
+
readonly cancelRequest: import("@matter/types/cluster").Command<void, void, any>;
|
|
1306
|
+
};
|
|
1307
|
+
};
|
|
1308
|
+
}, {
|
|
1309
|
+
readonly flags: {
|
|
1310
|
+
readonly constraintBasedAdjustment: true;
|
|
1311
|
+
};
|
|
1312
|
+
readonly component: {
|
|
1313
|
+
readonly commands: {
|
|
1314
|
+
readonly cancelRequest: import("@matter/types/cluster").Command<void, void, any>;
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
}, {
|
|
1318
|
+
readonly flags: {
|
|
1319
|
+
readonly staTrue: true;
|
|
1320
|
+
readonly pauTrue: false;
|
|
1321
|
+
readonly faTrue: false;
|
|
1322
|
+
readonly conTrue: false;
|
|
1323
|
+
};
|
|
1324
|
+
readonly component: false;
|
|
1325
|
+
}, {
|
|
1326
|
+
readonly flags: {
|
|
1327
|
+
readonly powerForecastReporting: true;
|
|
1328
|
+
readonly stateForecastReporting: true;
|
|
1329
|
+
};
|
|
1330
|
+
readonly component: false;
|
|
1331
|
+
}, {
|
|
1332
|
+
readonly flags: {
|
|
1333
|
+
readonly powerForecastReporting: false;
|
|
1334
|
+
readonly stateForecastReporting: false;
|
|
1335
|
+
};
|
|
1336
|
+
readonly component: false;
|
|
1337
|
+
}];
|
|
1338
|
+
}>, readonly [DeviceEnergyManagement.Feature.PowerForecastReporting, DeviceEnergyManagement.Feature.PowerAdjustment]>, readonly [DeviceEnergyManagement.Feature.PowerForecastReporting, DeviceEnergyManagement.Feature.PowerAdjustment]>, typeof MatterbridgeDeviceEnergyManagementServer>>;
|
|
1339
|
+
export declare function getDefaultDeviceEnergyManagementModeClusterServer(currentMode?: number, supportedModes?: DeviceEnergyManagementMode.ModeOption[]): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<DeviceEnergyManagementMode.Cluster, readonly []>, typeof MatterbridgeDeviceEnergyManagementModeServer>>;
|
|
1340
|
+
export declare function getDefaultOperationalStateClusterServer(operationalState?: OperationalState.OperationalStateEnum): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<OperationalState.Cluster, readonly []>, typeof MatterbridgeOperationalStateServer>>;
|
|
1341
|
+
export declare function getDefaultTemperatureMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<TemperatureMeasurement.Cluster, typeof ClusterBehavior>>;
|
|
1342
|
+
export declare function getDefaultRelativeHumidityMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<RelativeHumidityMeasurement.Cluster, typeof ClusterBehavior>>;
|
|
1343
|
+
export declare function getDefaultPressureMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<PressureMeasurement.Cluster, typeof ClusterBehavior>>;
|
|
1344
|
+
export declare function getDefaultIlluminanceMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<IlluminanceMeasurement.Cluster, typeof ClusterBehavior>>;
|
|
1345
|
+
export declare function getDefaultFlowMeasurementClusterServer(measuredValue?: number | null, minMeasuredValue?: number | null, maxMeasuredValue?: number | null): Partial<import("@matter/node").ClusterState.Type<FlowMeasurement.Cluster, typeof ClusterBehavior>>;
|
|
1346
|
+
export declare function getDefaultOccupancySensingClusterServer(occupied?: boolean, holdTime?: number, holdTimeMin?: number, holdTimeMax?: number): Partial<import("@matter/node").ClusterState.Type<import("@matter/types/cluster").ClusterComposer.WithFeatures<ClusterType.Of<{
|
|
1347
|
+
readonly id: 1030;
|
|
1348
|
+
readonly name: "OccupancySensing";
|
|
1349
|
+
readonly revision: 5;
|
|
1350
|
+
readonly features: {
|
|
1351
|
+
readonly other: import("@matter/types").BitFlag;
|
|
1352
|
+
readonly passiveInfrared: import("@matter/types").BitFlag;
|
|
1353
|
+
readonly ultrasonic: import("@matter/types").BitFlag;
|
|
1354
|
+
readonly physicalContact: import("@matter/types").BitFlag;
|
|
1355
|
+
readonly activeInfrared: import("@matter/types").BitFlag;
|
|
1356
|
+
readonly radar: import("@matter/types").BitFlag;
|
|
1357
|
+
readonly rfSensing: import("@matter/types").BitFlag;
|
|
1358
|
+
readonly vision: import("@matter/types").BitFlag;
|
|
1359
|
+
};
|
|
1360
|
+
readonly attributes: {
|
|
1361
|
+
readonly occupancy: import("@matter/types/cluster").Attribute<import("@matter/types").TypeFromPartialBitSchema<{
|
|
1362
|
+
occupied: import("@matter/types").BitFlag;
|
|
1363
|
+
}>, any>;
|
|
1364
|
+
readonly occupancySensorType: import("@matter/types/cluster").FixedAttribute<OccupancySensing.OccupancySensorType, any>;
|
|
1365
|
+
readonly occupancySensorTypeBitmap: import("@matter/types/cluster").FixedAttribute<import("@matter/types").TypeFromPartialBitSchema<{
|
|
1366
|
+
pir: import("@matter/types").BitFlag;
|
|
1367
|
+
ultrasonic: import("@matter/types").BitFlag;
|
|
1368
|
+
physicalContact: import("@matter/types").BitFlag;
|
|
1369
|
+
}>, any>;
|
|
1370
|
+
readonly holdTime: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1371
|
+
readonly holdTimeLimits: import("@matter/types/cluster").OptionalFixedAttribute<import("@matter/types").TypeFromFields<{
|
|
1372
|
+
holdTimeMin: import("@matter/types").FieldType<number>;
|
|
1373
|
+
holdTimeMax: import("@matter/types").FieldType<number>;
|
|
1374
|
+
holdTimeDefault: import("@matter/types").FieldType<number>;
|
|
1375
|
+
}>, any>;
|
|
1376
|
+
};
|
|
1377
|
+
readonly events: {
|
|
1378
|
+
readonly occupancyChanged: import("@matter/types/cluster").OptionalEvent<import("@matter/types").TypeFromFields<{
|
|
1379
|
+
occupancy: import("@matter/types").FieldType<import("@matter/types").TypeFromPartialBitSchema<{
|
|
1380
|
+
occupied: import("@matter/types").BitFlag;
|
|
1381
|
+
}>>;
|
|
1382
|
+
}>, any>;
|
|
1383
|
+
};
|
|
1384
|
+
readonly extensions: readonly [{
|
|
1385
|
+
readonly flags: {
|
|
1386
|
+
readonly passiveInfrared: true;
|
|
1387
|
+
};
|
|
1388
|
+
readonly component: {
|
|
1389
|
+
readonly attributes: {
|
|
1390
|
+
readonly pirOccupiedToUnoccupiedDelay: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1391
|
+
readonly pirUnoccupiedToOccupiedDelay: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1392
|
+
readonly pirUnoccupiedToOccupiedThreshold: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1393
|
+
};
|
|
1394
|
+
};
|
|
1395
|
+
}, {
|
|
1396
|
+
readonly flags: {
|
|
1397
|
+
readonly ultrasonic: true;
|
|
1398
|
+
};
|
|
1399
|
+
readonly component: {
|
|
1400
|
+
readonly attributes: {
|
|
1401
|
+
readonly ultrasonicOccupiedToUnoccupiedDelay: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1402
|
+
readonly ultrasonicUnoccupiedToOccupiedDelay: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1403
|
+
readonly ultrasonicUnoccupiedToOccupiedThreshold: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1404
|
+
};
|
|
1405
|
+
};
|
|
1406
|
+
}, {
|
|
1407
|
+
readonly flags: {
|
|
1408
|
+
readonly physicalContact: true;
|
|
1409
|
+
};
|
|
1410
|
+
readonly component: {
|
|
1411
|
+
readonly attributes: {
|
|
1412
|
+
readonly physicalContactOccupiedToUnoccupiedDelay: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1413
|
+
readonly physicalContactUnoccupiedToOccupiedDelay: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1414
|
+
readonly physicalContactUnoccupiedToOccupiedThreshold: import("@matter/types/cluster").OptionalWritableAttribute<number, any>;
|
|
1415
|
+
};
|
|
1416
|
+
};
|
|
1417
|
+
}, {
|
|
1418
|
+
readonly flags: {
|
|
1419
|
+
readonly other: false;
|
|
1420
|
+
readonly passiveInfrared: false;
|
|
1421
|
+
readonly ultrasonic: false;
|
|
1422
|
+
readonly physicalContact: false;
|
|
1423
|
+
readonly activeInfrared: false;
|
|
1424
|
+
readonly radar: false;
|
|
1425
|
+
readonly rfSensing: false;
|
|
1426
|
+
readonly vision: false;
|
|
1427
|
+
};
|
|
1428
|
+
readonly component: false;
|
|
1429
|
+
}];
|
|
1430
|
+
}>, readonly [OccupancySensing.Feature.PassiveInfrared]>, typeof OccupancySensingServer>>;
|