mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
fix showing day/night mode in web
This commit is contained in:
@@ -1738,6 +1738,10 @@ void WebCallback(JsonObject root) {
|
|||||||
thermostat["tmode"] = "manual";
|
thermostat["tmode"] = "manual";
|
||||||
} else if (thermoMode == EMS_THERMOSTAT_MODE_AUTO) {
|
} else if (thermoMode == EMS_THERMOSTAT_MODE_AUTO) {
|
||||||
thermostat["tmode"] = "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 {
|
} else {
|
||||||
thermostat["ok"] = false;
|
thermostat["ok"] = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user