mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49: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:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* EMS-ESP
|
||||
*
|
||||
*
|
||||
* Paul Derbyshire - https://github.com/proddy/EMS-ESP
|
||||
*
|
||||
* See ChangeLog.md for history
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -863,7 +865,7 @@ void _showerColdShotStop() {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* Shower Logic
|
||||
*/
|
||||
void showerCheck() {
|
||||
|
||||
Reference in New Issue
Block a user