homebridge-unifi-ap-light
Version:
Control the blue LED ring on your UniFi APs!
24 lines • 1.18 kB
TypeScript
import { Logger } from 'homebridge';
type UniFiAP = any;
/**
* Retrieves a specific UniFi AP by its ID.
*
* @param {string} id The ID of the AP to retrieve.
* @param {Function} requestFunction The function to execute the API request.
* @param {string[]} sites List of site names to search in.
* @param {Logger} log The Homebridge logger instance.
* @returns {Promise<UniFiAP | undefined>} The AP object, or undefined if not found.
*/
export declare function getAccessPoint(id: string, requestFunction: (config: any) => Promise<any>, sites: string[], log: Logger): Promise<UniFiAP | undefined>;
/**
* Fetches all UniFi APs from multiple UniFi Controller sites.
* Includes devices of type 'uap' and 'udm' (limited to model 'UDM' or 'UDR').
*
* @param {Function} request API request function.
* @param {string[]} sites Array of site names to query.
* @param {Logger} log Homebridge logger instance.
* @returns {Promise<UniFiAP[]>} Aggregated array of access points across all sites.
*/
export declare function getAccessPoints(request: (config: any) => Promise<any>, sites: string[], log: Logger): Promise<UniFiAP[]>;
export {};
//# sourceMappingURL=unifi.d.ts.map