mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
- RC35: sets day/night/auto mode via mqtt command
- RC35: sets setpoint temperature in type 0x3D depends on current night/day mode
This commit is contained in:
@@ -737,8 +737,10 @@ void MQTTCallback(unsigned int type, const char * topic, const char * message) {
|
||||
myDebug("MQTT topic: thermostat mode value %s", message);
|
||||
if (strcmp((char *)message, "auto") == 0) {
|
||||
ems_setThermostatMode(2);
|
||||
} else if (strcmp((char *)message, "manual") == 0) {
|
||||
} else if (strcmp((char *)message, "day") == 0) {
|
||||
ems_setThermostatMode(1);
|
||||
} else if (strcmp((char *)message, "night") == 0) {
|
||||
ems_setThermostatMode(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user