Revert "Remove esp-idf"

This reverts commit 58d86aeb86.
This commit is contained in:
Edward Firmo
2023-11-28 16:09:39 +01:00
parent 58d86aeb86
commit 55f254e7a2
4 changed files with 26 additions and 31 deletions

View File

@@ -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 ############################################################