Visual improvements on climate page
- Add friendly name when embedded - Solves https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/995#discussioncomment-6891465 - Make disable icons a bit darker - Solves https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/995#discussioncomment-6893440 - Add space for page title in EU an US Land versions - Reset page timer when pressing/releasing on the slider - Partially solves #990
This commit is contained in:
@@ -271,6 +271,7 @@ api:
|
||||
{
|
||||
id(disp1).set_component_font_color("icon_state", page_icon_color);
|
||||
}
|
||||
if (page == "climate" and entity == "embedded_climate") id(addon_climate_set_climate_friendly_name).execute(page_label.c_str());
|
||||
ESP_LOGV("api.service.open_entity_settings_page", "Finished");
|
||||
|
||||
##### Service to play a rtttl tones #####
|
||||
@@ -991,7 +992,7 @@ text_sensor:
|
||||
});
|
||||
if (component=="currentpage")
|
||||
{
|
||||
ESP_LOGV("text_sensor.nspanelevent", "New page: %s", page.c_str());
|
||||
ESP_LOGD("text_sensor.nspanelevent", "New page: %s", page.c_str());
|
||||
ESP_LOGV("text_sensor.nspanelevent", "Trigger HA event");
|
||||
ha_event->fire_homeassistant_event("esphome.nspanel_ha_blueprint",
|
||||
{
|
||||
@@ -1826,6 +1827,7 @@ script:
|
||||
id(disp1).set_component_font_color(component.c_str(), 1530); // cyan
|
||||
break;
|
||||
}
|
||||
ESP_LOGV("script.update_climate_icon", "Finished");
|
||||
|
||||
##### ADD-ONS ############################################################
|
||||
##### Add-on - Climate #####
|
||||
@@ -1837,15 +1839,13 @@ script:
|
||||
then:
|
||||
# Reserved for Add-on Climate
|
||||
- lambda: |-
|
||||
ESP_LOGV("script.addon_climate_service_call", "Starting");
|
||||
ESP_LOGV("script.addon_climate_service_call", "Finished");
|
||||
ESP_LOGV("script.addon_climate_service_call", "Check for addon_climate");
|
||||
- id: addon_climate_update_page_home
|
||||
mode: restart
|
||||
then:
|
||||
# Reserved for Add-on Climate
|
||||
- lambda: |-
|
||||
ESP_LOGV("script.addon_climate_update_page_home", "Starting");
|
||||
ESP_LOGV("script.addon_climate_update_page_home", "Finished");
|
||||
ESP_LOGV("script.addon_climate_update_page_home", "Check for addon_climate");
|
||||
- id: addon_climate_set_climate
|
||||
mode: restart
|
||||
parameters:
|
||||
@@ -1853,9 +1853,8 @@ script:
|
||||
then:
|
||||
# Reserved for Add-on Climate
|
||||
- lambda: |-
|
||||
ESP_LOGV("script.addon_climate_set_climate", "Starting");
|
||||
ESP_LOGV("script.addon_climate_set_climate", "Check for addon_climate");
|
||||
ESP_LOGV("script.addon_climate_set_climate", "embedded_climate: %i", (embedded_climate) ? 1 : 0);
|
||||
ESP_LOGV("script.addon_climate_set_climate", "Finished");
|
||||
- id: addon_climate_global_settings
|
||||
mode: restart
|
||||
parameters:
|
||||
@@ -1863,12 +1862,20 @@ script:
|
||||
then:
|
||||
# Reserved for Add-on Climate
|
||||
- lambda: |-
|
||||
ESP_LOGV("script.addon_climate_global_settings", "Starting");
|
||||
ESP_LOGV("script.addon_climate_global_settings", "Finished");
|
||||
ESP_LOGV("script.addon_climate_global_settings", "Check for addon_climate");
|
||||
ESP_LOGV("script.addon_climate_global_settings", "embedded_climate: %i", (embedded_climate) ? 1 : 0);
|
||||
- id: addon_climate_update_page_climate
|
||||
mode: restart
|
||||
then:
|
||||
# Reserved for Add-on Climate
|
||||
- lambda: |-
|
||||
ESP_LOGV("script.addon_climate_update_page_climate", "Starting");
|
||||
ESP_LOGV("script.addon_climate_update_page_climate", "Finished");
|
||||
ESP_LOGV("script.addon_climate_update_page_climate", "Check for addon_climate");
|
||||
- id: addon_climate_set_climate_friendly_name
|
||||
mode: restart
|
||||
parameters:
|
||||
friendly_name: string
|
||||
then:
|
||||
# Reserved for Add-on Climate
|
||||
- lambda: |-
|
||||
ESP_LOGV("script.addon_climate_set_climate_friendly_name", "Check for addon_climate");
|
||||
ESP_LOGV("script.addon_climate_set_climate_friendly_name", "friendly_name: %s", friendly_name.c_str());
|
||||
|
||||
Reference in New Issue
Block a user