From 30987e3117fd619fde0321ce57478ae1a8a53e75 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Fri, 15 Dec 2017 23:32:30 +0000 Subject: [PATCH] Newer fan controller --- lib/aida.js | 6 +++--- lib/recipes.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/aida.js b/lib/aida.js index 591fd5f..f0904a6 100644 --- a/lib/aida.js +++ b/lib/aida.js @@ -34,7 +34,7 @@ util.inherits(Aida, em); Aida.prototype.init = function() { this.lights = new Lights(); this.wemo = new Wemo(); - this.hs100 = new HS100(); + // this.hs100 = new HS100(); // this.hive = new Hive(); this.mqtt = new MqttController(); @@ -49,9 +49,9 @@ Aida.prototype.init = function() { logger.debug('Found Wemo switch:', d.macAddress); }); - this.hs100.on('found', (d) => { + /*this.hs100.on('found', (d) => { logger.debug('Found hs100 switch:', d.deviceId); - }); + });*/ /* this.hive.on('update', (d) => { logger.debug('Heating updated'); diff --git a/lib/recipes.js b/lib/recipes.js index 948d430..7213e91 100644 --- a/lib/recipes.js +++ b/lib/recipes.js @@ -51,10 +51,10 @@ const BedroomHeaterV2 = function(devices) { } if (!this.startTimer && mode === 'FanOn' && this.globalMode === 'FanOff') { - logger.debug('10 Minute timer started...'); + logger.debug('1 Minute timer started...'); this.startTimer = setTimeout((() => { _this.wemo.emit('wemo', 'FanOn'); - }).bind(_this), 600000); + }).bind(_this), 60000); } if (this.bedroom.temp >= curRange.max && this.globalMode == 'FanOn') {