homebridge-tuya-laundry
Version:
Allows washer/dryer cycle completion notifications using Tuya smart plugs with power meter, now using local control.
55 lines • 1.43 kB
TypeScript
export interface TuyaApiCredentials {
accessId: string;
accessKey: string;
countryCode: number;
username: string;
password: string;
appSchema: string;
endpoint: string;
}
export interface NotifyConfig {
notifications?: {
pushed?: PushedConfig;
telegram?: TelegramConfig;
ntfy?: NtfyConfig;
};
laundryDevices?: LaundryDeviceConfig[];
tuyaApiCredentials?: TuyaApiCredentials;
/** If true or unset, the CLI IPC server is started (default). Set to false to disable the socket after setup. */
enableIpcServer?: boolean;
}
export interface PushedConfig {
appKey: string;
appSecret: string;
channelAlias: string;
}
export interface TelegramConfig {
botToken: string;
}
export interface NtfyConfig {
title: string;
topic: string;
serverUrl?: string;
}
export interface LaundryDeviceConfig {
deviceId: string;
name?: string;
localKey: string;
ipAddress: string;
powerValueId: string;
startValue: number;
startDuration: number;
endValue: number;
endDuration: number;
startMessage?: string;
endMessage?: string;
exposeStateSwitch?: boolean;
protocolVersion?: string;
exportPowerLog?: boolean;
minRunDurationSec?: number;
minRunKWh?: number;
minRunAvgPowerW?: number;
afterRunWindowMin?: number;
dryRun?: boolean;
}
//# sourceMappingURL=notifyConfig.d.ts.map