UNPKG

@hov3rcraft/homebridge-eufy-robovac

Version:
47 lines 2.06 kB
import { PlatformAccessory, CharacteristicValue } from 'homebridge'; import { EufyRobovacPlatform } from './platform'; import { StatusResponse, WorkStatus } from './robovac-api'; import { Logger } from './consoleLogger'; export declare class EufyRobovacAccessory { private readonly platform; private readonly accessory; private readonly informationService; private readonly vacuumService; private readonly findRobotService; private readonly batteryService; private readonly errorSensorService; private readonly roboVac; private readonly log; private readonly name; private readonly connectionConfig; private readonly findButtonEnabled; private readonly batteryInformationEnabled; private readonly errorSensorEnabled; private readonly callbackTimeout; private readonly cachingDuration; private readonly lowBatteryThreshold; constructor(platform: EufyRobovacPlatform, accessory: PlatformAccessory, config: any, log: Logger); /** * Handle the "GET" requests from HomeKit * These are sent when HomeKit wants to know the current state of the accessory, for example, checking if a Light bulb is on. */ getRunning(): Promise<CharacteristicValue>; getFindRobot(): Promise<CharacteristicValue>; getLowBattery(): Promise<CharacteristicValue>; getBatteryLevel(): Promise<CharacteristicValue>; getCharging(): Promise<CharacteristicValue>; getErrorStatus(): Promise<CharacteristicValue>; /** * Handle "SET" requests from HomeKit * These are sent when the user changes the state of an accessory, for example, turning on a Light bulb. */ setRunning(state: CharacteristicValue): Promise<void>; setFindRobot(state: CharacteristicValue): Promise<void>; /** * Handle requests to set the "Identify" characteristic */ setIdentify(value: any): void; updateCharacteristics(statusResponse: StatusResponse): void; workStatusToChargingState(workStatus: WorkStatus): number; } //# sourceMappingURL=accessory.d.ts.map