homebridge-philips-hue-sync-box
Version:
Homebridge plugin for the Philips Hue Sync Box.
19 lines • 537 B
JavaScript
import { SyncBoxDevice } from './base.js';
export class SwitchDevice extends SyncBoxDevice {
platform;
accessory;
state;
constructor(platform, accessory, state) {
super(platform, accessory, state);
this.platform = platform;
this.accessory = accessory;
this.state = state;
}
getPowerCharacteristic() {
return this.platform.api.hap.Characteristic.On;
}
getServiceType() {
return this.platform.api.hap.Service.Switch;
}
}
//# sourceMappingURL=switch.js.map