UNPKG

homebridge-ecobee-status

Version:

Homebridge plugin to control Ecobee thermostat Home/Away/Sleep status through HomeKit security system interface

41 lines 1.75 kB
import { API, IndependentPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge'; /** * EcobeeAPIPlatform * 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 EcobeeAPIPlatform implements IndependentPlatformPlugin { readonly log: Logger; readonly config: PlatformConfig & { refreshToken: string; thermostatSerialNumbers?: string; enableAutomationSwitch?: boolean; homeIndefiniteHold?: boolean; awayIndefiniteHold?: boolean; sleepIndefiniteHold?: boolean; }; readonly api: API; readonly Service: typeof Service; readonly Characteristic: typeof Characteristic; readonly accessories: PlatformAccessory[]; constructor(log: Logger, config: PlatformConfig & { refreshToken: string; thermostatSerialNumbers?: string; enableAutomationSwitch?: boolean; homeIndefiniteHold?: boolean; awayIndefiniteHold?: boolean; sleepIndefiniteHold?: boolean; }, 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 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. */ loadControlSwitches(): void; } //# sourceMappingURL=platform.d.ts.map