homebridge-connect-my-pool-home-automation
Version:
HomeKit integration for Astral Viron Gateway via Home Automation
33 lines • 1.67 kB
TypeScript
import { API, DynamicPlatformPlugin, PlatformAccessory, PlatformConfig, Service, Characteristic, Logging } from 'homebridge';
import { Accessory } from './accesories/accessory';
/**
* 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 ConnectMyPoolHomeAutomationHomebridgePlatform implements DynamicPlatformPlugin {
readonly log: Logging;
readonly config: PlatformConfig;
readonly api: API;
readonly Service: typeof Service;
readonly Characteristic: typeof Characteristic;
readonly accessories: Accessory[];
private pollIntervalId;
constructor(log: Logging, 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(homekitAccessory: PlatformAccessory): Promise<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>;
poll(interval: number): void;
setPoolAction(actionCode: number, deviceNumber: number, value?: string, outputResponse?: boolean, waitForExecution?: boolean): Promise<boolean | undefined>;
private getPoolStatus;
private getPoolConfig;
}
//# sourceMappingURL=platform.d.ts.map