homebridge-ikettle
Version:
Simple HomeKit control for your iKettle. Easy access without faffing with Siri Shortcuts/IFTTT.
32 lines (31 loc) • 1.27 kB
TypeScript
import type { CharacteristicValue, PlatformAccessory } from 'homebridge';
import type { IKettlePlatform } from './platform.js';
/**
* Platform Accessory
* An instance of this class is created for each accessory your platform registers
* Each accessory may expose multiple services of different service types.
*/
export declare class iKettlePlatformAccessory {
private readonly platform;
private readonly accessory;
private deviceId;
private userId;
private deviceDetails;
private log;
private kettleManager;
private readonly heaterService;
constructor(platform: IKettlePlatform, accessory: PlatformAccessory);
private handleCurrentHeatingCoolingStateGet;
private handleTargetHeatingCoolingStateGet;
private handleTargetHeatingCoolingStateSet;
private handleCurrentTemperatureGet;
handleTargetTemperatureGet(): Promise<number>;
handleTargetTemperatureSet(value: CharacteristicValue): Promise<void>;
handleTemperatureDisplayUnitsGet(): Promise<number>;
handleTemperatureDisplayUnitsSet(value: CharacteristicValue): Promise<void>;
private getWaterLevel;
private watchKettle;
private updateHomeKit;
private getCurrentHeatingCoolingState;
private getTargetHeatingCoolingState;
}