UNPKG

homebridge-philips-hue-sync-box

Version:
22 lines 698 B
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