graphing
This commit is contained in:
parent
45b7dc8e21
commit
1fb44cb937
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user