tsvesync
Version:
A TypeScript library for interacting with VeSync smart home devices
71 lines (70 loc) • 2.01 kB
TypeScript
import { VeSyncHumid200300S } from './humid200300S';
import { VeSync } from '../vesync';
/**
* VeSync Humid1000S Humidifier Class
* Implementation based on PyVeSync's VeSyncHumid1000S class
* For OASISMIST1000S models (LUH-M101S-WUS and LUH-M101S-WEUR)
*/
export declare class VeSyncHumid1000S extends VeSyncHumid200300S {
protected readonly _apiModes: string[];
constructor(details: Record<string, any>, manager: VeSync);
/**
* Build API dictionary for humidifier
*/
protected buildApiDict(method: string): [Record<string, any>, Record<string, any>];
/**
* Get device details
*/
getDetails(): Promise<Boolean>;
/**
* Turn device on
*/
turnOn(): Promise<boolean>;
/**
* Turn device off
*/
turnOff(): Promise<boolean>;
/**
* Toggle device power
*/
toggleSwitch(enabled: boolean): Promise<boolean>;
/**
* Set night light
*/
setNightLight(enabled: boolean, brightness?: number): Promise<boolean>;
/**
* Get night light status
* Returns the night light status (on/off)
*/
get nightLightStatus(): string;
/**
* Get night light brightness
* Returns the night light brightness (0-100)
*/
get nightLightBrightness(): number;
/**
* Set automatic stop
* Enable or disable automatic stop when target humidity is reached
*/
setAutomaticStop(enabled: boolean): Promise<boolean>;
/**
* Turn automatic stop on
* Enable automatic stop when target humidity is reached
*/
automaticStopOn(): Promise<boolean>;
/**
* Turn automatic stop off
* Disable automatic stop when target humidity is reached
*/
automaticStopOff(): Promise<boolean>;
/**
* Get target humidity
* Returns the target humidity setting
*/
get targetHumidity(): number;
/**
* Get automatic stop setting
* Returns whether automatic stop is enabled
*/
get automaticStop(): boolean;
}