diff --git a/dist/MaxThermostat.js b/dist/MaxThermostat.js index 5915d46..9e3e211 100644 --- a/dist/MaxThermostat.js +++ b/dist/MaxThermostat.js @@ -68,8 +68,9 @@ class MaxThermostat extends AHomegearItem_1.AHomegearItem { this.heatingMainFlag = (payload == 'ON'); logger.info(`${this.itemId} heating main: ${this.heatingMainFlag}`); if (!this.heatingMainFlag) { - MqttDispatcher_1.mqttHandler.send(this.temperatureFeedbackTopic, `${DISABLED_TEMPERATURE}`); - MqttDispatcher_1.mqttHandler.send(this.actionTopic, `${DISABLED_TEMPERATURE}`); + this.temperature = DISABLED_TEMPERATURE; + MqttDispatcher_1.mqttHandler.send(this.temperatureFeedbackTopic, `${this.temperature}`); + MqttDispatcher_1.mqttHandler.send(this.actionTopic, `${this.temperature}`); } } else if (topic == this.presetTemperatureTopic) { diff --git a/src/MaxThermostat.ts b/src/MaxThermostat.ts index 16bdb1e..d378662 100644 --- a/src/MaxThermostat.ts +++ b/src/MaxThermostat.ts @@ -93,8 +93,9 @@ export class MaxThermostat extends AHomegearItem implements HasInTopic { this.heatingMainFlag = (payload == 'ON') logger.info(`${this.itemId} heating main: ${this.heatingMainFlag}`) if (! this.heatingMainFlag) { - mqttHandler.send(this.temperatureFeedbackTopic, `${DISABLED_TEMPERATURE}`) - mqttHandler.send(this.actionTopic, `${DISABLED_TEMPERATURE}`) + this.temperature = DISABLED_TEMPERATURE + mqttHandler.send(this.temperatureFeedbackTopic, `${this.temperature}`) + mqttHandler.send(this.actionTopic, `${this.temperature}`) } } else if (topic == this.presetTemperatureTopic) { this.presetTemperature = parseFloat(payload)