From b4994fdf20e2206d94b95e85c0c82e955ac97de4 Mon Sep 17 00:00:00 2001 From: Josh Benner Date: Wed, 17 May 2023 21:59:51 -0400 Subject: [PATCH] Use Automatic instead of Auto fan mode to avoid HA sending built-in auto --- components/daikin_s21/climate/daikin_s21_climate.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/daikin_s21/climate/daikin_s21_climate.cpp b/components/daikin_s21/climate/daikin_s21_climate.cpp index 5820122..9e80cf0 100644 --- a/components/daikin_s21/climate/daikin_s21_climate.cpp +++ b/components/daikin_s21/climate/daikin_s21_climate.cpp @@ -37,7 +37,7 @@ climate::ClimateTraits DaikinS21Climate::traits() { climate::CLIMATE_MODE_COOL, climate::CLIMATE_MODE_HEAT, climate::CLIMATE_MODE_FAN_ONLY, climate::CLIMATE_MODE_DRY}); - traits.set_supported_custom_fan_modes({"Auto", "1", "2", "3", "4", "5"}); + traits.set_supported_custom_fan_modes({"Automatic", "1", "2", "3", "4", "5"}); traits.set_supported_swing_modes({ climate::CLIMATE_SWING_OFF, @@ -100,12 +100,12 @@ const std::string DaikinS21Climate::d2e_fan_mode(DaikinFanMode mode) { return "5"; case DaikinFanMode::Auto: default: - return "Auto"; + return "Automatic"; } } DaikinFanMode DaikinS21Climate::e2d_fan_mode(std::string mode) { - if (mode == "Auto") + if (mode == "Automatic") return DaikinFanMode::Auto; if (mode == "1") return DaikinFanMode::Speed1; @@ -186,7 +186,7 @@ void DaikinS21Climate::update() { void DaikinS21Climate::control(const climate::ClimateCall &call) { float setpoint = this->target_temperature; climate::ClimateMode climate_mode = this->mode; - std::string fan_mode = this->custom_fan_mode.value_or("Auto"); + std::string fan_mode = this->custom_fan_mode.value_or("Automatic"); bool set_basic = false; if (call.get_mode().has_value()) {