homebridge-savanthost
Version:
33 lines (32 loc) • 1.33 kB
TypeScript
import type { API, Characteristic, DynamicPlatformPlugin, Logging, PlatformAccessory, PlatformConfig, Service } from 'homebridge';
export declare class SavantHostHomebridgePlatform implements DynamicPlatformPlugin {
readonly log: Logging;
readonly config: PlatformConfig;
readonly api: API;
readonly Service: typeof Service;
readonly Characteristic: typeof Characteristic;
readonly accessories: Map<string, PlatformAccessory>;
private discoveredCacheUUIDs;
private CustomServices;
private CustomCharacteristics;
private readonly scenes;
private pollTimer;
private hubConfig;
private isActivated;
constructor(log: Logging, config: PlatformConfig, api: API);
private checkActivation;
private createSSHConnection;
private closeSSHConnection;
private startPolling;
private getScliPath;
private executeCommand;
private fetchScenes;
private parseScenes;
private updateAccessories;
/**
* This function is invoked when homebridge restores cached accessories from disk at startup.
* It should be used to set up event handlers for characteristics and update respective values.
*/
configureAccessory(accessory: PlatformAccessory): void;
activateScene(sceneName: string, sceneId: string, sceneUser: string): Promise<void>;
}