Water temp 200 shown as 80 hack.

This commit is contained in:
Martin Polehla
2024-03-13 11:29:05 +01:00
parent e6fbece988
commit 1086945fe2
3 changed files with 10 additions and 1 deletions

View File

@@ -5,10 +5,11 @@ namespace esphome {
namespace truma_inetbox {
static const char *const TAG = "truma_inetbox.water_climate";
void TrumaWaterClimate::setup() {
this->parent_->get_heater()->add_on_message_callback([this](const StatusFrameHeater *status_heater) {
// Publish updated state
this->target_temperature = temp_code_to_decimal(status_heater->target_temp_water);
this->target_temperature = water_temp_200_fix(temp_code_to_decimal(status_heater->target_temp_water));
this->current_temperature = temp_code_to_decimal(status_heater->current_temp_water);
this->mode = (status_heater->target_temp_water == TargetTemp::TARGET_TEMP_OFF) ? climate::CLIMATE_MODE_OFF
: climate::CLIMATE_MODE_HEAT;