Paul
2019-07-05 21:54:21 +02:00
parent bfbb1808a7
commit 9c9f2771fc
2 changed files with 3 additions and 8 deletions

View File

@@ -750,11 +750,8 @@ void publishValues(bool force) {
} }
// handle the thermostat values separately // handle the thermostat values separately
if (ems_getThermostatEnabled()) {
// only send thermostat values if we actually have them // only send thermostat values if we actually have them
if ((EMS_Thermostat.curr_roomTemp == EMS_VALUE_SHORT_NOTSET) || (EMS_Thermostat.setpoint_roomTemp == EMS_VALUE_SHORT_NOTSET)) if (ems_getThermostatEnabled() && ((EMS_Thermostat.curr_roomTemp != EMS_VALUE_SHORT_NOTSET) && (EMS_Thermostat.setpoint_roomTemp != EMS_VALUE_SHORT_NOTSET))) {
return;
// build new json object // build new json object
doc.clear(); doc.clear();
JsonObject rootThermostat = doc.to<JsonObject>(); JsonObject rootThermostat = doc.to<JsonObject>();
@@ -825,8 +822,6 @@ void publishValues(bool force) {
} }
} }
// handle the other values separately
// For SM10 and SM100 Solar Modules // For SM10 and SM100 Solar Modules
if (ems_getSolarModuleEnabled()) { if (ems_getSolarModuleEnabled()) {
// build new json object // build new json object

View File

@@ -6,5 +6,5 @@
#pragma once #pragma once
#define APP_NAME "EMS-ESP" #define APP_NAME "EMS-ESP"
#define APP_VERSION "1.8.1b11" #define APP_VERSION "1.8.1b12"
#define APP_HOSTNAME "ems-esp" #define APP_HOSTNAME "ems-esp"