UNPKG

homebridge-ecobee-status

Version:

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

45 lines 1.58 kB
import { PlatformAccessory, CharacteristicValue, CharacteristicSetCallback, CharacteristicGetCallback } from 'homebridge'; import { EcobeeAPIPlatform } from './platform'; /** * Platform Accessory * An instance of this class is created for each accessory your platform registers * Each accessory may expose multiple services of different service types. */ export declare class AwaySwitchAccessory { private readonly platform; private readonly accessory; private service; private readonly CLIMATE_HOME; private readonly CLIMATE_AWAY; private readonly CLIMATE_SLEEP; constructor(platform: EcobeeAPIPlatform, accessory: PlatformAccessory); /** * Maps climate mode to HomeKit security system state */ private mapClimateToSecurityState; /** * Maps HomeKit security system state to climate mode */ private mapSecurityToClimate; /** * Helper method to handle API requests with retry logic */ private makeEcobeeRequest; /** * Handle SET requests from HomeKit */ setTargetState(value: CharacteristicValue, callback: CharacteristicSetCallback): Promise<void>; /** * Handle GET requests for target state */ getTargetState(callback: CharacteristicGetCallback): Promise<void>; /** * Handle GET requests for current state */ getCurrentState(callback: CharacteristicGetCallback): Promise<void>; /** * Check the current climate status from the Ecobee API */ private checkStatusFromAPI; } //# sourceMappingURL=awaySwitchAccessory.d.ts.map