UNPKG

homebridge-raspberry-pi-sensehat

Version:
30 lines (29 loc) 1.1 kB
import type { API, Characteristic, DynamicPlatformPlugin, Logging, PlatformAccessory, PlatformConfig, Service } from 'homebridge'; type DeviceType = 'Raspberry' | 'Light' | 'Sensor' | 'Synology'; interface DeviceConfig { uniqueId: string; displayName: string; type: DeviceType; } /** * Homebridge Platform */ export declare class SensehatPlatform implements DynamicPlatformPlugin { readonly log: Logging; readonly config: PlatformConfig; readonly api: API; readonly Service: typeof Service; readonly Characteristic: typeof Characteristic; readonly accessories: Map<string, PlatformAccessory>; readonly discoveredCacheUUIDs: string[]; readonly CustomService: any; readonly CustomCharacteristic: any; readonly scriptPath: string; readonly pythonName: string; constructor(log: Logging, config: PlatformConfig, api: API); configureAccessory(accessory: PlatformAccessory): void; getDevices(): DeviceConfig[]; initAccessory(type: DeviceType, accessory: PlatformAccessory): void; createAccessories(): Promise<void>; } export {};