From c34018c02141359372af9b8ba21c02d52205204e Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Tue, 16 Jan 2024 09:03:18 +0100 Subject: [PATCH] Embedded climate to display the correct slider Partially solves #1613 Partially solves #1627 --- .../nspanel_esphome_addon_climate_base.yaml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/advanced/esphome/nspanel_esphome_addon_climate_base.yaml b/advanced/esphome/nspanel_esphome_addon_climate_base.yaml index 0801a63..6e4fd9d 100644 --- a/advanced/esphome/nspanel_esphome_addon_climate_base.yaml +++ b/advanced/esphome/nspanel_esphome_addon_climate_base.yaml @@ -117,16 +117,16 @@ script: float total_steps = (temp_max-temp_offset)/temp_step; set_climate->execute ( - thermostat_embedded->current_temperature, // current_temp - 0, // supported_features - thermostat_embedded->target_temperature, // target_temp - thermostat_embedded->target_temperature_high, // target_temp_high - thermostat_embedded->target_temperature_low, // target_temp_low - int(round(${temp_step}*10)), // temp_step - int(round(total_steps)), // total_steps //int(round((10*thermostat_embedded->target_temperature-temp_offset)/temp_step)), // slider_val - int(round(${temp_min}*10)), // temp_offset - "", // climate_icon - true // embedded_climate + thermostat_embedded->current_temperature, // current_temp + 0, // supported_features + ((${addon_climate_dual}) ? -999 : thermostat_embedded->target_temperature), // target_temp + ((${addon_climate_dual}) ? thermostat_embedded->target_temperature_high : -999), // target_temp_high + ((${addon_climate_dual}) ? thermostat_embedded->target_temperature_low : -999), // target_temp_low + int(round(${temp_step}*10)), // temp_step + int(round(total_steps)), // total_steps //int(round((10*thermostat_embedded->target_temperature-temp_offset)/temp_step)), // slider_val + int(round(${temp_min}*10)), // temp_offset + "", // climate_icon + true // embedded_climate ); // Update target temp icon