diff --git a/index.js b/index.js index 88bc983..db9f133 100644 --- a/index.js +++ b/index.js @@ -1422,8 +1422,10 @@ HomeSeerEvent.prototype = { if(this.off_url==null && value != 0) { - this.log(this.name + ': Momentary switch reseting to 0'); - this.switchService.getCharacteristic(Characteristic.On).setValue(0); + setTimeout(function() { + this.log(this.name + ': Momentary switch reseting to 0'); + this.switchService.getCharacteristic(Characteristic.On).setValue(0); + }.bind(this),2000); } }.bind(this)); diff --git a/package.json b/package.json index f56565e..4878e57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-homeseer-plugin", - "version": "1.0.12", + "version": "1.0.13", "description": "Homeseer Plugin for homebridge: https://github.com/nfarina/homebridge", "license": "ISC", "keywords": [