diff --git a/accessories/GenericRS232Device.js b/accessories/GenericRS232Device.js index 3bdfc18..b84e4cc 100644 --- a/accessories/GenericRS232Device.js +++ b/accessories/GenericRS232Device.js @@ -39,7 +39,7 @@ GenericRS232DeviceAccessory.prototype = { }, getServices: function() { - var switchService = new Service.Switch(); + var switchService = new Service.Switch(this.name); var informationService = new Service.AccessoryInformation(); informationService