homebridge-levoit-humidifiers
Version:
Homebridge plugin for Levoit Humidifiers
62 lines • 2.17 kB
TypeScript
export declare enum DevicePrefix {
Classic300S = "LUH-A601S-",
Dual200S = "LUH-D301S-",
LV600S = "LUH-A60",
OASIS = "LUH-O451S-",
OASIS_1000S = "LUH-M101S-",
LEH_S601S = "LEH-S601S-",
O601S = "LUH-O601S-"
}
export declare const DeviceName: {
readonly Classic300S: "Classic300S";
readonly Classic300S_US: "LUH-A601S-WUSB";
readonly Classic300S_AUS: "LUH-A601S-AUSW";
readonly Classic200S: "Classic200S";
readonly Dual200S: "Dual200S";
readonly Dual200S_LIGHT: "LUH-D301S-WUSR";
readonly Dual200S_EU: "LUH-D301S-WEU";
readonly Dual200S_UK: "LUH-D301S-WUK";
readonly Dual200S_JP: "LUH-D301S-WJP";
readonly LV600S: "LUH-A60WUS";
readonly LV600S_REMOTE: "LUH-A60WUSR";
readonly LV600S_EU: "LUH-A60WEU";
readonly LV600S_UK: "LUH-A60WUK";
readonly LV600S_JP: "LUH-A60WJP";
readonly OASIS: "LUH-O451S-WUS";
readonly OASIS_UK: "LUH-O451S-WUK";
readonly OASIS_EU: "LUH-O451S-WEU";
readonly OASIS_JP: "LUH-O451S-WJP";
readonly OASIS_1000S: "LUH-M101S-WUS";
readonly OASIS_1000S_UK: "LUH-M101S-WUK";
readonly OASIS_1000S_EU: "LUH-M101S-WEU";
readonly OASIS_1000S_EUR: "LUH-M101S-WEUR";
readonly OASIS_1000S_JP: "LUH-M101S-WJP";
readonly LEH_S601S_WUS: "LEH-S601S-WUS";
readonly LEH_S601S_WUSR: "LEH-S601S-WUSR";
readonly LUH_O601S_WUS: "LUH-O601S-WUS";
readonly LUH_O601S_KUS: "LUH-O601S-KUS";
};
export type DeviceName = (typeof DeviceName)[keyof typeof DeviceName];
/**
* New response format devices:
* - Oasis 1000S family (LUH-M101S-*)
* - LEH-S601S family (LEH-S601S-*)
* - LV600S newer variants (LUH-A603S-*)
*/
export declare const isNewFormatDevice: (model: string) => boolean;
export interface DeviceType {
isValid: (input: string) => boolean;
hasAutoMode: boolean;
mistLevels: number;
hasLight: boolean;
hasColorMode: boolean;
hasSleepMode: boolean;
hasWarmMode: boolean;
warmMistLevels?: number;
minHumidityLevel: number;
maxHumidityLevel: number;
hasAutoProMode?: boolean;
}
declare const deviceTypes: DeviceType[];
export default deviceTypes;
//# sourceMappingURL=deviceTypes.d.ts.map