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` Unable to upload TFT after update to 4.3.1 #1969

Closed smarthomefamilyverrips closed 3 months ago

smarthomefamilyverrips commented 3 months ago

TFT Version

4.2.6

ESPHome Version

4.3.1

Blueprint Version

4.3.1

Panel Model

EU

What is the bug?

When I push the TFT upload button ith shows a moment the small window what says setting baudrate and after 20 seconds or so it reboots the NSpanel

Steps to Reproduce

  1. Go to ESPhome integration
  2. go to device
  3. press TFT upload button

Your Panel's YAML

substitutions:

###### CHANGE ME START ######

  device_name: "nsbathroom" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password

  nextion_update_url: "http://192.168.0.168:8123/local/nspanel_eu.tft" # URL to local tft File
#  nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft" # URL to Github

  ##### addon-configuration #####
  ## addon_climate ##
  # addon_climate_heater_relay: "1" # possible values: 1/2

#  baud_rate: "115200" # requires 115200 if tft is installed but can be changed to 9600 if tft upload fails and nextion switches to 9600

##### CHANGE ME END #####

##### DO NOT CHANGE ANYTHING! #####

packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    files:
      - nspanel_esphome.yaml # Core package
      # - nspanel_esphome_advanced.yaml # activate advanced (legacy) elements - can be useful for troubleshooting
      # - nspanel_esphome_addon_climate_cool.yaml # activate for local climate (cooling) control
      # - nspanel_esphome_addon_climate_heat.yaml # activate for local climate (heater) control
    refresh: 300s

##### DO NOT CHANGE ANYTHING! #####

##### My customization - Start #####

# Set IP address manually
wifi:
  networks:
    - id: !extend wifi_default
      manual_ip:
        static_ip: 192.168.0.102
        gateway: 192.168.0.1
        subnet: 255.255.255.0

# Custom Arduino framework enforcement 
esp32:
  framework:
    type: arduino      

##### My customization - End #####

ESPHome Logs

logs_nsbathroom_logs (1).txt

Home Assistant Logs

no error in logs just get this notification

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

Panel:

TFT: 4.2.6

ESPHome: 4.3.1

Blueprint (reported by ESPHome): 4.3.1

Blueprint (installed): 4.3.1

smarthomefamilyverrips commented 3 months ago

logs_nsbathroom_logs (2).txt

the above log is from trying a other time

slangpetter commented 3 months ago

I have the exact same problem.

smarthomefamilyverrips commented 3 months ago

I have the exact same problem.

Sorry to hear for you, but I am happy is not only me, did think maybe is my setup.... you also still are on arduino?

slangpetter commented 3 months ago

I Added dns1 & dns2. That seems to have solved my problem. Now the TFT is loading.

smarthomefamilyverrips commented 3 months ago

I Added dns1 & dns2. That seems to have solved my problem. Now the TFT is loading.

@slangpetter can you explain how?

slangpetter commented 3 months ago

I added dns1 & dns2 to my config in ESPHome

wifi: manual_ip: static_ip: 192.0.2.30 gateway: 192.0.2.4 dns1: 1.1.1.1 dns2: 8.8.8.8 subnet: 255.255.255.0

smarthomefamilyverrips commented 3 months ago

I added dns1 & dns2 to my config in ESPHome

wifi: manual_ip: static_ip: 192.0.2.30 gateway: 192.0.2.4 dns1: 1.1.1.1 dns2: 8.8.8.8 subnet: 255.255.255.0

@slangpetter and after you did choose "validate" and after validation did pass did choose " install" again I assume

slangpetter commented 3 months ago

Exactly. Now I'm updating NS-Panel number 2. So that seems to have solved my problem.

smarthomefamilyverrips commented 3 months ago

@slangpetter you are a hero! 💯 .... adding DNS1 & DNS2 did worked for me also, TFT uploaded and NSpanel fully functional again! Thank You !!! 👍

smarthomefamilyverrips commented 3 months ago

I will still leave the issue open, maybe there are others running into the same thing.

edwardtfn commented 3 months ago

We should add that to the customization docs where we mention the use od manual ip and also on some of the troubleshooting docs.

edwardtfn commented 3 months ago

Docs updated on dev.

smarthomefamilyverrips commented 3 months ago

@edwardtfn but I was not wondering reading your added comments, DNS is used when TFT file is uploaded from github. But if you check my yaml you can see I have set to use file stored in local folder. So why this did not work then?

edwardtfn commented 3 months ago

But which option have you selected in "Update TFT Display - Model"? Unless you have selected the option using nextion_update_url, it will always try github.

smarthomefamilyverrips commented 3 months ago

But which option have you selected in "Update TFT Display - Model"? Unless you have selected the option using nextion_update_url, it will always try github.

You mean in the device panel of the ESPhome integration? This entity is disabled by the integration at me, I never used or set this before. Also I did not know this was necessary, if this was communicated before then I am to blame as I did not know I need to set this, it always worked till this latest update without using this "Update TFT Display - Model" entity.

edwardtfn commented 3 months ago

You mean in the device panel of the ESPhome integration?

Yeap.

We have communicated about a few release ago and it's probably in some documentation. 😂 In fact, we always try to install things without breaking existing installations, so, if you never played with that, it shoukd be set to use nextion_update_url as it was before, but if you changed that, even if disabled after that, the option you selected will be remembered. In your logs you will be able to see which url is being used for that transfer.

smarthomefamilyverrips commented 3 months ago

Well is good I know now at least 😅