fix bug in MQTT HC

This commit is contained in:
Paul
2019-09-26 21:29:10 +02:00
parent 1e458a68a8
commit 1549cf5e75
3 changed files with 19 additions and 19 deletions

View File

@@ -843,10 +843,10 @@ void publishValues(bool force) {
for (uint8_t hc_v = 1; hc_v <= EMS_THERMOSTAT_MAXHC; hc_v++) {
_EMS_Thermostat_HC * thermostat = &EMS_Thermostat.hc[hc_v - 1];
total_active_hc++; // increase count for #HCs we encounter
// only send if we have an active Heating Circuit with real data
if ((thermostat->active) && (thermostat->curr_roomTemp != EMS_VALUE_SHORT_NOTSET) && (thermostat->setpoint_roomTemp != EMS_VALUE_SHORT_NOTSET)) {
total_active_hc++; // increase count for #HCs we encounter
// build new json object
doc.clear();
JsonObject rootThermostat = doc.to<JsonObject>();