Skip to content

Commit e6be03d

Browse files
author
Jason Rhubottom
committed
Added back the momentry switch logic that was lost in a earlier merge
1 parent 512c098 commit e6be03d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,15 @@ HomeSeerEvent.prototype = {
14151415
this.log(this.name + ': launchEvent function succeeded!');
14161416
callback();
14171417
}
1418+
1419+
if(this.off_url==null && value != 0)
1420+
{
1421+
setTimeout(function() {
1422+
this.log(this.name + ': Momentary switch reseting to 0');
1423+
this.switchService.getCharacteristic(Characteristic.On).setValue(0);
1424+
}.bind(this),2000);
1425+
}
1426+
14181427
}.bind(this));
14191428
},
14201429

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "homebridge-homeseer-plugin",
3-
"version": "1.0.14",
3+
"version": "1.0.15",
44
"description": "Homeseer Plugin for homebridge: https://github.com/nfarina/homebridge",
55
"license": "ISC",
66
"keywords": [

0 commit comments

Comments
 (0)