Skip to content

Commit 7b37163

Browse files
committed
Slower momentary switch reset
1 parent 46fe8f0 commit 7b37163

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,8 +1422,10 @@ HomeSeerEvent.prototype = {
14221422

14231423
if(this.off_url==null && value != 0)
14241424
{
1425-
this.log(this.name + ': Momentary switch reseting to 0');
1426-
this.switchService.getCharacteristic(Characteristic.On).setValue(0);
1425+
setTimeout(function() {
1426+
this.log(this.name + ': Momentary switch reseting to 0');
1427+
this.switchService.getCharacteristic(Characteristic.On).setValue(0);
1428+
}.bind(this),2000);
14271429
}
14281430

14291431
}.bind(this));

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.12",
3+
"version": "1.0.13",
44
"description": "Homeseer Plugin for homebridge: https://github.com/nfarina/homebridge",
55
"license": "ISC",
66
"keywords": [

0 commit comments

Comments
 (0)