homebridge 2.4.1-beta.2 → 2.4.1-beta.21
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/dist/api.d.ts +66 -3
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +38 -0
- package/dist/api.js.map +1 -1
- package/dist/bridgeService.d.ts +6 -0
- package/dist/bridgeService.d.ts.map +1 -1
- package/dist/bridgeService.js +40 -21
- package/dist/bridgeService.js.map +1 -1
- package/dist/childBridgeFork.d.ts +2 -1
- package/dist/childBridgeFork.d.ts.map +1 -1
- package/dist/childBridgeFork.js +45 -48
- package/dist/childBridgeFork.js.map +1 -1
- package/dist/childBridgeService.d.ts +1 -0
- package/dist/childBridgeService.d.ts.map +1 -1
- package/dist/childBridgeService.js +18 -1
- package/dist/childBridgeService.js.map +1 -1
- package/dist/externalPortService.d.ts +11 -1
- package/dist/externalPortService.d.ts.map +1 -1
- package/dist/externalPortService.js +24 -6
- package/dist/externalPortService.js.map +1 -1
- package/dist/matter/BaseMatterManager.d.ts.map +1 -1
- package/dist/matter/BaseMatterManager.js +9 -3
- package/dist/matter/BaseMatterManager.js.map +1 -1
- package/dist/matter/ChildBridgeMatterManager.d.ts.map +1 -1
- package/dist/matter/ChildBridgeMatterManager.js +18 -12
- package/dist/matter/ChildBridgeMatterManager.js.map +1 -1
- package/dist/matter/ChildBridgeMatterMessageHandler.d.ts.map +1 -1
- package/dist/matter/ChildBridgeMatterMessageHandler.js +9 -3
- package/dist/matter/ChildBridgeMatterMessageHandler.js.map +1 -1
- package/dist/matter/ClusterCommandMapper.d.ts.map +1 -1
- package/dist/matter/ClusterCommandMapper.js +18 -7
- package/dist/matter/ClusterCommandMapper.js.map +1 -1
- package/dist/matter/MatterAPIImpl.d.ts +271 -7
- package/dist/matter/MatterAPIImpl.d.ts.map +1 -1
- package/dist/matter/MatterAPIImpl.js +49 -14
- package/dist/matter/MatterAPIImpl.js.map +1 -1
- package/dist/matter/MatterBridgeManager.d.ts.map +1 -1
- package/dist/matter/MatterBridgeManager.js +21 -13
- package/dist/matter/MatterBridgeManager.js.map +1 -1
- package/dist/matter/MatterPortAllocator.d.ts.map +1 -1
- package/dist/matter/MatterPortAllocator.js +3 -1
- package/dist/matter/MatterPortAllocator.js.map +1 -1
- package/dist/matter/SwitchAPI.d.ts.map +1 -1
- package/dist/matter/SwitchAPI.js +3 -1
- package/dist/matter/SwitchAPI.js.map +1 -1
- package/dist/matter/accessoryCache.d.ts +11 -2
- package/dist/matter/accessoryCache.d.ts.map +1 -1
- package/dist/matter/accessoryCache.js +59 -17
- package/dist/matter/accessoryCache.js.map +1 -1
- package/dist/matter/behaviors/ClosureControlBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/ClosureControlBehavior.js +15 -5
- package/dist/matter/behaviors/ClosureControlBehavior.js.map +1 -1
- package/dist/matter/behaviors/ColorControlBehavior.d.ts +9 -0
- package/dist/matter/behaviors/ColorControlBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/ColorControlBehavior.js +49 -18
- package/dist/matter/behaviors/ColorControlBehavior.js.map +1 -1
- package/dist/matter/behaviors/DeviceEnergyManagementBehavior.d.ts +75 -0
- package/dist/matter/behaviors/DeviceEnergyManagementBehavior.d.ts.map +1 -0
- package/dist/matter/behaviors/DeviceEnergyManagementBehavior.js +188 -0
- package/dist/matter/behaviors/DeviceEnergyManagementBehavior.js.map +1 -0
- package/dist/matter/behaviors/DoorLockBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/DoorLockBehavior.js +6 -2
- package/dist/matter/behaviors/DoorLockBehavior.js.map +1 -1
- package/dist/matter/behaviors/EndpointContext.d.ts +5 -5
- package/dist/matter/behaviors/EndpointContext.d.ts.map +1 -1
- package/dist/matter/behaviors/EndpointContext.js.map +1 -1
- package/dist/matter/behaviors/EnergyEvseBehavior.d.ts +66 -0
- package/dist/matter/behaviors/EnergyEvseBehavior.d.ts.map +1 -0
- package/dist/matter/behaviors/EnergyEvseBehavior.js +176 -0
- package/dist/matter/behaviors/EnergyEvseBehavior.js.map +1 -0
- package/dist/matter/behaviors/FanControlBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/FanControlBehavior.js +6 -2
- package/dist/matter/behaviors/FanControlBehavior.js.map +1 -1
- package/dist/matter/behaviors/IdentifyBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/IdentifyBehavior.js +3 -1
- package/dist/matter/behaviors/IdentifyBehavior.js.map +1 -1
- package/dist/matter/behaviors/LevelControlBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/LevelControlBehavior.js +15 -5
- package/dist/matter/behaviors/LevelControlBehavior.js.map +1 -1
- package/dist/matter/behaviors/OnOffBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/OnOffBehavior.js +9 -3
- package/dist/matter/behaviors/OnOffBehavior.js.map +1 -1
- package/dist/matter/behaviors/RegistryManager.d.ts.map +1 -1
- package/dist/matter/behaviors/RegistryManager.js +6 -2
- package/dist/matter/behaviors/RegistryManager.js.map +1 -1
- package/dist/matter/behaviors/RvcCleanModeBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/RvcCleanModeBehavior.js +3 -1
- package/dist/matter/behaviors/RvcCleanModeBehavior.js.map +1 -1
- package/dist/matter/behaviors/RvcOperationalStateBehavior.d.ts +3 -1
- package/dist/matter/behaviors/RvcOperationalStateBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/RvcOperationalStateBehavior.js +9 -2
- package/dist/matter/behaviors/RvcOperationalStateBehavior.js.map +1 -1
- package/dist/matter/behaviors/RvcRunModeBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/RvcRunModeBehavior.js +3 -1
- package/dist/matter/behaviors/RvcRunModeBehavior.js.map +1 -1
- package/dist/matter/behaviors/ServiceAreaBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/ServiceAreaBehavior.js +6 -2
- package/dist/matter/behaviors/ServiceAreaBehavior.js.map +1 -1
- package/dist/matter/behaviors/ThermostatBehavior.d.ts +16 -0
- package/dist/matter/behaviors/ThermostatBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/ThermostatBehavior.js +64 -4
- package/dist/matter/behaviors/ThermostatBehavior.js.map +1 -1
- package/dist/matter/behaviors/ValveConfigurationAndControlBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/ValveConfigurationAndControlBehavior.js +6 -2
- package/dist/matter/behaviors/ValveConfigurationAndControlBehavior.js.map +1 -1
- package/dist/matter/behaviors/WaterHeaterBehavior.d.ts +44 -0
- package/dist/matter/behaviors/WaterHeaterBehavior.d.ts.map +1 -0
- package/dist/matter/behaviors/WaterHeaterBehavior.js +109 -0
- package/dist/matter/behaviors/WaterHeaterBehavior.js.map +1 -0
- package/dist/matter/behaviors/WindowCoveringBehavior.d.ts.map +1 -1
- package/dist/matter/behaviors/WindowCoveringBehavior.js +15 -5
- package/dist/matter/behaviors/WindowCoveringBehavior.js.map +1 -1
- package/dist/matter/behaviors/index.d.ts +3 -0
- package/dist/matter/behaviors/index.d.ts.map +1 -1
- package/dist/matter/behaviors/index.js +3 -0
- package/dist/matter/behaviors/index.js.map +1 -1
- package/dist/matter/clusterFeatures.d.ts +49 -0
- package/dist/matter/clusterFeatures.d.ts.map +1 -0
- package/dist/matter/clusterFeatures.js +90 -0
- package/dist/matter/clusterFeatures.js.map +1 -0
- package/dist/matter/clusterHandlerMap.d.ts +60 -1
- package/dist/matter/clusterHandlerMap.d.ts.map +1 -1
- package/dist/matter/clusterStateMap.d.ts +8 -1
- package/dist/matter/clusterStateMap.d.ts.map +1 -1
- package/dist/matter/clusterTypes.d.ts +121 -0
- package/dist/matter/clusterTypes.d.ts.map +1 -1
- package/dist/matter/config.d.ts +5 -0
- package/dist/matter/config.d.ts.map +1 -1
- package/dist/matter/config.js +7 -0
- package/dist/matter/config.js.map +1 -1
- package/dist/matter/errorHandler.d.ts.map +1 -1
- package/dist/matter/errorHandler.js +3 -1
- package/dist/matter/errorHandler.js.map +1 -1
- package/dist/matter/server/AccessoryManager.d.ts +15 -4
- package/dist/matter/server/AccessoryManager.d.ts.map +1 -1
- package/dist/matter/server/AccessoryManager.js +241 -41
- package/dist/matter/server/AccessoryManager.js.map +1 -1
- package/dist/matter/server/AccessoryQuery.d.ts.map +1 -1
- package/dist/matter/server/AccessoryQuery.js +14 -2
- package/dist/matter/server/AccessoryQuery.js.map +1 -1
- package/dist/matter/server/BehaviorMap.d.ts.map +1 -1
- package/dist/matter/server/BehaviorMap.js +9 -1
- package/dist/matter/server/BehaviorMap.js.map +1 -1
- package/dist/matter/server/CommissioningManager.d.ts.map +1 -1
- package/dist/matter/server/CommissioningManager.js +15 -5
- package/dist/matter/server/CommissioningManager.js.map +1 -1
- package/dist/matter/server/FabricManager.d.ts.map +1 -1
- package/dist/matter/server/FabricManager.js +30 -8
- package/dist/matter/server/FabricManager.js.map +1 -1
- package/dist/matter/server/ServerLifecycle.d.ts.map +1 -1
- package/dist/matter/server/ServerLifecycle.js +54 -12
- package/dist/matter/server/ServerLifecycle.js.map +1 -1
- package/dist/matter/server/StateManager.d.ts +8 -0
- package/dist/matter/server/StateManager.d.ts.map +1 -1
- package/dist/matter/server/StateManager.js +32 -6
- package/dist/matter/server/StateManager.js.map +1 -1
- package/dist/matter/server.d.ts.map +1 -1
- package/dist/matter/server.js +25 -18
- package/dist/matter/server.js.map +1 -1
- package/dist/matter/serverHelpers.d.ts +45 -14
- package/dist/matter/serverHelpers.d.ts.map +1 -1
- package/dist/matter/serverHelpers.js +157 -23
- package/dist/matter/serverHelpers.js.map +1 -1
- package/dist/matter/types.d.ts +313 -4
- package/dist/matter/types.d.ts.map +1 -1
- package/dist/matter/types.js +123 -5
- package/dist/matter/types.js.map +1 -1
- package/dist/matter/utils.d.ts.map +1 -1
- package/dist/matter/utils.js +6 -2
- package/dist/matter/utils.js.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +9 -3
- package/dist/plugin.js.map +1 -1
- package/dist/pluginManager.d.ts +7 -0
- package/dist/pluginManager.d.ts.map +1 -1
- package/dist/pluginManager.js +40 -27
- package/dist/pluginManager.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +42 -23
- package/dist/server.js.map +1 -1
- package/dist/user.d.ts.map +1 -1
- package/dist/user.js +3 -1
- package/dist/user.js.map +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +4 -6
- package/dist/version.js.map +1 -1
- package/package.json +19 -10
|
@@ -69,7 +69,26 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
69
69
|
readonly OnOffSwitch: import("@matter/node/devices/on-off-light-switch").OnOffLightSwitchDevice;
|
|
70
70
|
readonly OnOffOutlet: import("@matter/node/devices/on-off-plug-in-unit").OnOffPlugInUnitDevice;
|
|
71
71
|
readonly DimmableOutlet: import("@matter/node/devices/dimmable-plug-in-unit").DimmablePlugInUnitDevice;
|
|
72
|
-
readonly AirQualitySensor: import("@matter/
|
|
72
|
+
readonly AirQualitySensor: import("@matter/main").MutableEndpoint.With<EndpointType.For<{
|
|
73
|
+
readonly name: "AirQualitySensor";
|
|
74
|
+
readonly deviceType: 44;
|
|
75
|
+
readonly deviceRevision: 1;
|
|
76
|
+
readonly requirements: typeof import("@matter/node/devices/air-quality-sensor").AirQualitySensorRequirements;
|
|
77
|
+
readonly behaviors: {
|
|
78
|
+
readonly identify: typeof import("@matter/node/behaviors").IdentifyServer;
|
|
79
|
+
} & {
|
|
80
|
+
readonly airQuality: typeof import("@matter/node/behaviors").AirQualityServer;
|
|
81
|
+
};
|
|
82
|
+
}>, import("@matter/main").SupportedBehaviors.With<{
|
|
83
|
+
readonly identify: typeof import("@matter/node/behaviors").IdentifyServer;
|
|
84
|
+
} & {
|
|
85
|
+
readonly airQuality: typeof import("@matter/node/behaviors").AirQualityServer;
|
|
86
|
+
}, readonly [import("@matter/main").ClusterBehavior.Type<typeof import("@matter/node/behaviors").AirQualityServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").AirQuality, {
|
|
87
|
+
fair: true;
|
|
88
|
+
moderate: true;
|
|
89
|
+
veryPoor: true;
|
|
90
|
+
extremelyPoor: true;
|
|
91
|
+
}>, import("@matter/types").ClusterType.Concrete, new () => {}, "airQuality">]>, {}>;
|
|
73
92
|
readonly TemperatureSensor: import("@matter/node/devices/temperature-sensor").TemperatureSensorDevice;
|
|
74
93
|
readonly HumiditySensor: import("@matter/node/devices/humidity-sensor").HumiditySensorDevice;
|
|
75
94
|
readonly LightSensor: import("@matter/node/devices/light-sensor").LightSensorDevice;
|
|
@@ -108,9 +127,17 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
108
127
|
readonly deviceRevision: 1;
|
|
109
128
|
readonly requirements: typeof import("@matter/node/devices/closure").ClosureRequirements;
|
|
110
129
|
readonly behaviors: {
|
|
130
|
+
readonly descriptor: import("@matter/main").ClusterBehavior.Type<typeof import("@matter/node/behaviors").DescriptorServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").Descriptor, {
|
|
131
|
+
tagList: true;
|
|
132
|
+
}>, import("@matter/types").ClusterType.Concrete, new () => {}, "descriptor">;
|
|
133
|
+
} & {
|
|
111
134
|
readonly identify: typeof import("@matter/node/behaviors").IdentifyServer;
|
|
112
135
|
};
|
|
113
136
|
}>, import("@matter/main").SupportedBehaviors.With<{
|
|
137
|
+
readonly descriptor: import("@matter/main").ClusterBehavior.Type<typeof import("@matter/node/behaviors").DescriptorServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").Descriptor, {
|
|
138
|
+
tagList: true;
|
|
139
|
+
}>, import("@matter/types").ClusterType.Concrete, new () => {}, "descriptor">;
|
|
140
|
+
} & {
|
|
114
141
|
readonly identify: typeof import("@matter/node/behaviors").IdentifyServer;
|
|
115
142
|
}, readonly [import("@matter/main").ClusterBehavior.Type<typeof import("./behaviors/ClosureControlBehavior.js").DefaultClosureControlServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").ClosureControl, {
|
|
116
143
|
positioning: true;
|
|
@@ -159,6 +186,225 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
159
186
|
} & {
|
|
160
187
|
readonly valveConfigurationAndControl: typeof import("@matter/node/behaviors").ValveConfigurationAndControlServer;
|
|
161
188
|
}, readonly [typeof import("./behaviors/ValveConfigurationAndControlBehavior.js").DefaultValveConfigurationAndControlServer]>, {}>;
|
|
189
|
+
readonly WaterHeater: import("@matter/main").MutableEndpoint.With<EndpointType.For<{
|
|
190
|
+
readonly name: "WaterHeater";
|
|
191
|
+
readonly deviceType: 1295;
|
|
192
|
+
readonly deviceRevision: 1;
|
|
193
|
+
readonly requirements: typeof import("@matter/node/devices/water-heater").WaterHeaterRequirements;
|
|
194
|
+
readonly behaviors: {
|
|
195
|
+
readonly waterHeaterManagement: typeof import("@matter/node/behaviors").WaterHeaterManagementServer;
|
|
196
|
+
} & {
|
|
197
|
+
readonly waterHeaterMode: typeof import("@matter/node/behaviors").WaterHeaterModeServer;
|
|
198
|
+
} & {
|
|
199
|
+
readonly thermostat: import("@matter/main").ClusterBehavior.Type<typeof import("@matter/node/behaviors").ThermostatServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").Thermostat, {
|
|
200
|
+
autoMode: true;
|
|
201
|
+
cooling: true;
|
|
202
|
+
events: false;
|
|
203
|
+
heating: true;
|
|
204
|
+
localTemperatureNotExposed: false;
|
|
205
|
+
matterScheduleConfiguration: false;
|
|
206
|
+
occupancy: true;
|
|
207
|
+
presets: true;
|
|
208
|
+
setback: false;
|
|
209
|
+
thermostatSuggestions: false;
|
|
210
|
+
}>, {
|
|
211
|
+
autoMode: false;
|
|
212
|
+
cooling: false;
|
|
213
|
+
events: false;
|
|
214
|
+
heating: false;
|
|
215
|
+
localTemperatureNotExposed: false;
|
|
216
|
+
matterScheduleConfiguration: false;
|
|
217
|
+
occupancy: false;
|
|
218
|
+
presets: false;
|
|
219
|
+
setback: false;
|
|
220
|
+
thermostatSuggestions: false;
|
|
221
|
+
}>, {
|
|
222
|
+
autoMode: false;
|
|
223
|
+
cooling: false;
|
|
224
|
+
events: false;
|
|
225
|
+
heating: true;
|
|
226
|
+
localTemperatureNotExposed: false;
|
|
227
|
+
matterScheduleConfiguration: false;
|
|
228
|
+
occupancy: false;
|
|
229
|
+
presets: false;
|
|
230
|
+
setback: false;
|
|
231
|
+
thermostatSuggestions: false;
|
|
232
|
+
}>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors").ThermostatBaseServer.Internal, "thermostat">;
|
|
233
|
+
};
|
|
234
|
+
}>, import("@matter/main").SupportedBehaviors.With<{
|
|
235
|
+
readonly waterHeaterManagement: typeof import("@matter/node/behaviors").WaterHeaterManagementServer;
|
|
236
|
+
} & {
|
|
237
|
+
readonly waterHeaterMode: typeof import("@matter/node/behaviors").WaterHeaterModeServer;
|
|
238
|
+
} & {
|
|
239
|
+
readonly thermostat: import("@matter/main").ClusterBehavior.Type<typeof import("@matter/node/behaviors").ThermostatServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").Thermostat, {
|
|
240
|
+
autoMode: true;
|
|
241
|
+
cooling: true;
|
|
242
|
+
events: false;
|
|
243
|
+
heating: true;
|
|
244
|
+
localTemperatureNotExposed: false;
|
|
245
|
+
matterScheduleConfiguration: false;
|
|
246
|
+
occupancy: true;
|
|
247
|
+
presets: true;
|
|
248
|
+
setback: false;
|
|
249
|
+
thermostatSuggestions: false;
|
|
250
|
+
}>, {
|
|
251
|
+
autoMode: false;
|
|
252
|
+
cooling: false;
|
|
253
|
+
events: false;
|
|
254
|
+
heating: false;
|
|
255
|
+
localTemperatureNotExposed: false;
|
|
256
|
+
matterScheduleConfiguration: false;
|
|
257
|
+
occupancy: false;
|
|
258
|
+
presets: false;
|
|
259
|
+
setback: false;
|
|
260
|
+
thermostatSuggestions: false;
|
|
261
|
+
}>, {
|
|
262
|
+
autoMode: false;
|
|
263
|
+
cooling: false;
|
|
264
|
+
events: false;
|
|
265
|
+
heating: true;
|
|
266
|
+
localTemperatureNotExposed: false;
|
|
267
|
+
matterScheduleConfiguration: false;
|
|
268
|
+
occupancy: false;
|
|
269
|
+
presets: false;
|
|
270
|
+
setback: false;
|
|
271
|
+
thermostatSuggestions: false;
|
|
272
|
+
}>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors").ThermostatBaseServer.Internal, "thermostat">;
|
|
273
|
+
}, readonly [import("@matter/main").ClusterBehavior.Type<import("@matter/main").ClusterBehavior.Type<typeof import("@matter/node/behaviors").ThermostatServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").Thermostat, {
|
|
274
|
+
autoMode: true;
|
|
275
|
+
cooling: true;
|
|
276
|
+
events: false;
|
|
277
|
+
heating: true;
|
|
278
|
+
localTemperatureNotExposed: false;
|
|
279
|
+
matterScheduleConfiguration: false;
|
|
280
|
+
occupancy: true;
|
|
281
|
+
presets: true;
|
|
282
|
+
setback: false;
|
|
283
|
+
thermostatSuggestions: false;
|
|
284
|
+
}>, {
|
|
285
|
+
autoMode: false;
|
|
286
|
+
cooling: false;
|
|
287
|
+
events: false;
|
|
288
|
+
heating: false;
|
|
289
|
+
localTemperatureNotExposed: false;
|
|
290
|
+
matterScheduleConfiguration: false;
|
|
291
|
+
occupancy: false;
|
|
292
|
+
presets: false;
|
|
293
|
+
setback: false;
|
|
294
|
+
thermostatSuggestions: false;
|
|
295
|
+
}>, {
|
|
296
|
+
autoMode: false;
|
|
297
|
+
cooling: false;
|
|
298
|
+
events: false;
|
|
299
|
+
heating: true;
|
|
300
|
+
localTemperatureNotExposed: false;
|
|
301
|
+
matterScheduleConfiguration: false;
|
|
302
|
+
occupancy: false;
|
|
303
|
+
presets: false;
|
|
304
|
+
setback: false;
|
|
305
|
+
thermostatSuggestions: false;
|
|
306
|
+
}>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors").ThermostatBaseServer.Internal, "thermostat">, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").Thermostat, {
|
|
307
|
+
autoMode: true;
|
|
308
|
+
cooling: true;
|
|
309
|
+
events: false;
|
|
310
|
+
heating: true;
|
|
311
|
+
localTemperatureNotExposed: false;
|
|
312
|
+
matterScheduleConfiguration: false;
|
|
313
|
+
occupancy: true;
|
|
314
|
+
presets: true;
|
|
315
|
+
setback: false;
|
|
316
|
+
thermostatSuggestions: false;
|
|
317
|
+
}>, {
|
|
318
|
+
autoMode: false;
|
|
319
|
+
cooling: false;
|
|
320
|
+
events: false;
|
|
321
|
+
heating: false;
|
|
322
|
+
localTemperatureNotExposed: false;
|
|
323
|
+
matterScheduleConfiguration: false;
|
|
324
|
+
occupancy: false;
|
|
325
|
+
presets: false;
|
|
326
|
+
setback: false;
|
|
327
|
+
thermostatSuggestions: false;
|
|
328
|
+
}>, {
|
|
329
|
+
autoMode: false;
|
|
330
|
+
cooling: false;
|
|
331
|
+
events: false;
|
|
332
|
+
heating: true;
|
|
333
|
+
localTemperatureNotExposed: false;
|
|
334
|
+
matterScheduleConfiguration: false;
|
|
335
|
+
occupancy: false;
|
|
336
|
+
presets: false;
|
|
337
|
+
setback: false;
|
|
338
|
+
thermostatSuggestions: false;
|
|
339
|
+
}>, {
|
|
340
|
+
events: false;
|
|
341
|
+
heating: true;
|
|
342
|
+
cooling: false;
|
|
343
|
+
occupancy: false;
|
|
344
|
+
setback: false;
|
|
345
|
+
autoMode: false;
|
|
346
|
+
localTemperatureNotExposed: false;
|
|
347
|
+
matterScheduleConfiguration: false;
|
|
348
|
+
presets: false;
|
|
349
|
+
thermostatSuggestions: false;
|
|
350
|
+
}>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors").ThermostatBaseServer.Internal, "thermostat">, typeof import("./behaviors/WaterHeaterBehavior.js").DefaultWaterHeaterManagementServer]>, {}>;
|
|
351
|
+
readonly SolarPower: import("@matter/node/devices/solar-power").SolarPowerDevice;
|
|
352
|
+
readonly BatteryStorage: import("@matter/node/devices/battery-storage").BatteryStorageDevice;
|
|
353
|
+
readonly EnergyEvse: import("@matter/main").MutableEndpoint.With<EndpointType.For<{
|
|
354
|
+
readonly name: "EnergyEvse";
|
|
355
|
+
readonly deviceType: 1292;
|
|
356
|
+
readonly deviceRevision: 2;
|
|
357
|
+
readonly requirements: typeof import("@matter/node/devices/energy-evse").EnergyEvseRequirements;
|
|
358
|
+
readonly behaviors: {
|
|
359
|
+
readonly energyEvse: typeof import("@matter/node/behaviors").EnergyEvseServer;
|
|
360
|
+
} & {
|
|
361
|
+
readonly energyEvseMode: typeof import("@matter/node/behaviors").EnergyEvseModeServer;
|
|
362
|
+
};
|
|
363
|
+
}>, import("@matter/main").SupportedBehaviors.With<{
|
|
364
|
+
readonly energyEvse: typeof import("@matter/node/behaviors").EnergyEvseServer;
|
|
365
|
+
} & {
|
|
366
|
+
readonly energyEvseMode: typeof import("@matter/node/behaviors").EnergyEvseModeServer;
|
|
367
|
+
}, readonly [import("@matter/main").ClusterBehavior.Type<typeof import("./behaviors/EnergyEvseBehavior.js").DefaultEnergyEvseServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").EnergyEvse, {
|
|
368
|
+
rfid: true;
|
|
369
|
+
chargingPreferences: true;
|
|
370
|
+
soCReporting: true;
|
|
371
|
+
plugAndCharge: true;
|
|
372
|
+
v2X: true;
|
|
373
|
+
}>, {
|
|
374
|
+
rfid: false;
|
|
375
|
+
chargingPreferences: false;
|
|
376
|
+
soCReporting: false;
|
|
377
|
+
plugAndCharge: false;
|
|
378
|
+
v2X: false;
|
|
379
|
+
}>, import("@matter/types").ClusterType.Concrete, new () => {}, "energyEvse">]>, {}>;
|
|
380
|
+
readonly ElectricalMeter: import("@matter/node/devices/electrical-meter").ElectricalMeterDevice;
|
|
381
|
+
readonly ElectricalUtilityMeter: import("@matter/node/devices/electrical-utility-meter").ElectricalUtilityMeterDevice;
|
|
382
|
+
readonly ElectricalEnergyTariff: import("@matter/node/devices/electrical-energy-tariff").ElectricalEnergyTariffDevice;
|
|
383
|
+
readonly PowerSource: import("@matter/node/endpoints").PowerSourceEndpoint;
|
|
384
|
+
readonly DeviceEnergyManagement: import("@matter/main").MutableEndpoint.With<EndpointType.For<{
|
|
385
|
+
readonly name: "DeviceEnergyManagement";
|
|
386
|
+
readonly deviceType: 1293;
|
|
387
|
+
readonly deviceRevision: 3;
|
|
388
|
+
readonly deviceClass: import("@matter/model").DeviceClassification.Utility;
|
|
389
|
+
readonly requirements: typeof import("@matter/node/endpoints").DeviceEnergyManagementRequirements;
|
|
390
|
+
readonly behaviors: {};
|
|
391
|
+
}>, import("@matter/main").SupportedBehaviors.With<{}, readonly [import("@matter/main").ClusterBehavior.Type<typeof import("./behaviors/DeviceEnergyManagementBehavior.js").DefaultDeviceEnergyManagementServer, import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/types").ClusterType.WithSupportedFeatures<import("@matter/main/clusters").DeviceEnergyManagement, {
|
|
392
|
+
powerAdjustment: true;
|
|
393
|
+
powerForecastReporting: true;
|
|
394
|
+
startTimeAdjustment: true;
|
|
395
|
+
pausable: true;
|
|
396
|
+
forecastAdjustment: true;
|
|
397
|
+
constraintBasedAdjustment: true;
|
|
398
|
+
stateForecastReporting: false;
|
|
399
|
+
}>, {
|
|
400
|
+
powerAdjustment: false;
|
|
401
|
+
powerForecastReporting: false;
|
|
402
|
+
startTimeAdjustment: false;
|
|
403
|
+
pausable: false;
|
|
404
|
+
forecastAdjustment: false;
|
|
405
|
+
constraintBasedAdjustment: false;
|
|
406
|
+
stateForecastReporting: false;
|
|
407
|
+
}>, import("@matter/types").ClusterType.Concrete, new () => {}, "deviceEnergyManagement">]>, {}>;
|
|
162
408
|
readonly GenericSwitch: import("@matter/main").MutableEndpoint.With<EndpointType.For<{
|
|
163
409
|
readonly name: "GenericSwitch";
|
|
164
410
|
readonly deviceType: 15;
|
|
@@ -194,7 +440,7 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
194
440
|
readonly Pump: import("@matter/main").MutableEndpoint.With<EndpointType.For<{
|
|
195
441
|
readonly name: "Pump";
|
|
196
442
|
readonly deviceType: 771;
|
|
197
|
-
readonly deviceRevision:
|
|
443
|
+
readonly deviceRevision: 4;
|
|
198
444
|
readonly requirements: typeof import("@matter/node/devices/pump").PumpRequirements;
|
|
199
445
|
readonly behaviors: {
|
|
200
446
|
readonly identify: typeof import("@matter/node/behaviors").IdentifyServer;
|
|
@@ -217,7 +463,7 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
217
463
|
readonly RoomAirConditioner: import("@matter/main").MutableEndpoint.With<EndpointType.For<{
|
|
218
464
|
readonly name: "RoomAirConditioner";
|
|
219
465
|
readonly deviceType: 114;
|
|
220
|
-
readonly deviceRevision:
|
|
466
|
+
readonly deviceRevision: 4;
|
|
221
467
|
readonly requirements: typeof import("@matter/node/devices/room-air-conditioner").RoomAirConditionerRequirements;
|
|
222
468
|
readonly behaviors: {
|
|
223
469
|
readonly identify: typeof import("@matter/node/behaviors").IdentifyServer;
|
|
@@ -305,6 +551,13 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
305
551
|
readonly Pump: typeof import("@matter/node/devices/pump").PumpRequirements;
|
|
306
552
|
readonly RoomAirConditioner: typeof import("@matter/node/devices/room-air-conditioner").RoomAirConditionerRequirements;
|
|
307
553
|
readonly WindowCovering: typeof import("@matter/node/devices/window-covering").WindowCoveringRequirements;
|
|
554
|
+
readonly WaterHeater: typeof import("@matter/node/devices/water-heater").WaterHeaterRequirements;
|
|
555
|
+
readonly EnergyEvse: typeof import("@matter/node/devices/energy-evse").EnergyEvseRequirements;
|
|
556
|
+
readonly ElectricalMeter: typeof import("@matter/node/devices/electrical-meter").ElectricalMeterRequirements;
|
|
557
|
+
readonly ElectricalUtilityMeter: typeof import("@matter/node/devices/electrical-utility-meter").ElectricalUtilityMeterRequirements;
|
|
558
|
+
readonly ElectricalEnergyTariff: typeof import("@matter/node/devices/electrical-energy-tariff").ElectricalEnergyTariffRequirements;
|
|
559
|
+
readonly PowerSource: typeof import("@matter/node/endpoints").PowerSourceRequirements;
|
|
560
|
+
readonly DeviceEnergyManagement: typeof import("@matter/node/endpoints").DeviceEnergyManagementRequirements;
|
|
308
561
|
};
|
|
309
562
|
/**
|
|
310
563
|
* Matter clusters - Direct access to Matter.js cluster definitions
|
|
@@ -315,9 +568,11 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
315
568
|
CarbonMonoxideConcentrationMeasurement: typeof import("@matter/main/clusters").CarbonMonoxideConcentrationMeasurement;
|
|
316
569
|
ClosureControl: typeof import("@matter/main/clusters").ClosureControl;
|
|
317
570
|
ColorControl: typeof import("@matter/main/clusters").ColorControl;
|
|
571
|
+
DeviceEnergyManagement: typeof import("@matter/main/clusters").DeviceEnergyManagement;
|
|
318
572
|
DoorLock: typeof import("@matter/main/clusters").DoorLock;
|
|
319
573
|
ElectricalEnergyMeasurement: typeof import("@matter/main/clusters").ElectricalEnergyMeasurement;
|
|
320
574
|
ElectricalPowerMeasurement: typeof import("@matter/main/clusters").ElectricalPowerMeasurement;
|
|
575
|
+
EnergyEvse: typeof import("@matter/main/clusters").EnergyEvse;
|
|
321
576
|
FanControl: typeof import("@matter/main/clusters").FanControl;
|
|
322
577
|
KeypadInput: typeof import("@matter/main/clusters").KeypadInput;
|
|
323
578
|
LevelControl: typeof import("@matter/main/clusters").LevelControl;
|
|
@@ -363,6 +618,13 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
363
618
|
readonly PowerSource: "powerSource";
|
|
364
619
|
readonly PumpConfigurationAndControl: "pumpConfigurationAndControl";
|
|
365
620
|
readonly ValveConfigurationAndControl: "valveConfigurationAndControl";
|
|
621
|
+
readonly WaterHeaterMode: "waterHeaterMode";
|
|
622
|
+
readonly WaterHeaterManagement: "waterHeaterManagement";
|
|
623
|
+
readonly DeviceEnergyManagement: "deviceEnergyManagement";
|
|
624
|
+
readonly DeviceEnergyManagementMode: "deviceEnergyManagementMode";
|
|
625
|
+
readonly EnergyEvse: "energyEvse";
|
|
626
|
+
readonly EnergyEvseMode: "energyEvseMode";
|
|
627
|
+
readonly MeterIdentification: "meterIdentification";
|
|
366
628
|
readonly ClosureControl: "closureControl";
|
|
367
629
|
readonly MediaPlayback: "mediaPlayback";
|
|
368
630
|
readonly KeypadInput: "keypadInput";
|
|
@@ -382,9 +644,11 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
382
644
|
CarbonMonoxideConcentrationMeasurement: typeof import("@matter/main/clusters").CarbonMonoxideConcentrationMeasurement;
|
|
383
645
|
ClosureControl: typeof import("@matter/main/clusters").ClosureControl;
|
|
384
646
|
ColorControl: typeof import("@matter/main/clusters").ColorControl;
|
|
647
|
+
DeviceEnergyManagement: typeof import("@matter/main/clusters").DeviceEnergyManagement;
|
|
385
648
|
DoorLock: typeof import("@matter/main/clusters").DoorLock;
|
|
386
649
|
ElectricalEnergyMeasurement: typeof import("@matter/main/clusters").ElectricalEnergyMeasurement;
|
|
387
650
|
ElectricalPowerMeasurement: typeof import("@matter/main/clusters").ElectricalPowerMeasurement;
|
|
651
|
+
EnergyEvse: typeof import("@matter/main/clusters").EnergyEvse;
|
|
388
652
|
FanControl: typeof import("@matter/main/clusters").FanControl;
|
|
389
653
|
KeypadInput: typeof import("@matter/main/clusters").KeypadInput;
|
|
390
654
|
LevelControl: typeof import("@matter/main/clusters").LevelControl;
|
|
@@ -435,10 +699,10 @@ export declare class MatterAPIImpl implements MatterAPI {
|
|
|
435
699
|
* 1. The Matter manager must be attached — it is constructed only once
|
|
436
700
|
* Homebridge has finished launching, so calls during plugin
|
|
437
701
|
* initialisation are too early.
|
|
438
|
-
* 2. The manager must have active Matter on THIS bridge
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
702
|
+
* 2. The manager must have active Matter on THIS bridge, or a call would
|
|
703
|
+
* drop/hang with no listener attached. `api.matter` is only loaded for a
|
|
704
|
+
* bridge whose own config uses Matter, so this is a safety net rather
|
|
705
|
+
* than a path plugins are expected to reach.
|
|
442
706
|
*
|
|
443
707
|
* @param cannotAction - leading clause, e.g. `${plugin}: Cannot register Matter accessories`
|
|
444
708
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MatterAPIImpl.d.ts","sourceRoot":"","sources":["../../src/matter/MatterAPIImpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"MatterAPIImpl.d.ts","sourceRoot":"","sources":["../../src/matter/MatterAPIImpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAqB,YAAY,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE5G,OAAO,KAAK,EAA2B,eAAe,EAAgB,MAAM,YAAY,CAAA;AAKxF,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AA4D9C;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAc,YAAW,SAAS;IAGjC,OAAO,CAAC,QAAQ,CAAC,GAAG;IAFhC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAA;gBAED,GAAG,EAAE,aAAa;IAI/C;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IA4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CAAC,IAAI,CAAC;IA2GhB;;;OAGG;IACG,yBAAyB,CAAC,WAAW,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB9E;;;OAGG;IACG,6BAA6B,CACjC,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,eAAe,EAAE,GAC7B,OAAO,CAAC,IAAI,CAAC;IA+ChB;;;OAGG;IACG,oBAAoB,CACxB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC;IAgChB;;;;OAIG;IACG,iBAAiB,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAwChD"}
|
|
@@ -30,6 +30,17 @@ const log = Logger.withPrefix('Matter/API');
|
|
|
30
30
|
const EXTERNAL_DEVICE_TYPES = [
|
|
31
31
|
deviceTypes.RoboticVacuumCleaner,
|
|
32
32
|
];
|
|
33
|
+
/**
|
|
34
|
+
* Emit a Matter event and wait for the work its listeners report through the
|
|
35
|
+
* tracker. A listener's failure is already logged by the listener, so it is not
|
|
36
|
+
* rethrown here - the call keeps resolving the way it always has, only later.
|
|
37
|
+
* @param emit - emits the event, passing the tracker as its last argument
|
|
38
|
+
*/
|
|
39
|
+
async function emitAndWait(emit) {
|
|
40
|
+
const work = [];
|
|
41
|
+
emit(promise => work.push(promise));
|
|
42
|
+
await Promise.allSettled(work);
|
|
43
|
+
}
|
|
33
44
|
/**
|
|
34
45
|
* Check if a device type requires external bridge publishing.
|
|
35
46
|
* Compares device type IDs for exact match against the external device types list.
|
|
@@ -195,10 +206,10 @@ export class MatterAPIImpl {
|
|
|
195
206
|
* 1. The Matter manager must be attached — it is constructed only once
|
|
196
207
|
* Homebridge has finished launching, so calls during plugin
|
|
197
208
|
* initialisation are too early.
|
|
198
|
-
* 2. The manager must have active Matter on THIS bridge
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
209
|
+
* 2. The manager must have active Matter on THIS bridge, or a call would
|
|
210
|
+
* drop/hang with no listener attached. `api.matter` is only loaded for a
|
|
211
|
+
* bridge whose own config uses Matter, so this is a safety net rather
|
|
212
|
+
* than a path plugins are expected to reach.
|
|
202
213
|
*
|
|
203
214
|
* @param cannotAction - leading clause, e.g. `${plugin}: Cannot register Matter accessories`
|
|
204
215
|
*/
|
|
@@ -256,8 +267,14 @@ export class MatterAPIImpl {
|
|
|
256
267
|
internal._associatedPlugin = pluginIdentifier;
|
|
257
268
|
internal._associatedPlatform = platformName;
|
|
258
269
|
});
|
|
259
|
-
log.debug(`${pluginIdentifier}: Registering ${normalAccessories.length} Matter accessor${normalAccessories.length === 1
|
|
260
|
-
|
|
270
|
+
log.debug(`${pluginIdentifier}: Registering ${normalAccessories.length} Matter accessor${normalAccessories.length === 1
|
|
271
|
+
? 'y'
|
|
272
|
+
: 'ies'} for platform '${platformName}'`);
|
|
273
|
+
// Wait for the bridge to finish, so an updateAccessoryState() straight
|
|
274
|
+
// after reaches an endpoint that exists (#4033)
|
|
275
|
+
await emitAndWait((track) => {
|
|
276
|
+
this.api.emit("registerMatterPlatformAccessories" /* InternalAPIEvent.REGISTER_MATTER_PLATFORM_ACCESSORIES */, pluginIdentifier, platformName, normalAccessories, track);
|
|
277
|
+
});
|
|
261
278
|
}
|
|
262
279
|
// Handle external accessories (standalone bridges)
|
|
263
280
|
if (externalAccessories.length > 0) {
|
|
@@ -266,7 +283,9 @@ export class MatterAPIImpl {
|
|
|
266
283
|
const internal = accessory;
|
|
267
284
|
internal._associatedPlugin = pluginIdentifier;
|
|
268
285
|
});
|
|
269
|
-
log.debug(`${pluginIdentifier}: Publishing ${externalAccessories.length} external Matter accessor${externalAccessories.length === 1
|
|
286
|
+
log.debug(`${pluginIdentifier}: Publishing ${externalAccessories.length} external Matter accessor${externalAccessories.length === 1
|
|
287
|
+
? 'y'
|
|
288
|
+
: 'ies'} (${externalAccessories.map(a => a.displayName).join(', ')})`);
|
|
270
289
|
// Create a promise to track when external publishing completes
|
|
271
290
|
const registrationId = `${pluginIdentifier}-${Date.now()}-${Math.random()}`;
|
|
272
291
|
const registrationPromise = new Promise((resolve) => {
|
|
@@ -294,7 +313,9 @@ export class MatterAPIImpl {
|
|
|
294
313
|
return;
|
|
295
314
|
}
|
|
296
315
|
this.assertMatterReady('Cannot update Matter accessories');
|
|
297
|
-
log.debug(`Updating ${accessories.length} Matter platform accessor${accessories.length === 1
|
|
316
|
+
log.debug(`Updating ${accessories.length} Matter platform accessor${accessories.length === 1
|
|
317
|
+
? 'y'
|
|
318
|
+
: 'ies'} in cache`);
|
|
298
319
|
// Emit event for Server/ChildBridgeFork to handle
|
|
299
320
|
this.api.emit("updateMatterPlatformAccessories" /* InternalAPIEvent.UPDATE_MATTER_PLATFORM_ACCESSORIES */, accessories);
|
|
300
321
|
}
|
|
@@ -321,13 +342,23 @@ export class MatterAPIImpl {
|
|
|
321
342
|
}
|
|
322
343
|
// Handle normal accessories (on bridge)
|
|
323
344
|
if (normalAccessories.length > 0) {
|
|
324
|
-
log.debug(`${pluginIdentifier}: Unregistering ${normalAccessories.length} Matter accessor${normalAccessories.length === 1
|
|
325
|
-
|
|
345
|
+
log.debug(`${pluginIdentifier}: Unregistering ${normalAccessories.length} Matter accessor${normalAccessories.length === 1
|
|
346
|
+
? 'y'
|
|
347
|
+
: 'ies'} from platform '${platformName}'`);
|
|
348
|
+
// Wait for the bridge to finish, so a register straight after does not
|
|
349
|
+
// overlap it and contend for the parts list lock (#4033)
|
|
350
|
+
await emitAndWait((track) => {
|
|
351
|
+
this.api.emit("unregisterMatterPlatformAccessories" /* InternalAPIEvent.UNREGISTER_MATTER_PLATFORM_ACCESSORIES */, pluginIdentifier, platformName, normalAccessories, track);
|
|
352
|
+
});
|
|
326
353
|
}
|
|
327
354
|
// Handle external accessories (standalone bridges)
|
|
328
355
|
if (externalAccessories.length > 0) {
|
|
329
|
-
log.debug(`${pluginIdentifier}: Unregistering ${externalAccessories.length} external Matter accessor${externalAccessories.length === 1
|
|
330
|
-
|
|
356
|
+
log.debug(`${pluginIdentifier}: Unregistering ${externalAccessories.length} external Matter accessor${externalAccessories.length === 1
|
|
357
|
+
? 'y'
|
|
358
|
+
: 'ies'} (${externalAccessories.map(a => a.displayName).join(', ')})`);
|
|
359
|
+
await emitAndWait((track) => {
|
|
360
|
+
this.api.emit("unregisterExternalMatterAccessories" /* InternalAPIEvent.UNREGISTER_EXTERNAL_MATTER_ACCESSORIES */, externalAccessories, track);
|
|
361
|
+
});
|
|
331
362
|
}
|
|
332
363
|
}
|
|
333
364
|
/**
|
|
@@ -351,7 +382,9 @@ export class MatterAPIImpl {
|
|
|
351
382
|
// Validate cluster name (warning only, don't block)
|
|
352
383
|
this.validateClusterName(cluster, `updateAccessoryState (${uuid})`);
|
|
353
384
|
this.assertMatterReady(`Cannot update Matter accessory ${uuid}`);
|
|
354
|
-
log.debug(`Updating Matter accessory state: uuid=${uuid}, cluster=${cluster}, attributes=${Object.keys(attributes).join(', ')}${partId
|
|
385
|
+
log.debug(`Updating Matter accessory state: uuid=${uuid}, cluster=${cluster}, attributes=${Object.keys(attributes).join(', ')}${partId
|
|
386
|
+
? `, partId=${partId}`
|
|
387
|
+
: ''}`);
|
|
355
388
|
// Emit the event (listeners will be called synchronously by EventEmitter)
|
|
356
389
|
this.api.emit("updateMatterAccessoryState" /* InternalAPIEvent.UPDATE_MATTER_ACCESSORY_STATE */, uuid, cluster, attributes, partId);
|
|
357
390
|
}
|
|
@@ -372,7 +405,9 @@ export class MatterAPIImpl {
|
|
|
372
405
|
}
|
|
373
406
|
// Validate cluster name (warning only, don't block)
|
|
374
407
|
this.validateClusterName(cluster, `getAccessoryState (${uuid})`);
|
|
375
|
-
log.debug(`Getting Matter accessory state: uuid=${uuid}, cluster=${cluster}${partId
|
|
408
|
+
log.debug(`Getting Matter accessory state: uuid=${uuid}, cluster=${cluster}${partId
|
|
409
|
+
? `, partId=${partId}`
|
|
410
|
+
: ''}`);
|
|
376
411
|
// Check external servers first (for accessories like robot vacuums)
|
|
377
412
|
const internalApi = this.api;
|
|
378
413
|
const matterManager = internalApi._matterManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MatterAPIImpl.js","sourceRoot":"","sources":["../../src/matter/MatterAPIImpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AASH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,kBAAkB,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC/G,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAY9C,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;AAE3C,+EAA+E;AAC/E,qCAAqC;AACrC,+EAA+E;AAE/E;;;;;GAKG;AACH,MAAM,qBAAqB,GAAmB;IAC5C,WAAW,CAAC,oBAAoB;CACjC,CAAA;AAED;;;GAGG;AACH,SAAS,sBAAsB,CAAC,UAAwB;IACtD,OAAO,qBAAqB,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,KAAK,UAAU,CAAC,UAAU,CAAC,CAAA;AACtG,CAAC;AAED,+EAA+E;AAE/E;;GAEG;AACH,MAAM,8BAA+B,SAAQ,KAAK;IACH;IAA7C,YAAY,OAAe,EAAkB,SAA2B;QACtE,KAAK,CAAC,OAAO,CAAC,CAAA;QAD6B,cAAS,GAAT,SAAS,CAAkB;QAEtE,IAAI,CAAC,IAAI,GAAG,gCAAgC,CAAA;IAC9C,CAAC;CACF;AAED;;;;;;;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ACT,CAAA;QAED,oEAAoE;QACpE,MAAM,WAAW,GAAG,IAAI,CAAC,GAAwC,CAAA;QACjE,MAAM,aAAa,GAAG,WAAW,CAAC,cAAc,CAAA;QAChD,IAAI,aAAa,EAAE,CAAC;YAClB,MAAM,cAAc,GAAG,aAAa,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAA;YAC5D,IAAI,cAAc,EAAE,CAAC;gBACnB,OAAO,cAAc,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;YAChE,CAAC;QACH,CAAC;QAED,wCAAwC;QACxC,MAAM,YAAY,GAAG,WAAW,CAAC,aAAa,CAAA;QAC9C,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,GAAG,CAAC,KAAK,CAAC,gEAAgE,IAAI,EAAE,CAAC,CAAA;YACjF,OAAO,SAAS,CAAA;QAClB,CAAC;QAED,OAAO,YAAY,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IAC9D,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MatterBridgeManager.d.ts","sourceRoot":"","sources":["../../src/matter/MatterBridgeManager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"MatterBridgeManager.d.ts","sourceRoot":"","sources":["../../src/matter/MatterBridgeManager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,WAAW,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAErD,OAAO,K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;IAEjC;;;;;;;OAOG;IACM,eAAe,IAAI,OAAO;IAKnC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAM1C;IAED;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAK3B;;;;OAIG;IACH,OAAO,CAAC,2BAA2B;IAKnC;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAOlC;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAa7B;;;;;;;OAOG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IA6HjC;;;;OAIG;IACG,gCAAgC,CAAC,WAAW,EAAE,uBAAuB,EAAE,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAgErH;;OAEG;IACH,eAAe,IAAI,gBAAgB;IA+BnC;;;;;OAKG;IACH,qBAAqB,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,aAAa,EAAE;IA8B/D;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IA8BzD;;;;;;;;OAQG;IACH,OAAO,CAAC,4BAA4B;IA6BpC;;;;;;;;;OASG;IACH,OAAO,CAAC,sBAAsB;IAqE9B;;;;;;;;OAQG;IACH,OAAO,CAAC,4BAA4B;IA0BpC;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAgCjC;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAuChC"}
|
|
@@ -46,25 +46,25 @@ export class MatterBridgeManager extends BaseMatterManager {
|
|
|
46
46
|
this.api._resolveExternalRegistration(registrationId);
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
_onRegisterMatterPlatformAccessories = (pluginIdentifier, platformName, accessories) => {
|
|
50
|
-
this.handleRegisterPlatformAccessories(pluginIdentifier, platformName, accessories).catch((error) => {
|
|
49
|
+
_onRegisterMatterPlatformAccessories = (pluginIdentifier, platformName, accessories, track) => {
|
|
50
|
+
track?.(this.handleRegisterPlatformAccessories(pluginIdentifier, platformName, accessories).catch((error) => {
|
|
51
51
|
log.error(`Failed to register Matter accessories for ${pluginIdentifier}:`, error);
|
|
52
|
-
});
|
|
52
|
+
}));
|
|
53
53
|
};
|
|
54
54
|
_onUpdateMatterPlatformAccessories = (accessories) => {
|
|
55
55
|
this.handleUpdatePlatformAccessories(accessories).catch((error) => {
|
|
56
56
|
log.error('Failed to update Matter platform accessories:', error);
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
|
-
_onUnregisterMatterPlatformAccessories = (pluginIdentifier, platformName, accessories) => {
|
|
60
|
-
this.handleUnregisterPlatformAccessories(pluginIdentifier, platformName, accessories).catch((error) => {
|
|
59
|
+
_onUnregisterMatterPlatformAccessories = (pluginIdentifier, platformName, accessories, track) => {
|
|
60
|
+
track?.(this.handleUnregisterPlatformAccessories(pluginIdentifier, platformName, accessories).catch((error) => {
|
|
61
61
|
log.error(`Failed to unregister Matter accessories for ${pluginIdentifier}:`, error);
|
|
62
|
-
});
|
|
62
|
+
}));
|
|
63
63
|
};
|
|
64
|
-
_onUnregisterExternalMatterAccessories = (accessories) => {
|
|
65
|
-
this.handleUnregisterExternalAccessories(accessories).catch((error) => {
|
|
64
|
+
_onUnregisterExternalMatterAccessories = (accessories, track) => {
|
|
65
|
+
track?.(this.handleUnregisterExternalAccessories(accessories).catch((error) => {
|
|
66
66
|
log.error('Failed to unregister external Matter accessories:', error);
|
|
67
|
-
});
|
|
67
|
+
}));
|
|
68
68
|
};
|
|
69
69
|
_onUpdateMatterAccessoryState = (uuid, cluster, attributes, partId) => {
|
|
70
70
|
this.handleUpdateAccessoryState(uuid, cluster, attributes, partId).catch((error) => {
|
|
@@ -84,10 +84,14 @@ export class MatterBridgeManager extends BaseMatterManager {
|
|
|
84
84
|
// log when registering bridged accessories that would otherwise have been
|
|
85
85
|
// hosted on the bridge node.
|
|
86
86
|
_onRegisterMatterPlatformAccessoriesDropped = (pluginIdentifier, _platformName, accessories) => {
|
|
87
|
-
log.debug(`Main bridge externalsOnly mode: dropping ${accessories.length} bridged Matter accessor${accessories.length === 1
|
|
87
|
+
log.debug(`Main bridge externalsOnly mode: dropping ${accessories.length} bridged Matter accessor${accessories.length === 1
|
|
88
|
+
? 'y'
|
|
89
|
+
: 'ies'} from ${pluginIdentifier} (bridge node is not running).`);
|
|
88
90
|
};
|
|
89
91
|
_onUnregisterMatterPlatformAccessoriesDropped = (pluginIdentifier, _platformName, accessories) => {
|
|
90
|
-
log.debug(`Main bridge externalsOnly mode: dropping unregistration for ${accessories.length} bridged Matter accessor${accessories.length === 1
|
|
92
|
+
log.debug(`Main bridge externalsOnly mode: dropping unregistration for ${accessories.length} bridged Matter accessor${accessories.length === 1
|
|
93
|
+
? 'y'
|
|
94
|
+
: 'ies'} from ${pluginIdentifier} (bridge node is not running).`);
|
|
91
95
|
};
|
|
92
96
|
// True when this manager was initialised in externalsOnly mode.
|
|
93
97
|
externalsOnlyMode = false;
|
|
@@ -234,7 +238,9 @@ export class MatterBridgeManager extends BaseMatterManager {
|
|
|
234
238
|
catch (error) {
|
|
235
239
|
log.error('Failed to initialize Matter server for main bridge:', error);
|
|
236
240
|
// Provide user-friendly guidance for common errors
|
|
237
|
-
const errorMessage = error instanceof Error
|
|
241
|
+
const errorMessage = error instanceof Error
|
|
242
|
+
? error.message
|
|
243
|
+
: String(error);
|
|
238
244
|
const errorCode = getErrorCode(error);
|
|
239
245
|
if (errorMessage.includes('corrupted')) {
|
|
240
246
|
log.error('');
|
|
@@ -279,7 +285,9 @@ export class MatterBridgeManager extends BaseMatterManager {
|
|
|
279
285
|
* requires to be on their own bridge.
|
|
280
286
|
*/
|
|
281
287
|
async handlePublishExternalAccessories(accessories, registrationId) {
|
|
282
|
-
log.info(`Publishing ${accessories.length} external Matter accessor${accessories.length === 1
|
|
288
|
+
log.info(`Publishing ${accessories.length} external Matter accessor${accessories.length === 1
|
|
289
|
+
? 'y'
|
|
290
|
+
: 'ies'}`);
|
|
283
291
|
// Normalize bind config to array format (inherit from main bridge)
|
|
284
292
|
const networkInterfaces = normalizeBindConfig(this.config.bridge.bind);
|
|
285
293
|
try {
|