diff --git a/advanced/esphome/nspanel_esphome_core.yaml b/advanced/esphome/nspanel_esphome_core.yaml index a8c29b1..8569527 100644 --- a/advanced/esphome/nspanel_esphome_core.yaml +++ b/advanced/esphome/nspanel_esphome_core.yaml @@ -2476,20 +2476,20 @@ script: - lambda: |- if (id(is_uploading_tft)) set_climate->stop(); static const char *const TAG = "script.set_climate"; - ESP_LOGV(TAG, "Starting"); - ESP_LOGV(TAG, " current_temp: %f", current_temp); - ESP_LOGV(TAG, " supported_features: %i", supported_features); - ESP_LOGV(TAG, " supported_hvac_modes: %i", supported_hvac_modes); - ESP_LOGV(TAG, " target_temp: %f", target_temp); - ESP_LOGV(TAG, " target_temp_high: %f", target_temp_high); - ESP_LOGV(TAG, " target_temp_low: %f", target_temp_low); - ESP_LOGV(TAG, " temp_step: %d", temp_step); - ESP_LOGV(TAG, " total_steps: %d", total_steps); - ESP_LOGV(TAG, " temp_offset: %i", temp_offset); - ESP_LOGV(TAG, " climate_icon: %s", climate_icon.c_str()); - ESP_LOGV(TAG, " embedded_climate: %s", embedded_climate ? "True" : "False"); + ESP_LOGD(TAG, "Starting"); + ESP_LOGD(TAG, " current_temp: %f", current_temp); + ESP_LOGD(TAG, " supported_features: %i", supported_features); + ESP_LOGD(TAG, " supported_hvac_modes: %i", supported_hvac_modes); + ESP_LOGD(TAG, " target_temp: %f", target_temp); + ESP_LOGD(TAG, " target_temp_high: %f", target_temp_high); + ESP_LOGD(TAG, " target_temp_low: %f", target_temp_low); + ESP_LOGD(TAG, " temp_step: %d", temp_step); + ESP_LOGD(TAG, " total_steps: %d", total_steps); + ESP_LOGD(TAG, " temp_offset: %i", temp_offset); + ESP_LOGD(TAG, " climate_icon: %s", climate_icon.c_str()); + ESP_LOGD(TAG, " embedded_climate: %s", embedded_climate ? "True" : "False"); if (current_page->state == "climate") { - ESP_LOGV(TAG, "Page climate is visible"); + ESP_LOGD(TAG, "Page climate is visible"); disp1->send_command_printf("climateslider.maxval=%i", total_steps); disp1->set_component_value("temp_offset", temp_offset); disp1->set_component_value("temp_step", temp_step); @@ -2532,7 +2532,7 @@ script: } disp1->set_component_value("embedded", (embedded_climate) ? 1 : 0); } - ESP_LOGV(TAG, "Finished"); + ESP_LOGD(TAG, "Finished"); - id: set_component_color mode: queued diff --git a/nspanel_blueprint.yaml b/nspanel_blueprint.yaml index 171d5f5..2553188 100644 --- a/nspanel_blueprint.yaml +++ b/nspanel_blueprint.yaml @@ -8924,6 +8924,9 @@ action: target_temp: '{{ state_attr(climate_entity, "temperature") | float(-999) | round(1) if is_target_temperature else -999 }}' target_temp_high: '{{ state_attr(climate_entity, "target_temp_high") | float(-999) | round(1) if is_target_temperature_range else -999 }}' target_temp_low: '{{ state_attr(climate_entity, "target_temp_low") | float(-999) | round(1) if is_target_temperature_range else -999 }}' + - variables: + is_target_temperature: '{{ is_target_temperature and target_temp > -999 }}' + is_target_temperature_range: '{{ is_target_temperature_range and target_temp_high > -999 and target_temp_low > -999 }}' temp_step: > {% set target_temp_step = state_attr(climate_entity, "target_temp_step") %} {% if not is_number(target_temp_step) %}