Climate 2-setpoints preparation
This commit is contained in:
@@ -134,13 +134,13 @@ script:
|
||||
disp1->hide_component("button06");
|
||||
disp1->show_component("button07"); //Off
|
||||
// Set buttons colors
|
||||
disp1->set_component_font_color("climate.button01_icon", 6339);
|
||||
disp1->set_component_font_color("climate.button02_icon", 6339);
|
||||
disp1->set_component_font_color("climate.button03_icon", (thermostat_embedded->mode==climate::CLIMATE_MODE_HEAT) ? 64164 : ((${addon_climate_heat}) ? 48631 : 6339));
|
||||
disp1->set_component_font_color("climate.button04_icon", (thermostat_embedded->mode==climate::CLIMATE_MODE_COOL) ? 1055 : ((${addon_climate_cool}) ? 48631 : 6339));
|
||||
disp1->set_component_font_color("climate.button05_icon", 6339);
|
||||
disp1->set_component_font_color("climate.button06_icon", 6339);
|
||||
disp1->set_component_font_color("climate.button07_icon", (thermostat_embedded->mode==climate::CLIMATE_MODE_OFF) ? 10597 : 35921);
|
||||
disp1->set_component_font_color("climate.button01", 6339);
|
||||
disp1->set_component_font_color("climate.button02", 6339);
|
||||
disp1->set_component_font_color("climate.button03", (thermostat_embedded->mode==climate::CLIMATE_MODE_HEAT) ? 64164 : ((${addon_climate_heat}) ? 48631 : 6339));
|
||||
disp1->set_component_font_color("climate.button04", (thermostat_embedded->mode==climate::CLIMATE_MODE_COOL) ? 1055 : ((${addon_climate_cool}) ? 48631 : 6339));
|
||||
disp1->set_component_font_color("climate.button05", 6339);
|
||||
disp1->set_component_font_color("climate.button06", 6339);
|
||||
disp1->set_component_font_color("climate.button07", (thermostat_embedded->mode==climate::CLIMATE_MODE_OFF) ? 10597 : 35921);
|
||||
}
|
||||
|
||||
- id: !extend addon_climate_set_climate_friendly_name
|
||||
|
||||
@@ -2370,13 +2370,13 @@ script:
|
||||
static const char *const TAG = "script.page_climate";
|
||||
if (construct_page) {
|
||||
ESP_LOGV(TAG, "Construct climate page");
|
||||
disp1->set_component_text_printf("climate.button01_icon", "%s", "\uEE8D"); //mdi:calendar-sync
|
||||
disp1->set_component_text_printf("climate.button02_icon", "%s", "\uE069"); //mdi:autorenew
|
||||
disp1->set_component_text_printf("climate.button03_icon", "%s", "\uE237"); //mdi:fire
|
||||
disp1->set_component_text_printf("climate.button04_icon", "%s", "\uE716"); //mdi:snowflake
|
||||
disp1->set_component_text_printf("climate.button05_icon", "%s", "\uE58D"); //mdi:water-percent
|
||||
disp1->set_component_text_printf("climate.button06_icon", "%s", "\uE20F"); //mdi:fan
|
||||
disp1->set_component_text_printf("climate.button07_icon", "%s", "\uE424"); //mdi:power
|
||||
disp1->set_component_text_printf("climate.button01", "%s", "\uEE8D"); //mdi:calendar-sync
|
||||
disp1->set_component_text_printf("climate.button02", "%s", "\uE069"); //mdi:autorenew
|
||||
disp1->set_component_text_printf("climate.button03", "%s", "\uE237"); //mdi:fire
|
||||
disp1->set_component_text_printf("climate.button04", "%s", "\uE716"); //mdi:snowflake
|
||||
disp1->set_component_text_printf("climate.button05", "%s", "\uE58D"); //mdi:water-percent
|
||||
disp1->set_component_text_printf("climate.button06", "%s", "\uE20F"); //mdi:fan
|
||||
disp1->set_component_text_printf("climate.button07", "%s", "\uE424"); //mdi:power
|
||||
}
|
||||
addon_climate_update_page_climate->execute();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user