always send thermostat mode in MQTT even if its not set yet

This commit is contained in:
proddy
2019-10-19 10:11:20 +02:00
parent 00e707ee21
commit 36d0657acf
2 changed files with 5 additions and 1 deletions

View File

@@ -440,6 +440,8 @@ void showInfo() {
myDebug_P(PSTR(" Mode is set to night")); myDebug_P(PSTR(" Mode is set to night"));
} else if (thermoMode == 4) { } else if (thermoMode == 4) {
myDebug_P(PSTR(" Mode is set to day")); 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 dataThermostat[THERMOSTAT_MODE] = "off"; // for night
} else if (thermoMode == 4) { } else if (thermoMode == 4) {
dataThermostat[THERMOSTAT_MODE] = "heat"; // for day dataThermostat[THERMOSTAT_MODE] = "heat"; // for day
} else {
dataThermostat[THERMOSTAT_MODE] = "auto"; // default to auto so HA doesn't complain
} }
} }
} }

View File

@@ -1 +1 @@
#define APP_VERSION "1.9.2b10" #define APP_VERSION "1.9.2b11"