homebridge-levoit-humidifiers
Version:
Homebridge plugin for Levoit Humidifiers
43 lines • 1.46 kB
TypeScript
import { Logger, PlatformConfig } from 'homebridge';
import DebugMode from '../debugMode';
import VeSyncFan from './VeSyncFan';
export declare enum BypassMethod {
STATUS = "getHumidifierStatus",
MODE = "setHumidityMode",
NIGHT_LIGHT_BRIGHTNESS = "setNightLightBrightness",
DISPLAY = "setDisplay",
SWITCH = "setSwitch",
HUMIDITY = "setTargetHumidity",
MIST_LEVEL = "setVirtualLevel",
LEVEL = "setLevel",
LIGHT_STATUS = "setLightStatus",
DRYING_MODE = "setDryingMode"
}
export default class VeSync {
private readonly email;
private readonly password;
readonly config: PlatformConfig;
readonly debugMode: DebugMode;
readonly log: Logger;
private api?;
private accountId?;
private token?;
private readonly VERSION;
private readonly FULL_VERSION;
private readonly AGENT;
private readonly TIMEZONE;
private readonly OS;
private readonly BRAND;
private readonly LANG;
private readonly AXIOS_OPTIONS;
constructor(email: string, password: string, config: PlatformConfig, debugMode: DebugMode, log: Logger);
private generateDetailBody;
private generateBody;
private generateV2Body;
sendCommand(fan: VeSyncFan, method: BypassMethod, body?: {}): Promise<boolean>;
getDeviceInfo(fan: VeSyncFan): Promise<any>;
startSession(): Promise<boolean>;
private login;
getDevices(): Promise<VeSyncFan[]>;
}
//# sourceMappingURL=VeSync.d.ts.map