Skip to content

Commit

Permalink
Added back the momentry switch logic that was lost in a earlier merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Rhubottom committed Oct 31, 2016
1 parent 512c098 commit e6be03d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,15 @@ HomeSeerEvent.prototype = {
this.log(this.name + ': launchEvent function succeeded!');
callback();
}

if(this.off_url==null && value != 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.14",
"version": "1.0.15",
"description": "Homeseer Plugin for homebridge: https://github.com/nfarina/homebridge",
"license": "ISC",
"keywords": [
Expand Down

0 comments on commit e6be03d

Please sign in to comment.