fix showing day/night mode in web

This commit is contained in:
Paul
2020-01-28 21:13:09 +01:00
parent 1eb08b74c7
commit 761599cf06

View File

@@ -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;