Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • iRobotPlatform

Implements

  • DynamicPlatformPlugin

Index

Constructors

  • new iRobotPlatform(log: Logger, config: PlatformConfig, api: API): iRobotPlatform

Properties

Characteristic: typeof Characteristic = ...
Service: typeof Service = ...
accessories: PlatformAccessory<UnknownContext>[] = []
api: API
config: PlatformConfig
log: Logger

Methods

  • configureAccessory(accessory: PlatformAccessory<UnknownContext>): void
  • This function is invoked when homebridge restores cached accessories from disk at startup. It should be used to setup event handlers for characteristics and update respective values.

    Parameters

    • accessory: PlatformAccessory<UnknownContext>

    Returns void

  • discoverDevices(): void
  • This is an example method showing how to register discovered accessories. Accessories must only be registered once, previously created accessories must not be registered again to prevent "duplicate UUID" errors.

    Returns void

Generated using TypeDoc