Blackymas / NSPanel_HA_Blueprint

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

TFT Upload failed #1313

Closed mathgoy closed 10 months ago

mathgoy commented 10 months ago

Hi gents,

I successfully flashed my NS Panel howver, I can't upload the TFT file ising the local link and the github link. There might be something I did worng but I can't figure out what this is.

Any help please?

THanks!

[21:25:19][D][button:010]: 'nspanel Update TFT display' Pressed.
[21:25:19][D][main:709]: Button pressed: Update TFT display
[21:25:19][D][script.upload_tft:091]: Try #1
[21:25:19][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[21:25:19][D][main:2485]: Exit reparse
[21:25:21][D][nextion_upload:145]: Nextion TFT upload requested
[21:25:21][D][nextion_upload:146]: url: http://10.10.0.20:8123/local/nspanel_eu.tft 
[21:25:21][D][nextion_upload:185]: Connected
[21:25:21][D][nextion_upload:191]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft 
[21:25:21][D][nextion_upload:225]: Updating Nextion NX4832F035_011C...
[21:25:21][D][nextion_upload:251]: Waiting for upgrade response
[21:25:23][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[21:25:23][D][nextion_upload:266]: preparation for tft update failed 0 ""
[21:25:23][D][nextion_upload:329]: Restarting Nextion
[21:25:23][D][script.upload_tft:097]: Turn off Nextion
[21:25:23][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[21:25:23][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[21:25:26][D][script.upload_tft:100]: Turn on Nextion
[21:25:26][D][switch:012]: 'nspanel Screen Power' Turning ON.
[21:25:26][D][switch:055]: 'nspanel Screen Power': Sending state ON
[21:25:28][D][script.upload_tft:091]: Try #2
[21:25:28][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[21:25:28][D][main:2485]: Exit reparse
[21:25:30][D][nextion_upload:145]: Nextion TFT upload requested
[21:25:30][D][nextion_upload:146]: url: http://10.10.0.20:8123/local/nspanel_eu.tft 
[21:25:30][D][nextion_upload:185]: Connected
[21:25:30][D][nextion_upload:191]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft 
[21:25:31][D][nextion_upload:225]: Updating Nextion NX4832F035_011C...
[21:25:31][D][nextion_upload:251]: Waiting for upgrade response
[21:25:33][D][nextion_upload:257]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74.75.70.2C.35.33.2C.65.75.57.88 (25)] - 25 bytes
[21:25:33][D][nextion_upload:260]: Available 0 : 0x55
[21:25:33][D][nextion_upload:260]: Available 1 : 0xBB
[21:25:33][D][nextion_upload:260]: Available 2 : 0x13
[21:25:33][D][nextion_upload:260]: Available 3 : 0x00
[21:25:33][D][nextion_upload:260]: Available 4 : 0x65
[21:25:33][D][nextion_upload:260]: Available 5 : 0x76
[21:25:33][D][nextion_upload:260]: Available 6 : 0x65
[21:25:33][D][nextion_upload:260]: Available 7 : 0x6E
[21:25:33][D][nextion_upload:260]: Available 8 : 0x74
[21:25:33][D][nextion_upload:260]: Available 9 : 0x2C
[21:25:33][D][nextion_upload:260]: Available 10 : 0x73
[21:25:33][D][nextion_upload:260]: Available 11 : 0x74
[21:25:33][D][nextion_upload:260]: Available 12 : 0x61
[21:25:33][D][nextion_upload:260]: Available 13 : 0x72
[21:25:33][D][nextion_upload:260]: Available 14 : 0x74
[21:25:36][D][nextion_upload:260]: Available 21 : 0x65
[21:25:36][D][script.upload_tft:100]: Turn on Nextion
[21:25:36][D][switch:012]: 'nspanel Screen Power' Turning ON.
[21:25:36][D][switch:055]: 'nspanel Screen Power': Sending state ON
[21:25:38][D][script.upload_tft:091]: Try #3
[21:25:38][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[21:25:38][D][main:2485]: Exit reparse
[21:25:40][D][nextion_upload:145]: Nextion TFT upload requested
[21:25:40][D][nextion_upload:146]: url: http://10.10.0.20:8123/local/nspanel_eu.tft 
[21:25:40][D][nextion_upload:185]: Connected
[21:25:40][D][nextion_upload:191]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft 
[21:25:40][D][nextion_upload:225]: Updating Nextion NX4832F035_011C...
[21:25:40][D][nextion_upload:251]: Waiting for upgrade response
[21:25:42][D][nextion_upload:257]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74.75.70.2C.35.33.2C.65.75.57.88 (25)] - 25 bytes
[21:25:42][D][nextion_upload:260]: Available 0 : 0x55
[21:25:42][D][nextion_upload:260]: Available 1 : 0xBB
[21:25:42][D][nextion_upload:260]: Available 2 : 0x13
[21:25:42][D][nextion_upload:260]: Available 3 : 0x00
[21:25:42][D][nextion_upload:260]: Available 4 : 0x65
[21:25:42][D][nextion_upload:260]: Available 5 : 0x76
[21:25:42][D][nextion_upload:260]: Available 6 : 0x65
[21:25:42][D][nextion_upload:260]: Available 7 : 0x6E
[21:25:42][D][nextion_upload:260]: Available 8 : 0x74
[21:25:42][D][nextion_upload:260]: Available 9 : 0x2C
[21:25:42][D][nextion_upload:260]: Available 10 : 0x73
[21:25:42][D][nextion_upload:260]: Available 11 : 0x74
[21:25:42][D][nextion_upload:260]: Available 12 : 0x61
[21:25:42][D][nextion_upload:260]: Available 13 : 0x72
[21:25:45][D][nextion_upload:260]: Available 14 : 0x74
[21:25:45][D][script.upload_tft:100]: Turn on Nextion
[21:25:45][D][switch:012]: 'nspanel Screen Power' Turning ON.
[21:25:45][D][switch:055]: 'nspanel Screen Power': Sending state ON
[21:25:47][E][script.upload_tft:104]: TFT upload failed.
mathgoy commented 10 months ago

@mathgoy, what about you? Are you still in the battle? How is your panel right now?

Hi, Still stuck. Made 0 progress since yesterday unfortunately.

edwardtfn commented 10 months ago

Ok.

Please try to update your system to the latest on ref: beta, as I've made some changes yesterday... Please clean the build files before compiling, to make sure you are with the latest code.

After that installed, wait a couple of minutes until the boot sequence finishes, then click 9 times in the center on the ring, click the recmod and 115200bps buttons, wait a bit (half a minute?) and then try to Upload TFT again, (nspanel_blank.tft, please). Share the logs here and I will see what to try next.

mathgoy commented 10 months ago

THanks!

Here is the log


[13:21:51][I][app:102]: ESPHome version 2023.11.6 compiled on Dec  1 2023, 13:21:06
[13:21:51][C][wifi:559]: WiFi:
[13:21:51][C][wifi:391]:   Local MAC: C4:DD:57:E8:13:D8
[13:21:51][C][wifi:396]:   SSID: [redacted]
[13:21:51][C][wifi:397]:   IP Address: 10.10.0.109
[13:21:51][C][wifi:399]:   BSSID: [redacted]
[13:21:51][C][wifi:400]:   Hostname: 'nspanel'
[13:21:51][C][wifi:402]:   Signal strength: -67 dB ▂▄▆█
[13:21:51][C][wifi:406]:   Channel: 1
[13:21:51][C][wifi:407]:   Subnet: 255.255.255.0
[13:21:51][C][wifi:408]:   Gateway: 10.10.0.1
[13:21:51][C][wifi:409]:   DNS1: 9.9.9.9
[13:21:51][C][wifi:410]:   DNS2: 1.1.1.1
[13:21:51][C][logger:416]: Logger:
[13:21:51][C][logger:417]:   Level: DEBUG
[13:21:51][C][logger:418]:   Log Baud Rate: 0
[13:21:51][C][logger:420]:   Hardware UART: UART0
[13:21:51][C][uart.arduino_esp32:124]: UART Bus 0:
[13:21:51][C][uart.arduino_esp32:125]:   TX Pin: GPIO16
[13:21:51][C][uart.arduino_esp32:126]:   RX Pin: GPIO17
[13:21:51][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[13:21:51][C][uart.arduino_esp32:130]:   Baud Rate: 115200 baud
[13:21:51][C][uart.arduino_esp32:131]:   Data Bits: 8
[13:21:51][C][uart.arduino_esp32:132]:   Parity: NONE
[13:21:51][C][uart.arduino_esp32:133]:   Stop bits: 1
[13:21:51][C][ledc.output:164]: LEDC Output:
[13:21:51][C][ledc.output:165]:   Pin GPIO21
[13:21:51][C][ledc.output:166]:   LEDC Channel: 0
[13:21:51][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[13:21:51][C][ledc.output:168]:   Bit depth: 16
[13:21:51][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display'
[13:21:51][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[13:21:51][C][template.number:050]: Template Number 'nspanel Display Brightness'
[13:21:51][C][template.number:050]:   Unit of Measurement: '%'
[13:21:51][C][template.number:051]:   Optimistic: YES
[13:21:51][C][template.number:052]:   Update Interval: 60.0s
[13:21:51][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown'
[13:21:51][C][template.number:050]:   Unit of Measurement: '%'
[13:21:51][C][template.number:051]:   Optimistic: YES
[13:21:51][C][template.number:052]:   Update Interval: 60.0s
[13:21:51][C][template.number:050]: Template Number 'nspanel Temperature Correction'
[13:21:51][C][template.number:050]:   Unit of Measurement: '°C'
[13:21:51][C][template.number:051]:   Optimistic: YES
[13:21:51][C][template.number:052]:   Update Interval: 60.0s
[13:21:51][C][template.number:050]: Template Number 'nspanel Timeout Page'
[13:21:51][C][template.number:050]:   Icon: 'mdi:timer'
[13:21:51][C][template.number:050]:   Unit of Measurement: 's'
[13:21:51][C][template.number:051]:   Optimistic: YES
[13:21:51][C][template.number:052]:   Update Interval: 60.0s
[13:21:51][C][template.number:050]: Template Number 'nspanel Timeout Dimming'
[13:21:51][C][template.number:050]:   Icon: 'mdi:timer'
[13:21:51][C][template.number:050]:   Unit of Measurement: 's'
[13:21:51][C][template.number:051]:   Optimistic: YES
[13:21:51][C][template.number:052]:   Update Interval: 60.0s
[13:21:51][C][template.number:050]: Template Number 'nspanel Timeout Sleep'
[13:21:51][C][template.number:050]:   Icon: 'mdi:timer'
[13:21:51][C][template.number:050]:   Unit of Measurement: 's'
[13:21:51][C][template.number:051]:   Optimistic: YES
[13:21:51][C][template.number:052]:   Update Interval: 60.0s
[13:21:51][W][nextion:077]: Nextion is not connected! 
[13:21:51][C][template.select:065]: Template Select 'nspanel Wake-up page'
[13:21:51][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[13:21:51][C][template.select:066]:   Update Interval: 60.0s
[13:21:51][C][template.select:069]:   Optimistic: YES
[13:21:51][C][template.select:070]:   Initial Option: home
[13:21:51][C][template.select:071]:   Restore Value: YES
[13:21:51][C][template.text_sensor:020]: Template Sensor 'nspanel Detailed Entity'
[13:21:51][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[13:21:51][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label'
[13:21:51][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text'
[13:21:52][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1'
[13:21:52][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[13:21:52][C][switch.gpio:031]:   Pin: GPIO22
[13:21:52][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2'
[13:21:52][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[13:21:52][C][switch.gpio:031]:   Pin: GPIO19
[13:21:52][E][uart:015]: Reading from UART timed out at byte 0!
[13:21:52][W][nextion:077]: Nextion is not connected! 
[13:21:52][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:21:52][W][component:215]: Components should block for at most 20-30ms.
[13:21:52][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button'
[13:21:52][C][gpio.binary_sensor:016]:   Pin: GPIO14
[13:21:52][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button'
[13:21:52][C][gpio.binary_sensor:016]:   Pin: GPIO27
[13:21:52][C][switch.gpio:068]: GPIO Switch 'nspanel Nextion display - Power'
[13:21:52][C][switch.gpio:091]:   Restore Mode: always ON
[13:21:52][C][switch.gpio:031]:   Pin: GPIO4
[13:21:52][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[13:21:52][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[13:21:52][C][template.switch:057]:   Optimistic: YES
[13:21:52][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[13:21:52][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[13:21:52][C][template.switch:057]:   Optimistic: YES
[13:21:52][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[13:21:52][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[13:21:52][C][template.switch:057]:   Optimistic: YES
[13:21:52][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[13:21:52][C][template.switch:091]:   Restore Mode: always OFF
[13:21:52][C][template.switch:057]:   Optimistic: YES
[13:21:52][C][rtttl:029]: Rtttl
[13:21:52][C][nextion:123]: Nextion:
[13:21:52][C][nextion:124]:   Device Model:     
[13:21:52][C][nextion:125]:   Firmware Version: 
[13:21:52][C][nextion:126]:   Serial Number:    
[13:21:52][C][nextion:127]:   Flash Size:       
[13:21:52][C][nextion:128]:   Wake On Touch:    True
[13:21:52][C][nextion:139]:   Start Up Page :      8
[13:21:52][C][restart.button:017]: Restart Button 'nspanel Restart'
[13:21:52][C][adc:097]: ADC Sensor 'ntc_source'
[13:21:52][C][adc:097]:   Device Class: 'voltage'
[13:21:52][C][adc:097]:   State Class: 'measurement'
[13:21:52][C][adc:097]:   Unit of Measurement: 'V'
[13:21:52][C][adc:097]:   Accuracy Decimals: 2
[13:21:52][C][adc:107]:   Pin: GPIO38
[13:21:52][C][adc:122]:  Attenuation: 11db
[13:21:53][C][adc:142]:   Update Interval: 60.0s
[13:21:53][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[13:21:53][C][resistance:010]:   State Class: 'measurement'
[13:21:53][C][resistance:010]:   Unit of Measurement: 'Ω'
[13:21:53][C][resistance:010]:   Accuracy Decimals: 1
[13:21:53][C][resistance:010]:   Icon: 'mdi:flash'
[13:21:53][C][resistance:011]:   Configuration: DOWNSTREAM
[13:21:53][C][resistance:012]:   Resistor: 11200.00Ω
[13:21:53][C][resistance:013]:   Reference Voltage: 3.3V
[13:21:53][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[13:21:53][C][ntc:014]:   Device Class: 'temperature'
[13:21:53][C][ntc:014]:   State Class: 'measurement'
[13:21:53][C][ntc:014]:   Unit of Measurement: '°C'
[13:21:53][C][ntc:014]:   Accuracy Decimals: 1
[13:21:53][E][uart:015]: Reading from UART timed out at byte 0!
[13:21:53][W][nextion:077]: Nextion is not connected! 
[13:21:53][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:21:53][W][component:215]: Components should block for at most 20-30ms.
[13:21:53][C][homeassistant.time:010]: Home Assistant Time:
[13:21:53][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[13:21:53][C][status:034]: Status Binary Sensor 'nspanel Status'
[13:21:53][C][status:034]:   Device Class: 'connectivity'
[13:21:53][E][uart:015]: Reading from UART timed out at byte 0!
[13:21:53][W][nextion:077]: Nextion is not connected! 
[13:21:53][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:21:53][W][component:215]: Components should block for at most 20-30ms.
[13:21:53][C][mdns:115]: mDNS:
[13:21:53][C][mdns:116]:   Hostname: nspanel
[13:21:53][C][ota:097]: Over-The-Air Updates:
[13:21:53][C][ota:098]:   Address: nspanel.local:3232
[13:21:53][C][ota:101]:   Using Password.
[13:21:53][C][api:139]: API Server:
[13:21:53][C][api:140]:   Address: nspanel.local:6053
[13:21:53][C][api:144]:   Using noise encryption: NO
[13:21:54][C][http_request:013]: HTTP Request:
[13:21:54][C][http_request:014]:   Timeout: 5000ms
[13:21:54][C][http_request:015]:   User-Agent: ESPHome
[13:21:54][C][http_request:016]:   Follow Redirects: 1
[13:21:54][C][http_request:017]:   Redirect limit: 3
[13:21:54][D][DEBUG:032]: Version: 4.1.3
[13:21:54][D][DEBUG:033]: Baud rate: 115200
[13:21:54][D][DEBUG:034]: Free heap: 176480
[13:21:54][D][DEBUG:035]: disp1->is_setup(): False
[13:21:54][W][nextion:077]: Nextion is not connected! 
[13:21:55][E][uart:015]: Reading from UART timed out at byte 0!
[13:21:55][W][nextion:077]: Nextion is not connected! 
[13:21:55][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:21:55][W][component:215]: Components should block for at most 20-30ms.
[13:21:55][E][uart:015]: Reading from UART timed out at byte 0!
[13:21:55][W][nextion:077]: Nextion is not connected! 
[13:21:55][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:21:55][W][component:215]: Components should block for at most 20-30ms.
[13:21:56][E][uart:015]: Reading from UART timed out at byte 0!
[13:21:56][W][nextion:077]: Nextion is not connected! 
[13:21:56][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:21:56][W][component:215]: Components should block for at most 20-30ms.
[13:21:56][E][uart:015]: Reading from UART timed out at byte 0!
[13:21:56][W][nextion:077]: Nextion is not connected! 
[13:21:56][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:21:56][W][component:215]: Components should block for at most 20-30ms.
[13:21:57][E][uart:015]: Reading from UART timed out at byte 0!
[13:21:57][W][nextion:077]: Nextion is not connected! 
[13:21:57][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:21:57][W][component:215]: Components should block for at most 20-30ms.
[13:21:58][E][uart:015]: Reading from UART timed out at byte 0!
[13:21:58][W][nextion:077]: Nextion is not connected! 
[13:21:58][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:21:58][W][component:215]: Components should block for at most 20-30ms.
[13:21:58][W][nextion:077]: Nextion is not connected! 
[13:21:59][W][nextion:077]: Nextion is not connected! 
[13:21:59][W][nextion:077]: Nextion is not connected! 
[13:22:00][D][DEBUG:032]: Version: 4.1.3
[13:22:00][D][DEBUG:033]: Baud rate: 115200
[13:22:00][D][DEBUG:034]: Free heap: 176172
[13:22:00][D][DEBUG:035]: disp1->is_setup(): False
[13:22:00][W][nextion:077]: Nextion is not connected! 
[13:22:00][W][nextion:077]: Nextion is not connected! 
[13:22:01][W][nextion:077]: Nextion is not connected! 
[13:22:02][W][nextion:077]: Nextion is not connected! 
[13:22:02][W][nextion:077]: Nextion is not connected! 
[13:22:03][W][nextion:077]: Nextion is not connected! 
[13:22:03][W][nextion:077]: Nextion is not connected! 
[13:22:04][W][nextion:077]: Nextion is not connected! 
[13:22:04][W][nextion:077]: Nextion is not connected! 
[13:22:05][W][nextion:077]: Nextion is not connected! 
[13:22:05][W][nextion:077]: Nextion is not connected! 
[13:22:06][W][nextion:077]: Nextion is not connected! 
[13:22:06][D][DEBUG:032]: Version: 4.1.3
[13:22:06][D][DEBUG:033]: Baud rate: 115200
[13:22:06][D][DEBUG:034]: Free heap: 176316
[13:22:06][D][DEBUG:035]: disp1->is_setup(): False
[13:22:06][W][nextion:077]: Nextion is not connected! 
[13:22:07][W][nextion:077]: Nextion is not connected! 
[13:22:07][W][nextion:077]: Nextion is not connected! 
[13:22:08][W][nextion:077]: Nextion is not connected! 
[13:22:08][W][nextion:077]: Nextion is not connected! 
[13:22:09][W][nextion:077]: Nextion is not connected! 
[13:22:10][W][nextion:077]: Nextion is not connected! 
[13:22:10][W][nextion:077]: Nextion is not connected! 
[13:22:10][D][main:2562]: Exit reparse
[13:22:11][W][nextion:077]: Nextion is not connected! 
[13:22:11][W][nextion:077]: Nextion is not connected! 
[13:22:12][W][nextion:077]: Nextion is not connected! 
[13:22:12][D][DEBUG:032]: Version: 4.1.3
[13:22:12][D][DEBUG:033]: Baud rate: 115200
[13:22:12][D][DEBUG:034]: Free heap: 176284
[13:22:12][D][DEBUG:035]: disp1->is_setup(): False
[13:22:12][W][nextion:077]: Nextion is not connected! 
[13:22:13][W][nextion:077]: Nextion is not connected! 
[13:22:13][W][nextion:077]: Nextion is not connected! 
[13:22:14][W][nextion:077]: Nextion is not connected! 
[13:22:14][W][nextion:077]: Nextion is not connected! 
[13:22:15][W][nextion:077]: Nextion is not connected! 
[13:22:15][W][nextion:077]: Nextion is not connected! 
[13:22:16][W][nextion:077]: Nextion is not connected! 
[13:22:17][W][nextion:077]: Nextion is not connected! 
[13:22:17][W][nextion:077]: Nextion is not connected! 
[13:22:18][W][nextion:077]: Nextion is not connected! 
[13:22:18][D][DEBUG:032]: Version: 4.1.3
[13:22:18][D][DEBUG:033]: Baud rate: 115200
[13:22:18][D][DEBUG:034]: Free heap: 176636
[13:22:18][D][DEBUG:035]: disp1->is_setup(): False
[13:22:18][W][nextion:077]: Nextion is not connected! 
[13:22:19][W][nextion:077]: Nextion is not connected! 
[13:22:19][W][nextion:077]: Nextion is not connected! 
[13:22:19][D][sensor:094]: 'ntc_source': Sending state 1.84300 V with 2 decimals of accuracy
[13:22:19][D][resistance:039]: 'resistance_sensor' - Resistance 14167.2Ω
[13:22:19][D][sensor:094]: 'resistance_sensor': Sending state 14167.19434 Ω with 1 decimals of accuracy
[13:22:19][D][ntc:026]: 'nspanel Temperature' - Temperature: 17.4°C
[13:22:19][D][sensor:094]: 'nspanel Temperature': Sending state 17.36147 °C with 1 decimals of accuracy
[13:22:20][W][nextion:077]: Nextion is not connected! 
[13:22:20][W][nextion:077]: Nextion is not connected! 
[13:22:21][W][nextion:077]: Nextion is not connected! 
[13:22:21][W][nextion:077]: Nextion is not connected! 
[13:22:22][W][nextion:077]: Nextion is not connected! 
[13:22:22][W][nextion:077]: Nextion is not connected! 
[13:22:23][W][nextion:077]: Nextion is not connected! 
[13:22:23][W][nextion:077]: Nextion is not connected! 
[13:22:24][D][DEBUG:032]: Version: 4.1.3
[13:22:24][D][DEBUG:033]: Baud rate: 115200
[13:22:24][D][DEBUG:034]: Free heap: 176340
[13:22:24][D][DEBUG:035]: disp1->is_setup(): False
[13:22:24][W][nextion:077]: Nextion is not connected! 
[13:22:25][W][nextion:077]: Nextion is not connected! 
[13:22:25][W][nextion:077]: Nextion is not connected! 
[13:22:26][W][nextion:077]: Nextion is not connected! 
[13:22:26][W][nextion:077]: Nextion is not connected! 
[13:22:27][W][nextion:077]: Nextion is not connected! 
[13:22:27][W][nextion:077]: Nextion is not connected! 
[13:22:28][W][nextion:077]: Nextion is not connected! 
[13:22:28][W][nextion:077]: Nextion is not connected! 
[13:22:29][W][nextion:077]: Nextion is not connected! 
[13:22:29][W][nextion:077]: Nextion is not connected! 
[13:22:30][D][DEBUG:032]: Version: 4.1.3
[13:22:30][D][DEBUG:033]: Baud rate: 115200
[13:22:30][D][DEBUG:034]: Free heap: 176316
[13:22:30][D][DEBUG:035]: disp1->is_setup(): False
[13:22:30][W][nextion:077]: Nextion is not connected! 
[13:22:30][D][script.nextion_status:2653]: Nextion status:
[13:22:30][D][script.nextion_status:2655]:   Is setup:    False
[13:22:30][E][on_boot:059]: No response from Nextion display
[13:22:30][D][on_boot:060]: Turn off Nextion
[13:22:30][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[13:22:30][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[13:22:30][D][on_boot:046]: Wait 2 seconds
[13:22:32][D][on_boot:063]: Turn on Nextion
[13:22:32][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[13:22:32][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[13:22:32][D][on_boot:046]: Wait 5 seconds
[13:22:37][D][script.nextion_status:2653]: Nextion status:
[13:22:37][D][script.nextion_status:2655]:   Is setup:    False
[13:22:37][W][component:214]: Component esphome.coroutine took a long time for an operation (7.06 s).
[13:22:37][W][component:215]: Components should block for at most 20-30ms.
[13:22:37][D][DEBUG:032]: Version: 4.1.3
[13:22:37][D][DEBUG:033]: Baud rate: 115200
[13:22:37][D][DEBUG:034]: Free heap: 176244
[13:22:37][D][DEBUG:035]: disp1->is_setup(): False
[13:22:37][W][nextion:077]: Nextion is not connected! 
[13:22:38][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:38][W][nextion:077]: Nextion is not connected! 
[13:22:38][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:38][W][component:215]: Components should block for at most 20-30ms.
[13:22:38][W][nextion:077]: Nextion is not connected! 
[13:22:39][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:39][W][nextion:077]: Nextion is not connected! 
[13:22:39][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:39][W][component:215]: Components should block for at most 20-30ms.
[13:22:40][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:40][W][nextion:077]: Nextion is not connected! 
[13:22:40][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:40][W][component:215]: Components should block for at most 20-30ms.
[13:22:40][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:40][W][nextion:077]: Nextion is not connected! 
[13:22:40][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:40][W][component:215]: Components should block for at most 20-30ms.
[13:22:41][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:41][W][nextion:077]: Nextion is not connected! 
[13:22:41][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:41][W][component:215]: Components should block for at most 20-30ms.
[13:22:42][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:42][W][nextion:077]: Nextion is not connected! 
[13:22:42][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:42][W][component:215]: Components should block for at most 20-30ms.
[13:22:42][D][DEBUG:032]: Version: 4.1.3
[13:22:42][D][DEBUG:033]: Baud rate: 115200
[13:22:42][D][DEBUG:034]: Free heap: 176168
[13:22:42][D][DEBUG:035]: disp1->is_setup(): False
[13:22:42][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:42][W][nextion:077]: Nextion is not connected! 
[13:22:42][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:42][W][component:215]: Components should block for at most 20-30ms.
[13:22:43][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:43][W][nextion:077]: Nextion is not connected! 
[13:22:43][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:43][W][component:215]: Components should block for at most 20-30ms.
[13:22:44][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:44][W][nextion:077]: Nextion is not connected! 
[13:22:44][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:44][W][component:215]: Components should block for at most 20-30ms.
[13:22:44][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:44][W][nextion:077]: Nextion is not connected! 
[13:22:44][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:44][W][component:215]: Components should block for at most 20-30ms.
[13:22:45][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:45][W][nextion:077]: Nextion is not connected! 
[13:22:45][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:45][W][component:215]: Components should block for at most 20-30ms.
[13:22:46][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:46][W][nextion:077]: Nextion is not connected! 
[13:22:46][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:46][W][component:215]: Components should block for at most 20-30ms.
[13:22:46][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:46][W][nextion:077]: Nextion is not connected! 
[13:22:46][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:46][W][component:215]: Components should block for at most 20-30ms.
[13:22:47][W][nextion:077]: Nextion is not connected! 
[13:22:47][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:47][W][nextion:077]: Nextion is not connected! 
[13:22:47][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:47][W][component:215]: Components should block for at most 20-30ms.
[13:22:48][D][DEBUG:032]: Version: 4.1.3
[13:22:48][D][DEBUG:033]: Baud rate: 115200
[13:22:48][D][DEBUG:034]: Free heap: 176260
[13:22:48][D][DEBUG:035]: disp1->is_setup(): False
[13:22:48][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:48][W][nextion:077]: Nextion is not connected! 
[13:22:48][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:48][W][component:215]: Components should block for at most 20-30ms.
[13:22:49][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:49][W][nextion:077]: Nextion is not connected! 
[13:22:49][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:49][W][component:215]: Components should block for at most 20-30ms.
[13:22:49][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:49][W][nextion:077]: Nextion is not connected! 
[13:22:49][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:49][W][component:215]: Components should block for at most 20-30ms.
[13:22:50][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:50][W][nextion:077]: Nextion is not connected! 
[13:22:50][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:50][W][component:215]: Components should block for at most 20-30ms.
[13:22:51][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:51][W][nextion:077]: Nextion is not connected! 
[13:22:51][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:51][W][component:215]: Components should block for at most 20-30ms.
[13:22:51][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:51][W][nextion:077]: Nextion is not connected! 
[13:22:51][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:51][W][component:215]: Components should block for at most 20-30ms.
[13:22:52][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:52][W][nextion:077]: Nextion is not connected! 
[13:22:52][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:52][W][component:215]: Components should block for at most 20-30ms.
[13:22:53][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:53][W][nextion:077]: Nextion is not connected! 
[13:22:53][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:53][W][component:215]: Components should block for at most 20-30ms.
[13:22:53][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:53][W][nextion:077]: Nextion is not connected! 
[13:22:53][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:53][W][component:215]: Components should block for at most 20-30ms.
[13:22:54][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:54][W][nextion:077]: Nextion is not connected! 
[13:22:54][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:54][W][component:215]: Components should block for at most 20-30ms.
[13:22:54][D][DEBUG:032]: Version: 4.1.3
[13:22:54][D][DEBUG:033]: Baud rate: 115200
[13:22:54][D][DEBUG:034]: Free heap: 176744
[13:22:54][D][DEBUG:035]: disp1->is_setup(): False
[13:22:54][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:54][W][nextion:077]: Nextion is not connected! 
[13:22:54][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:54][W][component:215]: Components should block for at most 20-30ms.
[13:22:55][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:55][W][nextion:077]: Nextion is not connected! 
[13:22:55][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:55][W][component:215]: Components should block for at most 20-30ms.
[13:22:56][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:56][W][nextion:077]: Nextion is not connected! 
[13:22:56][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:56][W][component:215]: Components should block for at most 20-30ms.
[13:22:56][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:56][W][nextion:077]: Nextion is not connected! 
[13:22:56][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:56][W][component:215]: Components should block for at most 20-30ms.
[13:22:57][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:57][W][nextion:077]: Nextion is not connected! 
[13:22:57][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:57][W][component:215]: Components should block for at most 20-30ms.
[13:22:58][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:58][W][nextion:077]: Nextion is not connected! 
[13:22:58][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:58][W][component:215]: Components should block for at most 20-30ms.
[13:22:58][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:58][W][nextion:077]: Nextion is not connected! 
[13:22:58][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:58][W][component:215]: Components should block for at most 20-30ms.
[13:22:59][E][uart:015]: Reading from UART timed out at byte 0!
[13:22:59][W][nextion:077]: Nextion is not connected! 
[13:22:59][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:22:59][W][component:215]: Components should block for at most 20-30ms.
[13:23:00][E][uart:015]: Reading from UART timed out at byte 0!
[13:23:00][W][nextion:077]: Nextion is not connected! 
[13:23:00][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:23:00][W][component:215]: Components should block for at most 20-30ms.
[13:23:00][D][DEBUG:032]: Version: 4.1.3
[13:23:00][D][DEBUG:033]: Baud rate: 115200
[13:23:00][D][DEBUG:034]: Free heap: 176744
[13:23:00][D][DEBUG:035]: disp1->is_setup(): False
[13:23:00][E][uart:015]: Reading from UART timed out at byte 0!
[13:23:00][W][nextion:077]: Nextion is not connected! 
[13:23:00][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:23:00][W][component:215]: Components should block for at most 20-30ms.
[13:23:01][E][uart:015]: Reading from UART timed out at byte 0!
[13:23:01][W][nextion:077]: Nextion is not connected! 
[13:23:01][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[13:23:01][W][component:215]: Components should block for at most 20-30ms.
[13:23:01][W][nextion:077]: Nextion is not connected! 
[13:23:02][W][nextion:077]: Nextion is not connected! 
[13:23:02][W][nextion:077]: Nextion is not connected! 
[13:23:03][W][nextion:077]: Nextion is not connected! 
[13:23:04][W][nextion:077]: Nextion is not connected! 
[13:23:04][W][nextion:077]: Nextion is not connected! 
[13:23:05][W][nextion:077]: Nextion is not connected! 
[13:23:05][W][nextion:077]: Nextion is not connected! 
[13:23:06][W][nextion:077]: Nextion is not connected! 
[13:23:06][D][DEBUG:032]: Version: 4.1.3
[13:23:06][D][DEBUG:033]: Baud rate: 115200
[13:23:06][D][DEBUG:034]: Free heap: 176380
[13:23:06][D][DEBUG:035]: disp1->is_setup(): False
[13:23:06][W][nextion:077]: Nextion is not connected! 
[13:23:07][W][nextion:077]: Nextion is not connected! 
[13:23:07][W][nextion:077]: Nextion is not connected! 
[13:23:08][W][nextion:077]: Nextion is not connected! 
[13:23:08][W][nextion:077]: Nextion is not connected! 
[13:23:09][W][nextion:077]: Nextion is not connected! 
[13:23:09][W][nextion:077]: Nextion is not connected! 
[13:23:10][W][nextion:077]: Nextion is not connected! 
[13:23:11][W][nextion:077]: Nextion is not connected! 
[13:23:11][W][nextion:077]: Nextion is not connected! 
[13:23:12][W][nextion:077]: Nextion is not connected! 
[13:23:12][D][DEBUG:032]: Version: 4.1.3
[13:23:12][D][DEBUG:033]: Baud rate: 115200
[13:23:12][D][DEBUG:034]: Free heap: 176380
[13:23:12][D][DEBUG:035]: disp1->is_setup(): False
[13:23:12][W][nextion:077]: Nextion is not connected! 
[13:23:13][W][nextion:077]: Nextion is not connected! 
[13:23:13][W][nextion:077]: Nextion is not connected! 
[13:23:14][W][nextion:077]: Nextion is not connected! 
[13:23:14][W][nextion:077]: Nextion is not connected! 
[13:23:15][W][nextion:077]: Nextion is not connected! 
[13:23:15][W][nextion:077]: Nextion is not connected! 
[13:23:16][W][nextion:077]: Nextion is not connected! 
[13:23:16][W][nextion:077]: Nextion is not connected! 
[13:23:17][W][nextion:077]: Nextion is not connected! 
[13:23:17][W][nextion:077]: Nextion is not connected! 
[13:23:18][D][DEBUG:032]: Version: 4.1.3
[13:23:18][D][DEBUG:033]: Baud rate: 115200
[13:23:18][D][DEBUG:034]: Free heap: 176492
[13:23:18][D][DEBUG:035]: disp1->is_setup(): False
[13:23:18][W][nextion:077]: Nextion is not connected! 
[13:23:19][W][nextion:077]: Nextion is not connected! 
[13:23:19][W][nextion:077]: Nextion is not connected! 
[13:23:19][D][sensor:094]: 'ntc_source': Sending state 1.83100 V with 2 decimals of accuracy
[13:23:19][D][resistance:039]: 'resistance_sensor' - Resistance 13960.0Ω
[13:23:19][D][sensor:094]: 'resistance_sensor': Sending state 13959.97266 Ω with 1 decimals of accuracy
[13:23:19][D][ntc:026]: 'nspanel Temperature' - Temperature: 17.7°C
[13:23:19][D][sensor:094]: 'nspanel Temperature': Sending state 17.67665 °C with 1 decimals of accuracy
[13:23:20][W][nextion:077]: Nextion is not connected! 
[13:23:20][W][nextion:077]: Nextion is not connected! 
[13:23:21][W][nextion:077]: Nextion is not connected! 
[13:23:21][W][nextion:077]: Nextion is not connected! 
[13:23:22][W][nextion:077]: Nextion is not connected! 
[13:23:22][D][script.nextion_status:2653]: Nextion status:
[13:23:22][D][script.nextion_status:2655]:   Is setup:    False
[13:23:22][E][on_boot:076]: No response from Nextion display
[13:23:22][D][on_boot:078]: Finished
[13:23:22][W][nextion:077]: Nextion is not connected! 
[13:23:23][W][nextion:077]: Nextion is not connected! 
[13:23:23][W][nextion:077]: Nextion is not connected! 
[13:23:24][D][DEBUG:032]: Version: 4.1.3
[13:23:24][D][DEBUG:033]: Baud rate: 115200
[13:23:24][D][DEBUG:034]: Free heap: 176788
[13:23:24][D][DEBUG:035]: disp1->is_setup(): False
[13:23:24][W][nextion:077]: Nextion is not connected! 
[13:23:24][W][nextion:077]: Nextion is not connected! 
[13:23:25][W][nextion:077]: Nextion is not connected! 
[13:23:25][W][nextion:077]: Nextion is not connected! 
[13:23:26][W][nextion:077]: Nextion is not connected! 
[13:23:27][W][nextion:077]: Nextion is not connected! 
[13:23:27][W][nextion:077]: Nextion is not connected! 
[13:23:28][W][nextion:077]: Nextion is not connected! 
[13:23:28][W][nextion:077]: Nextion is not connected! 
[13:23:29][W][nextion:077]: Nextion is not connected! 
[13:23:29][W][nextion:077]: Nextion is not connected! 
[13:23:30][W][nextion:077]: Nextion is not connected! 
[13:23:30][D][DEBUG:032]: Version: 4.1.3
[13:23:30][D][DEBUG:033]: Baud rate: 115200
[13:23:30][D][DEBUG:034]: Free heap: 176844
[13:23:30][D][DEBUG:035]: disp1->is_setup(): False
[13:23:30][W][nextion:077]: Nextion is not connected! 
[13:23:31][W][nextion:077]: Nextion is not connected! 
[13:23:31][W][nextion:077]: Nextion is not connected! 
[13:23:32][W][nextion:077]: Nextion is not connected! 
[13:23:32][W][nextion:077]: Nextion is not connected! 
[13:23:33][W][nextion:077]: Nextion is not connected! 
[13:23:34][W][nextion:077]: Nextion is not connected! 
[13:23:34][W][nextion:077]: Nextion is not connected! 
[13:23:35][W][nextion:077]: Nextion is not connected! 
[13:23:35][W][nextion:077]: Nextion is not connected! 
[13:23:36][W][nextion:077]: Nextion is not connected! 
[13:23:36][D][DEBUG:032]: Version: 4.1.3
[13:23:36][D][DEBUG:033]: Baud rate: 115200
[13:23:36][D][DEBUG:034]: Free heap: 176792
[13:23:36][D][DEBUG:035]: disp1->is_setup(): False
[13:23:36][W][nextion:077]: Nextion is not connected! 
[13:23:37][W][nextion:077]: Nextion is not connected! 
[13:23:37][W][nextion:077]: Nextion is not connected! 
[13:23:38][W][nextion:077]: Nextion is not connected! 
[13:23:38][W][nextion:077]: Nextion is not connected! 
[13:23:39][W][nextion:077]: Nextion is not connected! 
[13:23:39][W][nextion:077]: Nextion is not connected! 
[13:23:40][W][nextion:077]: Nextion is not connected! 
[13:23:40][W][nextion:077]: Nextion is not connected! 
[13:23:41][W][nextion:077]: Nextion is not connected! 
[13:23:42][W][nextion:077]: Nextion is not connected! 
[13:23:42][D][DEBUG:032]: Version: 4.1.3
[13:23:42][D][DEBUG:033]: Baud rate: 115200
[13:23:42][D][DEBUG:034]: Free heap: 176484
[13:23:42][D][DEBUG:035]: disp1->is_setup(): False
[13:23:42][W][nextion:077]: Nextion is not connected! 
[13:23:43][W][nextion:077]: Nextion is not connected! 
[13:23:43][W][nextion:077]: Nextion is not connected! 
[13:23:44][W][nextion:077]: Nextion is not connected! 
[13:23:44][W][nextion:077]: Nextion is not connected! 
[13:23:45][W][nextion:077]: Nextion is not connected! 
[13:23:45][W][nextion:077]: Nextion is not connected! 
[13:23:46][W][nextion:077]: Nextion is not connected! 
[13:23:46][W][nextion:077]: Nextion is not connected! 
[13:23:47][W][nextion:077]: Nextion is not connected! 
[13:23:47][W][nextion:077]: Nextion is not connected! 
[13:23:48][D][DEBUG:032]: Version: 4.1.3
[13:23:48][D][DEBUG:033]: Baud rate: 115200
[13:23:48][D][DEBUG:034]: Free heap: 176456
[13:23:48][D][DEBUG:035]: disp1->is_setup(): False
[13:23:48][W][nextion:077]: Nextion is not connected! 
[13:23:48][W][nextion:077]: Nextion is not connected! 
[13:23:49][W][nextion:077]: Nextion is not connected! 
[13:23:50][W][nextion:077]: Nextion is not connected! 
[13:23:50][W][nextion:077]: Nextion is not connected! 
[13:23:51][W][nextion:077]: Nextion is not connected! 
[13:23:51][W][nextion:077]: Nextion is not connected! 
[13:23:52][W][nextion:077]: Nextion is not connected! 
[13:23:52][W][nextion:077]: Nextion is not connected! 
[13:23:53][W][nextion:077]: Nextion is not connected! 
[13:23:53][W][nextion:077]: Nextion is not connected! 
[13:23:54][D][DEBUG:032]: Version: 4.1.3
[13:23:54][D][DEBUG:033]: Baud rate: 115200
[13:23:54][D][DEBUG:034]: Free heap: 176536
[13:23:54][D][DEBUG:035]: disp1->is_setup(): False
[13:23:54][W][nextion:077]: Nextion is not connected! 
[13:23:54][W][nextion:077]: Nextion is not connected! 
[13:23:55][W][nextion:077]: Nextion is not connected! 
[13:23:55][W][nextion:077]: Nextion is not connected! 
[13:23:56][W][nextion:077]: Nextion is not connected! 
[13:23:57][W][nextion:077]: Nextion is not connected! 
[13:23:57][D][button:010]: 'nspanel Update TFT display' Pressed.
[13:23:57][D][main:730]: Button pressed: Update TFT display
[13:23:57][D][script.upload_tft:139]: Starting...
[13:23:57][D][script.stop_all:2706]: Stopping scripts...
[13:23:57][D][script.stop_all:2755]: Finished
[13:23:57][D][script.upload_tft:765]: Try #1
[13:23:57][D][script.upload_tft.upload_tft_arduino:365]: Nextion TFT upload requested
[13:23:57][D][script.upload_tft.upload_tft_arduino:366]: url: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:23:57][D][script.upload_tft.upload_tft_arduino:367]: baud_rate: 115200
[13:23:57][D][script.upload_tft.upload_tft_arduino:380]: Setting Nextion protocol reparse mode to passive
[13:23:57][D][main:2562]: Exit reparse
[13:23:57][D][script.upload_tft:156]: Wait 5 seconds
[13:24:02][D][script.upload_tft.upload_tft_arduino:398]: Connected
[13:24:02][D][script.upload_tft.upload_tft_arduino:404]: Requesting URL: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:24:02][D][script.upload_tft.upload_tft_arduino:436]: Updating Nextion
[13:24:02][D][script.upload_tft.send_nextion_command:170]: Sending: whmi-wris 275288,115200,1
[13:24:02][D][script.upload_tft.upload_tft_arduino:460]: Waiting for upgrade response
[13:24:02][D][script.upload_tft.upload_tft_arduino:465]: Upgrade response is [24]
[13:24:02][D][script.upload_tft.upload_tft_arduino:470]: Preparation for tft update failed 36 "$"
[13:24:02][D][script.upload_tft.upload_end_:238]: Completed: 0
[13:24:03][D][script.upload_tft.upload_end_:248]: Nextion TFT upload will try again
[13:24:03][D][script.upload_tft:767]: Turn off Nextion
[13:24:03][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[13:24:03][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[13:24:03][D][script.upload_tft:156]: Wait 2 seconds
[13:24:05][D][script.upload_tft:770]: Turn on Nextion
[13:24:05][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[13:24:05][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[13:24:05][D][script.upload_tft:156]: Wait 5 seconds
[13:24:10][D][script.upload_tft:765]: Try #2
[13:24:10][D][script.upload_tft.upload_tft_arduino:365]: Nextion TFT upload requested
[13:24:10][D][script.upload_tft.upload_tft_arduino:366]: url: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:24:10][D][script.upload_tft.upload_tft_arduino:367]: baud_rate: 115200
[13:24:10][D][script.upload_tft.upload_tft_arduino:380]: Setting Nextion protocol reparse mode to passive
[13:24:10][D][main:2562]: Exit reparse
[13:24:10][D][script.upload_tft:156]: Wait 5 seconds
[13:24:15][D][script.upload_tft.upload_tft_arduino:398]: Connected
[13:24:15][D][script.upload_tft.upload_tft_arduino:404]: Requesting URL: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:24:16][D][script.upload_tft.upload_tft_arduino:436]: Updating Nextion
[13:24:16][D][script.upload_tft.send_nextion_command:170]: Sending: whmi-wris 275288,115200,1
[13:24:16][D][script.upload_tft.upload_tft_arduino:460]: Waiting for upgrade response
[13:24:18][D][script.upload_tft.upload_tft_arduino:465]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74.75.70.2C.35.33.2C.65.75.57 (24)]
[13:24:18][D][script.upload_tft.upload_tft_arduino:470]: Preparation for tft update failed 85 "U\xbb"
[13:24:18][D][script.upload_tft.upload_end_:238]: Completed: 0
[13:24:19][D][script.upload_tft.upload_end_:248]: Nextion TFT upload will try again
[13:24:19][D][script.upload_tft:767]: Turn off Nextion
[13:24:19][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[13:24:19][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[13:24:19][D][script.upload_tft:156]: Wait 2 seconds
[13:24:21][D][script.upload_tft:770]: Turn on Nextion
[13:24:21][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[13:24:21][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[13:24:21][D][script.upload_tft:156]: Wait 5 seconds
[13:24:26][D][script.upload_tft:765]: Try #3
[13:24:26][D][script.upload_tft.upload_tft_arduino:365]: Nextion TFT upload requested
[13:24:26][D][script.upload_tft.upload_tft_arduino:366]: url: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:24:26][D][script.upload_tft.upload_tft_arduino:367]: baud_rate: 115200
[13:24:26][D][script.upload_tft.upload_tft_arduino:380]: Setting Nextion protocol reparse mode to passive
[13:24:26][D][main:2562]: Exit reparse
[13:24:26][D][script.upload_tft:156]: Wait 5 seconds
[13:24:31][D][script.upload_tft.upload_tft_arduino:398]: Connected
[13:24:31][D][script.upload_tft.upload_tft_arduino:404]: Requesting URL: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:24:31][D][script.upload_tft.upload_tft_arduino:436]: Updating Nextion
[13:24:31][D][script.upload_tft.send_nextion_command:170]: Sending: whmi-wris 275288,115200,1
[13:24:31][D][script.upload_tft.upload_tft_arduino:460]: Waiting for upgrade response
[13:24:33][D][script.upload_tft.upload_tft_arduino:465]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74 (15)]
[13:24:33][D][script.upload_tft.upload_tft_arduino:470]: Preparation for tft update failed 85 "U\xbb"
[13:24:33][D][script.upload_tft.upload_end_:238]: Completed: 0
[13:24:35][D][script.upload_tft.upload_end_:248]: Nextion TFT upload will try again
[13:24:35][D][script.upload_tft:767]: Turn off Nextion
[13:24:35][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[13:24:35][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[13:24:35][D][script.upload_tft:156]: Wait 2 seconds
[13:24:37][D][script.upload_tft:770]: Turn on Nextion
[13:24:37][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[13:24:37][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[13:24:37][D][script.upload_tft:156]: Wait 5 seconds
[13:24:42][D][script.upload_tft:765]: Try #4
[13:24:42][D][script.upload_tft.upload_tft_arduino:365]: Nextion TFT upload requested
[13:24:42][D][script.upload_tft.upload_tft_arduino:366]: url: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:24:42][D][script.upload_tft.upload_tft_arduino:367]: baud_rate: 115200
[13:24:42][D][script.upload_tft.upload_tft_arduino:380]: Setting Nextion protocol reparse mode to passive
[13:24:42][D][main:2562]: Exit reparse
[13:24:42][D][script.upload_tft:156]: Wait 5 seconds
[13:24:47][D][script.upload_tft.upload_tft_arduino:398]: Connected
[13:24:47][D][script.upload_tft.upload_tft_arduino:404]: Requesting URL: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:24:47][D][script.upload_tft.upload_tft_arduino:436]: Updating Nextion
[13:24:47][D][script.upload_tft.send_nextion_command:170]: Sending: whmi-wris 275288,115200,1
[13:24:47][D][script.upload_tft.upload_tft_arduino:460]: Waiting for upgrade response
[13:24:49][D][script.upload_tft.upload_tft_arduino:465]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74.75.70.2C.35.33.2C (21)]
[13:24:49][D][script.upload_tft.upload_tft_arduino:470]: Preparation for tft update failed 85 "U\xbb"
[13:24:49][D][script.upload_tft.upload_end_:238]: Completed: 0
[13:24:51][D][script.upload_tft.upload_end_:248]: Nextion TFT upload will try again
[13:24:51][D][script.upload_tft:767]: Turn off Nextion
[13:24:51][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[13:24:51][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[13:24:51][D][script.upload_tft:156]: Wait 2 seconds
[13:24:53][D][script.upload_tft:770]: Turn on Nextion
[13:24:53][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[13:24:53][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[13:24:53][D][script.upload_tft:156]: Wait 5 seconds
[13:24:58][D][script.upload_tft:765]: Try #5
[13:24:58][D][script.upload_tft.upload_tft_arduino:365]: Nextion TFT upload requested
[13:24:58][D][script.upload_tft.upload_tft_arduino:366]: url: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:24:58][D][script.upload_tft.upload_tft_arduino:367]: baud_rate: 115200
[13:24:58][D][script.upload_tft.upload_tft_arduino:380]: Setting Nextion protocol reparse mode to passive
[13:24:58][D][main:2562]: Exit reparse
[13:24:58][D][script.upload_tft:156]: Wait 5 seconds
[13:25:03][D][script.upload_tft.upload_tft_arduino:398]: Connected
[13:25:03][D][script.upload_tft.upload_tft_arduino:404]: Requesting URL: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:25:03][D][script.upload_tft.upload_tft_arduino:436]: Updating Nextion
[13:25:03][D][script.upload_tft.send_nextion_command:170]: Sending: whmi-wris 275288,115200,1
[13:25:03][D][script.upload_tft.upload_tft_arduino:460]: Waiting for upgrade response
[13:25:05][D][script.upload_tft.upload_tft_arduino:465]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74.75.70.2C.35 (19)]
[13:25:05][D][script.upload_tft.upload_tft_arduino:470]: Preparation for tft update failed 85 "U\xbb"
[13:25:05][D][script.upload_tft.upload_end_:238]: Completed: 0
[13:25:06][D][script.upload_tft.upload_end_:248]: Nextion TFT upload will try again
[13:25:06][D][script.upload_tft:767]: Turn off Nextion
[13:25:06][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[13:25:06][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[13:25:06][D][script.upload_tft:156]: Wait 2 seconds
[13:25:08][D][script.upload_tft:770]: Turn on Nextion
[13:25:08][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[13:25:08][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[13:25:08][D][script.upload_tft:156]: Wait 5 seconds
[13:25:13][D][script.upload_tft:780]: Trying again at 921600 bps
[13:25:13][D][script.upload_tft.upload_tft_arduino:365]: Nextion TFT upload requested
[13:25:13][D][script.upload_tft.upload_tft_arduino:366]: url: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:25:13][D][script.upload_tft.upload_tft_arduino:367]: baud_rate: 921600
[13:25:13][D][script.upload_tft.upload_tft_arduino:380]: Setting Nextion protocol reparse mode to passive
[13:25:13][D][main:2562]: Exit reparse
[13:25:13][D][script.upload_tft:156]: Wait 5 seconds
[13:25:18][D][script.upload_tft.upload_tft_arduino:398]: Connected
[13:25:18][D][script.upload_tft.upload_tft_arduino:404]: Requesting URL: http://10.10.0.20:8123/local/nspanel_blank.tft
[13:25:18][D][script.upload_tft.upload_tft_arduino:436]: Updating Nextion
[13:25:18][D][script.upload_tft.send_nextion_command:170]: Sending: whmi-wris 275288,921600,1
[13:25:18][C][uart.arduino_esp32:077]: Setting up UART...
[13:25:18][D][script.upload_tft.upload_tft_arduino:460]: Waiting for upgrade response
[13:25:20][D][script.upload_tft.upload_tft_arduino:465]: Upgrade response is [80.80.80.80.80.80.80.80.80.00.00.00.80.80.00.80.00.80.80.80.80.00.80.00.80.80 (26)]
[13:25:20][D][script.upload_tft.upload_tft_arduino:470]: Preparation for tft update failed 128 "\x80\x80\x80\x80\x80\x80\x80\x80\x80"
[13:25:20][D][script.upload_tft.upload_end_:238]: Completed: 0
[13:25:22][D][script.upload_tft.upload_end_:248]: Nextion TFT upload will try again
[13:25:22][E][script.upload_tft:784]: TFT upload failed.
[13:25:22][D][script.upload_tft:785]: Turn off Nextion
[13:25:22][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[13:25:22][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[13:25:22][D][script.upload_tft:156]: Wait 2 seconds
[13:25:24][D][script.upload_tft:788]: Turn on Nextion
[13:25:24][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[13:25:24][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[13:25:24][D][script.upload_tft:790]: Restarting esphome
[13:25:24][D][script.upload_tft:156]: Wait 2 seconds
[13:25:26][D][button:010]: 'nspanel Restart' Pressed.
[13:25:26][I][restart.button:012]: Restarting device...
[13:25:26][I][app:134]: Rebooting safely...
[13:25:26][D][esp32.preferences:114]: Saving 1 preferences to flash...
[13:25:26][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
edwardtfn commented 10 months ago

Could you please share the yaml you used for this test? Remember to hide the sensitive info. I will try to replace the boot sequence and instead force an exit reparse every few seconds.

mathgoy commented 10 months ago

here it is

substitutions:
  ###### CHANGE ME START ######
  device_name: "nspanel" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  nextion_update_url: "http://10.10.0.20:8123/local/nspanel_blank.tft"
  ##### CHANGE ME END #####

packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    # ref: main
    ref: beta
    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: 1s

#### Custom ####
uart:
  - id: !extend tf_uart
    baud_rate: 115200
time:
  - id: !extend time_provider
    on_time:
      - seconds: /6
        then:
          - lambda: |-
              ESP_LOGD("DEBUG", "Version: ${version}");
              ESP_LOGD("DEBUG", "Baud rate: %d", tf_uart->get_baud_rate());
              ESP_LOGD("DEBUG", "Free heap: %d", ESP.getFreeHeap());
              ESP_LOGD("DEBUG", "disp1->is_setup(): %s", disp1->is_setup() ? "True" : "False");
edwardtfn commented 10 months ago

I cannot stop the boot routine without changing the base code, but this will change to idf framework again and will try to exit reparse every 6sec until the display is detected.

Please install, wait 2 or 3 minutes, than try to upload again. Collect logs, please.

substitutions:
  ###### CHANGE ME START ######
  device_name: "nspanel" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  nextion_update_url: "http://10.10.0.20:8123/local/nspanel_blank.tft"
  ##### CHANGE ME END #####

packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    # ref: main
    ref: beta
    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: 1s

#### Custom ####
esp32:
  framework:
    type: esp-idf
uart:
  - id: !extend tf_uart
    baud_rate: 115200
time:
  - id: !extend time_provider
    on_time:
      - seconds: /6
        then:
          - lambda: |-
              ESP_LOGD("DEBUG", "Version: ${version}");
              ESP_LOGD("DEBUG", "Baud rate: %d", tf_uart->get_baud_rate());
              #ifdef ARDUINO
              ESP_LOGD("DEBUG", "Free heap: %d", ESP.getFreeHeap());
              #elif defined(USE_ESP_IDF)
              ESP_LOGD("DEBUG", "Free heap: %d", esp_get_free_heap_size());
              #endif
              ESP_LOGD("DEBUG", "disp1->is_setup(): %s", disp1->is_setup() ? "True" : "False");
              if (!disp1->is_setup()) exit_reparse->execute();
mathgoy commented 10 months ago

We made some progress (I should say YOU made some progress) The display shows this: IMG_7215

mathgoy commented 10 months ago

Here is the log

[16:58:54][I][app:102]: ESPHome version 2023.11.6 compiled on Dec  1 2023, 16:57:54
[16:58:54][C][wifi:559]: WiFi:
[16:58:54][C][wifi:391]:   Local MAC: C4:DD:57:E8:13:D8
[16:58:54][C][wifi:396]:   SSID: [redacted]
[16:58:54][C][wifi:397]:   IP Address: 10.10.0.109
[16:58:54][C][wifi:399]:   BSSID: [redacted]
[16:58:54][C][wifi:400]:   Hostname: 'nspanel'
[16:58:54][C][wifi:402]:   Signal strength: -68 dB ▂▄▆█
[16:58:54][C][wifi:406]:   Channel: 1
[16:58:54][C][wifi:407]:   Subnet: 255.255.255.0
[16:58:54][C][wifi:408]:   Gateway: 10.10.0.1
[16:58:54][C][wifi:409]:   DNS1: 9.9.9.9
[16:58:54][C][wifi:410]:   DNS2: 1.1.1.1
[16:58:55][C][logger:416]: Logger:
[16:58:55][C][logger:417]:   Level: DEBUG
[16:58:55][C][logger:418]:   Log Baud Rate: 0
[16:58:55][C][logger:420]:   Hardware UART: UART0
[16:58:55][C][uart.idf:126]: UART Bus:
[16:58:55][C][uart.idf:127]:   Number: 1
[16:58:55][C][uart.idf:128]:   TX Pin: GPIO16
[16:58:55][C][uart.idf:129]:   RX Pin: GPIO17
[16:58:55][C][uart.idf:131]:   RX Buffer Size: 256
[16:58:55][C][uart.idf:133]:   Baud Rate: 115200 baud
[16:58:55][C][uart.idf:134]:   Data Bits: 8
[16:58:55][C][uart.idf:135]:   Parity: NONE
[16:58:55][C][uart.idf:136]:   Stop bits: 1
[16:58:55][C][ledc.output:164]: LEDC Output:
[16:58:55][C][ledc.output:165]:   Pin GPIO21
[16:58:55][C][ledc.output:166]:   LEDC Channel: 0
[16:58:55][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[16:58:55][C][ledc.output:168]:   Bit depth: 16
[16:58:55][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display'
[16:58:55][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[16:58:55][C][template.number:050]: Template Number 'nspanel Display Brightness'
[16:58:55][C][template.number:050]:   Unit of Measurement: '%'
[16:58:55][C][template.number:051]:   Optimistic: YES
[16:58:55][C][template.number:052]:   Update Interval: 60.0s
[16:58:55][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown'
[16:58:55][C][template.number:050]:   Unit of Measurement: '%'
[16:58:55][C][template.number:051]:   Optimistic: YES
[16:58:55][C][template.number:052]:   Update Interval: 60.0s
[16:58:55][C][template.number:050]: Template Number 'nspanel Temperature Correction'
[16:58:55][C][template.number:050]:   Unit of Measurement: '°C'
[16:58:55][C][template.number:051]:   Optimistic: YES
[16:58:55][C][template.number:052]:   Update Interval: 60.0s
[16:58:55][C][template.number:050]: Template Number 'nspanel Timeout Page'
[16:58:55][C][template.number:050]:   Icon: 'mdi:timer'
[16:58:55][C][template.number:050]:   Unit of Measurement: 's'
[16:58:55][C][template.number:051]:   Optimistic: YES
[16:58:55][C][template.number:052]:   Update Interval: 60.0s
[16:58:55][C][template.number:050]: Template Number 'nspanel Timeout Dimming'
[16:58:55][C][template.number:050]:   Icon: 'mdi:timer'
[16:58:55][C][template.number:050]:   Unit of Measurement: 's'
[16:58:55][C][template.number:051]:   Optimistic: YES
[16:58:55][C][template.number:052]:   Update Interval: 60.0s
[16:58:55][W][nextion:077]: Nextion is not connected! 
[16:58:55][C][template.number:050]: Template Number 'nspanel Timeout Sleep'
[16:58:55][C][template.number:050]:   Icon: 'mdi:timer'
[16:58:55][C][template.number:050]:   Unit of Measurement: 's'
[16:58:55][C][template.number:051]:   Optimistic: YES
[16:58:55][C][template.number:052]:   Update Interval: 60.0s
[16:58:55][C][template.select:065]: Template Select 'nspanel Wake-up page'
[16:58:55][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[16:58:55][C][template.select:066]:   Update Interval: 60.0s
[16:58:55][C][template.select:069]:   Optimistic: YES
[16:58:55][C][template.select:070]:   Initial Option: home
[16:58:55][C][template.select:071]:   Restore Value: YES
[16:58:55][C][template.text_sensor:020]: Template Sensor 'nspanel Detailed Entity'
[16:58:55][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[16:58:55][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label'
[16:58:55][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text'
[16:58:55][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1'
[16:58:55][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[16:58:55][C][switch.gpio:031]:   Pin: GPIO22
[16:58:55][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2'
[16:58:55][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[16:58:55][C][switch.gpio:031]:   Pin: GPIO19
[16:58:55][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button'
[16:58:55][C][gpio.binary_sensor:016]:   Pin: GPIO14
[16:58:55][W][nextion:077]: Nextion is not connected! 
[16:58:55][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button'
[16:58:55][C][gpio.binary_sensor:016]:   Pin: GPIO27
[16:58:55][C][switch.gpio:068]: GPIO Switch 'nspanel Nextion display - Power'
[16:58:55][C][switch.gpio:091]:   Restore Mode: always ON
[16:58:55][C][switch.gpio:031]:   Pin: GPIO4
[16:58:55][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[16:58:55][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[16:58:55][C][template.switch:057]:   Optimistic: YES
[16:58:55][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[16:58:55][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[16:58:55][C][template.switch:057]:   Optimistic: YES
[16:58:56][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[16:58:56][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[16:58:56][C][template.switch:057]:   Optimistic: YES
[16:58:56][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[16:58:56][C][template.switch:091]:   Restore Mode: always OFF
[16:58:56][C][template.switch:057]:   Optimistic: YES
[16:58:56][C][rtttl:029]: Rtttl
[16:58:56][C][nextion:123]: Nextion:
[16:58:56][C][nextion:124]:   Device Model:     
[16:58:56][C][nextion:125]:   Firmware Version: 
[16:58:56][C][nextion:126]:   Serial Number:    
[16:58:56][C][nextion:127]:   Flash Size:       
[16:58:56][C][nextion:128]:   Wake On Touch:    True
[16:58:56][C][nextion:139]:   Start Up Page :      8
[16:58:56][C][restart.button:017]: Restart Button 'nspanel Restart'
[16:58:56][C][adc:097]: ADC Sensor 'ntc_source'
[16:58:56][C][adc:097]:   Device Class: 'voltage'
[16:58:56][C][adc:097]:   State Class: 'measurement'
[16:58:56][C][adc:097]:   Unit of Measurement: 'V'
[16:58:56][C][adc:097]:   Accuracy Decimals: 2
[16:58:56][C][adc:107]:   Pin: GPIO38
[16:58:56][C][adc:122]:  Attenuation: 11db
[16:58:56][C][adc:142]:   Update Interval: 60.0s
[16:58:56][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[16:58:56][C][resistance:010]:   State Class: 'measurement'
[16:58:56][C][resistance:010]:   Unit of Measurement: 'Ω'
[16:58:56][C][resistance:010]:   Accuracy Decimals: 1
[16:58:56][C][resistance:010]:   Icon: 'mdi:flash'
[16:58:56][C][resistance:011]:   Configuration: DOWNSTREAM
[16:58:56][C][resistance:012]:   Resistor: 11200.00Ω
[16:58:56][C][resistance:013]:   Reference Voltage: 3.3V
[16:58:56][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[16:58:56][C][ntc:014]:   Device Class: 'temperature'
[16:58:56][C][ntc:014]:   State Class: 'measurement'
[16:58:56][C][ntc:014]:   Unit of Measurement: '°C'
[16:58:56][C][ntc:014]:   Accuracy Decimals: 1
[16:58:56][W][nextion:077]: Nextion is not connected! 
[16:58:56][C][homeassistant.time:010]: Home Assistant Time:
[16:58:56][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[16:58:56][C][status:034]: Status Binary Sensor 'nspanel Status'
[16:58:56][C][status:034]:   Device Class: 'connectivity'
[16:58:56][C][mdns:115]: mDNS:
[16:58:56][C][mdns:116]:   Hostname: nspanel
[16:58:56][C][ota:097]: Over-The-Air Updates:
[16:58:56][C][ota:098]:   Address: nspanel.local:3232
[16:58:56][C][ota:101]:   Using Password.
[16:58:56][C][api:139]: API Server:
[16:58:56][C][api:140]:   Address: nspanel.local:6053
[16:58:56][C][api:144]:   Using noise encryption: NO
[16:58:56][C][http_request:013]: HTTP Request:
[16:58:56][C][http_request:014]:   Timeout: 5000ms
[16:58:56][C][http_request:015]:   User-Agent: ESPHome
[16:58:56][C][http_request:016]:   Follow Redirects: 1
[16:58:56][C][http_request:017]:   Redirect limit: 3
[16:58:56][W][nextion:077]: Nextion is not connected! 
[16:58:57][W][nextion:077]: Nextion is not connected! 
[16:58:58][W][nextion:077]: Nextion is not connected! 
[16:58:58][W][nextion:077]: Nextion is not connected! 
[16:58:59][W][nextion:077]: Nextion is not connected! 
[16:58:59][W][nextion:077]: Nextion is not connected! 
[16:59:00][W][nextion:077]: Nextion is not connected! 
[16:59:00][W][nextion:077]: Nextion is not connected! 
[16:59:00][D][DEBUG:034]: Version: 4.1.3
[16:59:00][D][DEBUG:035]: Baud rate: 115200
[16:59:00][D][DEBUG:039]: Free heap: 175464
[16:59:00][D][DEBUG:041]: disp1->is_setup(): False
[16:59:00][D][main:2563]: Exit reparse
[16:59:01][W][nextion:077]: Nextion is not connected! 
[16:59:01][W][nextion:077]: Nextion is not connected! 
[16:59:02][W][nextion:077]: Nextion is not connected! 
[16:59:02][W][nextion:077]: Nextion is not connected! 
[16:59:03][W][nextion:077]: Nextion is not connected! 
[16:59:03][W][nextion:077]: Nextion is not connected! 
[16:59:04][W][nextion:077]: Nextion is not connected! 
[16:59:04][W][nextion:077]: Nextion is not connected! 
[16:59:05][W][nextion:077]: Nextion is not connected! 
[16:59:06][W][nextion:077]: Nextion is not connected! 
[16:59:06][W][nextion:077]: Nextion is not connected! 
[16:59:06][D][DEBUG:034]: Version: 4.1.3
[16:59:06][D][DEBUG:035]: Baud rate: 115200
[16:59:06][D][DEBUG:039]: Free heap: 175464
[16:59:06][D][DEBUG:041]: disp1->is_setup(): False
[16:59:06][D][main:2563]: Exit reparse
[16:59:07][W][nextion:077]: Nextion is not connected! 
[16:59:07][W][nextion:077]: Nextion is not connected! 
[16:59:08][W][nextion:077]: Nextion is not connected! 
[16:59:08][W][nextion:077]: Nextion is not connected! 
[16:59:09][W][nextion:077]: Nextion is not connected! 
[16:59:09][W][nextion:077]: Nextion is not connected! 
[16:59:10][W][nextion:077]: Nextion is not connected! 
[16:59:10][W][nextion:077]: Nextion is not connected! 
[16:59:11][W][nextion:077]: Nextion is not connected! 
[16:59:11][W][nextion:077]: Nextion is not connected! 
[16:59:12][W][nextion:077]: Nextion is not connected! 
[16:59:12][D][DEBUG:034]: Version: 4.1.3
[16:59:12][D][DEBUG:035]: Baud rate: 115200
[16:59:12][D][DEBUG:039]: Free heap: 175552
[16:59:12][D][DEBUG:041]: disp1->is_setup(): False
[16:59:12][D][main:2563]: Exit reparse
[16:59:12][W][nextion:077]: Nextion is not connected! 
[16:59:13][W][nextion:077]: Nextion is not connected! 
[16:59:14][W][nextion:077]: Nextion is not connected! 
[16:59:14][D][main:2563]: Exit reparse
[16:59:14][W][nextion:077]: Nextion is not connected! 
[16:59:15][W][nextion:077]: Nextion is not connected! 
[16:59:15][W][nextion:077]: Nextion is not connected! 
[16:59:16][W][nextion:077]: Nextion is not connected! 
[16:59:16][W][nextion:077]: Nextion is not connected! 
[16:59:17][W][nextion:077]: Nextion is not connected! 
[16:59:17][W][nextion:077]: Nextion is not connected! 
[16:59:18][W][nextion:077]: Nextion is not connected! 
[16:59:18][W][nextion:077]: Nextion is not connected! 
[16:59:18][D][DEBUG:034]: Version: 4.1.3
[16:59:18][D][DEBUG:035]: Baud rate: 115200
[16:59:18][D][DEBUG:039]: Free heap: 175540
[16:59:18][D][DEBUG:041]: disp1->is_setup(): False
[16:59:18][D][main:2563]: Exit reparse
[16:59:19][W][nextion:077]: Nextion is not connected! 
[16:59:19][W][nextion:077]: Nextion is not connected! 
[16:59:20][W][nextion:077]: Nextion is not connected! 
[16:59:20][W][nextion:077]: Nextion is not connected! 
[16:59:21][W][nextion:077]: Nextion is not connected! 
[16:59:22][W][nextion:077]: Nextion is not connected! 
[16:59:22][W][nextion:077]: Nextion is not connected! 
[16:59:23][W][nextion:077]: Nextion is not connected! 
[16:59:23][W][nextion:077]: Nextion is not connected! 
[16:59:24][W][nextion:077]: Nextion is not connected! 
[16:59:24][W][nextion:077]: Nextion is not connected! 
[16:59:24][D][DEBUG:034]: Version: 4.1.3
[16:59:24][D][DEBUG:035]: Baud rate: 115200
[16:59:24][D][DEBUG:039]: Free heap: 175540
[16:59:24][D][DEBUG:041]: disp1->is_setup(): False
[16:59:24][D][main:2563]: Exit reparse
[16:59:25][W][nextion:077]: Nextion is not connected! 
[16:59:25][W][nextion:077]: Nextion is not connected! 
[16:59:26][W][nextion:077]: Nextion is not connected! 
[16:59:26][W][nextion:077]: Nextion is not connected! 
[16:59:27][W][nextion:077]: Nextion is not connected! 
[16:59:27][W][nextion:077]: Nextion is not connected! 
[16:59:28][W][nextion:077]: Nextion is not connected! 
[16:59:28][W][nextion:077]: Nextion is not connected! 
[16:59:29][W][nextion:077]: Nextion is not connected! 
[16:59:30][W][nextion:077]: Nextion is not connected! 
[16:59:30][W][nextion:077]: Nextion is not connected! 
[16:59:30][D][DEBUG:034]: Version: 4.1.3
[16:59:30][D][DEBUG:035]: Baud rate: 115200
[16:59:30][D][DEBUG:039]: Free heap: 175664
[16:59:30][D][DEBUG:041]: disp1->is_setup(): False
[16:59:30][D][main:2563]: Exit reparse
[16:59:31][W][nextion:077]: Nextion is not connected! 
[16:59:31][W][nextion:077]: Nextion is not connected! 
[16:59:32][W][nextion:077]: Nextion is not connected! 
[16:59:32][W][nextion:077]: Nextion is not connected! 
[16:59:33][W][nextion:077]: Nextion is not connected! 
[16:59:33][W][nextion:077]: Nextion is not connected! 
[16:59:34][W][nextion:077]: Nextion is not connected! 
[16:59:34][D][script.nextion_status:2654]: Nextion status:
[16:59:34][D][script.nextion_status:2656]:   Is setup:    False
[16:59:34][E][on_boot:059]: No response from Nextion display
[16:59:34][D][on_boot:060]: Turn off Nextion
[16:59:34][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[16:59:34][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[16:59:34][D][on_boot:046]: Wait 2 seconds
[16:59:36][D][on_boot:063]: Turn on Nextion
[16:59:36][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[16:59:36][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[16:59:36][D][on_boot:046]: Wait 5 seconds
[16:59:41][D][script.nextion_status:2654]: Nextion status:
[16:59:41][D][script.nextion_status:2656]:   Is setup:    False
[16:59:41][W][component:214]: Component esphome.coroutine took a long time for an operation (7.02 s).
[16:59:41][W][component:215]: Components should block for at most 20-30ms.
[16:59:41][D][DEBUG:034]: Version: 4.1.3
[16:59:41][D][DEBUG:035]: Baud rate: 115200
[16:59:41][D][DEBUG:039]: Free heap: 175552
[16:59:41][D][DEBUG:041]: disp1->is_setup(): False
[16:59:41][D][main:2563]: Exit reparse
[16:59:41][W][nextion:077]: Nextion is not connected! 
[16:59:41][D][nextion:066]: 0x1A error ignored during setup
[16:59:41][I][nextion:083]: Nextion is connected
[16:59:41][C][nextion:123]: Nextion:
[16:59:41][C][nextion:124]:   Device Model:     NX4832F035_011C
[16:59:41][C][nextion:125]:   Firmware Version: 72
[16:59:41][C][nextion:126]:   Serial Number:    196634010F66AA43
[16:59:42][C][nextion:127]:   Flash Size:       16777216
[16:59:42][C][nextion:128]:   Wake On Touch:    True
[16:59:42][C][nextion:139]:   Start Up Page :      8
[16:59:42][W][component:214]: Component nextion.display took a long time for an operation (0.08 s).
[16:59:42][W][component:215]: Components should block for at most 20-30ms.
[16:59:42][D][sensor:094]: 'ntc_source': Sending state 1.63600 V with 2 decimals of accuracy
[16:59:42][D][resistance:039]: 'resistance_sensor' - Resistance 11011.5Ω
[16:59:42][D][sensor:094]: 'resistance_sensor': Sending state 11011.53906 Ω with 1 decimals of accuracy
[16:59:42][D][ntc:026]: 'nspanel Temperature' - Temperature: 22.8°C
[16:59:42][D][sensor:094]: 'nspanel Temperature': Sending state 22.84714 °C with 1 decimals of accuracy
[16:59:42][D][DEBUG:034]: Version: 4.1.3
[16:59:42][D][DEBUG:035]: Baud rate: 115200
[16:59:42][D][DEBUG:039]: Free heap: 175496
[16:59:42][D][DEBUG:041]: disp1->is_setup(): False
[16:59:42][D][main:2563]: Exit reparse
[16:59:48][D][DEBUG:034]: Version: 4.1.3
[16:59:48][D][DEBUG:035]: Baud rate: 115200
[16:59:48][D][DEBUG:039]: Free heap: 175424
[16:59:48][D][DEBUG:041]: disp1->is_setup(): False
[16:59:48][D][main:2563]: Exit reparse
[16:59:50][D][nextion:265]: Manually set nextion report ready
[16:59:50][W][nextion:719]: Received unknown event from nextion: 0x55
[16:59:50][D][nextion:343]: Nextion is setup
[16:59:50][D][script.boot_sequence:2576]: Starting boot sequence
[16:59:50][D][script.boot_sequence:2577]: Wait for TFT version
[16:59:50][D][script.nextion_status:2654]: Nextion status:
[16:59:50][D][script.nextion_status:2656]:   Is setup:    True
[16:59:50][D][on_boot:078]: Finished
[16:59:54][D][DEBUG:034]: Version: 4.1.3
[16:59:54][D][DEBUG:035]: Baud rate: 115200
[16:59:54][D][DEBUG:039]: Free heap: 175448
[16:59:54][D][DEBUG:041]: disp1->is_setup(): True
[17:00:00][D][DEBUG:034]: Version: 4.1.3
[17:00:00][D][DEBUG:035]: Baud rate: 115200
[17:00:00][D][DEBUG:039]: Free heap: 175108
[17:00:00][D][DEBUG:041]: disp1->is_setup(): True
[17:00:00][W][nextion:394]: Nextion reported variable name invalid!
[17:00:00][W][nextion:394]: Nextion reported variable name invalid!
[17:00:06][D][DEBUG:034]: Version: 4.1.3
[17:00:06][D][DEBUG:035]: Baud rate: 115200
[17:00:06][D][DEBUG:039]: Free heap: 175448
[17:00:06][D][DEBUG:041]: disp1->is_setup(): True
[17:00:12][D][DEBUG:034]: Version: 4.1.3
[17:00:12][D][DEBUG:035]: Baud rate: 115200
[17:00:12][D][DEBUG:039]: Free heap: 175448
[17:00:12][D][DEBUG:041]: disp1->is_setup(): True
[17:00:18][D][DEBUG:034]: Version: 4.1.3
[17:00:18][D][DEBUG:035]: Baud rate: 115200
[17:00:18][D][DEBUG:039]: Free heap: 175448
[17:00:18][D][DEBUG:041]: disp1->is_setup(): True
[17:00:24][D][DEBUG:034]: Version: 4.1.3
[17:00:24][D][DEBUG:035]: Baud rate: 115200
[17:00:24][D][DEBUG:039]: Free heap: 175448
[17:00:24][D][DEBUG:041]: disp1->is_setup(): True
[17:00:30][D][DEBUG:034]: Version: 4.1.3
[17:00:30][D][DEBUG:035]: Baud rate: 115200
[17:00:30][D][DEBUG:039]: Free heap: 175544
[17:00:30][D][DEBUG:041]: disp1->is_setup(): True
[17:00:36][D][DEBUG:034]: Version: 4.1.3
[17:00:36][D][DEBUG:035]: Baud rate: 115200
[17:00:36][D][DEBUG:039]: Free heap: 175544
[17:00:36][D][DEBUG:041]: disp1->is_setup(): True
[17:00:42][D][button:010]: 'nspanel Update TFT display' Pressed.
[17:00:42][D][main:730]: Button pressed: Update TFT display
[17:00:42][D][script.upload_tft:139]: Starting...
[17:00:42][D][script.stop_all:2707]: Stopping scripts...
[17:00:42][D][script.stop_all:2756]: Finished
[17:00:42][D][script.upload_tft:765]: Try #1
[17:00:42][D][script.upload_tft.upload_tft_esp_idf:630]: Nextion TFT upload requested
[17:00:42][D][script.upload_tft.upload_tft_esp_idf:631]: url: http://10.10.0.20:8123/local/nspanel_blank.tft
[17:00:42][D][script.upload_tft.upload_tft_esp_idf:632]: baud_rate: 115200
[17:00:42][D][script.upload_tft.upload_tft_esp_idf:685]: TFT file size: 275288
[17:00:42][D][script.upload_tft.upload_tft_esp_idf:692]: File size check passed. Proceeding...
[17:00:42][D][script.upload_tft.upload_tft_esp_idf:697]: Updating Nextion
[17:00:42][D][script.upload_tft.send_nextion_command:170]: Sending: whmi-wris 275288,115200,1
[17:00:42][D][script.upload_tft.upload_tft_esp_idf:721]: Waiting for upgrade response
[17:00:42][D][script.upload_tft.upload_tft_esp_idf:726]: Upgrade response is [05]
[17:00:42][D][script.upload_tft.upload_tft_esp_idf:737]: Updating tft from "http://10.10.0.20:8123/local/nspanel_blank.tft" with a file size of 275288, Heap Size 174024
[17:00:42][D][esp-idf:000]: I (114708) HTTP_CLIENT: Body received in fetch header state, 0x3ffd5a83, 101

[17:00:48][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 1.49 %, remaining 271192 bytes
[17:00:48][D][script.upload_tft.upload_range_esp_idf_:591]: recv_string [08.00.00.00.00 (5)]
[17:00:48][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 2.98 %, remaining 267096 bytes
[17:00:49][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 4.46 %, remaining 263000 bytes
[17:00:49][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 5.95 %, remaining 258904 bytes
[17:00:49][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 7.44 %, remaining 254808 bytes
[17:00:50][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 8.93 %, remaining 250712 bytes
[17:00:50][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 10.42 %, remaining 246616 bytes
[17:00:51][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 11.90 %, remaining 242520 bytes
[17:00:51][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 13.39 %, remaining 238424 bytes
[17:00:51][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 14.88 %, remaining 234328 bytes
[17:00:52][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 16.37 %, remaining 230232 bytes
[17:00:52][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 17.85 %, remaining 226136 bytes
[17:00:52][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 19.34 %, remaining 222040 bytes
[17:00:53][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 20.83 %, remaining 217944 bytes
[17:00:53][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 22.32 %, remaining 213848 bytes
[17:00:54][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 23.81 %, remaining 209752 bytes
[17:00:54][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 25.29 %, remaining 205656 bytes
[17:00:54][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 26.78 %, remaining 201560 bytes
[17:00:55][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 28.27 %, remaining 197464 bytes
[17:00:55][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 29.76 %, remaining 193368 bytes
[17:00:55][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 31.25 %, remaining 189272 bytes
[17:00:56][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 32.73 %, remaining 185176 bytes
[17:00:56][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 34.22 %, remaining 181080 bytes
[17:00:57][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 35.71 %, remaining 176984 bytes
[17:00:57][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 37.20 %, remaining 172888 bytes
[17:00:57][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 38.69 %, remaining 168792 bytes
[17:00:58][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 40.17 %, remaining 164696 bytes
[17:00:58][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 41.66 %, remaining 160600 bytes
[17:00:59][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 43.15 %, remaining 156504 bytes
[17:00:59][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 44.64 %, remaining 152408 bytes
[17:00:59][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 46.12 %, remaining 148312 bytes
[17:01:00][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 47.61 %, remaining 144216 bytes
[17:01:00][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 49.10 %, remaining 140120 bytes
[17:01:00][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 50.59 %, remaining 136024 bytes
[17:01:01][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 52.08 %, remaining 131928 bytes
[17:01:01][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 53.56 %, remaining 127832 bytes
[17:01:02][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 55.05 %, remaining 123736 bytes
[17:01:02][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 56.54 %, remaining 119640 bytes
[17:01:02][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 58.03 %, remaining 115544 bytes
[17:01:03][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 59.52 %, remaining 111448 bytes
[17:01:03][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 61.00 %, remaining 107352 bytes
[17:01:04][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 62.49 %, remaining 103256 bytes
[17:01:04][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 63.98 %, remaining 99160 bytes
[17:01:04][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 65.47 %, remaining 95064 bytes
[17:01:05][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 66.96 %, remaining 90968 bytes
[17:01:05][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 68.44 %, remaining 86872 bytes
[17:01:05][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 69.93 %, remaining 82776 bytes
[17:01:06][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 71.42 %, remaining 78680 bytes
[17:01:06][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 72.91 %, remaining 74584 bytes
[17:01:07][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 74.39 %, remaining 70488 bytes
[17:01:07][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 75.88 %, remaining 66392 bytes
[17:01:07][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 77.37 %, remaining 62296 bytes
[17:01:08][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 78.86 %, remaining 58200 bytes
[17:01:08][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 80.35 %, remaining 54104 bytes
[17:01:09][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 81.83 %, remaining 50008 bytes
[17:01:09][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 83.32 %, remaining 45912 bytes
[17:01:09][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 84.81 %, remaining 41816 bytes
[17:01:10][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 86.30 %, remaining 37720 bytes
[17:01:10][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 87.79 %, remaining 33624 bytes
[17:01:10][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 89.27 %, remaining 29528 bytes
[17:01:11][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 90.76 %, remaining 25432 bytes
[17:01:11][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 92.25 %, remaining 21336 bytes
[17:01:12][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 93.74 %, remaining 17240 bytes
[17:01:12][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 95.23 %, remaining 13144 bytes
[17:01:12][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 96.71 %, remaining 9048 bytes
[17:01:13][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 98.20 %, remaining 4952 bytes
[17:01:13][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 99.69 %, remaining 856 bytes
[17:01:13][D][script.upload_tft.upload_range_esp_idf_:588]: Uploaded 100.00 %, remaining 0 bytes
[17:01:13][D][script.upload_tft.upload_tft_esp_idf:753]: Successfully updated Nextion!
[17:01:13][D][script.upload_tft.upload_tft_esp_idf:755]: Close HTTP connection
[17:01:13][D][script.upload_tft.upload_end_:238]: Completed: 1
[17:01:13][D][button:010]: 'nspanel Restart' Pressed.
[17:01:13][I][restart.button:012]: Restarting device...
[17:01:13][I][app:134]: Rebooting safely...
[17:01:13][D][esp32.preferences:114]: Saving 1 preferences to flash...
[17:01:13][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
INFO Processing expected disconnect from ESPHome API for nspanel
WARNING Disconnected from API
INFO Successfully connected to nspanel in 3.736s
INFO Successful handshake with nspanel in 0.048s
[17:01:23][C][mdns:115]: mDNS:
[17:01:23][C][mdns:116]:   Hostname: nspanel
[17:01:23][C][ota:097]: Over-The-Air Updates:
[17:01:23][C][ota:098]:   Address: nspanel.local:3232
[17:01:23][C][ota:101]:   Using Password.
[17:01:23][C][api:139]: API Server:
[17:01:23][C][api:140]:   Address: nspanel.local:6053
[17:01:23][C][api:144]:   Using noise encryption: NO
[17:01:23][C][http_request:013]: HTTP Request:
[17:01:23][C][http_request:014]:   Timeout: 5000ms
[17:01:23][C][http_request:015]:   User-Agent: ESPHome
[17:01:23][C][http_request:016]:   Follow Redirects: 1
[17:01:23][C][http_request:017]:   Redirect limit: 3
[17:01:24][D][DEBUG:032]: Version: 4.1.3
[17:01:24][D][DEBUG:033]: Baud rate: 115200
[17:01:24][D][DEBUG:034]: Free heap: 175824
[17:01:24][D][DEBUG:035]: disp1->is_setup(): True
[17:01:30][D][DEBUG:032]: Version: 4.1.3
[17:01:30][D][DEBUG:033]: Baud rate: 115200
[17:01:30][D][DEBUG:034]: Free heap: 176044
[17:01:30][D][DEBUG:035]: disp1->is_setup(): True
[17:01:36][D][DEBUG:032]: Version: 4.1.3
[17:01:36][D][DEBUG:033]: Baud rate: 115200
[17:01:36][D][DEBUG:034]: Free heap: 176044
[17:01:36][D][DEBUG:035]: disp1->is_setup(): True
[17:01:42][D][DEBUG:032]: Version: 4.1.3
[17:01:42][D][DEBUG:033]: Baud rate: 115200
[17:01:42][D][DEBUG:034]: Free heap: 176044
[17:01:42][D][DEBUG:035]: disp1->is_setup(): True
[17:01:48][D][DEBUG:032]: Version: 4.1.3
[17:01:48][D][DEBUG:033]: Baud rate: 115200
[17:01:48][D][DEBUG:034]: Free heap: 176044
[17:01:48][D][DEBUG:035]: disp1->is_setup(): True
[17:01:54][D][DEBUG:032]: Version: 4.1.3
[17:01:54][D][DEBUG:033]: Baud rate: 115200
[17:01:54][D][DEBUG:034]: Free heap: 176044
[17:01:54][D][DEBUG:035]: disp1->is_setup(): True
[17:02:00][D][DEBUG:032]: Version: 4.1.3
[17:02:00][D][DEBUG:033]: Baud rate: 115200
[17:02:00][D][DEBUG:034]: Free heap: 175604
[17:02:00][D][DEBUG:035]: disp1->is_setup(): True
[17:02:00][W][nextion:394]: Nextion reported variable name invalid!
[17:02:00][W][nextion:394]: Nextion reported variable name invalid!
[17:02:02][D][sensor:094]: 'ntc_source': Sending state 1.63600 V with 2 decimals of accuracy
[17:02:02][D][resistance:039]: 'resistance_sensor' - Resistance 11011.5Ω
[17:02:02][D][sensor:094]: 'resistance_sensor': Sending state 11011.53906 Ω with 1 decimals of accuracy
[17:02:02][D][ntc:026]: 'nspanel Temperature' - Temperature: 22.8°C
[17:02:02][D][sensor:094]: 'nspanel Temperature': Sending state 22.84714 °C with 1 decimals of accuracy
[17:02:06][D][DEBUG:032]: Version: 4.1.3
[17:02:06][D][DEBUG:033]: Baud rate: 115200
[17:02:06][D][DEBUG:034]: Free heap: 175976
[17:02:06][D][DEBUG:035]: disp1->is_setup(): True
[17:02:12][D][DEBUG:032]: Version: 4.1.3
[17:02:12][D][DEBUG:033]: Baud rate: 115200
[17:02:12][D][DEBUG:034]: Free heap: 175976
[17:02:12][D][DEBUG:035]: disp1->is_setup(): True
[17:02:18][D][DEBUG:032]: Version: 4.1.3
[17:02:18][D][DEBUG:033]: Baud rate: 115200
[17:02:18][D][DEBUG:034]: Free heap: 176216
[17:02:18][D][DEBUG:035]: disp1->is_setup(): True
[17:02:24][D][DEBUG:032]: Version: 4.1.3
[17:02:24][D][DEBUG:033]: Baud rate: 115200
[17:02:24][D][DEBUG:034]: Free heap: 176080
[17:02:24][D][DEBUG:035]: disp1->is_setup(): True
[17:02:30][D][DEBUG:032]: Version: 4.1.3
[17:02:30][D][DEBUG:033]: Baud rate: 115200
[17:02:30][D][DEBUG:034]: Free heap: 176080
[17:02:30][D][DEBUG:035]: disp1->is_setup(): True
[17:02:36][D][DEBUG:032]: Version: 4.1.3
[17:02:36][D][DEBUG:033]: Baud rate: 115200
[17:02:36][D][DEBUG:034]: Free heap: 176216
[17:02:36][D][DEBUG:035]: disp1->is_setup(): True
[17:02:42][D][DEBUG:032]: Version: 4.1.3
[17:02:42][D][DEBUG:033]: Baud rate: 115200
[17:02:42][D][DEBUG:034]: Free heap: 176216
[17:02:42][D][DEBUG:035]: disp1->is_setup(): True
[17:02:48][D][DEBUG:032]: Version: 4.1.3
[17:02:48][D][DEBUG:033]: Baud rate: 115200
[17:02:48][D][DEBUG:034]: Free heap: 176216
[17:02:48][D][DEBUG:035]: disp1->is_setup(): True
[17:02:54][D][DEBUG:032]: Version: 4.1.3
[17:02:54][D][DEBUG:033]: Baud rate: 115200
[17:02:54][D][DEBUG:034]: Free heap: 176080
[17:02:54][D][DEBUG:035]: disp1->is_setup(): True
[17:03:00][D][DEBUG:032]: Version: 4.1.3
[17:03:00][D][DEBUG:033]: Baud rate: 115200
[17:03:00][D][DEBUG:034]: Free heap: 175780
[17:03:00][D][DEBUG:035]: disp1->is_setup(): True
[17:03:00][W][nextion:394]: Nextion reported variable name invalid!
[17:03:00][W][nextion:394]: Nextion reported variable name invalid!
[17:03:02][D][sensor:094]: 'ntc_source': Sending state 1.63300 V with 2 decimals of accuracy
[17:03:02][D][resistance:039]: 'resistance_sensor' - Resistance 10971.6Ω
[17:03:02][D][sensor:094]: 'resistance_sensor': Sending state 10971.56641 Ω with 1 decimals of accuracy
[17:03:02][D][ntc:026]: 'nspanel Temperature' - Temperature: 22.9°C
[17:03:02][D][sensor:094]: 'nspanel Temperature': Sending state 22.92782 °C with 1 decimals of accuracy
mathgoy commented 10 months ago

I managed to upload the nspanel_eu.tft!!!

Will run some test. THanks so much @edwardtfn

edwardtfn commented 10 months ago

What have you done different? Your logs shows older code in place...

mathgoy commented 10 months ago

Really? I did nothing different. Just uploaded without the 9 times clicks on the screen

edwardtfn commented 10 months ago

I can see when it got connected by the boot script...

[16:59:34][D][script.nextion_status:2654]: Nextion status:
[16:59:34][D][script.nextion_status:2656]:   Is setup:    False
[16:59:34][E][on_boot:059]: No response from Nextion display
[16:59:34][D][on_boot:060]: Turn off Nextion
[16:59:34][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[16:59:34][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[16:59:34][D][on_boot:046]: Wait 2 seconds
[16:59:36][D][on_boot:063]: Turn on Nextion
[16:59:36][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[16:59:36][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[16:59:36][D][on_boot:046]: Wait 5 seconds
[16:59:41][D][script.nextion_status:2654]: Nextion status:
[16:59:41][D][script.nextion_status:2656]:   Is setup:    False
[16:59:41][W][component:214]: Component esphome.coroutine took a long time for an operation (7.02 s).
[16:59:41][W][component:215]: Components should block for at most 20-30ms.
[16:59:41][D][DEBUG:034]: Version: 4.1.3
[16:59:41][D][DEBUG:035]: Baud rate: 115200
[16:59:41][D][DEBUG:039]: Free heap: 175552
[16:59:41][D][DEBUG:041]: disp1->is_setup(): False
[16:59:41][D][main:2563]: Exit reparse
[16:59:41][W][nextion:077]: Nextion is not connected! 
[16:59:41][D][nextion:066]: 0x1A error ignored during setup
[16:59:41][I][nextion:083]: Nextion is connected
[16:59:41][C][nextion:123]: Nextion:
[16:59:41][C][nextion:124]:   Device Model:     NX4832F035_011C
[16:59:41][C][nextion:125]:   Firmware Version: 72
[16:59:41][C][nextion:126]:   Serial Number:    196634010F66AA43
[16:59:42][C][nextion:127]:   Flash Size:       16777216
[16:59:42][C][nextion:128]:   Wake On Touch:    True
[16:59:42][C][nextion:139]:   Start Up Page :      8
[16:59:42][W][component:214]: Component nextion.display took a long time for an operation (0.08 s).
[16:59:42][W][component:215]: Components should block for at most 20-30ms.
edwardtfn commented 10 months ago

I will take a look later on your logs (again) to see if we can find something that could prevent this to happen again.

paunsurfer commented 9 months ago

FYI:

I was having the same problem with nextion tft upload isues. Had tried everything.

Changing to the beta ref and placing the following code you posted in the esp home yaml worked for me.

I had to upload the tft with the new code, then reinstall the standard yaml i had from main branch in order to resolve a blueprint mismatch afterwards to get it 100% working too, for anyone reading. (This had to be done by serial connection to usb, the host name would not resolve OTA. Also, as noted elsewhere the TX RX pins on the nspanel are reversed, so they must go tx-rx rx-tx as well)

Edit: I was actually able to add the device's IP to my custom DNS server and create an entry for the hostname ESP home was looking for and restore OTA flashing***

Code for bottom of yaml:

#### Custom ####
esp32:
  framework:
    type: esp-idf
uart:
  - id: !extend tf_uart
    baud_rate: 115200
time:
  - id: !extend time_provider
    on_time:
      - seconds: /6
        then:
          - lambda: |-
              ESP_LOGD("DEBUG", "Version: ${version}");
              ESP_LOGD("DEBUG", "Baud rate: %d", tf_uart->get_baud_rate());
              #ifdef ARDUINO
              ESP_LOGD("DEBUG", "Free heap: %d", ESP.getFreeHeap());
              #elif defined(USE_ESP_IDF)
              ESP_LOGD("DEBUG", "Free heap: %d", esp_get_free_heap_size());
              #endif
              ESP_LOGD("DEBUG", "disp1->is_setup(): %s", disp1->is_setup() ? "True" : "False");
              if (!disp1->is_setup()) exit_reparse->execute();

Thank you!