max temp
This commit is contained in:
parent
a8b3f4da6c
commit
cd05021a30
@ -104,6 +104,7 @@ var mqttClient = function () {
|
||||
this.livingRoom.temp = parseFloat(json.temp);
|
||||
|
||||
if (this.livingRoom.temp >= 23) {
|
||||
console.log('Max temp reached, turn off' );
|
||||
busEmitter.emit('send', 'FanOff');
|
||||
}
|
||||
var d = new Date();
|
||||
|
Loading…
Reference in New Issue
Block a user