Skip to content

Commit

Permalink
Slower momentary switch reset
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhubott committed Oct 20, 2016
1 parent 46fe8f0 commit 7b37163
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 7b37163

Please sign in to comment.