homebridge-plugin-eufy-security
Version:
Eufy Security homebridge plugin for video doorbell.
30 lines • 1.38 kB
TypeScript
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge';
import { HttpService } from 'eufy-node-client';
/**
* HomebridgePlatform
* This class is the main constructor for your plugin, this is where you should
* parse the user config and discover/register accessories with Homebridge.
*/
export declare class EufySecurityHomebridgePlatform implements DynamicPlatformPlugin {
readonly log: Logger;
readonly api: API;
readonly Service: typeof Service;
readonly Characteristic: typeof Characteristic;
readonly accessories: PlatformAccessory[];
httpService: HttpService;
private config;
constructor(log: Logger, config: PlatformConfig, api: API);
setupPushClient(): Promise<void>;
/**
* This function is invoked when homebridge restores cached accessories from disk at startup.
* It should be used to setup event handlers for characteristics and update respective values.
*/
configureAccessory(accessory: PlatformAccessory): void;
/**
* This is an example method showing how to register discovered accessories.
* Accessories must only be registered once, previously created accessories
* must not be registered again to prevent "duplicate UUID" errors.
*/
discoverDevices(): Promise<void>;
}
//# sourceMappingURL=platform.d.ts.map