Back to Homebridge

Interface StaticPlatformPlugin

docs/interfaces/StaticPlatformPlugin.html

1.11.41.2 KB
Original Source
  • StaticPlatformPlugin

Interface StaticPlatformPlugin

Platform that exposes all available characteristics at the start of the plugin. The set of accessories can not change at runtime. The bridge waits for all callbacks to return before it is published and accessible by HomeKit controllers.

interface StaticPlatformPlugin {
accessories(
callback: (foundAccessories: AccessoryPlugin[]) => void,
): void;
}

Hierarchy

  • PlatformPlugin
    • StaticPlatformPlugin

Index

Methods

accessories

Methods

accessories

accessories(callback: (foundAccessories: AccessoryPlugin[]) => void): void

This method is called once at startup. The Platform should pass all accessories which need to be created to the callback in form of a AccessoryPlugin. The Platform must respond in a timely manner as otherwise the startup of the bridge would be unnecessarily delayed.

Parameters

Returns void

Settings

Member Visibility

  • Inherited

ThemeOSLightDark

On This Page

Methods accessories