|
|
|
|
@@ -141,8 +141,8 @@ Thermostat::Thermostat(uint8_t device_type, uint8_t device_id, uint8_t product_i
|
|
|
|
|
register_telegram_type(monitor_typeids[i], "CRFMonitor", false, MAKE_PF_CB(process_CRFMonitor));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RC300/RC100
|
|
|
|
|
} else if ((model == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
// RC300/RC100 variants
|
|
|
|
|
} else if (isRC300() || (model == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
monitor_typeids = {0x02A5, 0x02A6, 0x02A7, 0x02A8, 0x02A9, 0x02AA, 0x02AB, 0x02AC};
|
|
|
|
|
set_typeids = {0x02B9, 0x02BA, 0x02BB, 0x02BC, 0x02BD, 0x02BE, 0x02BF, 0x02C0};
|
|
|
|
|
set2_typeids = {0x02CC, 0x02CE, 0x02D0, 0x02D2}; // max. 4 heating circuits supported ny RC310
|
|
|
|
|
@@ -493,7 +493,8 @@ uint8_t Thermostat::HeatingCircuit::get_mode() const {
|
|
|
|
|
} else if (mode == 2) {
|
|
|
|
|
return HeatingCircuit::Mode::AUTO;
|
|
|
|
|
}
|
|
|
|
|
} else if ((model == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
} else if ((model == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model == EMSdevice::EMS_DEVICE_FLAG_R3000) || (model == EMSdevice::EMS_DEVICE_FLAG_BC400)
|
|
|
|
|
|| (model == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (mode == 0) {
|
|
|
|
|
return HeatingCircuit::Mode::MANUAL;
|
|
|
|
|
} else if (mode == 1) {
|
|
|
|
|
@@ -545,7 +546,7 @@ uint8_t Thermostat::HeatingCircuit::get_mode_type() const {
|
|
|
|
|
} else if (modetype == 1) {
|
|
|
|
|
return HeatingCircuit::Mode::ON;
|
|
|
|
|
}
|
|
|
|
|
} else if ((model == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model == EMSdevice::EMS_DEVICE_FLAG_RC300)) {
|
|
|
|
|
} else if ((model == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model == EMSdevice::EMS_DEVICE_FLAG_R3000) || (model == EMSdevice::EMS_DEVICE_FLAG_BC400)) {
|
|
|
|
|
if (modetype == 0) {
|
|
|
|
|
return HeatingCircuit::Mode::ECO;
|
|
|
|
|
} else if (modetype == 1) {
|
|
|
|
|
@@ -1771,7 +1772,7 @@ bool Thermostat::set_minexttemp(const char * value, const int8_t id) {
|
|
|
|
|
|
|
|
|
|
if ((model() == EMSdevice::EMS_DEVICE_FLAG_RC20_N) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC25)) {
|
|
|
|
|
write_command(0xAD, 14, mt, 0xAD);
|
|
|
|
|
} else if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
} else if (isRC300() || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
write_command(0x240, 10, mt, 0x240);
|
|
|
|
|
} else {
|
|
|
|
|
write_command(EMS_TYPE_IBASettings, 5, mt, EMS_TYPE_IBASettings);
|
|
|
|
|
@@ -1812,7 +1813,7 @@ bool Thermostat::set_calinttemp(const char * value, const int8_t id) {
|
|
|
|
|
write_command(EMS_TYPE_RC30Settings, 1, t, EMS_TYPE_RC30Settings);
|
|
|
|
|
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_RC100H) {
|
|
|
|
|
write_command(0x273, 0, t, 0x273);
|
|
|
|
|
} else if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || model() == EMSdevice::EMS_DEVICE_FLAG_RC100 || model() == EMSdevice::EMS_DEVICE_FLAG_RC300) {
|
|
|
|
|
} else if (isRC300() || model() == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
write_command(0x240, 7, t, 0x240);
|
|
|
|
|
} else {
|
|
|
|
|
write_command(EMS_TYPE_IBASettings, 2, t, EMS_TYPE_IBASettings);
|
|
|
|
|
@@ -1866,7 +1867,7 @@ bool Thermostat::set_remotetemp(const char * value, const int8_t id) {
|
|
|
|
|
Roomctrl::set_remotetemp(Roomctrl::FB10, hc->hc(), hc->remotetemp); // FB10
|
|
|
|
|
} 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) {
|
|
|
|
|
} else if (isRC300()) {
|
|
|
|
|
if (hc->control == 1 || hc->control == 0) {
|
|
|
|
|
Roomctrl::set_remotetemp(Roomctrl::RC200, hc->hc(), hc->remotetemp); // RC200
|
|
|
|
|
} else if (hc->control == 3) { // RC100H(3)
|
|
|
|
|
@@ -1900,7 +1901,7 @@ bool Thermostat::set_remotehum(const char * value, const int8_t id) {
|
|
|
|
|
hc->remotehum = h;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (hc->control == 3 && (model() == EMSdevice::EMS_DEVICE_FLAG_BC400 || model() == EMSdevice::EMS_DEVICE_FLAG_RC300)) {
|
|
|
|
|
if (hc->control == 3 && isRC300()) {
|
|
|
|
|
Roomctrl::set_remotehum(Roomctrl::RC100H, hc->hc(), hc->remotehum); // RC100H
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
@@ -1914,7 +1915,7 @@ bool Thermostat::set_building(const char * value, const int8_t id) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (isRC300() || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
write_command(0x240, 9, bd + 1, 0x240);
|
|
|
|
|
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_RC30) {
|
|
|
|
|
write_command(EMS_TYPE_RC30Settings, 4, bd, EMS_TYPE_RC30Settings);
|
|
|
|
|
@@ -1944,7 +1945,7 @@ bool Thermostat::set_heatingpid(const char * value, const int8_t id) {
|
|
|
|
|
// 0xA5 and 0x0240- Set the damping settings
|
|
|
|
|
bool Thermostat::set_damping(const char * value, const int8_t id) {
|
|
|
|
|
bool dmp;
|
|
|
|
|
if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || model() == EMSdevice::EMS_DEVICE_FLAG_RC300) {
|
|
|
|
|
if (isRC300()) {
|
|
|
|
|
if (Helpers::value2bool(value, dmp)) {
|
|
|
|
|
write_command(0x240, 8, dmp ? 0xFF : 0, 0x240);
|
|
|
|
|
return true;
|
|
|
|
|
@@ -1990,7 +1991,7 @@ bool Thermostat::set_control(const char * value, const int8_t id) {
|
|
|
|
|
write_command(set_typeids[hc->hc()], 1, ctrl);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_BC400 || model() == EMSdevice::EMS_DEVICE_FLAG_RC300 || model() == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
} else if (isRC300() || model() == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
if (Helpers::value2enum(value, ctrl, FL_(enum_control1))) {
|
|
|
|
|
write_command(hpmode_typeids[hc->hc()], 3, ctrl);
|
|
|
|
|
if (hc->remotetemp != EMS_VALUE_INT16_NOTSET && ctrl > 0) {
|
|
|
|
|
@@ -2049,6 +2050,12 @@ bool Thermostat::set_wwmode(const char * value, const int8_t id) {
|
|
|
|
|
}
|
|
|
|
|
const uint8_t modes[] = {0, 5, 1, 2, 4};
|
|
|
|
|
write_command(0x02F5 + dhw, 2, modes[set], 0x02F5 + dhw);
|
|
|
|
|
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_R3000) { // Rego3000 - https://github.com/emsesp/EMS-ESP32/issues/1692
|
|
|
|
|
if (!Helpers::value2enum(value, set, FL_(enum_wwMode5))) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
const uint8_t modes[] = {1, 2, 0, 0, 5};
|
|
|
|
|
write_command(0x02F5 + dhw, 2, modes[set], 0x02F5 + dhw);
|
|
|
|
|
} else if ((model() == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (!Helpers::value2enum(value, set, FL_(enum_wwMode))) {
|
|
|
|
|
return false;
|
|
|
|
|
@@ -2146,7 +2153,7 @@ bool Thermostat::set_wwprio(const char * value, const int8_t id) {
|
|
|
|
|
if (!Helpers::value2bool(value, b)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC300)) {
|
|
|
|
|
if (isRC300()) {
|
|
|
|
|
write_command(set2_typeids[hc->hc()], 3, b ? 0xFF : 0x00, set2_typeids[hc->hc()]);
|
|
|
|
|
} else {
|
|
|
|
|
write_command(set_typeids[hc->hc()], 21, b ? 0xFF : 0x00, set_typeids[hc->hc()]);
|
|
|
|
|
@@ -2175,7 +2182,7 @@ bool Thermostat::set_wwcircmode(const char * value, const int8_t id) {
|
|
|
|
|
uint8_t dhw = id - DeviceValueTAG::TAG_DHW1;
|
|
|
|
|
uint8_t set;
|
|
|
|
|
|
|
|
|
|
if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (isRC300() || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (!Helpers::value2enum(value, set, FL_(enum_wwCircMode))) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
@@ -2209,7 +2216,7 @@ bool Thermostat::set_wwDailyHeatTime(const char * value, const int8_t id) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (isRC300() || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
uint8_t t = (set + 8) / 15;
|
|
|
|
|
if (t > 95) {
|
|
|
|
|
return false;
|
|
|
|
|
@@ -2227,7 +2234,7 @@ bool Thermostat::set_wwDisinfect(const char * value, const int8_t id) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (isRC300() || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
write_command(0x2F5 + dhw, 5, b ? 0xFF : 0x00, 0x2F5 + dhw);
|
|
|
|
|
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_RC30) {
|
|
|
|
|
write_command(EMS_TYPE_RC30wwSettings, 2, b ? 0xFF : 0x00, EMS_TYPE_RC30wwSettings);
|
|
|
|
|
@@ -2245,7 +2252,7 @@ bool Thermostat::set_wwDisinfectDay(const char * value, const int8_t id) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (isRC300() || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
write_command(0x2F5 + dhw, 7, set, 0x2F5 + dhw);
|
|
|
|
|
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_RC30) {
|
|
|
|
|
write_command(EMS_TYPE_RC30wwSettings, 3, set, EMS_TYPE_RC30wwSettings);
|
|
|
|
|
@@ -2259,7 +2266,7 @@ bool Thermostat::set_wwDisinfectDay(const char * value, const int8_t id) {
|
|
|
|
|
bool Thermostat::set_wwDisinfectHour(const char * value, const int8_t id) {
|
|
|
|
|
uint8_t dhw = id - DeviceValueTAG::TAG_DHW1;
|
|
|
|
|
int set;
|
|
|
|
|
if ((model() == EMSdevice::EMS_DEVICE_FLAG_BC400) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (isRC300() || (model() == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
if (!Helpers::value2number(value, set, 0, 1431)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
@@ -2580,6 +2587,7 @@ bool Thermostat::set_mode(const char * value, const int8_t id) {
|
|
|
|
|
break;
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC300:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC100:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_R3000:
|
|
|
|
|
mode_list = FL_(enum_mode);
|
|
|
|
|
break;
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_JUNKERS:
|
|
|
|
|
@@ -2703,6 +2711,7 @@ bool Thermostat::set_mode_n(const uint8_t mode, const int8_t id) {
|
|
|
|
|
break;
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC300:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC100:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_R3000:
|
|
|
|
|
offset = EMS_OFFSET_RCPLUSSet_mode;
|
|
|
|
|
set_mode_value = set_mode_value == 2 ? 0xFF : 0;
|
|
|
|
|
break;
|
|
|
|
|
@@ -2737,7 +2746,7 @@ bool Thermostat::set_mode_n(const uint8_t mode, const int8_t id) {
|
|
|
|
|
hc->mode = set_mode_value >> 1;
|
|
|
|
|
} else if (model_ == EMSdevice::EMS_DEVICE_FLAG_BC400) {
|
|
|
|
|
hc->mode_new = set_mode_value;
|
|
|
|
|
} else if (model_ == EMSdevice::EMS_DEVICE_FLAG_RC300 || model_ == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
} else if (model_ == EMSdevice::EMS_DEVICE_FLAG_RC300 || model_ == EMSdevice::EMS_DEVICE_FLAG_R3000 || model_ == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
hc->mode = set_mode_value == 0xFF ? 1 : 0;
|
|
|
|
|
} else if (model_ == EMSdevice::EMS_DEVICE_FLAG_JUNKERS) {
|
|
|
|
|
hc->mode = set_mode_value - 1;
|
|
|
|
|
@@ -2922,7 +2931,7 @@ bool Thermostat::set_reducemode(const char * value, const int8_t id) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
uint8_t set;
|
|
|
|
|
if (model() == EMSdevice::EMS_DEVICE_FLAG_BC400 || model() == EMSdevice::EMS_DEVICE_FLAG_RC300 || model() == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
if (isRC300() || model() == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
if (Helpers::value2enum(value, set, FL_(enum_reducemode1))) {
|
|
|
|
|
write_command(set_typeids[hc->hc()], 5, set + 1, set_typeids[hc->hc()]);
|
|
|
|
|
return true;
|
|
|
|
|
@@ -2960,7 +2969,7 @@ bool Thermostat::set_nofrostmode(const char * value, const int8_t id) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
uint8_t set;
|
|
|
|
|
if (model() == EMSdevice::EMS_DEVICE_FLAG_BC400 || model() == EMSdevice::EMS_DEVICE_FLAG_RC300 || model() == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
if (isRC300() || model() == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
if (Helpers::value2enum(value, set, FL_(enum_nofrostmode1))) {
|
|
|
|
|
write_command(curve_typeids[hc->hc()], 5, set + 1, curve_typeids[hc->hc()]);
|
|
|
|
|
return true;
|
|
|
|
|
@@ -3020,7 +3029,7 @@ bool Thermostat::set_controlmode(const char * value, const int8_t id) {
|
|
|
|
|
write_command(curve_typeids[hc->hc()], 0, set + 1, curve_typeids[hc->hc()]);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_BC400 || model() == EMSdevice::EMS_DEVICE_FLAG_RC300) {
|
|
|
|
|
} else if (isRC300()) {
|
|
|
|
|
if (Helpers::value2enum(value, set, FL_(enum_controlmode1))) {
|
|
|
|
|
write_command(curve_typeids[hc->hc()], 0, set + 1, curve_typeids[hc->hc()]);
|
|
|
|
|
return true;
|
|
|
|
|
@@ -3275,7 +3284,7 @@ bool Thermostat::set_program(const char * value, const int8_t id) {
|
|
|
|
|
write_command(timer_typeids[hc->hc()], 84, set, timer_typeids[hc->hc()]);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_BC400 || model() == EMSdevice::EMS_DEVICE_FLAG_RC300 || model() == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
} else if (isRC300() || model() == EMSdevice::EMS_DEVICE_FLAG_RC100) {
|
|
|
|
|
if (Helpers::value2enum(value, set, FL_(enum_progMode))) {
|
|
|
|
|
write_command(set_typeids[hc->hc()], 11, set + 1, set_typeids[hc->hc()]);
|
|
|
|
|
return true;
|
|
|
|
|
@@ -3419,7 +3428,7 @@ bool Thermostat::set_temperature(const float temperature, const uint8_t mode, co
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else if (model == EMSdevice::EMS_DEVICE_FLAG_BC400 || (model == EMSdevice::EMS_DEVICE_FLAG_RC300) || (model == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
} else if (isRC300() || (model == EMSdevice::EMS_DEVICE_FLAG_RC100)) {
|
|
|
|
|
validate_typeid = set_typeids[hc->hc()];
|
|
|
|
|
switch (mode) {
|
|
|
|
|
case HeatingCircuit::Mode::SUMMER:
|
|
|
|
|
@@ -3797,6 +3806,7 @@ void Thermostat::register_device_values() {
|
|
|
|
|
switch (this->model()) {
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC100:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC300:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_R3000:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_BC400:
|
|
|
|
|
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA,
|
|
|
|
|
&dateTime_,
|
|
|
|
|
@@ -4163,6 +4173,11 @@ void Thermostat::register_device_values() {
|
|
|
|
|
auto new_hc = std::make_shared<Thermostat::HeatingCircuit>(1, this->model()); // hc = 1
|
|
|
|
|
heating_circuits_.push_back(new_hc);
|
|
|
|
|
register_device_values_hc(new_hc);
|
|
|
|
|
// TODO also a dhw circuit...
|
|
|
|
|
auto new_dhw = std::make_shared<Thermostat::DhwCircuit>(0, 1);
|
|
|
|
|
dhw_circuits_.push_back(new_dhw);
|
|
|
|
|
// register the device values
|
|
|
|
|
register_device_values_dhw(new_dhw);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -4208,6 +4223,7 @@ void Thermostat::register_device_values_hc(std::shared_ptr<Thermostat::HeatingCi
|
|
|
|
|
break;
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC100:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC300:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_R3000:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_BC400:
|
|
|
|
|
if (model == EMSdevice::EMS_DEVICE_FLAG_BC400) {
|
|
|
|
|
register_device_value(tag, &hc->mode_new, DeviceValueType::ENUM, FL_(enum_mode2), FL_(mode), DeviceValueUOM::NONE, MAKE_CF_CB(set_mode));
|
|
|
|
|
@@ -4591,13 +4607,16 @@ void Thermostat::register_device_values_dhw(std::shared_ptr<Thermostat::DhwCircu
|
|
|
|
|
switch (this->model()) {
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC100:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_RC300:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_R3000:
|
|
|
|
|
case EMSdevice::EMS_DEVICE_FLAG_BC400:
|
|
|
|
|
register_device_value(tag, &dhw->wwSetTemp_, DeviceValueType::UINT8, FL_(wwSetTemp), DeviceValueUOM::DEGREES, MAKE_CF_CB(set_wwtemp));
|
|
|
|
|
if (model() == EMSdevice::EMS_DEVICE_FLAG_BC400) {
|
|
|
|
|
register_device_value(tag, &dhw->wwMode_, DeviceValueType::ENUM, FL_(enum_wwMode4), FL_(wwMode), DeviceValueUOM::NONE, MAKE_CF_CB(set_wwmode));
|
|
|
|
|
} else if (model() == EMSdevice::EMS_DEVICE_FLAG_R3000) {
|
|
|
|
|
register_device_value(tag, &dhw->wwMode_, DeviceValueType::ENUM, FL_(enum_wwMode5), FL_(wwMode), DeviceValueUOM::NONE, MAKE_CF_CB(set_wwmode));
|
|
|
|
|
} else {
|
|
|
|
|
register_device_value(tag, &dhw->wwMode_, DeviceValueType::ENUM, FL_(enum_wwMode), FL_(wwMode), DeviceValueUOM::NONE, MAKE_CF_CB(set_wwmode));
|
|
|
|
|
}
|
|
|
|
|
register_device_value(tag, &dhw->wwSetTemp_, DeviceValueType::UINT8, FL_(wwSetTemp), DeviceValueUOM::DEGREES, MAKE_CF_CB(set_wwtemp));
|
|
|
|
|
register_device_value(tag, &dhw->wwSetTempLow_, DeviceValueType::UINT8, FL_(wwSetTempLow), DeviceValueUOM::DEGREES, MAKE_CF_CB(set_wwtemplow));
|
|
|
|
|
register_device_value(tag, &dhw->wwCircMode_, DeviceValueType::ENUM, FL_(enum_wwCircMode), FL_(wwCircMode), DeviceValueUOM::NONE, MAKE_CF_CB(set_wwcircmode));
|
|
|
|
|
register_device_value(tag,
|
|
|
|
|
|