Back to Homebridge

Interface DynamicPlatformPlugin

docs/interfaces/DynamicPlatformPlugin.html

1.11.41.2 KB
Original Source
  • DynamicPlatformPlugin

Interface DynamicPlatformPlugin

Platform that is able to dynamically add or remove accessories. All configured accessories are stored to disk and recreated on startup. Accessories can be added or removed by using API.registerPlatformAccessories or API.unregisterPlatformAccessories.

interface DynamicPlatformPlugin {
configureAccessory(accessory: PlatformAccessory): void;
}

Hierarchy

  • PlatformPlugin
    • DynamicPlatformPlugin

Index

Methods

configureAccessory

Methods

configureAccessory

configureAccessory(accessory: PlatformAccessory): void

This method is called for every PlatformAccessory, which is recreated from disk on startup. It should be used to properly initialize the Accessory and setup all event handlers for all services and their characteristics.

Parameters

which needs to be configured

Returns void

Settings

Member Visibility

  • Inherited

ThemeOSLightDark

On This Page

Methods configureAccessory