mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
always send thermostat mode in MQTT even if its not set yet
This commit is contained in:
@@ -440,6 +440,8 @@ void showInfo() {
|
||||
myDebug_P(PSTR(" Mode is set to night"));
|
||||
} else if (thermoMode == 4) {
|
||||
myDebug_P(PSTR(" Mode is set to day"));
|
||||
} else {
|
||||
myDebug_P(PSTR(" Mode is unknown"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -726,6 +728,8 @@ void publishValues(bool force) {
|
||||
dataThermostat[THERMOSTAT_MODE] = "off"; // for night
|
||||
} else if (thermoMode == 4) {
|
||||
dataThermostat[THERMOSTAT_MODE] = "heat"; // for day
|
||||
} else {
|
||||
dataThermostat[THERMOSTAT_MODE] = "auto"; // default to auto so HA doesn't complain
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define APP_VERSION "1.9.2b10"
|
||||
#define APP_VERSION "1.9.2b11"
|
||||
|
||||
Reference in New Issue
Block a user