mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-03-14 05:36:34 +03:00
add translated heat/eco modes to mode_str_tpl
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user