UNPKG

homebridge-econet-rheem

Version:

Homebridge plugin for control of Rheem and Ruud thermostats and water heaters

31 lines (30 loc) 886 B
import { API } from 'homebridge'; import { BaseAccessory } from '../accessory/abstract/base.js'; import { Log } from '../tools/log.js'; export declare enum HistoryType { CUSTOM = "custom", WEATHER = "weather" } export type HistoryEntry = { humidity?: number; power?: number; status?: number; temp?: number; time?: number; }; type Accessory = BaseAccessory; export declare class History { private readonly api; private readonly log; private readonly enabled; private readonly historyServices; private readonly persistPath; private readonly cleanedUp; constructor(api: API, log: Log, enabled: boolean); record(accessory: Accessory, type: HistoryType, entry: HistoryEntry, updateLastActivation?: boolean): void; private createHistoryService; private getFilename; private cleanup; private fileExists; } export {};