Added information service

This commit is contained in:
watsonb8
2020-01-03 16:26:55 -05:00
parent 0b08302656
commit b004e3a966
2 changed files with 52 additions and 48 deletions

View File

@ -33,16 +33,12 @@ export class DeviceButton implements IAccessory {
private _buttonState: boolean;
private _buttonName: string;
constructor(props: IDeviceButtonProps) {
//Assign class variables
this._log = props.log;
this._api = props.api;
Service = props.api.hap.Service;
Characteristic = props.api.hap.Characteristic;
this._buttonName = props.buttonName;
this.name = props.displayName;
this._homebridge = props.homebridge;
@ -56,7 +52,7 @@ export class DeviceButton implements IAccessory {
//@ts-ignore
this._infoService = new Service.AccessoryInformation();
this._infoService.setCharacteristic(Characteristic.Manufacturer, "The Watson Project")
this._infoService.setCharacteristic(Characteristic.Manufacturer, "Brandon Watson")
this._infoService.setCharacteristic(Characteristic.Model, "Device Button")
this._infoService.setCharacteristic(Characteristic.SerialNumber, "123-456-789");