From 761599cf06e6645d55b7f8c2560e7147a462a6bb Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 28 Jan 2020 21:13:09 +0100 Subject: [PATCH] fix showing day/night mode in web --- src/ems-esp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ems-esp.cpp b/src/ems-esp.cpp index 6ec023704..2e603f75f 100644 --- a/src/ems-esp.cpp +++ b/src/ems-esp.cpp @@ -1738,6 +1738,10 @@ void WebCallback(JsonObject root) { thermostat["tmode"] = "manual"; } else if (thermoMode == EMS_THERMOSTAT_MODE_AUTO) { thermostat["tmode"] = "auto"; + } else if (thermoMode == EMS_THERMOSTAT_MODE_DAY) { + thermostat["tmode"] = "day"; + } else if (thermoMode == EMS_THERMOSTAT_MODE_NIGHT) { + thermostat["tmode"] = "night"; } } else { thermostat["ok"] = false;