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

  • AladdinConnectPlatform

Implements

  • DynamicPlatformPlugin

Constructors

Properties

Characteristic: typeof Characteristic = ...
Service: typeof Service = ...
addedAccessories: PlatformAccessory<UnknownContext>[] = []

this is used to track which accessories have been added

api: API
cachedAccessories: PlatformAccessory<UnknownContext>[] = []

this is used to track restored cached accessories

config: PlatformConfig
garageDoors: GarageDoor[] = []
generalLogPath: string = ...
log: Logger
projectDir: string = ...

this is used to track which accessories have been configured

restoredAccessories: PlatformAccessory<UnknownContext>[] = []

this is used to track which accessories have been restored from the cache

Methods

  • 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

  • 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 Promise<void>

Generated using TypeDoc