homebridge-kasa-python
Version:
Plugin that uses Python-Kasa API to communicate with Kasa Devices.
32 lines (31 loc) • 995 B
TypeScript
import HomeKitDevice from './index.js';
import type KasaPythonPlatform from '../platform.js';
import type { Plug } from './kasaDevices.js';
export default class HomeKitDevicePlug extends HomeKitDevice {
kasaDevice: Plug;
isUpdating: boolean;
private previousKasaDevice;
private getSysInfo;
private pollingInterval;
private updateEmitter;
private static locks;
constructor(platform: KasaPythonPlatform, kasaDevice: Plug);
private withLock;
private checkService;
private getServiceType;
private checkCharacteristics;
private getCharacteristics;
private getOrAddCharacteristic;
private handleOnGet;
private getInitialValue;
private handleOnSet;
private getCharacteristicKey;
protected updateState(): Promise<void>;
private getService;
private updateDeviceState;
updateAfterPeriodicDiscovery(): void;
private updateCharacteristics;
startPolling(): void;
stopPolling(): void;
identify(): void;
}