UNPKG

homebridge-ecobee-status

Version:

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

30 lines 929 B
import { PlatformAccessory } from 'homebridge'; import { EcobeeAPIPlatform } from './platform'; export declare class AutomationSwitchAccessory { private readonly platform; private readonly accessory; private service; private lastTriggeredState; private readonly mainAccessory; constructor(platform: EcobeeAPIPlatform, accessory: PlatformAccessory, mainAccessory: PlatformAccessory); /** * Handle switch events * ON = Away mode * OFF = Home mode */ private handleSwitch; /** * Get current switch state based on climate state * Returns true if Away, false if Home */ private getSwitchState; /** * Map climate state to security system state */ private mapClimateToSecurityState; /** * Map security system state to switch state */ private mapSecurityToSwitchState; } //# sourceMappingURL=automationSwitchAccessory.d.ts.map