UNPKG

homebridge-switchbot-bluetooth-platform

Version:

A Homebridge platform Plugin for controlling SwitchBot bots using BLE (Bluetooth Low Energry)

23 lines 1.07 kB
import { Logger } from 'homebridge'; import { SwitchbotOperationMode } from '../types/accessoryTypes'; export declare class MetadataClient { private log; private readonly client; private readonly metaDataCache; private isScanningForMetadata; constructor(log: Logger); /** * Retreives the bot's operation mode. * There are two possible modes of operation: switch and press. * When the bot is set to switch mode, it behaves as a switch, this means it has "ON"/"OFF" states. * When the bot is set to press mode, it has no "ON"/"OFF" state, but rather a single mode - press mode. * Setting the bot's operation mode can be done via the offical SwitchBot application. */ getDeviceOperationMode: (address: string, scanDuration: number) => SwitchbotOperationMode; getDeviceBatteryStatus: (address: string, scanDuration: number) => number; private getDeviceMetaData; private scanForDeviceMetadata; private handleScannedMetadata; private getMetadataFromCache; } //# sourceMappingURL=metaDataClient.d.ts.map