Remove climate-optimistic mode (#841)

* Remove climate-optimistic mode

* Remove `send_thermostat_cycle_state` service

* Remove sensor `Display Target Temperature`

* Remove `display_target_temperature`
This commit is contained in:
Edward Firmo
2023-05-26 11:49:20 +02:00
committed by GitHub
parent 3e0cd4a9bd
commit 5463e54926
2 changed files with 2 additions and 76 deletions

View File

@@ -311,32 +311,6 @@ api:
id(disp1).send_command_printf("page qrcode");
id(disp1).set_component_text_printf("qrcode.qrcode_value", "%s", qrdata.c_str());
#### Service to send thermostat cycle state - deprecated on v3.3.1 ####
#- service: send_thermostat_cycle_state
# variables:
# value: float
# then:
# - wait_until:
# binary_sensor.is_on: nextion_init
# - lambda: |-
# //ESP_LOGD("nextion", "thermostat sendig value %f", value);
# int v = int(2 * std::min(std::max(value - 13.5, 0.0), 5.0));
# int left = v + (v ? 19 : 16); // 16 is empty left.
# v = int(2 * std::min(std::max(value - 18.0, 0.0), 4.0));
# int mid = v + (v ? 29 : 17); // 17 is empty mid.
# v = int(2 * std::min(std::max(value - 21.5, 0.0), 5.5));
# int right = v + (v ? 37 : 18); // 18 is empty right.
# // sends the 3 images to the display
# //ESP_LOGD("nextion", "thermostat left %i", left);
# //ESP_LOGD("nextion", "thermostat mid %i", mid);
# //ESP_LOGD("nextion", "thermostat right %i", right);
# id(disp1).send_command_printf("climate_left.pic=%i", left);
# id(disp1).send_command_printf("climate_middle.pic=%i", mid);
# id(disp1).send_command_printf("climate_right.pic=%i", right);
# // send target-temp
# id(disp1).set_component_text_printf("target_temp", "%.1f", value);
# id(display_target_temp).publish_state(value);
#### Service to set climate target_temp ####
- service: set_climate_target_temp
variables:
@@ -348,7 +322,6 @@ api:
lambda: |-
id(disp1).set_component_value("climate.climateslider", target_temp);
id(disp1).set_component_text_printf("climate.target_temp", "%.1f", target_temp);
id(display_target_temp).publish_state(target_temp);
#### Service to set climate state ####
- service: set_climate
@@ -403,6 +376,7 @@ api:
} else {
id(disp1).set_component_text_printf(btnbri.c_str(), " ");
}
##### SERVICE TO WAKE UP THE DISPLAY #####
- service: wake_up_display
variables:
@@ -645,13 +619,6 @@ sensor:
# - lambda: id(disp1).set_component_text_printf("home.current_temp", "%.1f°", id(temp_nspanel).state); # onboard temp (thermostat temp) to home page.
# - lambda: id(disp1).set_component_text_printf("climate.current_temp", "%.1f", id(temp_nspanel).state);
##### current value of page-climate target_temp #####
- name: ${device_name} Display Target Temperature
platform: template
id: display_target_temp
lambda: return {};
update_interval: 10s
###### Display Brightness GET VALUE FROM NSPanel SLIDER #####
- name: ${device_name} brightness Slider
platform: nextion