mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
publish any thermostat mode to MQTT
This commit is contained in:
@@ -773,6 +773,10 @@ void publishEMSValues(bool force) {
|
|||||||
dataThermostat[THERMOSTAT_MODE] = "manual";
|
dataThermostat[THERMOSTAT_MODE] = "manual";
|
||||||
} else if (thermoMode == EMS_THERMOSTAT_MODE_AUTO) {
|
} else if (thermoMode == EMS_THERMOSTAT_MODE_AUTO) {
|
||||||
dataThermostat[THERMOSTAT_MODE] = "auto";
|
dataThermostat[THERMOSTAT_MODE] = "auto";
|
||||||
|
} else if (thermoMode == EMS_THERMOSTAT_MODE_DAY) {
|
||||||
|
dataThermostat[THERMOSTAT_MODE] = "day";
|
||||||
|
} else if (thermoMode == EMS_THERMOSTAT_MODE_NIGHT) {
|
||||||
|
dataThermostat[THERMOSTAT_MODE] = "night";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user