Back to Homebridge

Interface PluginInitializer

docs/interfaces/PluginInitializer.html

1.11.4708 B
Original Source
  • PluginInitializer

Interface PluginInitializer

The {PluginInitializer} is a method which must be the default export for every homebridge plugin. It is called once the plugin is loaded from disk.

PluginInitializer(api: API): void | Promise<void>

When the initializer is called the plugin must use the provided api instance and call the appropriate register methods - API.registerAccessory or API.registerPlatform - in order to correctly register for the following startup sequence.

Parameters

Returns void | Promise<void>

Settings

Member Visibility

  • Inherited

ThemeOSLightDark