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