Merge pull request #197 from Neonox31:1-feat-thermostats-display-mode-for-fw100-and-fw120-thermostats

feat(thermostats): display mode for FW100 and FW120 thermostats
This commit is contained in:
Proddy
2019-10-06 20:19:04 +02:00
committed by GitHub
3 changed files with 15 additions and 2 deletions

View File

@@ -409,7 +409,16 @@ uint8_t _getThermostatMode(uint8_t hc_num) {
} else if (mode == 1) {
thermoMode = 2; // auto
}
} else { // default for all other thermostats
} else if (model == EMS_MODEL_FW100 || model == EMS_MODEL_FW120) {
if (mode == 3) {
thermoMode = 4;
} else if (mode == 2) {
thermoMode = 3;
} else if (mode == 1) {
thermoMode = 0;
}
}
else { // default for all other thermostats
if (mode == 0) {
thermoMode = 3; // night
} else if (mode == 1) {