mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-30 02:29:12 +03:00
remote default to RC200, boiler reset command
This commit is contained in:
@@ -2696,6 +2696,14 @@ bool Boiler::set_reset(const char * value, const int8_t id) {
|
||||
// LOG_INFO("Reset boiler error message");
|
||||
write_command(0x05, 0x00, 0x5A); // error reset
|
||||
return true;
|
||||
} else if (num == 3) {
|
||||
// LOG_INFO("Reset boiler history");
|
||||
write_command(0x05, 42, 0x01); // clear history
|
||||
return true;
|
||||
} else if (num == 4) {
|
||||
// LOG_INFO("Reset boiler message");
|
||||
write_command(0x05, 0x08, 0xFF); // same as maintenance
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1863,11 +1863,11 @@ bool Thermostat::set_remotetemp(const char * value, const int8_t id) {
|
||||
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_RC35 || model() == EMSdevice::EMS_DEVICE_FLAG_RC30_N) {
|
||||
Roomctrl::set_remotetemp(Roomctrl::RC20, hc->hc(), hc->remotetemp); // RC20
|
||||
} else if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || model() == EMSdevice::EMS_DEVICE_FLAG_RC300) {
|
||||
if (hc->control == 1) {
|
||||
if (hc->control == 1 || hc->control == 0) {
|
||||
Roomctrl::set_remotetemp(Roomctrl::RC200, hc->hc(), hc->remotetemp); // RC200
|
||||
} else if (hc->control == 3) { // RC100H(3)
|
||||
Roomctrl::set_remotetemp(Roomctrl::RC100H, hc->hc(), hc->remotetemp); // RC100H
|
||||
} else if (hc->control == 2 || hc->control == 0) { // RC100(2) and RC310(0)
|
||||
} else if (hc->control == 2) { // RC100(2)
|
||||
Roomctrl::set_remotetemp(Roomctrl::RC100, hc->hc(), hc->remotetemp); // RC100
|
||||
} else {
|
||||
hc->remotetemp = EMS_VALUE_SHORT_NOTSET;
|
||||
|
||||
Reference in New Issue
Block a user