UNPKG

homebridge-programmable-http-switch

Version:

A Homebridge plugin that allows users to create Stateless Programmable Switches which can be controlled using a HTTP API.

10 lines (9 loc) 396 B
import { StaticPlatformPlugin, PlatformConfig, AccessoryPlugin, API, Logging } from 'homebridge'; export default class ProgrammableHTTPSwitch implements StaticPlatformPlugin { private config; private log; private hap; private server; constructor(log: Logging, config: PlatformConfig, api: API); accessories: (callback: (accessories: AccessoryPlugin[]) => void) => void; }