homebridge-kasa-python
Version:
Plugin that uses Python-Kasa API to communicate with Kasa Devices.
32 lines (31 loc) • 1.02 kB
TypeScript
import HomeKitDevice from './index.js';
import type KasaPythonPlatform from '../platform.js';
import type { PowerStrip } from './kasaDevices.js';
export default class HomeKitDevicePowerStrip extends HomeKitDevice {
kasaDevice: PowerStrip;
isUpdating: boolean;
private previousKasaDevice;
private getSysInfo;
private pollingInterval;
private updateEmitter;
private static locks;
constructor(platform: KasaPythonPlatform, kasaDevice: PowerStrip);
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 updateChildState;
updateAfterPeriodicDiscovery(): void;
private updateCharacteristics;
startPolling(): void;
stopPolling(): void;
identify(): void;
}