UNPKG

homebridge-roborock-control

Version:

A Homebridge plugin to control Roborock vacuum cleaners.

30 lines (29 loc) 1.36 kB
import { API, Characteristic, DynamicPlatformPlugin, Logging, PlatformAccessory, PlatformConfig, Service } from 'homebridge'; import { RoborockAccessory } from './accessories/roborockAccessory.js'; /** * This class is the entry point for the plugin. It is responsible for parsing * the user config, discovering accessories, and registering them. */ export declare class RoborockControllerPlatform implements DynamicPlatformPlugin { readonly log: Logging; readonly config: PlatformConfig; readonly api: API; readonly Service: typeof Service; readonly Characteristic: typeof Characteristic; readonly cachedAccessories: PlatformAccessory[]; readonly accessoryHandlers: RoborockAccessory[]; constructor(log: Logging, config: PlatformConfig, api: API); private validateConfig; /** * This function is invoked for each cached accessory that homebridge restores * from disk at startup. Here we add the cached accessories to a list which * will be examined later during the 'discoverDevices' phase. */ configureAccessory(accessory: PlatformAccessory): void; /** * Discover and register accessories. Accessories must only be registered * once; previously created accessories must not be registered again, to * avoid "duplicate UUID" errors. */ private discoverDevices; }