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 253 forks source link

Unable to upload TFT file to Nextion #2301

Open edwardtfn opened 3 days ago

edwardtfn commented 3 days ago

Hi @edwardtfn I fight with a similiar Issue and don't know what else I could try. I allow me to share my logs as well and hope you have a tipp how to bring my Display to comply. Thanks!

[23:36:57][C][nspanel_ha_blueprint:2224]: Wi-Fi:         Excellent (-41 dBm)
[23:36:57][C][nspanel_ha_blueprint:2235]: API:           Connected
[23:36:57][C][nspanel_ha_blueprint:2243]: Blueprint:
[23:36:57][W][nspanel_ha_blueprint:2248]:   Init steps:  0 (0.0%)
[23:36:57][W][nspanel_ha_blueprint:2249]:   State:       Pending
[23:36:57][C][nspanel_ha_blueprint:2250]: Requesting blueprint settings
[23:36:57][C][nspanel_ha_blueprint:2255]: ESPHome:
[23:36:57][C][nspanel_ha_blueprint:2256]:   Version:     4.3.11
[23:36:57][C][nspanel_ha_blueprint:2257]:   Compiler:    2024.9.0
[23:36:57][C][nspanel_ha_blueprint:2262]:   Framework:   ESP-IDF
[23:36:57][C][nspanel_ha_blueprint:2267]:   Free heap:
[23:36:57][C][nspanel_ha_blueprint:2271]:     Internal:   204344 bytes (58.1%)
[23:36:57][C][nspanel_ha_blueprint:2281]:     PSRAM:     2018423 bytes (96.8%)
[23:36:57][C][nspanel_ha_blueprint:2288]: UART:
[23:36:57][C][nspanel_ha_blueprint:2289]:   Baud rate:   115200 bps
[23:36:57][C][nspanel_ha_blueprint:2290]:   Queue size:  0
[23:36:57][C][nspanel_ha_blueprint:2294]: Nextion:
[23:36:57][C][nspanel_ha_blueprint:2295]:   Queue size:  0
[23:36:57][C][nspanel_ha_blueprint:2297]:   Is setup:    True
[23:36:57][C][nspanel_ha_blueprint:2304]:   Init:        True
[23:36:57][W][nspanel_ha_blueprint:2308]:   TFT:         UNKNOWN
[23:36:57][C][nspanel_ha_blueprint:2311]: Packages:
[23:36:57][C][nspanel_ha_blueprint:2313]:   - Core
[23:36:57][C][nspanel_ha_blueprint:2322]:   - Upload TFT
[23:36:57][C][nspanel_ha_blueprint:2325]:   - Climate - Base
[23:36:57][C][nspanel_ha_blueprint:2334]:   - Climate - Heat
[23:36:57][C][nspanel_ha_blueprint:097]: Add-on Upload TFT:
[23:36:57][C][nspanel_ha_blueprint:098]:   File model: Use nextion_update_url
[23:36:57][C][nspanel_ha_blueprint:099]:   Valid TFT:  NO
[23:36:57][C][nspanel_ha_blueprint:133]: Add-on climate:
[23:36:57][C][nspanel_ha_blueprint:142]:   Heat:  Enabled
[23:36:57][E][nspanel_ha_blueprint:146]:   Relay: 0
[23:36:57][W][component:237]: Component script took a long time for an operation (56 ms).
[23:36:57][W][component:238]: Components should block for at most 30 ms.
[23:36:57][D][api:102]: Accepted 192.168.3.35
[23:36:57][D][api.connection:1442]: Home Assistant 2024.9.2 (192.168.3.35): Connected successfully
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][D][time:051]: Synchronized time: 2024-09-26 23:36:57
[23:36:57][D][time.on_time_sync:211]: System clock synchronized
[23:36:57][D][time.on_time_sync:212]: Timezone: CET-1CEST,M3.5.0,M10.5.0/3
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][D][sensor:094]: 'ntc_source': Sending state 1.60800 V with 2 decimals of accuracy
[23:36:57][D][resistance:039]: 'resistance_sensor' - Resistance 10644.0Ω
[23:36:57][D][sensor:094]: 'resistance_sensor': Sending state 10643.97070 Ω with 1 decimals of accuracy
[23:36:57][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:36:57][D][sensor:094]: 'Temperature': Sending state 23.60210 °C with 1 decimals of accuracy
[23:36:57][D][climate:396]: 'Thermostat' - Sending state:
[23:36:57][D][climate:399]:   Mode: OFF
[23:36:57][D][climate:401]:   Action: OFF
[23:36:57][D][climate:419]:   Current Temperature: 23.60°C
[23:36:57][D][climate:425]:   Target Temperature: 18.00°C
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:57][W][nextion:416]: Nextion reported variable name invalid!
[23:36:59][D][sensor:094]: 'Display Current brightness': Sending state 50.00000 % with 0 decimals of accuracy
[23:37:00][D][button:010]: 'Update TFT display' Pressed.
[23:37:00][W][nextion:416]: Nextion reported variable name invalid!
[23:37:00][W][nextion:416]: Nextion reported variable name invalid!
[23:37:00][W][nextion:416]: Nextion reported variable name invalid!
[23:37:00][W][nextion:416]: Nextion reported variable name invalid!
[23:37:00][W][nextion:416]: Nextion reported variable name invalid!
[23:37:00][W][nextion:416]: Nextion reported variable name invalid!
[23:37:00][W][nextion:416]: Nextion reported variable name invalid!
[23:37:02][D][addon_upload_tft.script.open_upload_dialog:134]: Showing upload dialog page
[23:37:02][W][nextion:377]: Nextion reported page ID invalid!
[23:37:04][W][nextion:416]: Nextion reported variable name invalid!
[23:37:06][D][addon_upload_tft.script.report_upload_progress:158]: Set Nextion unavailable for blueprint calls
[23:37:06][D][binary_sensor:036]: 'Nextion display': Sending state OFF
[23:37:06][D][addon_upload_tft.script.report_upload_progress:158]: Preparing for upload...
[23:37:06][D][script.nextion_status:107]: Nextion status:
[23:37:06][D][script.nextion_status:108]:   Is detected: YES
[23:37:06][D][script.nextion_status:109]:   Is setup:    YES
[23:37:06][D][script.nextion_status:110]:   Queue size:  0
[23:37:06][D][addon_upload_tft.script.upload_tft:220]: Starting the upload script
[23:37:06][D][addon_upload_tft.script.upload_tft:221]:   Valid TFT:               NO
[23:37:06][D][addon_upload_tft.script.upload_tft:222]:   Current baud rate:       115200 bps
[23:37:06][D][addon_upload_tft.script.upload_tft:223]:   Target upload baud rate: 115200 bps
[23:37:06][D][addon_upload_tft.script.upload_tft:224]:   Upload URL: http://192.168.3.50:8080/nspanelblank.tft
[23:37:07][W][nspanel_ha_blueprint:2212]: TFT upload in progress
[23:37:07][D][sensor:094]: 'ntc_source': Sending state 1.60860 V with 2 decimals of accuracy
[23:37:07][D][resistance:039]: 'resistance_sensor' - Resistance 10651.7Ω
[23:37:07][D][sensor:094]: 'resistance_sensor': Sending state 10651.71973 Ω with 1 decimals of accuracy
[23:37:07][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:37:07][D][sensor:094]: 'Temperature': Sending state 23.58587 °C with 1 decimals of accuracy
[23:37:07][D][climate:396]: 'Thermostat' - Sending state:
[23:37:07][D][climate:399]:   Mode: OFF
[23:37:07][D][climate:401]:   Action: OFF
[23:37:07][D][climate:419]:   Current Temperature: 23.59°C
[23:37:07][D][climate:425]:   Target Temperature: 18.00°C
[23:37:07][W][nextion:416]: Nextion reported variable name invalid!
[23:37:08][D][addon_upload_tft.script.open_upload_dialog:134]: Showing upload dialog page
[23:37:08][W][nextion:377]: Nextion reported page ID invalid!
[23:37:10][W][nextion:416]: Nextion reported variable name invalid!
[23:37:12][D][addon_upload_tft.script.report_upload_progress:158]: Stopping other scripts
[23:37:12][D][script.nextion_status:107]: Nextion status:
[23:37:12][D][script.nextion_status:108]:   Is detected: YES
[23:37:12][D][script.nextion_status:109]:   Is setup:    YES
[23:37:12][D][script.nextion_status:110]:   Queue size:  0
[23:37:12][D][addon_upload_tft.script.report_upload_progress:158]: Setting baud rate
[23:37:12][D][text_sensor:064]: 'Device Name': Sending state 'nspanel_kitchen'
[23:37:14][D][main:403]: Attempting to upload TFT
[23:37:14][D][addon_upload_tft.script.report_upload_progress:158]: Attempt #1 at 115200 bps
[23:37:14][D][addon_upload_tft.script.nextion_upload:118]: Waiting for empty UART and Nextion queues
[23:37:16][D][addon_upload_tft.script.nextion_upload:126]: Starting TFT upload...
[23:37:16][D][nextion.upload.idf:157]: Nextion TFT upload requested
[23:37:16][D][nextion.upload.idf:158]: Exit reparse: NO
[23:37:16][D][nextion.upload.idf:159]: URL: http://192.168.3.50:8080/nspanelblank.tft
[23:37:16][D][nextion.upload.idf:188]: Baud rate: 115200
[23:37:16][D][nextion.upload.idf:235]: TFT file size: 275044 bytes
[23:37:16][D][nextion.upload.idf:248]: Uploading Nextion
[23:37:17][D][nextion.upload.idf:287]: Upgrade response is [05] - 1 byte(s)
[23:37:17][D][nextion.upload.idf:308]: Uploading TFT to Nextion:
[23:37:17][D][nextion.upload.idf:309]:   URL: http://192.168.3.50:8080/nspanelblank.tft
[23:37:17][D][nextion.upload.idf:310]:   File size: 275044 bytes
[23:37:17][D][nextion.upload.idf:311]:   Free heap: 2171979
[23:37:17][D][nextion.upload.idf:026]: Range start: 0
[23:37:18][D][esp-idf:000]: I (51187) HTTP_CLIENT: Body received in fetch header state, 0x3ffd80a8, 388

