debug output

This commit is contained in:
2018-04-09 16:08:41 +02:00
parent aad115f7b0
commit 245002acad
3 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const logger = require("./log");
const MqttDispatcher_1 = require("./MqttDispatcher");
const AHomegearItem_1 = require("./AHomegearItem");
// import { MaxWindowContact } from './MaxWindowContact';
@ -65,6 +66,7 @@ class MaxThermostat extends AHomegearItem_1.AHomegearItem {
}
else if (topic == MaxThermostat.summerSwitchTopic) {
this.summerFlag = (payload == 'ON');
logger.info(`${this.itemId} switched to ${this.summerFlag ? 'Summer' : 'Winter'} mode`);
}
else if (topic == this.presetTemperatureTopic) {
this.presetTemperature = parseFloat(payload);