UNPKG

@petro-kushchak/homebridge-ch-gree-ac-eve-platform

Version:

Cooper&Hunter (based on Gree AC API) AC plugin for Homebridge (Homekit) with Web Hook/MQTT Data Sharing

27 lines 954 B
import { API, Logger, PlatformAccessory, Service } from "homebridge"; export interface HistoryServiceEntry extends Record<string, number> { time: number; } export interface HistoryService { addEntry(entry: HistoryServiceEntry): void; } export interface HistoryServiceStorageReaderOptions { service: unknown; callback: (err: unknown, data: string) => void; } export interface HistoryServiceStorage { globalFakeGatoStorage: { read: (options: HistoryServiceStorageReaderOptions) => void; }; } export declare class EveHistory { private readonly accessory; private api; private logger; private readonly historyService; constructor(accessory: PlatformAccessory, api: API, logger: Logger); getService(): Service; addEntry(entry: HistoryServiceEntry): void; readHistory(lastEntryHandler: (lastEntry: string, history: HistoryServiceEntry[]) => void): void; } //# sourceMappingURL=EveHistory.d.ts.map