Newer fan controller

This commit is contained in:
Martin Donnelly 2017-12-15 23:32:30 +00:00
parent c79338ac62
commit 30987e3117
2 changed files with 5 additions and 5 deletions

View File

@ -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');

View File

@ -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') {