homebridge-philips-hue-sync-box
Version:
Homebridge plugin for the Philips Hue Sync Box.
22 lines • 698 B
JavaScript
import { SyncBoxDevice } from './base.js';
export class LightbulbDevice extends SyncBoxDevice {
platform;
accessory;
state;
constructor(platform, accessory, state) {
super(platform, accessory, state);
this.platform = platform;
this.accessory = accessory;
this.state = state;
this.service
.getCharacteristic(this.platform.api.hap.Characteristic.Brightness)
.onSet(this.setBrightness.bind(this));
}
getPowerCharacteristic() {
return this.platform.api.hap.Characteristic.On;
}
getServiceType() {
return this.platform.api.hap.Service.Lightbulb;
}
}
//# sourceMappingURL=lightbulb.js.map