Blackymas / NSPanel_HA_Blueprint

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

Error when trying validat NSPAnel to version 4.0 #1102

Closed Zealand67 closed 9 months ago

Zealand67 commented 9 months ago

Hello I am getting the following error when trying to validat the NSPanel to version 4.0. The screeen "hangs" now on th eblue screen with the message "Please wait":

INFO ESPHome 2023.8.3 INFO Reading configuration /config/esphome/nspanel1.yaml... INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main INFO Detected timezone 'America/Los_Angeles' 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 nspanel1 (board: esp32dev; framework: arduino; platform: platformio/espressif32@5.4.0)

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

My Yaml is as follow: substitutions:

CHANGE ME START

device_name: "nspanel1" wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password

nextion_update_url: "https://50.53.186.96:8123/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 NT 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!

I am running: Home Assistant 2023.9.3 Supervisor 2023.09.2 Operating System 10.5 Frontend 20230911.0 - latest

Hardware is a Raspberry 4 with 2 GMN Memory.

Thanks for any hlep to get my beloved NSPanel back to life.

Urs

edwardtfn commented 9 months ago

The screeen "hangs" now on th eblue screen with the message "Please wait":

On that blue screen, what is shown for TFT, ESPHome and Blueprint versions?

Zealand67 commented 9 months ago

TFT Version 4.0 ESPHome 3.4.1 Blueprint: Retrv9

I updated the blueprint YAML with the new version 4.0, deleted and recreated the blueprint again but with no success

edwardtfn commented 9 months ago

I updated the blueprint YAML with the new version 4.0, deleted and recreated the blueprint again but with no success

The Blueprint won't be able to connect and publish it's version until ESPHome is v4.0,so focus on ESPHome issue first...

edwardtfn commented 9 months ago

I'd suggest to clean your build files and try again...

image

Zealand67 commented 9 months ago

Did that already twice; the error just comes a a later stage:

el1.yaml INFO ESPHome 2023.8.3 INFO Reading configuration /config/esphome/nspanel1.yaml... INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main INFO Detected timezone 'America/Los_Angeles' 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 nspanel1 (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 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 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 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

edwardtfn commented 9 months ago

The logs shows your ESPHome compiler crashing, so if cleaning the build files isn't helping, I'd suggest restarting the host system. This is a quite complex code, but I wouldn't expect any issue with a RPi4.

edwardtfn commented 9 months ago

This last crash was almost at the end of the process... 😩

Zealand67 commented 9 months ago

Yah, just right now crashed again at the same line.

Let me restart the whole system and check again.....

edwardtfn commented 9 months ago

You can also try adding this at the end of your yaml:

esphome:
  compile_process_limit: 1

This will probably make the compiling process take longer, but will use less resources of your server.

Zealand67 commented 9 months ago

Thanks for you help. After a full reboot of the Raspberry and HA, the compiling went trough and the NSPAnel is online again.