UNPKG

homebridge-kasa-python

Version:

Plugin that uses Python-Kasa API to communicate with Kasa Devices.

35 lines (34 loc) 1.11 kB
import HomeKitDevice from './index.js'; import type KasaPythonPlatform from '../platform.js'; import type { Switch } from './kasaDevices.js'; export default class HomeKitDeviceSwitchWithChildren extends HomeKitDevice { kasaDevice: Switch; isUpdating: boolean; private previousKasaDevice; private getSysInfo; private pollingInterval; private updateEmitter; private static locks; constructor(platform: KasaPythonPlatform, kasaDevice: Switch); private withLock; private checkService; private getServiceType; private checkCharacteristics; private getCharacteristics; private getOrAddCharacteristic; private handleOnGet; private getDefaultValue; private getInitialValue; private mapRotationSpeedToValue; private handleOnSet; private getCharacteristicKey; private getControlValue; protected updateState(): Promise<void>; private getService; private updateChildState; updateAfterPeriodicDiscovery(): void; private updateCharacteristics; startPolling(): void; stopPolling(): void; identify(): void; }