Compare commits
3 Commits
ec35a07f52
...
55f254e7a2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55f254e7a2 | ||
|
|
58d86aeb86 | ||
|
|
53b3d131b6 |
@@ -19,9 +19,9 @@ So at this release we concentrated on cleaning up de code everywhere and shave s
|
||||
Since in this update lots of input to the blueprint changed, we highly recommend you review your settings and make sure all fields have the correct selection. We did our best to support your legacy settings and avoid breaking your system, but please double check your settings if you see something not working as expected.
|
||||
|
||||
### Files that need to be reloaded:
|
||||
1. nspanel_eu.tft, nspanel_us.tft or nspanel_us_land.tft - v4.1
|
||||
2. nspanel_esphome.yaml - v4.1
|
||||
3. nspanel_blueprint.yaml - v4.1
|
||||
1. nspanel_eu.tft, nspanel_us.tft or nspanel_us_land.tft - v4.1.2
|
||||
2. nspanel_esphome.yaml - v4.1.2
|
||||
3. nspanel_blueprint.yaml - v4.1.2
|
||||
|
||||
####
|
||||
|
||||
|
||||
@@ -13,11 +13,6 @@ substitutions:
|
||||
# nextion_update_blank_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/raw/main/custom_configuration/nspanel_blank.tft"
|
||||
##############################################
|
||||
|
||||
#external_components:
|
||||
# - source: github://pr#5683 # Remove this when that pr is merged
|
||||
# components:
|
||||
# - nextion
|
||||
|
||||
button:
|
||||
##### UPDATE TFT DISPLAY #####
|
||||
- name: ${device_name} Update TFT display
|
||||
@@ -94,8 +89,7 @@ script:
|
||||
exit_reparse->execute();
|
||||
delay_seconds_(2);
|
||||
ESP_LOGV(TAG, "Calling upload from Nextion component");
|
||||
disp1->upload_tft();
|
||||
id(restart_nspanel).press();
|
||||
if (disp1->upload_tft()) id(restart_nspanel).press();
|
||||
ESP_LOGD(TAG, "Turn off Nextion");
|
||||
screen_power->turn_off();
|
||||
delay_seconds_(3);
|
||||
|
||||
@@ -10,6 +10,11 @@ substitutions:
|
||||
version: "4.1.2"
|
||||
#############################
|
||||
|
||||
external_components:
|
||||
- source: github://pr#5825 # Remove this when that pr is merged and released
|
||||
components:
|
||||
- nextion
|
||||
|
||||
##### ESPHOME CONFIGURATION #####
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
@@ -32,7 +37,7 @@ esphome:
|
||||
- script.execute: exit_reparse
|
||||
- wait_until:
|
||||
condition:
|
||||
- lambda: !lambda return disp1->is_setup();
|
||||
- lambda: !lambda return disp1->is_detected();
|
||||
timeout: 20s
|
||||
- lambda: |-
|
||||
static const char *const TAG = "on_boot";
|
||||
@@ -50,7 +55,7 @@ esphome:
|
||||
};
|
||||
|
||||
nextion_status->execute();
|
||||
if (not disp1->is_setup()) {
|
||||
if (not disp1->is_detected()) {
|
||||
ESP_LOGE(TAG, "No response from Nextion display");
|
||||
ESP_LOGD(TAG, "Turn off Nextion");
|
||||
screen_power->turn_off();
|
||||
@@ -62,12 +67,12 @@ esphome:
|
||||
}
|
||||
- wait_until:
|
||||
condition:
|
||||
- lambda: !lambda return disp1->is_setup();
|
||||
- lambda: !lambda return disp1->is_detected();
|
||||
timeout: 20s
|
||||
- lambda: |-
|
||||
static const char *const TAG = "on_boot";
|
||||
nextion_status->execute();
|
||||
if (not disp1->is_setup()) {
|
||||
if (not disp1->is_detected()) {
|
||||
ESP_LOGE(TAG, "No response from Nextion display");
|
||||
}
|
||||
ESP_LOGD(TAG, "Finished");
|
||||
@@ -1344,7 +1349,7 @@ switch:
|
||||
on_turn_on:
|
||||
- wait_until:
|
||||
condition:
|
||||
- lambda: !lambda return disp1->is_setup();
|
||||
- lambda: !lambda return disp1->is_detected();
|
||||
timeout: 20s
|
||||
- lambda: |-
|
||||
if (id(boot_sequence_completed)) {
|
||||
@@ -2646,7 +2651,7 @@ script:
|
||||
- lambda: |-
|
||||
static const char *const TAG = "script.nextion_status";
|
||||
ESP_LOGD(TAG, "Nextion status:");
|
||||
//ESP_LOGD(TAG, " Is detected: %s", disp1->is_detected() ? "True" : "False");
|
||||
ESP_LOGD(TAG, " Is detected: %s", disp1->is_detected() ? "True" : "False");
|
||||
ESP_LOGD(TAG, " Is setup: %s", disp1->is_setup() ? "True" : "False");
|
||||
|
||||
##### ADD-ONS ############################################################
|
||||
|
||||
Reference in New Issue
Block a user