Climate page - Performance & bug fix (#854)
* Climate page - Performance & bug fix Performance improvement: - Moved icon definition to TFT, so only buttons related to supported hvac modes will be updated and just icon color and link enabling is sent. Bug fixing: - Removed incorrect button name on buttons update Others: - Merged `set_climate_target_temp` into `set_climate` services - Update current temperature when target temperature is updated * Removed reference to `set_climate_target_temp` Removed unused entry from blueprint. * Removed service `set_climate_target_temp` * Update `nspanel_eu` - Set climate buttons on the TFT. - Bump version to 3.3.2 (temporarily, to align with ESPHome and Blueprint) * Update `nspanel_eu_code`
This commit is contained in:
@@ -311,16 +311,19 @@ api:
|
||||
id(disp1).send_command_printf("page qrcode");
|
||||
id(disp1).set_component_text_printf("qrcode.qrcode_value", "%s", qrdata.c_str());
|
||||
|
||||
#### Service to set climate target_temp ####
|
||||
- service: set_climate_target_temp
|
||||
#### Service to set climate state ####
|
||||
- service: set_climate
|
||||
variables:
|
||||
current_temp: float
|
||||
target_temp: int
|
||||
temp_step: int
|
||||
total_steps: int
|
||||
slider_val: int
|
||||
temp_offset: int
|
||||
then:
|
||||
- wait_until:
|
||||
binary_sensor.is_on: nextion_init
|
||||
- &set_climate_target_temp
|
||||
lambda: |-
|
||||
- lambda: |-
|
||||
if (target_temp > -999)
|
||||
{
|
||||
id(disp1).set_component_value("climateslider", slider_val);
|
||||
@@ -341,20 +344,6 @@ api:
|
||||
id(disp1).hide_component("decrease_temp");
|
||||
id(disp1).hide_component("increase_temp");
|
||||
}
|
||||
|
||||
#### Service to set climate state ####
|
||||
- service: set_climate
|
||||
variables:
|
||||
current_temp: float
|
||||
target_temp: int
|
||||
temp_step: int
|
||||
total_steps: int
|
||||
slider_val: int
|
||||
temp_offset: int
|
||||
then:
|
||||
- wait_until:
|
||||
binary_sensor.is_on: nextion_init
|
||||
- *set_climate_target_temp
|
||||
- lambda: |-
|
||||
id(disp1).send_command_printf("climateslider.maxval=%i", total_steps);
|
||||
id(disp1).set_component_value("temp_offset", temp_offset);
|
||||
|
||||
Reference in New Issue
Block a user