homebridge-rachio-irrigation
Version:
Rachio Irrigation System platform plugin for [Homebridge](https://github.com/nfarina/homebridge).
20 lines (19 loc) • 882 B
TypeScript
import { Service, Characteristic, Logging } from 'homebridge';
import RachioPlatform from '../rachioplatform.js';
import RachioAPI from '../rachioapi.js';
import type { BatteryService } from '../settings.js';
export default class battery {
private readonly platform;
private readonly log;
private rachioapi;
readonly Service: typeof Service;
readonly Characteristic: typeof Characteristic;
delta: number[];
timeStamp: number[];
devices: Service[];
constructor(platform: RachioPlatform, log?: Logging, rachioapi?: RachioAPI);
createBatteryService(device: BatteryService): Service;
configureBatteryService(batteryStatus: Service): void;
getStatusLowBattery(batteryStatus: Service): import("homebridge").Nullable<import("homebridge").CharacteristicValue>;
updateBatteryStatus(batteryStatus: Service, index: number): Promise<void>;
}