Upload TFT remove dependency to from ESPHome Nextion component

Let's wait for those to be released before start using it.
This commit is contained in:
Edward Firmo
2023-11-30 07:56:15 +01:00
parent 55f254e7a2
commit 849e75bb6c
13 changed files with 698 additions and 20 deletions

View File

@@ -7,13 +7,13 @@
substitutions:
##### DON'T CHANGE THIS #####
version: "4.1.2"
version: "4.1.3"
#############################
external_components:
- source: github://pr#5825 # Remove this when that pr is merged and released
components:
- nextion
#external_components:
# - source: github://pr#5825 # Remove this when that pr is merged and released
# components:
# - nextion
##### ESPHOME CONFIGURATION #####
esphome:
@@ -37,7 +37,7 @@ esphome:
- script.execute: exit_reparse
- wait_until:
condition:
- lambda: !lambda return disp1->is_detected();
- lambda: !lambda return disp1->is_setup();
timeout: 20s
- lambda: |-
static const char *const TAG = "on_boot";
@@ -55,7 +55,7 @@ esphome:
};
nextion_status->execute();
if (not disp1->is_detected()) {
if (not disp1->is_setup()) {
ESP_LOGE(TAG, "No response from Nextion display");
ESP_LOGD(TAG, "Turn off Nextion");
screen_power->turn_off();
@@ -67,12 +67,12 @@ esphome:
}
- wait_until:
condition:
- lambda: !lambda return disp1->is_detected();
- lambda: !lambda return disp1->is_setup();
timeout: 20s
- lambda: |-
static const char *const TAG = "on_boot";
nextion_status->execute();
if (not disp1->is_detected()) {
if (not disp1->is_setup()) {
ESP_LOGE(TAG, "No response from Nextion display");
}
ESP_LOGD(TAG, "Finished");
@@ -1349,7 +1349,7 @@ switch:
on_turn_on:
- wait_until:
condition:
- lambda: !lambda return disp1->is_detected();
- lambda: !lambda return disp1->is_setup();
timeout: 20s
- lambda: |-
if (id(boot_sequence_completed)) {
@@ -2651,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 ############################################################