UNPKG

homebridge-tuya-laundry

Version:

Allows washer/dryer cycle completion notifications using Tuya smart plugs with power meter, now using local control.

21 lines 990 B
/// <reference types="node" /> import { Logger } from 'homebridge'; import net from 'net'; export declare class SmartPlugService { private apiInstance; private log; private devicesSeen; private cachedDevices; constructor(apiInstance: any, log: Logger); getLocalDPS(device: any, log: any): Promise<any>; discoverLocalDevices(): Promise<any[]>; discoverDevices(port: number): Promise<any[]>; matchLocalWithCloudDevices(localDevices: any[]): Promise<any[]>; private getCloudDevices; private decryptUDP; calculateInterval(duration: any): number; trackPowerConsumption(deviceId: string, localKey: string, powerValueId: string, connection: net.Socket, generateChart: boolean, duration: number | null | undefined, retryCount?: number, // Add retry count retryDelay?: number): Promise<void>; generatePowerConsumptionChart(timestamps: string[], powerData: number[], duration: number): void; } //# sourceMappingURL=smartPlugService.d.ts.map