The CreateCeilingFanPlatform constructor.
Note: This constructor is called by Homebridge.
The logging object.
The platform configuration object.
The API object.
Readonly
accessoriesUsed for tracking the restored cached accessories.
Readonly
apiThe API object.
Readonly
CharacteristicThe HomeKit Accessory Protocol (HAP) characteristic.
Readonly
configThe platform configuration object.
Readonly
discoveredUsed for tracking the cached UUIDs.
Readonly
logThe logging object.
Readonly
ServiceThe 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.
Private
discoverRegister 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