Back to Homebridge

Interface StaticPlatformPlugin

docs/interfaces/StaticPlatformPlugin.html

2.0.21.1 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

Properties

accessories

Properties

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.

Settings

Member Visibility

  • Inherited

ThemeOSLightDark

On This Page

Properties accessories