Blackymas / NSPanel_HA_Blueprint

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

`Bug` ? Bootscreen displayed after wakeup #1947

Closed sysrun closed 3 months ago

sysrun commented 3 months ago

TFT Version

4.3.1

ESPHome Version

4.3.1

Blueprint Version

4.3.1

Panel Model

EU

What is the bug?

After wakeup the "boot screen" is displayed for several seconds.

In 4.3.0 the device went directly to the homepage.

Steps to Reproduce

No response

Your Panel's YAML

substitutions:
###### CHANGE ME START ######
  # Settings - Editable values
  device_name: "nspanel1" 
  #friendly_name: "NS Panel 1"
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  # Add-on configuration (if needed)
  heater_relay: "1"  # Possible values: "1" or "2"
##### CHANGE ME END #####

# Customization area
##### My customization - Start #####
##### My customization - End #####

# Core and optional configurations
packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: v4.3.1 #main
    files:
      - nspanel_esphome.yaml # Core package
      # Optional advanced and add-on configurations
      # - advanced/esphome/nspanel_esphome_advanced.yaml
      # - nspanel_esphome_addon_climate_cool.yaml
      - nspanel_esphome_addon_climate_heat.yaml
      # - nspanel_esphome_addon_climate_dual.yaml
    refresh: 300s

esp32:
  framework:
    type: esp-idf

ota:
  # change OTA password, remove after flashing
  password: ####

ESPHome Logs

No response

Home Assistant Logs

No response

edwardtfn commented 3 months ago

Please clean the build files and flash it again, then let me know if the error persists.

Clean-up build files

Go to your ESPHome Dashboard, click the 3-dot menu related to your device and then "Clean Build Files":

image

sysrun commented 3 months ago

Flashing via console on my server. But i am doing this before every update (esphome clean xxx.yaml) so it is already a clean build.

sysrun commented 3 months ago

Just checked the logs while waking up the device:

Bildschirmfoto 2024-03-20 um 18 50 29
sysrun commented 3 months ago

Not sure if the TFT upload is correct this way. Starting at 0% and the jumping to 85%

Bildschirmfoto 2024-03-20 um 18 53 20
edwardtfn commented 3 months ago

Not sure if the TFT upload is correct this way. Starting at 0% and the jumping to 85%

This is expected. Unless you try to upload a different file, the system will be able to reuse the previous file and upload only the differences.

edwardtfn commented 3 months ago

I will investigate this Nextion reported Serial Buffer overflow! in #1949. It can be related to this issue, as Nextion looses some info when this happens and it could be missing the info about the wake-up page. As a fallback, when this value is not set, the system should use page home as a backup, but I just found an error on the TFT setting the boot page as a backup, so this is probably the reason you are seeing that page. I will work on this.

sysrun commented 3 months ago

Nice! Thanks! Can work with that for now - rest is still working :)

ademobile commented 3 months ago

I had the same issue with one of my panels, and the log looked the same. Yes I had also used clean build files before flashing. I did re-flash everything and it went away. However this could have been just chance!

sysrun commented 3 months ago

Thanks for the hint @ademobile, but i already cleaned/rebuild/reflashed several times :)

ademobile commented 3 months ago

@sysrun did you do a TFT update again also?

sysrun commented 3 months ago

yes, did it several times - thats when i asked if the update process (as posted in the log above) is ok that way

edwardtfn commented 3 months ago

I believe this is fixed in dev and will be part of the next release.

sysrun commented 3 months ago

Just uploaded the clean-built dev (without dev blueprint & dev tft)

It's now jumping right to the homepage after wakeup 👍

Bildschirmfoto 2024-03-22 um 11 15 01