From ac935d9cf58ea0738f9f23e80de6bc9462cc2c64 Mon Sep 17 00:00:00 2001 From: Dennis Twardowsky Date: Fri, 24 Feb 2023 22:03:58 +0100 Subject: [PATCH] Provide identifiers for better identification in Home apps --- src/platformAccessory.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/platformAccessory.ts b/src/platformAccessory.ts index c5eb858..2f979a8 100644 --- a/src/platformAccessory.ts +++ b/src/platformAccessory.ts @@ -49,9 +49,9 @@ export class DeviceAccessory { */ this.accessory.getService(this.platform.Service.AccessoryInformation)! .setCharacteristic(this.platform.Characteristic.Manufacturer, 'HB/dtw') - .setCharacteristic(this.platform.Characteristic.Model, 'SceneSwitch') + .setCharacteristic(this.platform.Characteristic.Model, 'Multi-Tap-Switch') .setCharacteristic(this.platform.Characteristic.Version, VERSION) - .setCharacteristic(this.platform.Characteristic.SerialNumber, accessory.UUID); + .setCharacteristic(this.platform.Characteristic.SerialNumber, this.Config.Name()); /** * Input Service / Switch @@ -115,7 +115,9 @@ export class DeviceAccessory { this.serviceOut.addLinkedService(newButton); newButton.getCharacteristic(this.platform.Characteristic.ProgrammableSwitchEvent) .setProps(this.singleButtonEvents); - newButton.setCharacteristic(this.platform.Characteristic.ServiceLabelIndex, i); + newButton + .setCharacteristic(this.platform.Characteristic.ServiceLabelIndex, i) + .setCharacteristic(this.platform.Characteristic.Name, 'Scene ' + i); } // Push switches to an internal list for later use