Open veonua opened 1 year ago
// If this bulb supports colorTemperature, then add those handlers // if (accessory.context.device.components[0].capabilities.find(c => c.id === 'colorTemperature')) { if (this.findCapability('colorTemperature')) { this.log.debug(`${this.name} supports colorTemperature`); this.service.getCharacteristic(platform.Characteristic.ColorTemperature) .onSet(this.setColorTemp.bind(this)) .onGet(this.getColorTemp.bind(this)); >>>> const adaptiveLightingController = new this.platform.AdaptiveLightingController(this.service, { controllerMode: AdaptiveLightingControllerMode.AUTOMATIC,}); accessory.configureController(adaptiveLightingController); <<<< }
it's literally 3 lines of code
it's literally 3 lines of code