From be82afd77818e09f5384dad8243a7a04fd6e90e4 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 2 Feb 2026 18:52:21 +0100 Subject: [PATCH] add translated heat/eco modes to `mode_str_tpl` --- src/core/mqtt.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/mqtt.cpp b/src/core/mqtt.cpp index ea1e58f42..d559efcac 100644 --- a/src/core/mqtt.cpp +++ b/src/core/mqtt.cpp @@ -1377,15 +1377,20 @@ bool Mqtt::publish_ha_climate_config(const DeviceValue & dv, const bool has_room snprintf(mode_str_tpl, sizeof(mode_str_tpl), - "{%%if %s%%}off{%%elif %s=='%s'%%}heat{%%elif %s=='%s'%%}heat{%%elif %s=='%s'%%}off{%%elif %s=='%s'%%}off{%%else%%}auto{%%endif%%}", + "{%%if %s%%}off{%%elif %s=='%s'%%}heat{%%elif %s=='%s'%%}heat{%%elif %s=='%s'%%}heat{%%elif %s=='%s'%%}off{%%elif %s=='%s'%%}off{%%elif " + "%s=='%s'%%}off{%%else%%}auto{%%endif%%}", hc_mode_cond, hc_mode_s, Helpers::translated_word(FL_(manual)), hc_mode_s, Helpers::translated_word(FL_(day)), hc_mode_s, + Helpers::translated_word(FL_(heat)), + hc_mode_s, Helpers::translated_word(FL_(night)), hc_mode_s, + Helpers::translated_word(FL_(eco)), + hc_mode_s, Helpers::translated_word(FL_(off))); snprintf(name_s, sizeof(name_s), "%s%d", tagname, hc_num);