homebridge-switchbot-bluetooth-platform
Version:
A Homebridge platform Plugin for controlling SwitchBot bots using BLE (Bluetooth Low Energry)
22 lines • 822 B
TypeScript
import { Service, HAP, Logging, AccessoryPlugin } from 'homebridge';
import { IAccessoryParams } from '../types/accessoryTypes';
export declare class BotAccessory implements AccessoryPlugin {
readonly name: string;
private readonly hap;
private readonly log;
private readonly accessoryParams;
private readonly switchService;
private readonly infoService;
private readonly batteryService;
private switchBotClient;
private metadataClient;
private isSwitchOn;
constructor(name: string, hap: HAP, log: Logging, accessoryParams: IAccessoryParams);
getServices(): Service[];
private getBatteryLevel;
private handleGetSwitchValue;
private SetPowerStateAfterDelay;
private setPowerState;
private handleSetSwitchValue;
}
//# sourceMappingURL=botAccessory.d.ts.map