The CreateCeilingFanPlatform constructor.
Note: This constructor is called by Homebridge.
The logging object.
The platform configuration object.
The API object.
ReadonlyaccessoriesUsed for tracking the restored cached accessories.
ReadonlyapiThe API object.
ReadonlyCharacteristicThe HomeKit Accessory Protocol (HAP) characteristic.
ReadonlyconfigThe platform configuration object.
ReadonlydiscoveredUsed for tracking the cached UUIDs.
ReadonlylogThe logging object.
ReadonlyServiceThe HomeKit Accessory Protocol (HAP) service.
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.
The accessory restored from the disk at startup.
PrivatediscoverRegister discovered accessories.
Accessories must only be registered once, previously created accessories must not be registered again to prevent "duplicate UUID" errors.
CreateCeilingFanPlatform: the platform implementation for CREATE ceiling fans.
This class contains the platform implementation and follows the Homebridge plugin development recommendations.
See