homebridge-ambient-realtime
Version:
Ambient Weather Realtime API platform plugin for [Homebridge](https://github.com/nfarina/homebridge).
25 lines (24 loc) • 1.02 kB
TypeScript
import { API, Characteristic, DynamicPlatformPlugin, HAPStatus, HapStatusError, Logging, PlatformAccessory, PlatformConfig, Service } from 'homebridge';
/**
* HomebridgePlatform
* This class is the main constructor for your plugin, this is where you should
* parse the user config and discover/register accessories with Homebridge.
*/
export default class ambientPlatform implements DynamicPlatformPlugin {
readonly log: Logging;
readonly config: PlatformConfig;
readonly api: API;
[x: string]: any;
readonly Service: typeof Service;
readonly Characteristic: typeof Characteristic;
readonly HAPStatus: typeof HAPStatus;
readonly HapStatusError: typeof HapStatusError;
readonly accessories: PlatformAccessory[];
constructor(log: Logging, config: PlatformConfig, api: API);
configureAccessory(accessory: PlatformAccessory): void;
identify(): void;
connectAPI(): void;
addAccessory(devices: any[]): void;
updateStatus(data: any): void;
updatefault(): void;
}