From 0f44031d4f127b378b91bff2ead18cfac1981f90 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 7 Apr 2019 21:09:31 +0200 Subject: [PATCH] https://github.com/proddy/EMS-ESP/pull/92 --- src/ems-esp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ems-esp.cpp b/src/ems-esp.cpp index 3efeb30a..179e2d11 100644 --- a/src/ems-esp.cpp +++ b/src/ems-esp.cpp @@ -620,7 +620,7 @@ void publishValues(bool force) { // handle the thermostat values separately if (ems_getThermostatEnabled()) { // only send thermostat values if we actually have them - if ((EMS_Thermostat.curr_roomTemp <= 0) || (EMS_Thermostat.setpoint_roomTemp <= 0)) + if ((EMS_Thermostat.curr_roomTemp <= 0) && (EMS_Thermostat.setpoint_roomTemp <= 0)) return; // build new json object