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