UNPKG

homebridge-tuya-laundry

Version:

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

30 lines 1.13 kB
import { LaundryDeviceConfig } from '../interfaces/notifyConfig'; import { API, Logger, PlatformAccessory } from 'homebridge'; import { MessageGateway } from './messageGateway'; import { SmartPlugService } from './smartPlugService'; export declare class LaundryDeviceTracker { readonly log: Logger; readonly messageGateway: MessageGateway; config: LaundryDeviceConfig; api: API; private smartPlugService; private startDetected?; private startDetectedTime?; private isActive?; private endDetected?; private endDetectedTime?; private cumulativeConsumption; private lastMeasurementTime; private lastDpsStatus; private currentInterval; accessory?: PlatformAccessory; constructor(log: Logger, messageGateway: MessageGateway, config: LaundryDeviceConfig, api: API, smartPlugService: SmartPlugService); init(): Promise<void>; private detectStartStop; private getPowerValue; private adjustInterval; private checkStartStopConditions; private incomingData; private updateAccessorySwitchState; } //# sourceMappingURL=laundryDeviceTracker.d.ts.map