From f6e3cf6b8fe572e98357c103fea8042bf14253ef Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Sat, 4 Nov 2023 16:31:34 +0000 Subject: [PATCH] Current temp and presets --- components/BalboaGL/climate/BalboaGLClimate.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/BalboaGL/climate/BalboaGLClimate.cpp b/components/BalboaGL/climate/BalboaGLClimate.cpp index c108a77..2669d3f 100644 --- a/components/BalboaGL/climate/BalboaGLClimate.cpp +++ b/components/BalboaGL/climate/BalboaGLClimate.cpp @@ -341,6 +341,12 @@ void BalboaGLClimate::setup() { this->fan_mode = climate::CLIMATE_FAN_OFF; this->swing_mode = climate::CLIMATE_SWING_OFF; this->traits_.set_supports_action(false); + set_supports_current_temperature(true); + this->traits_.add_supported_custom_preset(std::string("STD")); + this->traits_.add_supported_custom_preset(std::string("ECO")); + this->traits_.add_supported_custom_preset(std::string("Sleep")); + this->traits_.add_supported_custom_preset(std::string("UNKNOWN")); + this->visual_min_temperature_override_ = 26; this->visual_max_temperature_override_ = 40; this->visual_target_temperature_step_override_ = 0.5;