UNPKG

homebridge-flume

Version:

Homebridge plugin to integrate Flume devices into HomeKit.

17 lines (16 loc) 660 B
import { DeviceData, LeakData, NotificationType, UsageData } from './types.js'; export declare class Device { readonly id: string; readonly locationId: string; readonly productName: string; isBatteryLow: boolean; isDisconnected: boolean; isLeakDetected: boolean; usageToday: number; usageMonth: number; usageLastMonth: number; private _onUpdateCallback; constructor(data: DeviceData); setOnUpdateCallback(callback: (serialNumber: string) => void): void; update(leakData: LeakData | null, unreadNotifications: Set<NotificationType> | null, deviceData: DeviceData | null, usageData: UsageData | null): void; }