Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.4k stars 254 forks source link

Cant update esphome #1084

Closed pbranly closed 1 year ago

pbranly commented 1 year ago

Hi I try to update the esp. the validate gives "no error" but when I use the install, it hangs during several minutes on the "main.cpp.o line then definitively on the firmware.elf link. I tried to reinstall another esp that I have and it works. here is my configuration: `substitutions:

CHANGE ME START

device_name: "nspanel" wifi_ssid: !secret SSID wifi_password: !secret wifi_password

nextion_update_url: "http://192.168.1.8:8088/local/nspanel_us.tft" # URL to local tft File

nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_us.tft" # URL to Github

CHANGE ME END
DO NOT CHANGE ANYTHING!

packages:

download esphome code from Github

remote_package: url: https://github.com/Blackymas/NSPanel_HA_Blueprint ref: main files: [nspanel_esphome.yaml] refresh: 300s

DO NOT CHANGE ANYTHING! #####`

and here is the esphome screen after at least 10 minutes:

`INFO ESPHome 2023.8.3 INFO Reading configuration /config/nspanel.yaml... INFO Detected timezone 'Europe/Paris' WARNING GPIO4 is a Strapping PIN and should be avoided. Attaching external pullup/down resistors to strapping pins can cause unexpected failures. See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins INFO Generating C++ source... INFO Compiling app... Processing nspanel (board: esp32dev; framework: arduino; platform: platformio/espressif32@5.4.0)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash

What should I do ?

Thanks Phil

pbranly commented 1 year ago

Edit: it seems that despite of any message, the esp was upgraded as nspanel report version 4.0. I could then put the last blueprint and the last tft file without error but there is a mismatch in the screens . I have the following strange message:

There's a version mismatch between NSPanel_HA_Blueprint components. Please update all the components to the same version.

Panel: nspanel
TFT:
ESPHome: 4.0
Blueprint: 4.0 (expected 4.0)

i dont have any menu for dcreen light adjustment or restart as with previous versions and none of the strange menu for light and covers dont react

IMG_5313

edwardtfn commented 1 year ago

Could you please share the specifications of the hardware running ESPHome server? It could be something related to that...

What happens after that last log message you shared? Looks like it still processing...

Have you tried cleaning the build files (3-dot menu at ESPHome dashboard).

edwardtfn commented 1 year ago

You have an older TFT.

Are you sure you have the right file v4.0 at this url? http://192.168.1.8:8088/local/nspanel_us.tft

pbranly commented 1 year ago

You have an older TFT.

Are you sure you have the right file v4.0 at this url? http://192.168.1.8:8088/local/nspanel_us.tft

You are right ! the file was not at the good place. this is working fine now after a new full tft upgrade Thanks a lot for quick answer Phil

pbranly commented 1 year ago

Could you please share the specifications of the hardware running ESPHome server? It could be something related to that...

What happens after that last log message you shared? Looks like it still processing...

Have you tried cleaning the build files (3-dot menu at ESPHome dashboard).

Hi I have cleaned the files as proposed and restart the install process. This is now hung at the "wifi_component_esp8266.cpp.o" line after more than 5 minutes

`INFO ESPHome 2023.8.3 INFO Reading configuration /config/nspanel.yaml... INFO Detected timezone 'Europe/Paris' WARNING GPIO4 is a Strapping PIN and should be avoided. Attaching external pullup/down resistors to strapping pins can cause unexpected failures. See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins INFO Generating C++ source... INFO Compiling app... Processing nspanel (board: esp32dev; framework: arduino; platform: platformio/espressif32@5.4.0)

Library Manager: Installing esphome/AsyncTCP-esphome @ 1.2.2 INFO Installing esphome/AsyncTCP-esphome @ 1.2.2 Downloading [####################################] 100% Unpacking [####################################] 100% Library Manager: AsyncTCP-esphome@1.2.2 has been installed! INFO AsyncTCP-esphome@1.2.2 has been installed! Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0 INFO Installing esphome/ESPAsyncWebServer-esphome @ 2.1.0 Downloading [####################################] 100% Unpacking [####################################] 100% Library Manager: ESPAsyncWebServer-esphome@2.1.0 has been installed! INFO ESPAsyncWebServer-esphome@2.1.0 has been installed! Library Manager: Resolving dependencies... INFO Resolving dependencies... Library Manager: Installing bblanchon/ArduinoJson @ 6.18.5 INFO Installing bblanchon/ArduinoJson @ 6.18.5 Downloading [####################################] 100% Unpacking [####################################] 100% Library Manager: ArduinoJson@6.18.5 has been installed! INFO ArduinoJson@6.18.5 has been installed! HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash

My hardware is a NUC6CAYS under Ubuntu. ESPhome is intallled under a docker

` esphome: container_name: ESPHome environment:

edwardtfn commented 1 year ago

But you already have Esphome v4.0 installed, you don't have to flash it again.

pbranly commented 1 year ago

But you already have Esphome v4.0 installed, you don't have to flash it again.

Yes that's true but this behavior is abnormal; i had to stop and restart the compilation 3 times ; I did not have any message after the firmware.elf message, no upgrade message toward the esp, but esp was flashed again; this seems specific to your program because with my esp, everything works as expected. let it under observation .... thnks Phil

edwardtfn commented 1 year ago

this seems specific to your program because with my esp

It could be... This project is quite complex compared to a typical ESPHome project, so it's expected it taking more resources when compiling...