homebridge-shinobi
Version:
A Homebridge plugin integrating Shinobi for motion detector cameras
28 lines • 1.18 kB
TypeScript
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge';
import { Monitor } from './shinobiMonitorAccessory';
/**
* ShinobiHomebridgePlatform
*/
export declare class ShinobiHomebridgePlatform implements DynamicPlatformPlugin {
readonly log: Logger;
readonly config: PlatformConfig;
readonly api: API;
readonly Service: typeof Service;
readonly Characteristic: typeof Characteristic;
readonly existingAccessories: PlatformAccessory[];
private monitorsByMonitorId;
constructor(log: Logger, config: PlatformConfig, api: API);
/**
* 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 queries shinobi and uses config to determine which monitor accessories to create.
*/
createMonitors(): Promise<void>;
createMonitor(monitor: Monitor): void;
startWebhookListener(): void;
shutdown(): void;
}
//# sourceMappingURL=platform.d.ts.map