diff --git a/index.js b/index.js index fab89b2..eddcd2a 100644 --- a/index.js +++ b/index.js @@ -336,7 +336,7 @@ BlindsHTTPAccessory.prototype.getServices = function() { this.services.push(this.service); if (this.showStopButton && (this.stopURL || this.useSameUrlForStop)) { - const stopService = new Service.Switch(this.name + ' Stop'); + const stopService = new Service.Switch(this.name + ' Stop', 'stop'); stopService .getCharacteristic(Characteristic.On) .on('set', this.sendStopRequest.bind(this, stopService)); @@ -345,7 +345,7 @@ BlindsHTTPAccessory.prototype.getServices = function() { } if (this.showToggleButton) { - const toggleService = new Service.Switch(this.name + ' Toggle'); + const toggleService = new Service.Switch(this.name + ' Toggle', 'toggle'); toggleService .getCharacteristic(Characteristic.On) .on('set', this.sendToggleRequest.bind(this, toggleService)); diff --git a/package.json b/package.json index 6a2add1..77023d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-blinds", - "version": "1.3.10", + "version": "1.3.11", "description": "A homebridge plugin to control my blinds", "main": "index.js", "scripts": {