[23:37:24][D][nextion.upload.idf:107]: Uploaded 1.49%, remaining 270948 bytes, free heap: 200692 (DRAM) + 2005871 (PSRAM) bytes
[23:37:24][D][nextion.upload.idf:115]: recv_string [08.00.00.00.00 (5)]
[23:37:24][D][nextion.upload.idf:026]: Range start: 4096
**[23:37:24][D][esp-idf:000]: E (57282) TRANSPORT_BASE: poll_read select error 104, errno = Connection reset by peer, fd = 58

[23:37:24][E][nextion.upload.idf:049]: Failed to get chunk's content length: -1
[23:37:24][E][nextion.upload.idf:321]: Error uploading TFT to Nextion!**
[23:37:24][D][nextion.upload.idf:322]: Close HTTP connection
[23:37:24][D][nextion.upload.idf:342]: Nextion TFT upload finished: NO
[23:37:24][E][nextion.upload.idf:358]: Nextion TFT upload failed
[23:37:24][D][addon_upload_tft.script.nextion_upload:128]: TFT upload: NO
[23:37:24][W][component:237]: Component script took a long time for an operation (8567 ms).
[23:37:24][W][component:238]: Components should block for at most 30 ms.
[23:37:24][D][addon_upload_tft.script.report_upload_progress:158]: Attempt #1 at 115200 bps returned: NO
[23:37:24][D][sensor:094]: 'ntc_source': Sending state 1.60850 V with 2 decimals of accuracy
[23:37:24][D][resistance:039]: 'resistance_sensor' - Resistance 10650.4Ω
[23:37:24][D][sensor:094]: 'resistance_sensor': Sending state 10650.42773 Ω with 1 decimals of accuracy
[23:37:24][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:37:24][D][sensor:094]: 'Temperature': Sending state 23.58858 °C with 1 decimals of accuracy
[23:37:24][D][climate:396]: 'Thermostat' - Sending state:
[23:37:24][D][climate:399]:   Mode: OFF
[23:37:24][D][climate:401]:   Action: OFF
[23:37:24][D][climate:419]:   Current Temperature: 23.59°C
[23:37:24][D][climate:425]:   Target Temperature: 18.00°C
[23:37:24][D][esp32.preferences:114]: Saving 1 preferences to flash...
[23:37:24][D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed
[23:37:24][D][script.boot_log:2048]: init_page_home
[23:37:25][D][script.boot_log:2048]: init_page_settings
[23:37:25][D][script.boot_log:2048]: init_hardware
[23:37:25][D][script.boot_log:2048]: init_global
[23:37:27][D][sensor:094]: 'ntc_source': Sending state 1.60817 V with 2 decimals of accuracy
[23:37:27][D][resistance:039]: 'resistance_sensor' - Resistance 10646.1Ω
[23:37:27][D][sensor:094]: 'resistance_sensor': Sending state 10646.12402 Ω with 1 decimals of accuracy
[23:37:27][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:37:27][D][sensor:094]: 'Temperature': Sending state 23.59759 °C with 1 decimals of accuracy
[23:37:27][D][climate:396]: 'Thermostat' - Sending state:
[23:37:27][D][climate:399]:   Mode: OFF
[23:37:27][D][climate:401]:   Action: OFF
[23:37:27][D][climate:419]:   Current Temperature: 23.60°C
[23:37:27][D][climate:425]:   Target Temperature: 18.00°C
[23:37:29][I][safe_mode:041]: Boot seems successful; resetting boot loop counter
[23:37:29][D][esp32.preferences:114]: Saving 2 preferences to flash...
[23:37:29][D][esp32.preferences:143]: Saving 2 preferences to flash: 1 cached, 1 written, 0 failed
[23:37:29][D][main:403]: Attempting to upload TFT
[23:37:29][D][addon_upload_tft.script.report_upload_progress:158]: Attempt #2 at 115200 bps
[23:37:29][D][addon_upload_tft.script.nextion_upload:118]: Waiting for empty UART and Nextion queues
[23:37:34][D][sensor:094]: 'RSSI': Sending state -38.00000 dBm with 0 decimals of accuracy
[23:37:37][D][sensor:094]: 'ntc_source': Sending state 1.60867 V with 2 decimals of accuracy
[23:37:37][D][resistance:039]: 'resistance_sensor' - Resistance 10652.6Ω
[23:37:37][D][sensor:094]: 'resistance_sensor': Sending state 10652.58008 Ω with 1 decimals of accuracy
[23:37:37][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:37:37][D][sensor:094]: 'Temperature': Sending state 23.58407 °C with 1 decimals of accuracy
[23:37:37][D][climate:396]: 'Thermostat' - Sending state:
[23:37:37][D][climate:399]:   Mode: OFF
[23:37:37][D][climate:401]:   Action: OFF
[23:37:37][D][climate:419]:   Current Temperature: 23.58°C
[23:37:37][D][climate:425]:   Target Temperature: 18.00°C
[23:37:41][D][addon_upload_tft.script.nextion_upload:126]: Starting TFT upload...
[23:37:41][D][nextion.upload.idf:157]: Nextion TFT upload requested
[23:37:41][D][nextion.upload.idf:158]: Exit reparse: NO
[23:37:41][D][nextion.upload.idf:159]: URL: http://192.168.3.50:8080/nspanelblank.tft
[23:37:41][D][nextion.upload.idf:188]: Baud rate: 115200
[23:37:42][D][nextion.upload.idf:235]: TFT file size: 275044 bytes
[23:37:42][D][nextion.upload.idf:248]: Uploading Nextion
[23:37:47][D][nextion.upload.idf:287]: Upgrade response is [] - 0 byte(s)
[23:37:47][E][nextion.upload.idf:293]: Preparation for TFT upload failed 0 ""
[23:37:47][D][nextion.upload.idf:294]: Close HTTP connection
[23:37:47][D][nextion.upload.idf:342]: Nextion TFT upload finished: NO
[23:37:47][E][nextion.upload.idf:358]: Nextion TFT upload failed
[23:37:47][D][addon_upload_tft.script.nextion_upload:128]: TFT upload: NO
[23:37:47][W][component:237]: Component script took a long time for an operation (5584 ms).
[23:37:47][W][component:238]: Components should block for at most 30 ms.
[23:37:47][D][addon_upload_tft.script.report_upload_progress:158]: Attempt #2 at 115200 bps returned: NO
[23:37:47][D][sensor:094]: 'ntc_source': Sending state 1.60833 V with 2 decimals of accuracy
[23:37:47][D][resistance:039]: 'resistance_sensor' - Resistance 10648.3Ω
[23:37:47][D][sensor:094]: 'resistance_sensor': Sending state 10648.27539 Ω with 1 decimals of accuracy
[23:37:47][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:37:47][D][sensor:094]: 'Temperature': Sending state 23.59308 °C with 1 decimals of accuracy
[23:37:47][D][climate:396]: 'Thermostat' - Sending state:
[23:37:47][D][climate:399]:   Mode: OFF
[23:37:47][D][climate:401]:   Action: OFF
[23:37:47][D][climate:419]:   Current Temperature: 23.59°C
[23:37:47][D][climate:425]:   Target Temperature: 18.00°C
[23:37:52][D][addon_upload_tft.script.report_upload_progress:158]: Restarting Nextion display
[23:37:52][D][switch:016]: 'Nextion display - Power' Turning OFF.
[23:37:52][D][switch:055]: 'Nextion display - Power': Sending state OFF
[23:37:54][D][switch:012]: 'Nextion display - Power' Turning ON.
[23:37:54][D][switch:055]: 'Nextion display - Power': Sending state ON
[23:37:55][W][nextion:353]: Nextion reported invalid instruction!
[23:37:55][D][nextion:591]: system successful start up 0
[23:37:57][D][sensor:094]: 'ntc_source': Sending state 1.60800 V with 2 decimals of accuracy
[23:37:57][D][resistance:039]: 'resistance_sensor' - Resistance 10644.0Ω
[23:37:57][D][sensor:094]: 'resistance_sensor': Sending state 10643.97070 Ω with 1 decimals of accuracy
[23:37:57][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:37:57][D][sensor:094]: 'Temperature': Sending state 23.60210 °C with 1 decimals of accuracy
[23:37:57][D][climate:396]: 'Thermostat' - Sending state:
[23:37:57][D][climate:399]:   Mode: OFF
[23:37:57][D][climate:401]:   Action: OFF
[23:37:57][D][climate:419]:   Current Temperature: 23.60°C
[23:37:57][D][climate:425]:   Target Temperature: 18.00°C
[23:37:57][W][nextion:416]: Nextion reported variable name invalid!
[23:37:59][D][script.nextion_status:107]: Nextion status:
[23:37:59][D][script.nextion_status:108]:   Is detected: YES
[23:37:59][D][script.nextion_status:109]:   Is setup:    YES
[23:37:59][D][script.nextion_status:110]:   Queue size:  0
[23:37:59][D][addon_upload_tft.script.report_upload_progress:158]: Setting baud rate
[23:38:00][W][nextion:416]: Nextion reported variable name invalid!
[23:38:00][W][nextion:416]: Nextion reported variable name invalid!
[23:38:01][D][main:403]: Attempting to upload TFT
[23:38:01][D][addon_upload_tft.script.report_upload_progress:158]: Attempt #3 at 115200 bps
[23:38:01][D][addon_upload_tft.script.nextion_upload:118]: Waiting for empty UART and Nextion queues
[23:38:03][D][addon_upload_tft.script.nextion_upload:126]: Starting TFT upload...
[23:38:03][D][nextion.upload.idf:157]: Nextion TFT upload requested
[23:38:03][D][nextion.upload.idf:158]: Exit reparse: NO
[23:38:03][D][nextion.upload.idf:159]: URL: http://192.168.3.50:8080/nspanelblank.tft
[23:38:03][D][nextion.upload.idf:188]: Baud rate: 115200
[23:38:03][D][nextion.upload.idf:235]: TFT file size: 275044 bytes
[23:38:03][D][nextion.upload.idf:248]: Uploading Nextion
[23:38:04][D][nextion.upload.idf:287]: Upgrade response is [05] - 1 byte(s)
[23:38:04][D][nextion.upload.idf:308]: Uploading TFT to Nextion:
[23:38:04][D][nextion.upload.idf:309]:   URL: http://192.168.3.50:8080/nspanelblank.tft
[23:38:04][D][nextion.upload.idf:310]:   File size: 275044 bytes
[23:38:04][D][nextion.upload.idf:311]:   Free heap: 2172523
[23:38:04][D][nextion.upload.idf:026]: Range start: 0
[23:38:05][D][nextion.upload.idf:107]: Uploaded 1.49%, remaining 270948 bytes, free heap: 200300 (DRAM) + 2007887 (PSRAM) bytes
[23:38:05][D][nextion.upload.idf:115]: recv_string [08.00.00.00.00 (5)]
[23:38:05][D][nextion.upload.idf:026]: Range start: 275044
[23:38:05][D][nextion.upload.idf:028]: Range end: 275043
[23:38:05][D][nextion.upload.idf:029]: Range size: 0
[23:38:05][E][nextion.upload.idf:030]: Invalid range
[23:38:05][E][nextion.upload.idf:321]: Error uploading TFT to Nextion!
[23:38:05][D][nextion.upload.idf:322]: Close HTTP connection
[23:38:05][D][nextion.upload.idf:342]: Nextion TFT upload finished: NO
[23:38:05][E][nextion.upload.idf:358]: Nextion TFT upload failed
[23:38:05][D][addon_upload_tft.script.nextion_upload:128]: TFT upload: NO
[23:38:05][W][component:237]: Component script took a long time for an operation (2138 ms).
[23:38:05][W][component:238]: Components should block for at most 30 ms.
[23:38:05][D][addon_upload_tft.script.report_upload_progress:158]: Attempt #3 at 115200 bps returned: NO
[23:38:07][D][sensor:094]: 'ntc_source': Sending state 1.60767 V with 2 decimals of accuracy
[23:38:07][D][resistance:039]: 'resistance_sensor' - Resistance 10639.7Ω
[23:38:07][D][sensor:094]: 'resistance_sensor': Sending state 10639.66895 Ω with 1 decimals of accuracy
[23:38:07][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:38:07][D][sensor:094]: 'Temperature': Sending state 23.61111 °C with 1 decimals of accuracy
[23:38:07][D][climate:396]: 'Thermostat' - Sending state:
[23:38:07][D][climate:399]:   Mode: OFF
[23:38:07][D][climate:401]:   Action: OFF
[23:38:07][D][climate:419]:   Current Temperature: 23.61°C
[23:38:07][D][climate:425]:   Target Temperature: 18.00°C
[23:38:10][D][main:403]: Attempting to upload TFT
[23:38:10][D][addon_upload_tft.script.report_upload_progress:158]: Attempt #4 at 115200 bps
[23:38:10][D][addon_upload_tft.script.nextion_upload:118]: Waiting for empty UART and Nextion queues
[23:38:12][D][text_sensor:064]: 'Device Name': Sending state 'nspanel_kitchen'
[23:38:17][D][sensor:094]: 'ntc_source': Sending state 1.60783 V with 2 decimals of accuracy
[23:38:17][D][resistance:039]: 'resistance_sensor' - Resistance 10641.8Ω
[23:38:17][D][sensor:094]: 'resistance_sensor': Sending state 10641.82129 Ω with 1 decimals of accuracy
[23:38:17][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:38:17][D][sensor:094]: 'Temperature': Sending state 23.60660 °C with 1 decimals of accuracy
[23:38:17][D][climate:396]: 'Thermostat' - Sending state:
[23:38:17][D][climate:399]:   Mode: OFF
[23:38:17][D][climate:401]:   Action: OFF
[23:38:17][D][climate:419]:   Current Temperature: 23.61°C
[23:38:17][D][climate:425]:   Target Temperature: 18.00°C
[23:38:19][D][esp32.preferences:114]: Saving 1 preferences to flash...
[23:38:19][D][esp32.preferences:143]: Saving 1 preferences to flash: 1 cached, 0 written, 0 failed
[23:38:22][D][addon_upload_tft.script.nextion_upload:126]: Starting TFT upload...
[23:38:22][D][nextion.upload.idf:157]: Nextion TFT upload requested
[23:38:22][D][nextion.upload.idf:158]: Exit reparse: NO
[23:38:22][D][nextion.upload.idf:159]: URL: http://192.168.3.50:8080/nspanelblank.tft
[23:38:22][D][nextion.upload.idf:188]: Baud rate: 115200
[23:38:22][D][nextion.upload.idf:235]: TFT file size: 275044 bytes
[23:38:22][D][nextion.upload.idf:248]: Uploading Nextion
[23:38:28][D][nextion.upload.idf:287]: Upgrade response is [] - 0 byte(s)
[23:38:28][E][nextion.upload.idf:293]: Preparation for TFT upload failed 0 ""
[23:38:28][D][nextion.upload.idf:294]: Close HTTP connection
[23:38:28][D][nextion.upload.idf:342]: Nextion TFT upload finished: NO
[23:38:28][E][nextion.upload.idf:358]: Nextion TFT upload failed
[23:38:28][D][addon_upload_tft.script.nextion_upload:128]: TFT upload: NO
[23:38:28][W][component:237]: Component script took a long time for an operation (5727 ms).
[23:38:28][W][component:238]: Components should block for at most 30 ms.
[23:38:28][D][addon_upload_tft.script.report_upload_progress:158]: Attempt #4 at 115200 bps returned: NO
[23:38:28][D][sensor:094]: 'ntc_source': Sending state 1.60733 V with 2 decimals of accuracy
[23:38:28][D][resistance:039]: 'resistance_sensor' - Resistance 10635.4Ω
[23:38:28][D][sensor:094]: 'resistance_sensor': Sending state 10635.36816 Ω with 1 decimals of accuracy
[23:38:28][D][ntc:026]: 'Temperature' - Temperature: 23.6°C
[23:38:28][D][sensor:094]: 'Temperature': Sending state 23.62012 °C with 1 decimals of accuracy
[23:38:28][D][climate:396]: 'Thermostat' - Sending state:
[23:38:28][D][climate:399]:   Mode: OFF
[23:38:28][D][climate:401]:   Action: OFF
[23:38:28][D][climate:419]:   Current Temperature: 23.62°C
[23:38:28][D][climate:425]:   Target Temperature: 18.00°C
[23:38:33][D][addon_upload_tft.script.report_upload_progress:158]: TFT upload failed
[23:38:33][D][addon_upload_tft.script.report_upload_progress:158]: Turn off Nextion and restart ESPHome
[23:38:33][D][switch:016]: 'Nextion display - Power' Turning OFF.
[23:38:33][D][switch:055]: 'Nextion display - Power': Sending state OFF

_Originally posted by @nikls2 in https://github.com/Blackymas/NSPanel_HA_Blueprint/issues/1781#issuecomment-2377993406_

edwardtfn commented 3 days ago

@nikls2, are you able to download that file from your computer when typing that url (http://192.168.3.50:8080/nspanelblank.tft) in your browser? When you do that, does the file have the same size as the original one? What if you select one of the other models for downloading the TFT directly from GitHub? Logs are welcome... 😉

Another thing you could try is to temporarily use arduino framework for the TFT transfer... Just add this to your panel's Yaml, flash it, and try the transfer again (and don't forget to share the new logs):

esp32:
  framework:
    type: arduino
nikls2 commented 2 days ago

Hi @edwardtfn Thanks for your quick answer and the new issue.

I can download the files in the browser and they are what they should be (downloaded correctly from github and checked the size). I setup a faster webserver in the network as well.

I changed the framework to arduino and tried again.

I share logs with different settings: Framework: arduino File: blank Source: github logs_arduino_blank_git.txt

Framework: arduino File: blank Source: local server logs_arduino_blank_local49.txt

Framework: arduino File: EU Source: github logs_arduino_eu_git.txt

Framework: arduino File: US Source: local server logs_arduino_us_local49.txt

And here my configuration, as there could be something wrong as well: config.txt

Any Ideas? I'm very happy for any Ideas and can try more things... Thanks!

edwardtfn commented 2 days ago

It is either crashing when trying to get the file from your server or isn't getting the file correctly:

[13:03:48][D][nextion.upload.arduino:156]: URL: http://192.168.3.49:8080/nspanelus.tft
[13:03:48][D][nextion.upload.arduino:185]: Baud rate: 115200
[13:03:48][D][nextion.upload.arduino:213]: Connected
[13:03:48][D][nextion.upload.arduino:218]: Requesting URL: http://192.168.3.49:8080/nspanelus.tft
[13:03:49][D][nextion.upload.arduino:244]: TFT file size: 0 bytes
[13:03:49][E][nextion.upload.arduino:246]: File size check failed.
[13:03:49][D][nextion.upload.arduino:247]: Close HTTP connection

I'm not at home right now, so will try to look at this again later and come back to you, but meanwhile, could you please comment out that line related to the add-on heat and try again? Maybe freeing up a bit of memory may help, although all the logs points to a connectivity (to the http server) issue.

nikls2 commented 10 hours ago

Hi, I commented out the line with the heat add-on and tried again. The logs are exactly the same. From my browser I can download the file and on the server (php running on linux) I see the GET from the NSPanels'IP (exactly like when I'm getting the file with the browser).

