@switchbot/homebridge-switchbot
Version:
The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.
10 lines • 480 B
TypeScript
export type DeviceCommandHandler = (device: any, body: any) => Promise<any>;
export interface DeviceCommandMap {
[command: string]: DeviceCommandHandler;
}
export interface DeviceTypeCommandMap {
[deviceType: string]: DeviceCommandMap;
}
export declare const deviceTypeCommandMap: DeviceTypeCommandMap;
export declare function getDeviceCommandHandler(deviceType: string, command: string): DeviceCommandHandler | undefined;
//# sourceMappingURL=deviceCommandMapper.d.ts.map