This commit is contained in:
Martin Donnelly 2017-01-07 22:51:57 +00:00
parent 45b7dc8e21
commit 1fb44cb937

View File

@ -124,8 +124,12 @@ const mqttClient = function(events) {
logger.info('LR temp:', this.livingRoom.temp);
const data = {id: 'temperature', data: {mode: globalMode, temp: this.livingRoom.temp}};
events.emit('sendIFTTT', mode);
events.emit('sendSocket', data);
if (this.livingRoom.temp !== 0)
{
events.emit('sendIFTTT', mode);
events.emit('sendSocket', data);
}
setTimeout(this.fanTimer.bind(this), mod + 10);
};