Newer fan controller
This commit is contained in:
parent
c79338ac62
commit
30987e3117
@ -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');
|
||||
|
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user