UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

21 lines (20 loc) 1.01 kB
import type { ServiceType } from '@homebridge/hap-client'; import { HapClient } from '@homebridge/hap-client'; import NodeCache from 'node-cache'; import { ConfigService } from '../../core/config/config.service'; import { Logger } from '../../core/logger/logger.service'; export declare class AccessoriesService { private readonly configService; private readonly logger; hapClient: HapClient; accessoriesCache: NodeCache; constructor(configService: ConfigService, logger: Logger); connect(client: any): Promise<void>; private refreshCharacteristics; loadAccessories(): Promise<ServiceType[]>; getAccessory(uniqueId: string): Promise<ServiceType>; setAccessoryCharacteristic(uniqueId: string, characteristicType: string, value: number | boolean | string): Promise<ServiceType>; getAccessoryLayout(username: string): Promise<any>; saveAccessoryLayout(user: string, layout: Record<string, unknown>): Promise<Record<string, unknown>>; resetInstancePool(): void; }