fix in heating main switch handling
This commit is contained in:
5
dist/MaxThermostat.js
vendored
5
dist/MaxThermostat.js
vendored
@ -68,8 +68,9 @@ class MaxThermostat extends AHomegearItem_1.AHomegearItem {
|
|||||||
this.heatingMainFlag = (payload == 'ON');
|
this.heatingMainFlag = (payload == 'ON');
|
||||||
logger.info(`${this.itemId} heating main: ${this.heatingMainFlag}`);
|
logger.info(`${this.itemId} heating main: ${this.heatingMainFlag}`);
|
||||||
if (!this.heatingMainFlag) {
|
if (!this.heatingMainFlag) {
|
||||||
MqttDispatcher_1.mqttHandler.send(this.temperatureFeedbackTopic, `${DISABLED_TEMPERATURE}`);
|
this.temperature = DISABLED_TEMPERATURE;
|
||||||
MqttDispatcher_1.mqttHandler.send(this.actionTopic, `${DISABLED_TEMPERATURE}`);
|
MqttDispatcher_1.mqttHandler.send(this.temperatureFeedbackTopic, `${this.temperature}`);
|
||||||
|
MqttDispatcher_1.mqttHandler.send(this.actionTopic, `${this.temperature}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (topic == this.presetTemperatureTopic) {
|
else if (topic == this.presetTemperatureTopic) {
|
||||||
|
@ -93,8 +93,9 @@ export class MaxThermostat extends AHomegearItem implements HasInTopic {
|
|||||||
this.heatingMainFlag = (payload == 'ON')
|
this.heatingMainFlag = (payload == 'ON')
|
||||||
logger.info(`${this.itemId} heating main: ${this.heatingMainFlag}`)
|
logger.info(`${this.itemId} heating main: ${this.heatingMainFlag}`)
|
||||||
if (! this.heatingMainFlag) {
|
if (! this.heatingMainFlag) {
|
||||||
mqttHandler.send(this.temperatureFeedbackTopic, `${DISABLED_TEMPERATURE}`)
|
this.temperature = DISABLED_TEMPERATURE
|
||||||
mqttHandler.send(this.actionTopic, `${DISABLED_TEMPERATURE}`)
|
mqttHandler.send(this.temperatureFeedbackTopic, `${this.temperature}`)
|
||||||
|
mqttHandler.send(this.actionTopic, `${this.temperature}`)
|
||||||
}
|
}
|
||||||
} else if (topic == this.presetTemperatureTopic) {
|
} else if (topic == this.presetTemperatureTopic) {
|
||||||
this.presetTemperature = parseFloat(payload)
|
this.presetTemperature = parseFloat(payload)
|
||||||
|
Reference in New Issue
Block a user