edwardtfn commented 1 hour ago

The issue looks to be related to some network issue. For some reason your panel cannot get the file from the server:

logs_arduino_blank_local49.txt

[12:48:42][D][nextion.upload.arduino:154]: Nextion TFT upload requested
[12:48:42][D][nextion.upload.arduino:155]: Exit reparse: NO
[12:48:42][D][nextion.upload.arduino:156]: URL: http://192.168.3.49:8080/nspanelblank.tft
[12:48:42][D][nextion.upload.arduino:185]: Baud rate: 115200
[12:48:42][D][nextion.upload.arduino:213]: Connected
[12:48:42][D][nextion.upload.arduino:218]: Requesting URL: http://192.168.3.49:8080/nspanelblank.tft
[12:48:43][D][nextion.upload.arduino:244]: TFT file size: 0 bytes
[12:48:43][E][nextion.upload.arduino:246]: File size check failed.
[12:48:43][D][nextion.upload.arduino:247]: Close HTTP connection

logs_arduino_eu_git.txt


[12:52:52][D][nextion.upload.arduino:154]: Nextion TFT upload requested
[12:52:52][D][nextion.upload.arduino:155]: Exit reparse: NO
[12:52:52][D][nextion.upload.arduino:156]: URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.3.11/hmi/nspanel_us.tft
[12:52:52][D][nextion.upload.arduino:185]: Baud rate: 115200
[12:52:52][D][nextion.upload.arduino:213]: Connected
[12:52:52][D][nextion.upload.arduino:218]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.3.11/hmi/nspanel_us.tft
WARNING nspanel-kitchen @ 192.168.3.42: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for nspanel-kitchen @ 192.168.3.42
WARNING Disconnected from API
INFO Successfully connected to nspanel-kitchen @ 192.168.3.42 in 0.010s
INFO Successful handshake with nspanel-kitchen @ 192.168.3.42 in 0.024s

