Clean-up add-ons engine
This commit is contained in:
@@ -46,12 +46,12 @@ climate:
|
|||||||
on_boot_restore_from: memory
|
on_boot_restore_from: memory
|
||||||
internal: false
|
internal: false
|
||||||
on_state:
|
on_state:
|
||||||
- logger.log: Climate state changed - Start
|
- lambda: |-
|
||||||
- script.execute:
|
static const char *const TAG = "climate.thermostat_embedded.on_state";
|
||||||
id: page_climate
|
ESP_LOGD(TAG, "Starting");
|
||||||
construct_page: false
|
page_climate->execute();
|
||||||
- script.execute: addon_climate_update_page_home
|
page_home->execute();
|
||||||
- logger.log: Climate state changed - End
|
ESP_LOGD(TAG, "Finished");
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
##### Is embedded thermostat visible on climate page? #####
|
##### Is embedded thermostat visible on climate page? #####
|
||||||
@@ -75,17 +75,6 @@ switch:
|
|||||||
optimistic: true
|
optimistic: true
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: !extend addon_climate_update_page_home
|
|
||||||
mode: restart
|
|
||||||
then:
|
|
||||||
- lambda: |-
|
|
||||||
// Update home.climate_entity variable
|
|
||||||
detailed_entity->publish_state((id(is_embedded_thermostat)) ? "embedded_climate" : "");
|
|
||||||
disp1->set_component_value("climate.embedded", (id(is_embedded_thermostat)) ? 1 : 0);
|
|
||||||
// Update chips
|
|
||||||
if (id(is_embedded_thermostat))
|
|
||||||
id(update_climate_icon).execute("home.icon_top_03", int(thermostat_embedded->action), int(thermostat_embedded->mode));
|
|
||||||
|
|
||||||
- id: !extend addon_climate_service_call
|
- id: !extend addon_climate_service_call
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
@@ -98,10 +87,16 @@ script:
|
|||||||
call.set_mode(value);
|
call.set_mode(value);
|
||||||
call.perform();
|
call.perform();
|
||||||
|
|
||||||
- id: !extend addon_climate_set_climate
|
- id: !extend global_settings
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(is_addon_climate_visible) = embedded_climate;
|
id(addon_climate_friendly_name) = embedded_climate_friendly_name;
|
||||||
|
|
||||||
|
- id: !extend open_entity_settings_page
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
if (page == "climate" and entity == "embedded_climate")
|
||||||
|
id(addon_climate_friendly_name) = page_label;
|
||||||
|
|
||||||
- id: !extend page_climate
|
- id: !extend page_climate
|
||||||
then:
|
then:
|
||||||
@@ -146,7 +141,23 @@ script:
|
|||||||
disp1->set_component_font_color("climate.button07", (thermostat_embedded->mode==climate::CLIMATE_MODE_OFF) ? 10597 : 35921);
|
disp1->set_component_font_color("climate.button07", (thermostat_embedded->mode==climate::CLIMATE_MODE_OFF) ? 10597 : 35921);
|
||||||
}
|
}
|
||||||
|
|
||||||
- id: !extend addon_climate_set_climate_friendly_name
|
- id: !extend page_changed
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(addon_climate_friendly_name) = friendly_name;
|
id(is_addon_climate_visible) = (page == "climate" and detailed_entity->state == "embedded_climate");
|
||||||
|
|
||||||
|
- id: !extend page_home
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
// Update home.climate_entity variable
|
||||||
|
detailed_entity->publish_state((id(is_embedded_thermostat)) ? "embedded_climate" : "");
|
||||||
|
disp1->set_component_value("climate.embedded", (id(is_embedded_thermostat)) ? 1 : 0);
|
||||||
|
// Update chips
|
||||||
|
if (id(is_embedded_thermostat))
|
||||||
|
id(update_climate_icon).execute("home.icon_top_03", int(thermostat_embedded->action), int(thermostat_embedded->mode));
|
||||||
|
|
||||||
|
- id: !extend set_climate
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
if (current_page->state == "climate")
|
||||||
|
id(is_addon_climate_visible) = embedded_climate;
|
||||||
@@ -312,83 +312,22 @@ api:
|
|||||||
temperature_unit_is_fahrenheit: bool
|
temperature_unit_is_fahrenheit: bool
|
||||||
mui_please_confirm: string
|
mui_please_confirm: string
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- script.execute:
|
||||||
static const char *const TAG = "service.global_settings";
|
id: global_settings
|
||||||
// Blueprint version
|
blueprint_version: !lambda "return blueprint_version;"
|
||||||
ESP_LOGV(TAG, "Check Blueprint version");
|
relay1_local_control: !lambda "return relay1_local_control;"
|
||||||
id(version_blueprint) = blueprint_version;
|
relay1_icon: !lambda "return relay1_icon;"
|
||||||
check_versions->execute();
|
relay1_icon_color: !lambda "return relay1_icon_color;"
|
||||||
|
relay1_fallback: !lambda "return relay1_fallback;"
|
||||||
// Relays
|
relay2_local_control: !lambda "return relay2_local_control;"
|
||||||
ESP_LOGV(TAG, "Setup relays");
|
relay2_icon: !lambda "return relay2_icon;"
|
||||||
relay1_local->publish_state(relay1_local_control);
|
relay2_icon_color: !lambda "return relay2_icon_color;"
|
||||||
relay2_local->publish_state(relay2_local_control);
|
relay2_fallback: !lambda "return relay2_fallback;"
|
||||||
id(relay_1_fallback) = relay1_fallback;
|
embedded_climate: !lambda "return embedded_climate;"
|
||||||
id(relay_2_fallback) = relay2_fallback;
|
embedded_climate_friendly_name: !lambda "return embedded_climate_friendly_name;"
|
||||||
disp1->set_component_font_color("home.icon_top_01", relay1_icon_color);
|
embedded_indoor_temperature: !lambda "return embedded_indoor_temperature;"
|
||||||
disp1->set_component_font_color("home.icon_top_02", relay2_icon_color);
|
temperature_unit_is_fahrenheit: !lambda "return temperature_unit_is_fahrenheit;"
|
||||||
disp1->set_component_text_printf("home.icon_top_01", "%s", relay1_icon.c_str());
|
mui_please_confirm: !lambda "return mui_please_confirm;"
|
||||||
disp1->set_component_text_printf("home.icon_top_02", "%s", relay2_icon.c_str());
|
|
||||||
id(home_relay1_icon) = relay1_icon.c_str();
|
|
||||||
id(home_relay2_icon) = relay2_icon.c_str();
|
|
||||||
id(home_relay1_icon_color) = relay1_icon_color;
|
|
||||||
id(home_relay2_icon_color) = relay2_icon_color;
|
|
||||||
|
|
||||||
// Embedded thermostat
|
|
||||||
ESP_LOGV(TAG, "Load embedded thermostat");
|
|
||||||
id(is_embedded_thermostat) = embedded_climate;
|
|
||||||
addon_climate_set_climate_friendly_name->execute(embedded_climate_friendly_name.c_str());
|
|
||||||
|
|
||||||
// Indoor temperature
|
|
||||||
ESP_LOGV(TAG, "Set indoor temperature");
|
|
||||||
id(embedded_indoor_temp) = embedded_indoor_temperature;
|
|
||||||
id(temp_unit_fahrenheit) = temperature_unit_is_fahrenheit;
|
|
||||||
display_embedded_temp->execute();
|
|
||||||
|
|
||||||
// Confirm page
|
|
||||||
ESP_LOGV(TAG, "Setup confirm page");
|
|
||||||
display_wrapped_text->execute("confirm.title", mui_please_confirm.c_str(), 15);
|
|
||||||
|
|
||||||
// Update home page
|
|
||||||
ESP_LOGV(TAG, "Update home page");
|
|
||||||
page_home->execute();
|
|
||||||
|
|
||||||
ESP_LOGV(TAG, "Current page: %s", current_page->state.c_str());
|
|
||||||
|
|
||||||
- if:
|
|
||||||
condition:
|
|
||||||
- text_sensor.state: # Is boot page visible?
|
|
||||||
id: current_page
|
|
||||||
state: boot
|
|
||||||
then:
|
|
||||||
- lambda: |-
|
|
||||||
ESP_LOGV("service.global_settings", "Boot page is visible");
|
|
||||||
disp1->set_component_text_printf("boot.bluep_version", "%s", blueprint_version.c_str());
|
|
||||||
- wait_until:
|
|
||||||
condition:
|
|
||||||
- not:
|
|
||||||
- text_sensor.state: # Is boot page visible?
|
|
||||||
id: current_page
|
|
||||||
state: 'boot'
|
|
||||||
timeout: 2s
|
|
||||||
- if:
|
|
||||||
condition:
|
|
||||||
- text_sensor.state: # Avoid this being called twice by multiple boot triggers
|
|
||||||
id: current_page
|
|
||||||
state: 'boot'
|
|
||||||
then:
|
|
||||||
- lambda: |-
|
|
||||||
ESP_LOGV("service.global_settings", "Boot page still visible");
|
|
||||||
- if:
|
|
||||||
condition:
|
|
||||||
switch.is_on: notification_sound
|
|
||||||
then:
|
|
||||||
- rtttl.play:
|
|
||||||
rtttl: 'two short:d=4,o=5,b=100:16e6,16e6'
|
|
||||||
- lambda: |-
|
|
||||||
ESP_LOGD("service.global_settings", "Jump to wake-up page: %s", wakeup_page_name->state.c_str());
|
|
||||||
disp1->goto_page(wakeup_page_name->state.c_str());
|
|
||||||
timer_reset_all->execute(wakeup_page_name->state.c_str());
|
|
||||||
|
|
||||||
##### Service to show a notification-message on the screen #####
|
##### Service to show a notification-message on the screen #####
|
||||||
- service: notification_show
|
- service: notification_show
|
||||||
@@ -427,29 +366,14 @@ api:
|
|||||||
entity: string
|
entity: string
|
||||||
back_page: string
|
back_page: string
|
||||||
then:
|
then:
|
||||||
- lambda: |-
|
- script.execute:
|
||||||
static const char *const TAG = "service.open_entity_settings_page";
|
id: open_entity_settings_page
|
||||||
|
page: !lambda "return page;"
|
||||||
detailed_entity->publish_state(entity);
|
page_label: !lambda "return page_label;"
|
||||||
if (page == "alarm_control_panel") page = "alarm";
|
page_icon: !lambda "return page_icon;"
|
||||||
std::string cmd_page = std::string("page ") + page.c_str();
|
page_icon_color: !lambda "return page_icon_color;"
|
||||||
disp1->send_command_printf(cmd_page.c_str());
|
entity: !lambda "return entity;"
|
||||||
if (page_label.find("\\r") != std::string::npos) {
|
back_page: !lambda "return back_page;"
|
||||||
page_label = page_label.replace(page_label.find("\\r"), 2, " ");
|
|
||||||
}
|
|
||||||
disp1->set_component_text_printf("page_label", "%s", page_label.c_str());
|
|
||||||
set_page_id->execute("back_page_id", back_page.c_str());
|
|
||||||
if (page == "climate")
|
|
||||||
{
|
|
||||||
if (entity == "embedded_climate") addon_climate_set_climate_friendly_name->execute(page_label.c_str());
|
|
||||||
disp1->set_component_value("embedded", (entity == "embedded_climate") ? 1 : 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ((page_icon != std::string()) and (page_icon != ""))
|
|
||||||
disp1->set_component_text_printf("icon_state", "%s", page_icon.c_str());
|
|
||||||
set_component_color->execute("icon_state", page_icon_color);
|
|
||||||
}
|
|
||||||
|
|
||||||
# Service to show a QR code on the display (ex. for WiFi password)
|
# Service to show a QR code on the display (ex. for WiFi password)
|
||||||
- service: qrcode
|
- service: qrcode
|
||||||
@@ -1440,7 +1364,7 @@ text_sensor:
|
|||||||
then:
|
then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
static const char *const TAG = "text_sensor.disp1_nspanel_event";
|
static const char *const TAG = "text_sensor.disp1_nspanel_event";
|
||||||
ESP_LOGE(TAG, "Starting");
|
ESP_LOGW(TAG, "Starting");
|
||||||
DynamicJsonDocument doc(1024);
|
DynamicJsonDocument doc(1024);
|
||||||
deserializeJson(doc, x);
|
deserializeJson(doc, x);
|
||||||
std::string page = doc["page"];
|
std::string page = doc["page"];
|
||||||
@@ -1448,10 +1372,10 @@ text_sensor:
|
|||||||
if (not (component == "currentpage" and (page == "screensaver" or page == "home"))) timer_reset_all->execute(page.c_str());
|
if (not (component == "currentpage" and (page == "screensaver" or page == "home"))) timer_reset_all->execute(page.c_str());
|
||||||
std::string value = doc["value"];
|
std::string value = doc["value"];
|
||||||
std::string entity = detailed_entity->state.c_str(); // doc["entity"];
|
std::string entity = detailed_entity->state.c_str(); // doc["entity"];
|
||||||
ESP_LOGE(TAG, "page: %s", page.c_str());
|
ESP_LOGW(TAG, "page: %s", page.c_str());
|
||||||
ESP_LOGE(TAG, "component: %s", component.c_str());
|
ESP_LOGW(TAG, "component: %s", component.c_str());
|
||||||
ESP_LOGE(TAG, "value: %s", value.c_str());
|
ESP_LOGW(TAG, "value: %s", value.c_str());
|
||||||
ESP_LOGE(TAG, "entity: %s", entity.c_str());
|
ESP_LOGW(TAG, "entity: %s", entity.c_str());
|
||||||
auto ha_event = new esphome::api::CustomAPIDevice();
|
auto ha_event = new esphome::api::CustomAPIDevice();
|
||||||
ha_event->fire_homeassistant_event("esphome.nspanel_ha_blueprint",
|
ha_event->fire_homeassistant_event("esphome.nspanel_ha_blueprint",
|
||||||
{
|
{
|
||||||
@@ -1616,19 +1540,6 @@ script:
|
|||||||
key: string
|
key: string
|
||||||
value: string
|
value: string
|
||||||
then: # Reserved for Add-on Climate
|
then: # Reserved for Add-on Climate
|
||||||
- id: addon_climate_set_climate
|
|
||||||
mode: restart
|
|
||||||
parameters:
|
|
||||||
embedded_climate: bool
|
|
||||||
then: # Reserved for Add-on Climate
|
|
||||||
- id: addon_climate_set_climate_friendly_name
|
|
||||||
mode: restart
|
|
||||||
parameters:
|
|
||||||
friendly_name: string
|
|
||||||
then: # Reserved for Add-on Climate
|
|
||||||
- id: addon_climate_update_page_home
|
|
||||||
mode: restart
|
|
||||||
then: # Reserved for Add-on Climate
|
|
||||||
|
|
||||||
- id: boot_sequence
|
- id: boot_sequence
|
||||||
mode: restart
|
mode: restart
|
||||||
@@ -1825,6 +1736,104 @@ script:
|
|||||||
id: tf_uart
|
id: tf_uart
|
||||||
data: [0xFF, 0xFF, 0xFF]
|
data: [0xFF, 0xFF, 0xFF]
|
||||||
|
|
||||||
|
- id: global_settings
|
||||||
|
mode: restart
|
||||||
|
parameters:
|
||||||
|
blueprint_version: string
|
||||||
|
relay1_local_control: bool
|
||||||
|
relay1_icon: string
|
||||||
|
relay1_icon_color: int
|
||||||
|
relay1_fallback: bool
|
||||||
|
relay2_local_control: bool
|
||||||
|
relay2_icon: string
|
||||||
|
relay2_icon_color: int
|
||||||
|
relay2_fallback: bool
|
||||||
|
embedded_climate: bool
|
||||||
|
embedded_climate_friendly_name: string
|
||||||
|
embedded_indoor_temperature: bool
|
||||||
|
temperature_unit_is_fahrenheit: bool
|
||||||
|
mui_please_confirm: string
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
static const char *const TAG = "script.global_settings";
|
||||||
|
// Blueprint version
|
||||||
|
ESP_LOGV(TAG, "Check Blueprint version");
|
||||||
|
id(version_blueprint) = blueprint_version;
|
||||||
|
check_versions->execute();
|
||||||
|
|
||||||
|
// Relays
|
||||||
|
ESP_LOGV(TAG, "Setup relays");
|
||||||
|
relay1_local->publish_state(relay1_local_control);
|
||||||
|
relay2_local->publish_state(relay2_local_control);
|
||||||
|
id(relay_1_fallback) = relay1_fallback;
|
||||||
|
id(relay_2_fallback) = relay2_fallback;
|
||||||
|
disp1->set_component_font_color("home.icon_top_01", relay1_icon_color);
|
||||||
|
disp1->set_component_font_color("home.icon_top_02", relay2_icon_color);
|
||||||
|
disp1->set_component_text_printf("home.icon_top_01", "%s", relay1_icon.c_str());
|
||||||
|
disp1->set_component_text_printf("home.icon_top_02", "%s", relay2_icon.c_str());
|
||||||
|
id(home_relay1_icon) = relay1_icon.c_str();
|
||||||
|
id(home_relay2_icon) = relay2_icon.c_str();
|
||||||
|
id(home_relay1_icon_color) = relay1_icon_color;
|
||||||
|
id(home_relay2_icon_color) = relay2_icon_color;
|
||||||
|
|
||||||
|
// Embedded thermostat
|
||||||
|
ESP_LOGV(TAG, "Load embedded thermostat");
|
||||||
|
id(is_embedded_thermostat) = embedded_climate;
|
||||||
|
|
||||||
|
// Indoor temperature
|
||||||
|
ESP_LOGV(TAG, "Set indoor temperature");
|
||||||
|
id(embedded_indoor_temp) = embedded_indoor_temperature;
|
||||||
|
id(temp_unit_fahrenheit) = temperature_unit_is_fahrenheit;
|
||||||
|
display_embedded_temp->execute();
|
||||||
|
|
||||||
|
// Confirm page
|
||||||
|
ESP_LOGV(TAG, "Setup confirm page");
|
||||||
|
display_wrapped_text->execute("confirm.title", mui_please_confirm.c_str(), 15);
|
||||||
|
|
||||||
|
// Update home page
|
||||||
|
ESP_LOGV(TAG, "Update home page");
|
||||||
|
page_home->execute();
|
||||||
|
|
||||||
|
ESP_LOGV(TAG, "Current page: %s", current_page->state.c_str());
|
||||||
|
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
- text_sensor.state: # Is boot page visible?
|
||||||
|
id: current_page
|
||||||
|
state: boot
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGV("script.global_settings", "Boot page is visible");
|
||||||
|
disp1->set_component_text_printf("boot.bluep_version", "%s", blueprint_version.c_str());
|
||||||
|
- wait_until:
|
||||||
|
condition:
|
||||||
|
- not:
|
||||||
|
- text_sensor.state: # Is boot page visible?
|
||||||
|
id: current_page
|
||||||
|
state: 'boot'
|
||||||
|
timeout: 2s
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
- text_sensor.state: # Avoid this being called twice by multiple boot triggers
|
||||||
|
id: current_page
|
||||||
|
state: 'boot'
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGV("script.global_settings", "Boot page still visible");
|
||||||
|
- if:
|
||||||
|
condition:
|
||||||
|
switch.is_on: notification_sound
|
||||||
|
then:
|
||||||
|
- rtttl.play:
|
||||||
|
rtttl: 'two short:d=4,o=5,b=100:16e6,16e6'
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGD("script.global_settings", "Jump to wake-up page: %s", wakeup_page_name->state.c_str());
|
||||||
|
disp1->goto_page(wakeup_page_name->state.c_str());
|
||||||
|
timer_reset_all->execute(wakeup_page_name->state.c_str());
|
||||||
|
|
||||||
|
- lambda: |-
|
||||||
|
ESP_LOGV("script.global_settings", "Finished");
|
||||||
|
|
||||||
- id: ha_button
|
- id: ha_button
|
||||||
mode: parallel
|
mode: parallel
|
||||||
parameters:
|
parameters:
|
||||||
@@ -1893,6 +1902,34 @@ script:
|
|||||||
notification_unread->turn_off();
|
notification_unread->turn_off();
|
||||||
if (current_page->state == "home") disp1->hide_component("bt_notific");
|
if (current_page->state == "home") disp1->hide_component("bt_notific");
|
||||||
|
|
||||||
|
- id: open_entity_settings_page
|
||||||
|
mode: restart
|
||||||
|
parameters:
|
||||||
|
page: string
|
||||||
|
page_label: string
|
||||||
|
page_icon: string
|
||||||
|
page_icon_color: int[]
|
||||||
|
entity: string
|
||||||
|
back_page: string
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
detailed_entity->publish_state(entity);
|
||||||
|
if (page == "alarm_control_panel") page = "alarm";
|
||||||
|
std::string cmd_page = std::string("page ") + page.c_str();
|
||||||
|
disp1->send_command_printf(cmd_page.c_str());
|
||||||
|
if (page_label.find("\\r") != std::string::npos)
|
||||||
|
page_label = page_label.replace(page_label.find("\\r"), 2, " ");
|
||||||
|
disp1->set_component_text_printf("page_label", "%s", page_label.c_str());
|
||||||
|
set_page_id->execute("back_page_id", back_page.c_str());
|
||||||
|
if (page == "climate")
|
||||||
|
disp1->set_component_value("embedded", (entity == "embedded_climate") ? 1 : 0);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ((page_icon != std::string()) and (page_icon != ""))
|
||||||
|
disp1->set_component_text_printf("icon_state", "%s", page_icon.c_str());
|
||||||
|
set_component_color->execute("icon_state", page_icon_color);
|
||||||
|
}
|
||||||
|
|
||||||
- id: page_alarm
|
- id: page_alarm
|
||||||
mode: restart
|
mode: restart
|
||||||
then: # There's nothing here so far
|
then: # There's nothing here so far
|
||||||
@@ -2007,10 +2044,6 @@ script:
|
|||||||
{"entity", detailed_entity->state.c_str()}
|
{"entity", detailed_entity->state.c_str()}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Report new page to add-ons
|
|
||||||
ESP_LOGV(TAG, "Call add-ons scripts for new page");
|
|
||||||
addon_climate_set_climate->execute(page == "climate" and detailed_entity->state == "embedded_climate");
|
|
||||||
|
|
||||||
// Call page constructor
|
// Call page constructor
|
||||||
if (page == "alarm") page_alarm->execute();
|
if (page == "alarm") page_alarm->execute();
|
||||||
else if (page == "blank") page_blank->execute();
|
else if (page == "blank") page_blank->execute();
|
||||||
@@ -2099,7 +2132,6 @@ script:
|
|||||||
disp1->send_command_printf("is_notification=%i", (notification_text->state.empty() and notification_label->state.empty()) ? 0 : 1);
|
disp1->send_command_printf("is_notification=%i", (notification_text->state.empty() and notification_label->state.empty()) ? 0 : 1);
|
||||||
set_component_color->execute("home.bt_notific", notification_unread->state ? id(home_notify_icon_color_unread) : id(home_notify_icon_color_normal));
|
set_component_color->execute("home.bt_notific", notification_unread->state ? id(home_notify_icon_color_unread) : id(home_notify_icon_color_normal));
|
||||||
refresh_datetime->execute();
|
refresh_datetime->execute();
|
||||||
addon_climate_update_page_home->execute();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- id: page_keyb_num
|
- id: page_keyb_num
|
||||||
@@ -2338,7 +2370,6 @@ script:
|
|||||||
ESP_LOGV(TAG, " embedded_climate: %s", embedded_climate ? "True" : "False");
|
ESP_LOGV(TAG, " embedded_climate: %s", embedded_climate ? "True" : "False");
|
||||||
if (current_page->state == "climate") {
|
if (current_page->state == "climate") {
|
||||||
ESP_LOGV(TAG, "Page climate is visible");
|
ESP_LOGV(TAG, "Page climate is visible");
|
||||||
addon_climate_set_climate->execute(embedded_climate);
|
|
||||||
disp1->send_command_printf("climateslider.maxval=%i", total_steps);
|
disp1->send_command_printf("climateslider.maxval=%i", total_steps);
|
||||||
disp1->set_component_value("temp_offset", temp_offset);
|
disp1->set_component_value("temp_offset", temp_offset);
|
||||||
disp1->set_component_value("temp_step", temp_step);
|
disp1->set_component_value("temp_step", temp_step);
|
||||||
@@ -2411,18 +2442,17 @@ script:
|
|||||||
static const char *const TAG = "script.stop_all";
|
static const char *const TAG = "script.stop_all";
|
||||||
ESP_LOGD(TAG, "Stopping scripts...");
|
ESP_LOGD(TAG, "Stopping scripts...");
|
||||||
addon_climate_service_call->stop();
|
addon_climate_service_call->stop();
|
||||||
addon_climate_set_climate->stop();
|
|
||||||
addon_climate_set_climate_friendly_name->stop();
|
|
||||||
addon_climate_update_page_home->stop();
|
|
||||||
boot_sequence->stop();
|
boot_sequence->stop();
|
||||||
check_versions->stop();
|
check_versions->stop();
|
||||||
display_embedded_temp->stop();
|
display_embedded_temp->stop();
|
||||||
display_wrapped_text->stop();
|
display_wrapped_text->stop();
|
||||||
exit_reparse->stop();
|
exit_reparse->stop();
|
||||||
|
global_settings->stop();
|
||||||
ha_button->stop();
|
ha_button->stop();
|
||||||
ha_call_service->stop();
|
ha_call_service->stop();
|
||||||
nextion_status->stop();
|
nextion_status->stop();
|
||||||
notification_clear->stop();
|
notification_clear->stop();
|
||||||
|
open_entity_settings_page->stop();
|
||||||
page_alarm->stop();
|
page_alarm->stop();
|
||||||
page_blank->stop();
|
page_blank->stop();
|
||||||
page_boot->stop();
|
page_boot->stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user