@akospasztor/homebridge-create-ceiling-fan - v1.3.0
    Preparing search index...

    Class CreateCeilingFanPlatform

    CreateCeilingFanPlatform: the platform implementation for CREATE ceiling fans.

    This class contains the platform implementation and follows the Homebridge plugin development recommendations.

    Implements

    • DynamicPlatformPlugin
    Index

    Constructors

    • The CreateCeilingFanPlatform constructor.

      Note: This constructor is called by Homebridge.

      Parameters

      • log: Logging

        The logging object.

      • config: PlatformConfig

        The platform configuration object.

      • api: API

        The API object.

      Returns CreateCeilingFanPlatform

    Properties

    accessories: Map<string, PlatformAccessory<UnknownContext>> = ...

    Used for tracking the restored cached accessories.

    api: API

    The API object.

    Characteristic: typeof Characteristic

    The HomeKit Accessory Protocol (HAP) characteristic.

    config: PlatformConfig

    The platform configuration object.

    discoveredCacheUUIDs: string[] = []

    Used for tracking the cached UUIDs.

    log: Logging

    The logging object.

    Service: typeof Service

    The HomeKit Accessory Protocol (HAP) service.

    Methods

    • This function is invoked when Homebridge restores cached accessories from the disk at startup. It should be used to set up event handlers for characteristics and update respective values.

      Parameters

      • accessory: PlatformAccessory

        The accessory restored from the disk at startup.

      Returns void

    • Register discovered accessories.

      Accessories must only be registered once, previously created accessories must not be registered again to prevent "duplicate UUID" errors.

      Returns void