Blackymas / NSPanel_HA_Blueprint

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

`Enhancement` Update the TFT automatically #2227

Closed edwardtfn closed 1 week ago

edwardtfn commented 4 weeks ago

Thx for the quick fix! Now I am up and running again.

As the update of the TFT panel is the next logical step after updating the ESP-Version: Could it be possible to update the TFT-Version automatically "once" after the ESP recognizes it is old...? So make a two step installation (blueprint and ESP) instead of blueprint, ESP and TFT-Panel...

_Originally posted by @Bascht74 in https://github.com/Blackymas/NSPanel_HA_Blueprint/issues/2223#issuecomment-2286978442_

AndiRued commented 3 weeks ago

Hi Edward, i try to update the TFT yesterday. The Display show a black screen with the Error Msg "Device Data Error"...

The Display ist online, the Update via the Button Update TFT File dosn' work for a few times. Now is working, but only with the TFT Version 4.3.9.

Version Blueprint is 4.3.11 Version ESP Home is 4.3.9 Version TFT 4.3.9

Regards, Andy

edwardtfn commented 3 weeks ago

Please update your ESPHome firmware to v4.3.11 first, then try the TFT upload again. It shoukd work.

AndiRued commented 3 weeks ago

Hi, Thanks. But my ESPHome is 4.3.9 and no Update is available.

edwardtfn commented 3 weeks ago

This is weird. V4.3.11 was released yesterday and should be visible for you. Could you please share your panel's yaml?

AndiRued commented 3 weeks ago

yes, here is my panel.yaml

substitutions:

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

  device_name: "panelbuero" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password

  nextion_update_url: "http://192.168.177.63:8123/local/nspanel.tft" # URL to local tft File
# nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.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! #####
pbranly commented 3 weeks ago

This is weird. V4.3.11 was released yesterday and should be visible for you.

Could you please share your panel's yaml?

Hi I had the same "none issue" ! Esphome did not report that there was a new version but there was because I could recompile and get the .11 one Seems an esphome minor bug Phil

edwardtfn commented 3 weeks ago

Yes, you have to recompile in order to download the latest.

hkr086 commented 3 weeks ago

Sorry if this is a stupid question, but I have the same issue. How do I recompile to get the esp update?

pbranly commented 3 weeks ago

Sorry if this is a stupid question, but I have the same issue. How do I recompile to get the esp update?

Hi Just click first on Clean build files Then On Install And it will install the last .11 one Phil

hkr086 commented 3 weeks ago

The update showed up today , now I can see that both the esp and blue print are on the new version but not my tft. What am I doing wrong ?Screenshot_2024-08-21-22-18-55-77_c3a231c25ed346e59462e84656a70e50.jpg

edwardtfn commented 3 weeks ago

Press the Upload TFT button at that same page. Tr to capture ESPHome logs during the upload as that will help troubleshooting if that process fails.

hkr086 commented 2 weeks ago

Hi Edward, I managed to sort the issue, it was a connection issue

edwardtfn commented 1 week ago

I'm closing this as the automatic TFT update was implemented in DEV. If someone still having issues to update TFT, please report in a new issue.