homebridge-millheat
Version:
Homebridge plugin for Mill heaters
21 lines (16 loc) • 572 B
JavaScript
;
class AccessoryInformationService {
constructor(platform, serialNumber) {
const Characteristic = platform.homebridge.hap.Characteristic;
const Service = platform.homebridge.hap.Service;
this.service = new Service.AccessoryInformation();
this.service
.setCharacteristic(Characteristic.Manufacturer, 'mill')
.setCharacteristic(Characteristic.Model, 'Heater')
.setCharacteristic(Characteristic.SerialNumber, serialNumber);
}
getService() {
return this.service;
}
}
module.exports = AccessoryInformationService;