@homebridge-plugins/homebridge-lutron-caseta-leap
Version:
Homebridge support for Lutron
31 lines • 1.49 kB
TypeScript
import type { API, Logging, PlatformConfig } from 'homebridge';
import type { DeviceDefinition, SmartBridge } from 'lutron-leap';
import { LutronCasetaLeap } from './Platform.HAP.js';
/**
* Homebridge Matter platform for the Lutron Caseta LEAP plugin.
*
* Extends the standard HAP platform ({@link LutronCasetaLeap}) and overrides
* accessory registration to use the Homebridge Matter API when it is
* available. If the Matter API is absent at runtime the class falls back
* transparently to the standard HAP behaviour inherited from
* {@link LutronCasetaLeap}.
*
* Note: `configureAccessory` is intentionally **not** overridden here so that
* cached accessories restored by Homebridge continue to be stored in
* `this.accessories` via the base-class implementation.
*/
export declare class LutronCasetaLeapMatterPlatform extends LutronCasetaLeap {
constructor(log: Logging, config: PlatformConfig, api: API);
/**
* Returns the Homebridge Matter sub-API if both `registerPlatformAccessories`
* and `unregisterPlatformAccessories` are present, or `undefined` otherwise.
*/
private get matterApi();
/**
* Overrides {@link LutronCasetaLeap.processDevice} to register newly
* discovered accessories with the Matter API when available, falling back
* to the standard HAP path when Matter is not present.
*/
processDevice(bridge: SmartBridge, d: DeviceDefinition): Promise<string>;
}
//# sourceMappingURL=Platform.Matter.d.ts.map