mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
auxMaxTemp, pvRaise/Lower to Kelvin
This commit is contained in:
@@ -489,7 +489,7 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const
|
|||||||
DeviceValueType::UINT,
|
DeviceValueType::UINT,
|
||||||
DeviceValueNumOp::DV_NUMOP_MUL10,
|
DeviceValueNumOp::DV_NUMOP_MUL10,
|
||||||
FL_(auxMaxTemp),
|
FL_(auxMaxTemp),
|
||||||
DeviceValueUOM::DEGREES,
|
DeviceValueUOM::K,
|
||||||
MAKE_CF_CB(set_auxMaxTemp),
|
MAKE_CF_CB(set_auxMaxTemp),
|
||||||
0,
|
0,
|
||||||
10);
|
10);
|
||||||
@@ -2290,7 +2290,7 @@ bool Boiler::set_auxHeatMode(const char * value, const int8_t id) {
|
|||||||
|
|
||||||
bool Boiler::set_auxMaxTemp(const char * value, const int8_t id) {
|
bool Boiler::set_auxMaxTemp(const char * value, const int8_t id) {
|
||||||
float v;
|
float v;
|
||||||
if (Helpers::value2temperature(value, v)) {
|
if (Helpers::value2float(value, v)) {
|
||||||
write_command(0x491, 14, (uint8_t)(v * 10), 0x491);
|
write_command(0x491, 14, (uint8_t)(v * 10), 0x491);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1512,7 +1512,7 @@ bool Thermostat::set_tempDiffBoiler(const char * value, const int8_t id) {
|
|||||||
|
|
||||||
bool Thermostat::set_pvRaiseHeat(const char * value, const int8_t id) {
|
bool Thermostat::set_pvRaiseHeat(const char * value, const int8_t id) {
|
||||||
int v;
|
int v;
|
||||||
if (Helpers::value2temperature(value, v, true)) {
|
if (Helpers::value2number(value, v)) {
|
||||||
write_command(0x23E, 0, v, 0x23E);
|
write_command(0x23E, 0, v, 0x23E);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -1521,7 +1521,7 @@ bool Thermostat::set_pvRaiseHeat(const char * value, const int8_t id) {
|
|||||||
|
|
||||||
bool Thermostat::set_pvLowerCool(const char * value, const int8_t id) {
|
bool Thermostat::set_pvLowerCool(const char * value, const int8_t id) {
|
||||||
int v;
|
int v;
|
||||||
if (Helpers::value2temperature(value, v, true)) {
|
if (Helpers::value2number(value, v)) {
|
||||||
write_command(0x23E, 5, v, 0x23E);
|
write_command(0x23E, 5, v, 0x23E);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -3565,7 +3565,7 @@ void Thermostat::register_device_values() {
|
|||||||
&pvRaiseHeat_,
|
&pvRaiseHeat_,
|
||||||
DeviceValueType::INT,
|
DeviceValueType::INT,
|
||||||
FL_(pvRaiseHeat),
|
FL_(pvRaiseHeat),
|
||||||
DeviceValueUOM::DEGREES_R,
|
DeviceValueUOM::K,
|
||||||
MAKE_CF_CB(set_pvRaiseHeat),
|
MAKE_CF_CB(set_pvRaiseHeat),
|
||||||
0,
|
0,
|
||||||
5);
|
5);
|
||||||
@@ -3573,7 +3573,7 @@ void Thermostat::register_device_values() {
|
|||||||
&pvLowerCool_,
|
&pvLowerCool_,
|
||||||
DeviceValueType::INT,
|
DeviceValueType::INT,
|
||||||
FL_(pvLowerCool),
|
FL_(pvLowerCool),
|
||||||
DeviceValueUOM::DEGREES_R,
|
DeviceValueUOM::K,
|
||||||
MAKE_CF_CB(set_pvLowerCool),
|
MAKE_CF_CB(set_pvLowerCool),
|
||||||
-5,
|
-5,
|
||||||
0);
|
0);
|
||||||
|
|||||||
Reference in New Issue
Block a user