File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" : [
You can’t perform that action at this time.
0 commit comments