homebridge-lookin-http-ac
Version:
19 lines (18 loc) • 576 B
TypeScript
import { EventEmitter } from 'events';
import type { Logging } from 'homebridge';
export declare class SensorPoller extends EventEmitter {
private readonly ip;
private readonly name;
private readonly log;
private readonly intervalMs;
temperature: number;
humidity: number;
contactDetected: boolean;
private intervalHandle?;
private contactIntervalHandle?;
constructor(ip: string, name: string, log: Logging, intervalMs?: number);
private startPolling;
private fetchSensorData;
private fetchContactState;
stop(): void;
}