logs_arduino_blank_git.txt


[12:55:12][D][nextion.upload.arduino:154]: Nextion TFT upload requested
[12:55:12][D][nextion.upload.arduino:155]: Exit reparse: NO
[12:55:12][D][nextion.upload.arduino:156]: URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.3.11/hmi/nspanel_blank.tft
[12:55:12][D][nextion.upload.arduino:185]: Baud rate: 115200
[12:55:12][D][nextion.upload.arduino:213]: Connected
[12:55:12][D][nextion.upload.arduino:218]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/v4.3.11/hmi/nspanel_blank.tft
WARNING nspanel-kitchen @ 192.168.3.42: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for nspanel-kitchen @ 192.168.3.42
WARNING Disconnected from API
INFO Successfully connected to nspanel-kitchen @ 192.168.3.42 in 0.014s
INFO Successful handshake with nspanel-kitchen @ 192.168.3.42 in 0.021s

logs_arduino_us_local49.txt


[13:03:32][D][nextion.upload.arduino:154]: Nextion TFT upload requested
[13:03:32][D][nextion.upload.arduino:155]: Exit reparse: NO
[13:03:32][D][nextion.upload.arduino:156]: URL: http://192.168.3.49:8080/nspanelus.tft
[13:03:32][D][nextion.upload.arduino:185]: Baud rate: 115200
[13:03:32][D][nextion.upload.arduino:213]: Connected
[13:03:32][D][nextion.upload.arduino:218]: Requesting URL: http://192.168.3.49:8080/nspanelus.tft
[13:03:32][D][nextion.upload.arduino:244]: TFT file size: 0 bytes
[13:03:32][E][nextion.upload.arduino:246]: File size check failed.
[13:03:32][D][nextion.upload.arduino:247]: Close HTTP connection

So, your panel is restarting when trying to connect to GitHub (which I've seeing before when DNS is not accessible) and isn't getting a valid response when it requests the file size from your local server.

I would suggest you to try another local server (Home Assistant itself is a quite reliable option) and double check if your panel's network settings (subnet, dns, etc.) are valid.