Blackymas / NSPanel_HA_Blueprint

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

TFT Upload failed #1313

Closed mathgoy closed 6 months ago

mathgoy commented 6 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.
edwardtfn commented 6 months ago

Please try to add this to your ESPHome yaml:

esp32:
  framework:
    type: esp-idf

Then install it in your device (wirelessly is ok) and try to upload again. After that, please remove those lines and install it again (wirelessly is OK).

mathgoy commented 6 months ago

Hi, Thank you for your help

I installed it wirelessly again and tried to upload again. The error message is different:

[15:00:02][D][button:010]: 'nspanel Update TFT display' Pressed.
[15:00:02][D][main:709]: Button pressed: Update TFT display
[15:00:02][D][script.upload_tft:091]: Try #1
[15:00:02][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[15:00:02][D][main:2485]: Exit reparse
[15:00:04][D][nextion_upload:130]: Nextion TFT upload requested
[15:00:04][D][nextion_upload:131]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[15:00:04][D][nextion_upload:178]: TFT file size: 7248068
[15:00:04][D][nextion_upload:190]: Updating Nextion
[15:00:07][D][nextion_upload:218]: Upgrade response is []
[15:00:07][E][nextion_upload:223]: Preparation for tft update failed 0 ""
[15:00:07][D][nextion_upload:254]: Restarting Nextion
[15:00:08][D][script.upload_tft:097]: Turn off Nextion
[15:00:08][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[15:00:08][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[15:00:11][D][script.upload_tft:100]: Turn on Nextion
[15:00:11][D][switch:012]: 'nspanel Screen Power' Turning ON.
[15:00:11][D][switch:055]: 'nspanel Screen Power': Sending state ON
[15:00:13][D][script.upload_tft:091]: Try #2
[15:00:13][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[15:00:13][D][main:2485]: Exit reparse
[15:00:15][D][nextion_upload:130]: Nextion TFT upload requested
[15:00:15][D][nextion_upload:131]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[15:00:15][D][nextion_upload:178]: TFT file size: 7248068
[15:00:15][D][nextion_upload:190]: Updating Nextion
[15:00:17][D][nextion_upload:218]: 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)]
[15:00:17][E][nextion_upload:223]: Preparation for tft update failed 85 "U\xbb"
[15:00:17][D][nextion_upload:254]: Restarting Nextion
[15:00:19][D][script.upload_tft:097]: Turn off Nextion
[15:00:19][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[15:00:19][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[15:00:22][D][script.upload_tft:100]: Turn on Nextion
[15:00:22][D][switch:012]: 'nspanel Screen Power' Turning ON.
[15:00:22][D][switch:055]: 'nspanel Screen Power': Sending state ON
[15:00:24][D][script.upload_tft:091]: Try #3
[15:00:24][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[15:00:24][D][main:2485]: Exit reparse
[15:00:26][D][nextion_upload:130]: Nextion TFT upload requested
[15:00:26][D][nextion_upload:131]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[15:00:26][D][nextion_upload:178]: TFT file size: 7248068
[15:00:26][D][nextion_upload:190]: Updating Nextion
[15:00:28][D][nextion_upload:218]: 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)]
[15:00:28][E][nextion_upload:223]: Preparation for tft update failed 85 "U\xbb"
[15:00:28][D][nextion_upload:254]: Restarting Nextion
[15:00:30][D][script.upload_tft:097]: Turn off Nextion
[15:00:30][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[15:00:30][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[15:00:33][D][script.upload_tft:100]: Turn on Nextion
[15:00:33][D][switch:012]: 'nspanel Screen Power' Turning ON.
[15:00:33][D][switch:055]: 'nspanel Screen Power': Sending state ON
[15:00:35][E][script.upload_tft:104]: TFT upload failed.
[15:00:35][D][script.upload_tft:105]: Turn off Nextion
[15:00:35][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[15:00:35][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[15:00:37][D][script.upload_tft:108]: Turn on Nextion
[15:00:37][D][switch:012]: 'nspanel Screen Power' Turning ON.
[15:00:37][D][switch:055]: 'nspanel Screen Power': Sending state ON
[15:00:37][D][script.upload_tft:110]: Restarting esphome
Doughboy68 commented 6 months ago

Did you try blank.tft ? Is this a brand new panel?

mathgoy commented 6 months ago

Hi, Sorry for the late reply. was travelling.

This is not a new panel. I flashed it with another custom firmware before (to be used with appdaemon) and reflashed it with NSPanel_HA_Blueprint.

I tried with blank.tft and had the same issue

mathgoy commented 6 months ago

Still having the same issue:

[11:50:08][D][button:010]: 'nspanel Update TFT display' Pressed.
[11:50:08][D][main:709]: Button pressed: Update TFT display
[11:50:08][D][script.upload_tft:091]: Try #1
[11:50:08][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[11:50:08][D][main:2485]: Exit reparse
[11:50:10][D][nextion_upload:145]: Nextion TFT upload requested
[11:50:10][D][nextion_upload:146]: url: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft
[11:50:10][D][nextion_upload:185]: Connected
[11:50:10][D][nextion_upload:191]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft
[11:50:13][D][nextion_upload:225]: Updating Nextion ...
[11:50:13][D][nextion_upload:251]: Waiting for upgrade response
[11:50:15][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[11:50:15][D][nextion_upload:266]: preparation for tft update failed 0 ""

SHould I, somehow; wipe/reset the nspanel and reflash it? If yes, how can I do that?

mathgoy commented 6 months ago

I used ESP-TOOL to wipe the ESP32 using

python -m esptool --chip esp32 erase_flash

Then I flashed it again And I still have that issue

edwardtfn commented 6 months ago

You hava changed the url of your file, using a https now. Try to use tgat other url (http://10....).

mathgoy commented 6 months ago

Hi,

I updated with the following:


substitutions:
  ###### CHANGE ME START ######
  device_name: "nspanel" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password

  #  nextion_update_url: "http://homeassistant.local:8123/local/nspanel_eu.tft" # URL to local tft File
  nextion_update_url: "http://10.10.0.20:8123/local/nspanel_eu.tft"

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

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

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

and still have th eproblem.

BTW, when the NSPANEL boots up, I have this:

[16:49:48][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[16:49:48][C][ntc:014]:   Device Class: 'temperature'
[16:49:48][C][ntc:014]:   State Class: 'measurement'
[16:49:48][C][ntc:014]:   Unit of Measurement: '°C'
[16:49:48][C][ntc:014]:   Accuracy Decimals: 1
[16:49:48][C][homeassistant.time:010]: Home Assistant Time:
[16:49:48][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[16:49:48][C][status:034]: Status Binary Sensor 'nspanel Status'
[16:49:48][C][status:034]:   Device Class: 'connectivity'
[16:49:48][W][nextion:077]: Nextion is not connected! 
[16:49:48][C][mdns:115]: mDNS:
[16:49:48][C][mdns:116]:   Hostname: nspanel
[16:49:48][C][ota:097]: Over-The-Air Updates:
[16:49:48][C][ota:098]:   Address: nspanel.local:3232
[16:49:48][C][ota:101]:   Using Password.
[16:49:48][C][api:139]: API Server:
[16:49:48][C][api:140]:   Address: nspanel.local:6053
[16:49:48][C][api:144]:   Using noise encryption: NO
[16:49:49][W][nextion:077]: Nextion is not connected! 
[16:49:49][W][nextion:077]: Nextion is not connected! 
[16:49:50][W][nextion:077]: Nextion is not connected! 
[16:49:51][W][nextion:077]: Nextion is not connected! 
[16:49:51][W][nextion:077]: Nextion is not connected! 
[16:49:52][W][nextion:077]: Nextion is not connected! 
[16:49:52][W][nextion:077]: Nextion is not connected! 
[16:49:53][W][nextion:077]: Nextion is not connected! 
[16:49:53][W][nextion:077]: Nextion is not connected! 
[16:49:54][W][nextion:077]: Nextion is not connected! 
[16:49:54][W][nextion:077]: Nextion is not connected! 
[16:49:55][E][on_boot:054]: No response from Nextion display
edwardtfn commented 6 months ago

Could you please share the logs related to Upload TFT with this local url?

mathgoy commented 6 months ago

thanks fo ryour help. Here you go

[17:29:51][D][button:010]: 'nspanel Update TFT display' Pressed.
[17:29:51][D][main:709]: Button pressed: Update TFT display
[17:29:51][D][script.upload_tft:091]: Try #1
[17:29:51][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[17:29:51][D][main:2485]: Exit reparse
[17:29:53][D][nextion_upload:145]: Nextion TFT upload requested
[17:29:53][D][nextion_upload:146]: url: http://10.10.0.20:8123/local/nspanel_eu.tft
[17:29:53][D][nextion_upload:185]: Connected
[17:29:53][D][nextion_upload:191]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[17:29:53][D][nextion_upload:225]: Updating Nextion ...
[17:29:53][D][nextion_upload:251]: Waiting for upgrade response
[17:29:55][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[17:29:55][D][nextion_upload:266]: preparation for tft update failed 0 ""
[17:29:55][D][nextion_upload:329]: Restarting Nextion
[17:29:55][D][script.upload_tft:097]: Turn off Nextion
[17:29:55][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[17:29:55][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[17:29:58][D][script.upload_tft:100]: Turn on Nextion
[17:29:58][D][switch:012]: 'nspanel Screen Power' Turning ON.
[17:29:58][D][switch:055]: 'nspanel Screen Power': Sending state ON
[17:30:00][D][script.upload_tft:091]: Try #2
[17:30:00][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[17:30:00][D][main:2485]: Exit reparse
[17:30:02][D][nextion_upload:145]: Nextion TFT upload requested
[17:30:02][D][nextion_upload:146]: url: http://10.10.0.20:8123/local/nspanel_eu.tft
[17:30:02][D][nextion_upload:185]: Connected
[17:30:02][D][nextion_upload:191]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[17:30:03][D][nextion_upload:225]: Updating Nextion ...
[17:30:03][D][nextion_upload:251]: Waiting for upgrade response
[17:30:05][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
[17:30:05][D][nextion_upload:260]: Available 0 : 0x55
[17:30:05][D][nextion_upload:260]: Available 1 : 0xBB
[17:30:05][D][nextion_upload:260]: Available 2 : 0x13
[17:30:05][D][nextion_upload:260]: Available 3 : 0x00
[17:30:05][D][nextion_upload:260]: Available 4 : 0x65
[17:30:05][D][nextion_upload:260]: Available 5 : 0x76
[17:30:05][D][nextion_upload:260]: Available 6 : 0x65
[17:30:05][D][nextion_upload:260]: Available 7 : 0x6E
[17:30:05][D][nextion_upload:260]: Available 8 : 0x74
[17:30:05][D][nextion_upload:260]: Available 9 : 0x2C
[17:30:05][D][nextion_upload:260]: Available 10 : 0x73
[17:30:05][D][nextion_upload:260]: Available 11 : 0x74
[17:30:05][D][nextion_upload:260]: Available 12 : 0x61
[17:30:05][D][nextion_upload:260]: Available 13 : 0x72
[17:30:05][D][nextion_upload:260]: Available 14 : 0x74
[17:30:05][D][nextion_upload:260]: Available 15 : 0x75
[17:30:05][D][nextion_upload:260]: Available 16 : 0x70
[17:30:05][D][nextion_upload:260]: Available 17 : 0x2C
[17:30:05][D][nextion_upload:260]: Available 18 : 0x35
[17:30:05][D][nextion_upload:260]: Available 19 : 0x33
[17:30:05][D][nextion_upload:260]: Available 20 : 0x2C
[17:30:05][D][nextion_upload:260]: Available 21 : 0x65
[17:30:05][D][nextion_upload:260]: Available 22 : 0x75
[17:30:05][D][nextion_upload:260]: Available 23 : 0x57
[17:30:05][D][nextion_upload:260]: Available 24 : 0x88
[17:30:05][D][nextion_upload:266]: preparation for tft update failed 85 "U\xbb"
[17:30:05][D][nextion_upload:329]: Restarting Nextion
[17:30:05][D][script.upload_tft:097]: Turn off Nextion
[17:30:05][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[17:30:05][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[17:30:08][D][script.upload_tft:100]: Turn on Nextion
[17:30:08][D][switch:012]: 'nspanel Screen Power' Turning ON.
[17:30:08][D][switch:055]: 'nspanel Screen Power': Sending state ON
[17:30:10][D][script.upload_tft:091]: Try #3
[17:30:10][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[17:30:10][D][main:2485]: Exit reparse
[17:30:12][D][nextion_upload:145]: Nextion TFT upload requested
[17:30:12][D][nextion_upload:146]: url: http://10.10.0.20:8123/local/nspanel_eu.tft
[17:30:12][D][nextion_upload:185]: Connected
[17:30:12][D][nextion_upload:191]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[17:30:12][D][nextion_upload:225]: Updating Nextion ...
[17:30:12][D][nextion_upload:251]: Waiting for upgrade response
[17:30:14][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
[17:30:14][D][nextion_upload:260]: Available 0 : 0x55
[17:30:14][D][nextion_upload:260]: Available 1 : 0xBB
[17:30:14][D][nextion_upload:260]: Available 2 : 0x13
[17:30:14][D][nextion_upload:260]: Available 3 : 0x00
[17:30:14][D][nextion_upload:260]: Available 4 : 0x65
[17:30:14][D][nextion_upload:260]: Available 5 : 0x76
[17:30:14][D][nextion_upload:260]: Available 6 : 0x65
[17:30:14][D][nextion_upload:260]: Available 7 : 0x6E
[17:30:14][D][nextion_upload:260]: Available 8 : 0x74
[17:30:14][D][nextion_upload:260]: Available 9 : 0x2C
[17:30:14][D][nextion_upload:260]: Available 10 : 0x73
[17:30:14][D][nextion_upload:260]: Available 11 : 0x74
[17:30:14][D][nextion_upload:260]: Available 12 : 0x61
[17:30:14][D][nextion_upload:260]: Available 13 : 0x72
[17:30:14][D][nextion_upload:260]: Available 14 : 0x74
[17:30:14][D][nextion_upload:260]: Available 15 : 0x75
[17:30:14][D][nextion_upload:260]: Available 16 : 0x70
[17:30:14][D][nextion_upload:260]: Available 17 : 0x2C
[17:30:14][D][nextion_upload:260]: Available 18 : 0x35
[17:30:14][D][nextion_upload:260]: Available 19 : 0x33
[17:30:14][D][nextion_upload:260]: Available 20 : 0x2C
[17:30:14][D][nextion_upload:260]: Available 21 : 0x65
[17:30:14][D][nextion_upload:260]: Available 22 : 0x75
[17:30:14][D][nextion_upload:260]: Available 23 : 0x57
[17:30:14][D][nextion_upload:260]: Available 24 : 0x88
[17:30:14][D][nextion_upload:266]: preparation for tft update failed 85 "U\xbb"
[17:30:14][D][nextion_upload:329]: Restarting Nextion
[17:30:14][D][script.upload_tft:097]: Turn off Nextion
[17:30:14][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[17:30:14][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[17:30:17][D][script.upload_tft:100]: Turn on Nextion
[17:30:17][D][switch:012]: 'nspanel Screen Power' Turning ON.
[17:30:17][D][switch:055]: 'nspanel Screen Power': Sending state ON
[17:30:19][E][script.upload_tft:104]: TFT upload failed.
[17:30:19][D][script.upload_tft:105]: Turn off Nextion
[17:30:19][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[17:30:19][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[17:30:21][D][script.upload_tft:108]: Turn on Nextion
[17:30:21][D][switch:012]: 'nspanel Screen Power' Turning ON.
[17:30:22][D][switch:055]: 'nspanel Screen Power': Sending state ON
[17:30:22][D][script.upload_tft:110]: Restarting esphome
[17:30:23][D][button:010]: 'nspanel Restart' Pressed.
[17:30:23][I][restart.button:012]: Restarting device...
[17:30:23][I][app:134]: Rebooting safely...
edwardtfn commented 6 months ago

I'm trying a change to fix this. Could you please change on your yaml, on the remote_package area, change from ref: main to ref: dev, install it (wirelessly is OK), try Upload TFT again and send me the logs from the moment the device started to when the upload fails?

mathgoy commented 6 months ago

Here is the Log from the boot up.

[18:34:23][C][wifi:400]:   Hostname: 'nspanel'
[18:34:23][C][wifi:402]:   Signal strength: -70 dB ▂▄▆█
[18:34:23][C][wifi:406]:   Channel: 1
[18:34:23][C][wifi:407]:   Subnet: 255.255.255.0
[18:34:23][C][wifi:408]:   Gateway: 10.10.0.1
[18:34:23][C][wifi:409]:   DNS1: 9.9.9.9
[18:34:23][C][wifi:410]:   DNS2: 1.1.1.1
[18:34:23][W][nextion:077]: Nextion is not connected! 
[18:34:23][C][logger:416]: Logger:
[18:34:23][C][logger:417]:   Level: DEBUG
[18:34:23][C][logger:418]:   Log Baud Rate: 0
[18:34:23][C][logger:420]:   Hardware UART: UART0
[18:34:23][C][uart.arduino_esp32:124]: UART Bus 0:
[18:34:23][C][uart.arduino_esp32:125]:   TX Pin: GPIO16
[18:34:23][C][uart.arduino_esp32:126]:   RX Pin: GPIO17
[18:34:23][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[18:34:23][C][uart.arduino_esp32:130]:   Baud Rate: 115200 baud
[18:34:23][C][uart.arduino_esp32:131]:   Data Bits: 8
[18:34:23][C][uart.arduino_esp32:132]:   Parity: NONE
[18:34:23][C][uart.arduino_esp32:133]:   Stop bits: 1
[18:34:23][C][ledc.output:164]: LEDC Output:
[18:34:23][C][ledc.output:165]:   Pin GPIO21
[18:34:23][C][ledc.output:166]:   LEDC Channel: 0
[18:34:23][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[18:34:23][C][ledc.output:168]:   Bit depth: 16
[18:34:23][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display'
[18:34:23][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[18:34:23][C][template.number:050]: Template Number 'nspanel Display Brightness'
[18:34:23][C][template.number:050]:   Unit of Measurement: '%'
[18:34:23][C][template.number:051]:   Optimistic: YES
[18:34:23][C][template.number:052]:   Update Interval: 60.0s
[18:34:23][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown'
[18:34:23][C][template.number:050]:   Unit of Measurement: '%'
[18:34:23][C][template.number:051]:   Optimistic: YES
[18:34:23][C][template.number:052]:   Update Interval: 60.0s
[18:34:23][C][template.number:050]: Template Number 'nspanel Temperature Correction'
[18:34:23][C][template.number:050]:   Unit of Measurement: '°C'
[18:34:23][C][template.number:051]:   Optimistic: YES
[18:34:23][C][template.number:052]:   Update Interval: 60.0s
[18:34:23][C][template.number:050]: Template Number 'nspanel Timeout Page'
[18:34:23][C][template.number:050]:   Icon: 'mdi:timer'
[18:34:23][C][template.number:050]:   Unit of Measurement: 's'
[18:34:23][C][template.number:051]:   Optimistic: YES
[18:34:23][C][template.number:052]:   Update Interval: 60.0s
[18:34:23][C][template.number:050]: Template Number 'nspanel Timeout Dimming'
[18:34:23][C][template.number:050]:   Icon: 'mdi:timer'
[18:34:23][C][template.number:050]:   Unit of Measurement: 's'
[18:34:23][C][template.number:051]:   Optimistic: YES
[18:34:23][C][template.number:052]:   Update Interval: 60.0s
[18:34:23][C][template.number:050]: Template Number 'nspanel Timeout Sleep'
[18:34:23][C][template.number:050]:   Icon: 'mdi:timer'
[18:34:23][C][template.number:050]:   Unit of Measurement: 's'
[18:34:23][C][template.number:051]:   Optimistic: YES
[18:34:23][C][template.number:052]:   Update Interval: 60.0s
[18:34:23][C][template.select:065]: Template Select 'nspanel Wake-up page'
[18:34:23][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[18:34:23][C][template.select:066]:   Update Interval: 60.0s
[18:34:23][C][template.select:069]:   Optimistic: YES
[18:34:23][C][template.select:070]:   Initial Option: home
[18:34:23][C][template.select:071]:   Restore Value: YES
[18:34:23][C][template.text_sensor:020]: Template Sensor 'nspanel Detailed Entity'
[18:34:23][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[18:34:23][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label'
[18:34:23][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text'
[18:34:23][W][nextion:077]: Nextion is not connected! 
[18:34:23][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1'
[18:34:23][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[18:34:23][C][switch.gpio:031]:   Pin: GPIO22
[18:34:23][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2'
[18:34:23][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[18:34:23][C][switch.gpio:031]:   Pin: GPIO19
[18:34:24][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button'
[18:34:24][C][gpio.binary_sensor:016]:   Pin: GPIO14
[18:34:24][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button'
[18:34:24][C][gpio.binary_sensor:016]:   Pin: GPIO27
[18:34:24][C][switch.gpio:068]: GPIO Switch 'nspanel Nextion display - Power'
[18:34:24][C][switch.gpio:091]:   Restore Mode: always ON
[18:34:24][C][switch.gpio:031]:   Pin: GPIO4
[18:34:24][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[18:34:24][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[18:34:24][C][template.switch:057]:   Optimistic: YES
[18:34:24][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[18:34:24][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[18:34:24][C][template.switch:057]:   Optimistic: YES
[18:34:24][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[18:34:24][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[18:34:24][C][template.switch:057]:   Optimistic: YES
[18:34:24][W][nextion:077]: Nextion is not connected! 
[18:34:24][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[18:34:24][C][template.switch:091]:   Restore Mode: always OFF
[18:34:24][C][template.switch:057]:   Optimistic: YES
[18:34:24][C][rtttl:029]: Rtttl
[18:34:24][C][nextion:124]: Nextion:
[18:34:24][C][nextion:125]:   Device Model:     
[18:34:24][C][nextion:126]:   Firmware Version: 
[18:34:24][C][nextion:127]:   Serial Number:    
[18:34:24][C][nextion:128]:   Flash Size:       
[18:34:24][C][nextion:129]:   Wake On Touch:    True
[18:34:24][C][nextion:140]:   Start Up Page :      8
[18:34:24][C][restart.button:017]: Restart Button 'nspanel Restart'
[18:34:24][C][adc:097]: ADC Sensor 'ntc_source'
[18:34:24][C][adc:097]:   Device Class: 'voltage'
[18:34:24][C][adc:097]:   State Class: 'measurement'
[18:34:24][C][adc:097]:   Unit of Measurement: 'V'
[18:34:24][C][adc:097]:   Accuracy Decimals: 2
[18:34:24][C][adc:107]:   Pin: GPIO38
[18:34:24][C][adc:122]:  Attenuation: 11db
[18:34:24][C][adc:142]:   Update Interval: 60.0s
[18:34:24][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[18:34:24][C][resistance:010]:   State Class: 'measurement'
[18:34:24][C][resistance:010]:   Unit of Measurement: 'Ω'
[18:34:24][C][resistance:010]:   Accuracy Decimals: 1
[18:34:24][C][resistance:010]:   Icon: 'mdi:flash'
[18:34:24][C][resistance:011]:   Configuration: DOWNSTREAM
[18:34:24][C][resistance:012]:   Resistor: 11200.00Ω
[18:34:24][C][resistance:013]:   Reference Voltage: 3.3V
[18:34:24][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[18:34:24][C][ntc:014]:   Device Class: 'temperature'
[18:34:24][C][ntc:014]:   State Class: 'measurement'
[18:34:24][C][ntc:014]:   Unit of Measurement: '°C'
[18:34:24][C][ntc:014]:   Accuracy Decimals: 1
[18:34:24][C][homeassistant.time:010]: Home Assistant Time:
[18:34:24][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[18:34:24][C][status:034]: Status Binary Sensor 'nspanel Status'
[18:34:24][C][status:034]:   Device Class: 'connectivity'
[18:34:24][W][nextion:077]: Nextion is not connected! 
[18:34:25][C][mdns:115]: mDNS:
[18:34:25][C][mdns:116]:   Hostname: nspanel
[18:34:25][C][ota:097]: Over-The-Air Updates:
[18:34:25][C][ota:098]:   Address: nspanel.local:3232
[18:34:25][C][ota:101]:   Using Password.
[18:34:25][C][api:139]: API Server:
[18:34:25][C][api:140]:   Address: nspanel.local:6053
[18:34:25][C][api:144]:   Using noise encryption: NO
[18:34:25][W][nextion:077]: Nextion is not connected! 
[18:34:25][W][nextion:077]: Nextion is not connected! 
[18:34:26][W][nextion:077]: Nextion is not connected! 
[18:34:26][W][nextion:077]: Nextion is not connected! 
[18:34:27][W][nextion:077]: Nextion is not connected! 
[18:34:28][W][nextion:077]: Nextion is not connected! 
[18:34:28][W][nextion:077]: Nextion is not connected! 
[18:34:29][W][nextion:077]: Nextion is not connected! 
[18:34:29][W][nextion:077]: Nextion is not connected! 
[18:34:30][W][nextion:077]: Nextion is not connected! 
[18:34:30][W][nextion:077]: Nextion is not connected! 
[18:34:31][W][nextion:077]: Nextion is not connected! 
[18:34:31][W][nextion:077]: Nextion is not connected! 
[18:34:32][W][nextion:077]: Nextion is not connected! 
[18:34:32][W][nextion:077]: Nextion is not connected! 
[18:34:33][W][nextion:077]: Nextion is not connected! 
[18:34:33][W][nextion:077]: Nextion is not connected! 
[18:34:34][W][nextion:077]: Nextion is not connected! 
[18:34:35][W][nextion:077]: Nextion is not connected! 
[18:34:35][W][nextion:077]: Nextion is not connected! 
[18:34:36][W][nextion:077]: Nextion is not connected! 
[18:34:36][W][nextion:077]: Nextion is not connected! 
[18:34:37][W][nextion:077]: Nextion is not connected! 
[18:34:37][W][nextion:077]: Nextion is not connected! 
[18:34:38][W][nextion:077]: Nextion is not connected! 
[18:34:38][W][nextion:077]: Nextion is not connected! 
[18:34:39][W][nextion:077]: Nextion is not connected! 
[18:34:39][W][nextion:077]: Nextion is not connected! 
[18:34:40][D][main:2557]: Exit reparse
[18:34:40][W][nextion:077]: Nextion is not connected! 
[18:34:41][W][nextion:077]: Nextion is not connected! 
[18:34:41][W][nextion:077]: Nextion is not connected! 
[18:34:42][W][nextion:077]: Nextion is not connected! 
[18:34:42][W][nextion:077]: Nextion is not connected! 
[18:34:43][W][nextion:077]: Nextion is not connected! 
[18:34:43][W][nextion:077]: Nextion is not connected! 
[18:34:44][W][nextion:077]: Nextion is not connected! 
[18:34:44][W][nextion:077]: Nextion is not connected! 
[18:34:45][D][button:010]: 'nspanel Update TFT display' Pressed.
[18:34:45][D][main:727]: Button pressed: Update TFT display
[18:34:45][D][script.upload_tft:091]: Try #1
[18:34:45][D][script.nextion_status:2648]: Nextion status:
[18:34:45][D][script.nextion_status:2649]:   Is detected: False
[18:34:45][D][script.nextion_status:2650]:   Is setup:    False
[18:34:45][D][script.upload_tft:093]: Setting Nextion protocol reparse mode to passive
[18:34:45][D][main:2557]: Exit reparse
[18:34:45][D][script.upload_tft:075]: Wait 2 seconds
[18:34:47][D][nextion_upload:145]: Nextion TFT upload requested
[18:34:47][D][nextion_upload:146]: url: http://10.10.0.20:8123/local/nspanel_eu.tft
[18:34:47][D][nextion_upload:185]: Connected
[18:34:47][D][nextion_upload:191]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[18:34:47][D][nextion_upload:225]: Updating Nextion ...
[18:34:47][D][nextion_upload:251]: Waiting for upgrade response
[18:34:49][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[18:34:49][D][nextion_upload:266]: preparation for tft update failed 0 ""
[18:34:49][D][nextion_upload:329]: Restarting Nextion
[18:34:49][D][script.upload_tft:098]: Turn off Nextion
[18:34:49][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[18:34:49][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[18:34:49][D][script.upload_tft:075]: Wait 3 seconds
[18:34:52][D][script.upload_tft:101]: Turn on Nextion
[18:34:52][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[18:34:52][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[18:34:52][D][script.upload_tft:075]: Wait 10 seconds
[18:35:02][D][script.upload_tft:091]: Try #2
[18:35:02][D][script.nextion_status:2648]: Nextion status:
[18:35:02][D][script.nextion_status:2649]:   Is detected: False
[18:35:02][D][script.nextion_status:2650]:   Is setup:    False
[18:35:02][D][script.upload_tft:093]: Setting Nextion protocol reparse mode to passive
[18:35:02][D][main:2557]: Exit reparse
[18:35:02][D][script.upload_tft:075]: Wait 2 seconds
[18:35:04][D][nextion_upload:145]: Nextion TFT upload requested
[18:35:04][D][nextion_upload:146]: url: http://10.10.0.20:8123/local/nspanel_eu.tft
[18:35:04][D][nextion_upload:185]: Connected
[18:35:04][D][nextion_upload:191]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[18:35:04][D][nextion_upload:225]: Updating Nextion ...
[18:35:05][D][nextion_upload:251]: Waiting for upgrade response
[18:35:07][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[18:35:07][D][nextion_upload:266]: preparation for tft update failed 0 ""
[18:35:07][D][nextion_upload:329]: Restarting Nextion
[18:35:07][D][script.upload_tft:098]: Turn off Nextion
[18:35:07][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[18:35:07][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[18:35:07][D][script.upload_tft:075]: Wait 3 seconds
[18:35:10][D][script.upload_tft:101]: Turn on Nextion
[18:35:10][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[18:35:10][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[18:35:10][D][script.upload_tft:075]: Wait 10 seconds
[18:35:20][D][script.upload_tft:091]: Try #3
[18:35:20][D][script.nextion_status:2648]: Nextion status:
[18:35:20][D][script.nextion_status:2649]:   Is detected: False
[18:35:20][D][script.nextion_status:2650]:   Is setup:    False
[18:35:20][D][script.upload_tft:093]: Setting Nextion protocol reparse mode to passive
[18:35:20][D][main:2557]: Exit reparse
[18:35:20][D][script.upload_tft:075]: Wait 2 seconds
[18:35:22][D][nextion_upload:145]: Nextion TFT upload requested
[18:35:22][D][nextion_upload:146]: url: http://10.10.0.20:8123/local/nspanel_eu.tft
[18:35:22][D][nextion_upload:185]: Connected
[18:35:22][D][nextion_upload:191]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[18:35:22][D][nextion_upload:225]: Updating Nextion ...
[18:35:22][D][nextion_upload:251]: Waiting for upgrade response
[18:35:24][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[18:35:24][D][nextion_upload:266]: preparation for tft update failed 0 ""
[18:35:24][D][nextion_upload:329]: Restarting Nextion
[18:35:24][D][script.upload_tft:098]: Turn off Nextion
[18:35:24][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[18:35:24][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[18:35:24][D][script.upload_tft:075]: Wait 3 seconds
[18:35:27][D][script.upload_tft:101]: Turn on Nextion
[18:35:27][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[18:35:27][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[18:35:27][D][script.upload_tft:075]: Wait 10 seconds
[18:35:37][E][script.upload_tft:105]: TFT upload failed.
[18:35:37][D][script.upload_tft:106]: Turn off Nextion
[18:35:37][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[18:35:37][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[18:35:37][D][script.upload_tft:075]: Wait 2 seconds
[18:35:39][D][script.upload_tft:109]: Turn on Nextion
[18:35:39][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[18:35:39][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[18:35:39][D][script.upload_tft:111]: Restarting esphome
[18:35:39][D][script.upload_tft:075]: Wait 1 seconds
[18:35:40][D][button:010]: 'nspanel Restart' Pressed.
[18:35:40][I][restart.button:012]: Restarting device...
[18:35:40][I][app:134]: Rebooting safely...
[18:35:40][D][esp32.preferences:114]: Saving 1 preferences to flash...
[18:35:40][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
edwardtfn commented 6 months ago

So, the problem is basically ESPHome not detecting the display:

[18:34:45][D][script.nextion_status:2648]: Nextion status:
[18:34:45][D][script.nextion_status:2649]:   Is detected: False
[18:34:45][D][script.nextion_status:2650]:   Is setup:    False

This is probably due to the reparse mode on the original Sonoff tft. We have some code that I believe will bypass this, but I can't look at this until tomorrow. I will run som tests and come back to you.

mathgoy commented 6 months ago

Thanks mate, no rush !

BigHomie90 commented 6 months ago

Hello, i am having the exact same issue as @mathgoy . ESP part installed successfly but the tft part no.

edwardtfn commented 6 months ago

Could you please share your logs?

BigHomie90 commented 6 months ago

Yes of course

INFO ESPHome 2023.11.6
INFO Reading configuration /config/esphome/nspanel.yaml...
INFO Detected timezone 'Europe/Athens'
INFO Starting log output from nspanel.local using esphome API
INFO Successfully connected to nspanel in 0.998s
INFO Successful handshake with nspanel in 0.042s
[03:05:25][I][app:102]: ESPHome version 2023.11.6 compiled on Nov 28 2023, 02:41:27
[03:05:25][C][wifi:559]: WiFi:
[03:05:25][C][wifi:391]:   Local MAC: [redacted]
[03:05:25][C][wifi:396]:   SSID: [redacted]
[03:05:25][C][wifi:397]:   IP Address: 10.16.33.91
[03:05:25][C][wifi:399]:   BSSID: [redacted]
[03:05:25][C][wifi:400]:   Hostname: 'nspanel'
[03:05:25][C][wifi:402]:   Signal strength: -62 dB ▂▄▆█
[03:05:25][C][wifi:406]:   Channel: 3
[03:05:25][C][wifi:407]:   Subnet: 255.255.255.0
[03:05:25][C][wifi:408]:   Gateway: 10.16.33.1
[03:05:25][C][wifi:409]:   DNS1: 8.8.8.8
[03:05:25][C][wifi:410]:   DNS2: 1.1.1.1
[03:05:25][C][logger:416]: Logger:
[03:05:25][C][logger:417]:   Level: DEBUG
[03:05:25][C][logger:418]:   Log Baud Rate: 0
[03:05:25][C][logger:420]:   Hardware UART: UART0
[03:05:25][C][uart.arduino_esp32:124]: UART Bus 0:
[03:05:25][C][uart.arduino_esp32:125]:   TX Pin: GPIO16
[03:05:25][C][uart.arduino_esp32:126]:   RX Pin: GPIO17
[03:05:25][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[03:05:25][C][uart.arduino_esp32:130]:   Baud Rate: 115200 baud
[03:05:25][C][uart.arduino_esp32:131]:   Data Bits: 8
[03:05:25][C][uart.arduino_esp32:132]:   Parity: NONE
[03:05:25][C][uart.arduino_esp32:133]:   Stop bits: 1
[03:05:25][C][ledc.output:164]: LEDC Output:
[03:05:25][C][ledc.output:165]:   Pin GPIO21
[03:05:25][C][ledc.output:166]:   LEDC Channel: 0
[03:05:25][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[03:05:25][C][ledc.output:168]:   Bit depth: 16
[03:05:25][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display'
[03:05:25][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[03:05:25][C][template.number:050]: Template Number 'nspanel Display Brightness'
[03:05:25][C][template.number:050]:   Unit of Measurement: '%'
[03:05:25][C][template.number:051]:   Optimistic: YES
[03:05:25][C][template.number:052]:   Update Interval: 60.0s
[03:05:25][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown'
[03:05:25][C][template.number:050]:   Unit of Measurement: '%'
[03:05:25][C][template.number:051]:   Optimistic: YES
[03:05:25][C][template.number:052]:   Update Interval: 60.0s
[03:05:25][C][template.number:050]: Template Number 'nspanel Temperature Correction'
[03:05:25][C][template.number:050]:   Unit of Measurement: '°C'
[03:05:25][C][template.number:051]:   Optimistic: YES
[03:05:25][C][template.number:052]:   Update Interval: 60.0s
[03:05:25][C][template.number:050]: Template Number 'nspanel Timeout Page'
[03:05:25][C][template.number:050]:   Icon: 'mdi:timer'
[03:05:25][C][template.number:050]:   Unit of Measurement: 's'
[03:05:25][C][template.number:051]:   Optimistic: YES
[03:05:25][C][template.number:052]:   Update Interval: 60.0s
[03:05:25][C][template.number:050]: Template Number 'nspanel Timeout Dimming'
[03:05:25][C][template.number:050]:   Icon: 'mdi:timer'
[03:05:25][C][template.number:050]:   Unit of Measurement: 's'
[03:05:25][C][template.number:051]:   Optimistic: YES
[03:05:25][C][template.number:052]:   Update Interval: 60.0s
[03:05:25][C][template.number:050]: Template Number 'nspanel Timeout Sleep'
[03:05:25][C][template.number:050]:   Icon: 'mdi:timer'
[03:05:25][C][template.number:050]:   Unit of Measurement: 's'
[03:05:25][C][template.number:051]:   Optimistic: YES
[03:05:25][C][template.number:052]:   Update Interval: 60.0s
[03:05:26][C][template.select:065]: Template Select 'nspanel Wake-up page'
[03:05:26][C][switch.gpio:068]: GPIO Switch 'nspanel Screen Power'
[03:05:26][C][switch.gpio:091]:   Restore Mode: always ON
[03:05:26][C][switch.gpio:031]:   Pin: GPIO4
[03:05:26][C][template.text_sensor:020]: Template Sensor 'nspanel Detailed Entity'
[03:05:26][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[03:05:26][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label'
[03:05:26][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text'
[03:05:26][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1'
[03:05:26][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[03:05:26][C][switch.gpio:031]:   Pin: GPIO22
[03:05:26][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2'
[03:05:26][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[03:05:26][C][switch.gpio:031]:   Pin: GPIO19
[03:05:26][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button'
[03:05:26][C][gpio.binary_sensor:016]:   Pin: GPIO14
[03:05:26][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button'
[03:05:26][C][gpio.binary_sensor:016]:   Pin: GPIO27
[03:05:26][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[03:05:26][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[03:05:26][C][template.switch:057]:   Optimistic: YES
[03:05:26][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[03:05:26][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[03:05:26][C][template.switch:057]:   Optimistic: YES
[03:05:26][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[03:05:26][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[03:05:26][C][template.switch:057]:   Optimistic: YES
[03:05:26][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[03:05:26][C][template.switch:091]:   Restore Mode: always OFF
[03:05:26][C][template.switch:057]:   Optimistic: YES
[03:05:26][C][rtttl:029]: Rtttl
[03:05:26][C][restart.button:017]: Restart Button 'nspanel Restart'
[03:05:26][C][adc:097]: ADC Sensor 'ntc_source'
[03:05:26][C][adc:097]:   Device Class: 'voltage'
[03:05:26][C][adc:097]:   State Class: 'measurement'
[03:05:26][C][adc:097]:   Unit of Measurement: 'V'
[03:05:26][C][adc:097]:   Accuracy Decimals: 2
[03:05:26][C][adc:107]:   Pin: GPIO38
[03:05:26][C][adc:122]:  Attenuation: 11db
[03:05:26][C][adc:142]:   Update Interval: 60.0s
[03:05:26][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[03:05:26][C][resistance:010]:   State Class: 'measurement'
[03:05:26][C][resistance:010]:   Unit of Measurement: 'Ω'
[03:05:26][C][resistance:010]:   Accuracy Decimals: 1
[03:05:26][C][resistance:010]:   Icon: 'mdi:flash'
[03:05:26][C][resistance:011]:   Configuration: DOWNSTREAM
[03:05:26][C][resistance:012]:   Resistor: 11200.00Ω
[03:05:26][C][resistance:013]:   Reference Voltage: 3.3V
[03:05:26][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[03:05:26][C][ntc:014]:   Device Class: 'temperature'
[03:05:26][C][ntc:014]:   State Class: 'measurement'
[03:05:26][C][ntc:014]:   Unit of Measurement: '°C'
[03:05:26][C][ntc:014]:   Accuracy Decimals: 1
[03:05:26][C][homeassistant.time:010]: Home Assistant Time:
[03:05:26][C][homeassistant.time:011]:   Timezone: 'EET-2EEST,M3.5.0/3,M10.5.0/4'
[03:05:27][C][status:034]: Status Binary Sensor 'nspanel Status'
[03:05:27][C][status:034]:   Device Class: 'connectivity'
[03:05:27][C][mdns:115]: mDNS:
[03:05:27][C][mdns:116]:   Hostname: nspanel
[03:05:27][C][ota:097]: Over-The-Air Updates:
[03:05:27][C][ota:098]:   Address: nspanel.local:3232
[03:05:27][C][ota:101]:   Using Password.
[03:05:27][C][api:139]: API Server:
[03:05:27][C][api:140]:   Address: nspanel.local:6053
[03:05:27][C][api:144]:   Using noise encryption: NO
[03:05:40][D][script.set_brightness:1627]: brightness: 10%
[03:06:10][D][script.timer_sleep:1616]: Going to sleep from page 
[03:06:10][D][script.set_brightness:1627]: brightness: 0%
[03:06:18][D][sensor:094]: 'ntc_source': Sending state 1.82700 V with 2 decimals of accuracy
[03:06:18][D][resistance:039]: 'resistance_sensor' - Resistance 13891.7Ω
[03:06:18][D][sensor:094]: 'resistance_sensor': Sending state 13891.65039 Ω with 1 decimals of accuracy
[03:06:18][D][ntc:026]: 'nspanel Temperature' - Temperature: 17.8°C
[03:06:18][D][sensor:094]: 'nspanel Temperature': Sending state 17.78174 °C with 1 decimals of accuracy
[03:07:18][D][sensor:094]: 'ntc_source': Sending state 1.83500 V with 2 decimals of accuracy
[03:07:18][D][resistance:039]: 'resistance_sensor' - Resistance 14028.7Ω
[03:07:18][D][sensor:094]: 'resistance_sensor': Sending state 14028.66992 Ω with 1 decimals of accuracy
[03:07:18][D][ntc:026]: 'nspanel Temperature' - Temperature: 17.6°C
[03:07:18][D][sensor:094]: 'nspanel Temperature': Sending state 17.57157 °C with 1 decimals of accuracy
[03:07:40][D][button:010]: 'nspanel Update TFT display' Pressed.
[03:07:40][D][main:706]: Button pressed: Update TFT display
[03:07:40][D][script.upload_tft:091]: Try #1
[03:07:40][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[03:07:40][D][main:2485]: Exit reparse
[03:07:42][D][nextion_upload:145]: Nextion TFT upload requested
[03:07:42][D][nextion_upload:146]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:07:42][D][nextion_upload:185]: Connected
[03:07:42][D][nextion_upload:191]: Requesting URL: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:07:42][D][nextion_upload:225]: Updating Nextion ...
[03:07:42][D][nextion_upload:251]: Waiting for upgrade response
[03:07:44][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[03:07:44][D][nextion_upload:266]: preparation for tft update failed 0 ""
[03:07:44][D][nextion_upload:329]: Restarting Nextion
[03:07:44][D][script.upload_tft:097]: Turn off Nextion
[03:07:44][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:07:44][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:07:47][D][script.upload_tft:100]: Turn on Nextion
[03:07:47][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:07:47][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:07:49][D][script.upload_tft:091]: Try #2
[03:07:49][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[03:07:49][D][main:2485]: Exit reparse
[03:07:51][D][nextion_upload:145]: Nextion TFT upload requested
[03:07:51][D][nextion_upload:146]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:07:51][D][nextion_upload:185]: Connected
[03:07:51][D][nextion_upload:191]: Requesting URL: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:07:52][D][nextion_upload:225]: Updating Nextion ...
[03:07:52][D][nextion_upload:251]: Waiting for upgrade response
[03:07:54][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[03:07:54][D][nextion_upload:266]: preparation for tft update failed 0 ""
[03:07:54][D][nextion_upload:329]: Restarting Nextion
[03:07:54][D][script.upload_tft:097]: Turn off Nextion
[03:07:54][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:07:54][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:07:57][D][script.upload_tft:100]: Turn on Nextion
[03:07:57][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:07:57][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:07:59][D][script.upload_tft:091]: Try #3
[03:07:59][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[03:07:59][D][main:2485]: Exit reparse
[03:08:01][D][nextion_upload:145]: Nextion TFT upload requested
[03:08:01][D][nextion_upload:146]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:08:01][D][nextion_upload:185]: Connected
[03:08:01][D][nextion_upload:191]: Requesting URL: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:08:01][D][nextion_upload:225]: Updating Nextion ...
[03:08:01][D][nextion_upload:251]: Waiting for upgrade response
[03:08:03][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[03:08:03][D][nextion_upload:266]: preparation for tft update failed 0 ""
[03:08:03][D][nextion_upload:329]: Restarting Nextion
[03:08:03][D][script.upload_tft:097]: Turn off Nextion
[03:08:03][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:08:03][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:08:06][D][script.upload_tft:100]: Turn on Nextion
[03:08:06][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:08:06][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:08:08][E][script.upload_tft:104]: TFT upload failed.
[03:08:08][D][script.upload_tft:105]: Turn off Nextion
[03:08:08][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:08:08][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:08:10][D][script.upload_tft:108]: Turn on Nextion
[03:08:10][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:08:10][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:08:10][D][script.upload_tft:110]: Restarting esphome
[03:08:11][D][button:010]: 'nspanel Restart' Pressed.
[03:08:11][I][restart.button:012]: Restarting device...
[03:08:11][I][app:134]: Rebooting safely...
INFO Processing expected disconnect from ESPHome API for nspanel
WARNING Disconnected from API
INFO Successfully connected to nspanel in 3.969s
INFO Successful handshake with nspanel in 0.063s
[03:08:21][C][homeassistant.time:010]: Home Assistant Time:
[03:08:21][C][homeassistant.time:011]:   Timezone: 'EET-2EEST,M3.5.0/3,M10.5.0/4'
[03:08:21][C][status:034]: Status Binary Sensor 'nspanel Status'
[03:08:21][C][status:034]:   Device Class: 'connectivity'
[03:08:21][C][mdns:115]: mDNS:
[03:08:21][C][mdns:116]:   Hostname: nspanel
[03:08:21][C][ota:097]: Over-The-Air Updates:
[03:08:21][C][ota:098]:   Address: nspanel.local:3232
[03:08:21][C][ota:101]:   Using Password.
[03:08:21][C][api:139]: API Server:
[03:08:21][C][api:140]:   Address: nspanel.local:6053
[03:08:21][C][api:144]:   Using noise encryption: NO
[03:08:21][D][button:010]: 'nspanel Update TFT display' Pressed.
[03:08:21][D][main:706]: Button pressed: Update TFT display
[03:08:21][D][script.upload_tft:091]: Try #1
[03:08:21][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[03:08:21][D][main:2485]: Exit reparse
[03:08:23][D][nextion_upload:145]: Nextion TFT upload requested
[03:08:23][D][nextion_upload:146]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:08:23][D][nextion_upload:185]: Connected
[03:08:23][D][nextion_upload:191]: Requesting URL: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:08:24][D][nextion_upload:225]: Updating Nextion ...
[03:08:24][D][nextion_upload:251]: Waiting for upgrade response
[03:08:26][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[03:08:26][D][nextion_upload:266]: preparation for tft update failed 0 ""
[03:08:26][D][nextion_upload:329]: Restarting Nextion
[03:08:26][D][script.upload_tft:097]: Turn off Nextion
[03:08:26][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:08:26][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:08:29][D][script.upload_tft:100]: Turn on Nextion
[03:08:29][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:08:29][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:08:31][D][script.upload_tft:091]: Try #2
[03:08:31][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[03:08:31][D][main:2485]: Exit reparse
[03:08:33][D][nextion_upload:145]: Nextion TFT upload requested
[03:08:33][D][nextion_upload:146]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:08:33][D][nextion_upload:185]: Connected
[03:08:33][D][nextion_upload:191]: Requesting URL: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:08:33][D][nextion_upload:225]: Updating Nextion ...
[03:08:33][D][nextion_upload:251]: Waiting for upgrade response
[03:08:35][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[03:08:35][D][nextion_upload:266]: preparation for tft update failed 0 ""
[03:08:35][D][nextion_upload:329]: Restarting Nextion
[03:08:35][D][script.upload_tft:097]: Turn off Nextion
[03:08:35][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:08:35][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:08:38][D][script.upload_tft:100]: Turn on Nextion
[03:08:38][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:08:38][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:08:40][D][script.upload_tft:091]: Try #3
[03:08:40][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[03:08:40][D][main:2485]: Exit reparse
[03:08:42][D][nextion_upload:145]: Nextion TFT upload requested
[03:08:42][D][nextion_upload:146]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:08:42][D][nextion_upload:185]: Connected
[03:08:42][D][nextion_upload:191]: Requesting URL: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:08:42][D][nextion_upload:225]: Updating Nextion ...
[03:08:43][D][nextion_upload:251]: Waiting for upgrade response
[03:08:45][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[03:08:45][D][nextion_upload:266]: preparation for tft update failed 0 ""
[03:08:45][D][nextion_upload:329]: Restarting Nextion
[03:08:45][D][script.upload_tft:097]: Turn off Nextion
[03:08:45][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:08:45][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:08:48][D][script.upload_tft:100]: Turn on Nextion
[03:08:48][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:08:48][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:08:50][E][script.upload_tft:104]: TFT upload failed.
[03:08:50][D][script.upload_tft:105]: Turn off Nextion
[03:08:50][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:08:50][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:08:52][D][script.upload_tft:108]: Turn on Nextion
[03:08:52][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:08:52][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:08:52][D][script.upload_tft:110]: Restarting esphome
[03:08:53][D][button:010]: 'nspanel Restart' Pressed.
[03:08:53][I][restart.button:012]: Restarting device...
[03:08:53][I][app:134]: Rebooting safely...
[03:08:53][D][esp32.preferences:114]: Saving 1 preferences to flash...
[03:08:53][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.230s
INFO Successful handshake with nspanel in 0.049s
[03:09:01][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[03:09:01][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[03:09:01][C][template.switch:057]:   Optimistic: YES
[03:09:01][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[03:09:01][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[03:09:01][C][template.switch:057]:   Optimistic: YES
[03:09:01][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[03:09:01][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[03:09:01][C][template.switch:057]:   Optimistic: YES
[03:09:01][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[03:09:01][C][template.switch:091]:   Restore Mode: always OFF
[03:09:01][C][template.switch:057]:   Optimistic: YES
[03:09:01][C][rtttl:029]: Rtttl
[03:09:01][C][restart.button:017]: Restart Button 'nspanel Restart'
[03:09:01][C][adc:097]: ADC Sensor 'ntc_source'
[03:09:01][C][adc:097]:   Device Class: 'voltage'
[03:09:01][C][adc:097]:   State Class: 'measurement'
[03:09:01][C][adc:097]:   Unit of Measurement: 'V'
[03:09:01][C][adc:097]:   Accuracy Decimals: 2
[03:09:01][C][adc:107]:   Pin: GPIO38
[03:09:01][C][adc:122]:  Attenuation: 11db
[03:09:01][C][adc:142]:   Update Interval: 60.0s
[03:09:01][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[03:09:01][C][resistance:010]:   State Class: 'measurement'
[03:09:01][C][resistance:010]:   Unit of Measurement: 'Ω'
[03:09:01][C][resistance:010]:   Accuracy Decimals: 1
[03:09:01][C][resistance:010]:   Icon: 'mdi:flash'
[03:09:01][C][resistance:011]:   Configuration: DOWNSTREAM
[03:09:01][C][resistance:012]:   Resistor: 11200.00Ω
[03:09:01][C][resistance:013]:   Reference Voltage: 3.3V
[03:09:01][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[03:09:01][C][ntc:014]:   Device Class: 'temperature'
[03:09:01][C][ntc:014]:   State Class: 'measurement'
[03:09:01][C][ntc:014]:   Unit of Measurement: '°C'
[03:09:01][C][ntc:014]:   Accuracy Decimals: 1
[03:09:02][C][homeassistant.time:010]: Home Assistant Time:
[03:09:02][C][homeassistant.time:011]:   Timezone: 'EET-2EEST,M3.5.0/3,M10.5.0/4'
[03:09:02][C][status:034]: Status Binary Sensor 'nspanel Status'
[03:09:02][C][status:034]:   Device Class: 'connectivity'
[03:09:02][C][mdns:115]: mDNS:
[03:09:02][C][mdns:116]:   Hostname: nspanel
[03:09:02][C][ota:097]: Over-The-Air Updates:
[03:09:02][C][ota:098]:   Address: nspanel.local:3232
[03:09:02][C][ota:101]:   Using Password.
[03:09:02][C][api:139]: API Server:
[03:09:02][C][api:140]:   Address: nspanel.local:6053
[03:09:02][C][api:144]:   Using noise encryption: NO
[03:09:03][D][button:010]: 'nspanel Update TFT display' Pressed.
[03:09:03][D][main:706]: Button pressed: Update TFT display
[03:09:03][D][script.upload_tft:091]: Try #1
[03:09:03][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[03:09:03][D][main:2485]: Exit reparse
[03:09:05][D][nextion_upload:145]: Nextion TFT upload requested
[03:09:05][D][nextion_upload:146]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:09:05][D][nextion_upload:185]: Connected
[03:09:05][D][nextion_upload:191]: Requesting URL: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:09:05][D][nextion_upload:225]: Updating Nextion ...
[03:09:05][D][nextion_upload:251]: Waiting for upgrade response
[03:09:07][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[03:09:07][D][nextion_upload:266]: preparation for tft update failed 0 ""
[03:09:07][D][nextion_upload:329]: Restarting Nextion
[03:09:07][D][script.upload_tft:097]: Turn off Nextion
[03:09:07][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:09:07][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:09:10][D][script.upload_tft:100]: Turn on Nextion
[03:09:10][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:09:10][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:09:12][D][script.upload_tft:091]: Try #2
[03:09:12][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[03:09:12][D][main:2485]: Exit reparse
[03:09:14][D][nextion_upload:145]: Nextion TFT upload requested
[03:09:14][D][nextion_upload:146]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:09:14][D][nextion_upload:185]: Connected
[03:09:14][D][nextion_upload:191]: Requesting URL: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:09:14][D][nextion_upload:225]: Updating Nextion ...
[03:09:15][D][nextion_upload:251]: Waiting for upgrade response
[03:09:17][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[03:09:17][D][nextion_upload:266]: preparation for tft update failed 0 ""
[03:09:17][D][nextion_upload:329]: Restarting Nextion
[03:09:17][D][script.upload_tft:097]: Turn off Nextion
[03:09:17][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:09:17][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:09:20][D][script.upload_tft:100]: Turn on Nextion
[03:09:20][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:09:20][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:09:22][D][script.upload_tft:091]: Try #3
[03:09:22][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive
[03:09:22][D][main:2485]: Exit reparse
[03:09:24][D][nextion_upload:145]: Nextion TFT upload requested
[03:09:24][D][nextion_upload:146]: url: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:09:24][D][nextion_upload:185]: Connected
[03:09:24][D][nextion_upload:191]: Requesting URL: http://homeassistant.local:8123/local/nspanel_eu.tft
[03:09:24][D][nextion_upload:225]: Updating Nextion ...
[03:09:24][D][nextion_upload:251]: Waiting for upgrade response
[03:09:26][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[03:09:26][D][nextion_upload:266]: preparation for tft update failed 0 ""
[03:09:26][D][nextion_upload:329]: Restarting Nextion
[03:09:26][D][script.upload_tft:097]: Turn off Nextion
[03:09:26][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:09:26][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:09:29][D][script.upload_tft:100]: Turn on Nextion
[03:09:29][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:09:29][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:09:31][E][script.upload_tft:104]: TFT upload failed.
[03:09:31][D][script.upload_tft:105]: Turn off Nextion
[03:09:31][D][switch:016]: 'nspanel Screen Power' Turning OFF.
[03:09:31][D][switch:055]: 'nspanel Screen Power': Sending state OFF
[03:09:33][D][script.upload_tft:108]: Turn on Nextion
[03:09:33][D][switch:012]: 'nspanel Screen Power' Turning ON.
[03:09:33][D][switch:055]: 'nspanel Screen Power': Sending state ON
[03:09:33][D][script.upload_tft:110]: Restarting esphome
[03:09:34][D][button:010]: 'nspanel Restart' Pressed.
[03:09:34][I][restart.button:012]: Restarting device...
[03:09:34][I][app:134]: Rebooting safely...
[03:09:34][D][esp32.preferences:114]: Saving 1 preferences to flash...
[03:09:34][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
xkonni commented 6 months ago

me too. at some point it apparently did flash 4.1.1, but now nothing works.

config

substitutions:
  device_name: "nspanel" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  nextion_update_url: "http://192.168.11.12:8123/local/nspanel_eu.tft"
  # nextion_update_url: "http://192.168.11.12:8123/local/nspanel_blank.tft"

packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: dev
    files: [nspanel_esphome.yaml]
    refresh: 300s

logs

... boot ...
[02:13:41][D][script.nextion_status:2650]: Nextion status:
[02:13:41][D][script.nextion_status:2651]:   Is detected: False
[02:13:41][D][script.nextion_status:2652]:   Is setup:    False
[02:13:41][E][on_boot:071]: No response from Nextion display
[02:13:41][D][on_boot:073]: Finished
[02:13:48][D][button:010]: 'nspanel Update TFT display' Pressed.
[02:13:48][D][main:725]: Button pressed: Update TFT display
[02:13:48][D][script.upload_tft:091]: Try #1
[02:13:48][D][script.nextion_status:2650]: Nextion status:
[02:13:48][D][script.nextion_status:2651]:   Is detected: False
[02:13:48][D][script.nextion_status:2652]:   Is setup:    False
[02:13:48][D][script.upload_tft:093]: Setting Nextion protocol reparse mode to passive
[02:13:48][D][main:2559]: Exit reparse
[02:13:48][D][script.upload_tft:075]: Wait 2 seconds
[02:13:50][D][nextion_upload:145]: Nextion TFT upload requested
[02:13:50][D][nextion_upload:146]: url: http://192.168.11.12:8123/local/nspanel_eu.tft
[02:13:50][D][nextion_upload:185]: Connected
[02:13:50][D][nextion_upload:191]: Requesting URL: http://192.168.11.12:8123/local/nspanel_eu.tft
[02:13:50][D][nextion_upload:225]: Updating Nextion ...
[02:13:50][D][nextion_upload:251]: Waiting for upgrade response
[02:13:52][D][nextion_upload:257]: Upgrade response is [84.1D.29.29.73.29.C9.EF (8)] - 8 bytes
[02:13:52][D][nextion_upload:260]: Available 0 : 0x84
[02:13:52][D][nextion_upload:260]: Available 1 : 0x1D
[02:13:52][D][nextion_upload:260]: Available 2 : 0x29
[02:13:52][D][nextion_upload:260]: Available 3 : 0x29
[02:13:52][D][nextion_upload:260]: Available 4 : 0x73
[02:13:52][D][nextion_upload:260]: Available 5 : 0x29
[02:13:52][D][nextion_upload:260]: Available 6 : 0xC9
[02:13:52][D][nextion_upload:260]: Available 7 : 0xEF
[02:13:52][D][nextion_upload:266]: preparation for tft update failed 132 "\x84))s)\xc9\xef"
[02:13:52][D][nextion_upload:329]: Restarting Nextion
[02:13:52][D][script.upload_tft:098]: Turn off Nextion
[02:13:52][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[02:13:52][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[02:13:52][D][script.upload_tft:075]: Wait 3 seconds
[02:13:55][D][script.upload_tft:101]: Turn on Nextion
[02:13:55][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[02:13:55][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[02:13:55][D][script.upload_tft:075]: Wait 10 seconds
[02:14:05][D][script.upload_tft:091]: Try #2
[02:14:05][D][script.nextion_status:2650]: Nextion status:
[02:14:05][D][script.nextion_status:2651]:   Is detected: False
[02:14:05][D][script.nextion_status:2652]:   Is setup:    False
[02:14:05][D][script.upload_tft:093]: Setting Nextion protocol reparse mode to passive
[02:14:05][D][main:2559]: Exit reparse
[02:14:05][D][script.upload_tft:075]: Wait 2 seconds
[02:14:07][D][nextion_upload:145]: Nextion TFT upload requested
[02:14:07][D][nextion_upload:146]: url: http://192.168.11.12:8123/local/nspanel_eu.tft
[02:14:07][D][nextion_upload:185]: Connected
[02:14:07][D][nextion_upload:191]: Requesting URL: http://192.168.11.12:8123/local/nspanel_eu.tft
[02:14:07][D][nextion_upload:225]: Updating Nextion ...
[02:14:08][D][nextion_upload:251]: Waiting for upgrade response
[02:14:10][D][nextion_upload:257]: Upgrade response is [84.1D.29.29.73.29.C9.EF (8)] - 8 bytes
[02:14:10][D][nextion_upload:260]: Available 0 : 0x84
[02:14:10][D][nextion_upload:260]: Available 1 : 0x1D
[02:14:10][D][nextion_upload:260]: Available 2 : 0x29
[02:14:10][D][nextion_upload:260]: Available 3 : 0x29
[02:14:10][D][nextion_upload:260]: Available 4 : 0x73
[02:14:10][D][nextion_upload:260]: Available 5 : 0x29
[02:14:10][D][nextion_upload:260]: Available 6 : 0xC9
[02:14:10][D][nextion_upload:260]: Available 7 : 0xEF
[02:14:10][D][nextion_upload:266]: preparation for tft update failed 132 "\x84))s)\xc9\xef"
[02:14:10][D][nextion_upload:329]: Restarting Nextion
[02:14:10][D][script.upload_tft:098]: Turn off Nextion
[02:14:10][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[02:14:10][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[02:14:10][D][script.upload_tft:075]: Wait 3 seconds
[02:14:13][D][script.upload_tft:101]: Turn on Nextion
[02:14:13][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[02:14:13][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[02:14:13][D][script.upload_tft:075]: Wait 10 seconds
[02:14:23][D][script.upload_tft:091]: Try #3
[02:14:23][D][script.nextion_status:2650]: Nextion status:
[02:14:23][D][script.nextion_status:2651]:   Is detected: False
[02:14:23][D][script.nextion_status:2652]:   Is setup:    False
[02:14:23][D][script.upload_tft:093]: Setting Nextion protocol reparse mode to passive
[02:14:23][D][main:2559]: Exit reparse
[02:14:23][D][script.upload_tft:075]: Wait 2 seconds
[02:14:25][D][nextion_upload:145]: Nextion TFT upload requested
[02:14:25][D][nextion_upload:146]: url: http://192.168.11.12:8123/local/nspanel_eu.tft
[02:14:25][D][nextion_upload:185]: Connected
[02:14:25][D][nextion_upload:191]: Requesting URL: http://192.168.11.12:8123/local/nspanel_eu.tft
[02:14:25][D][nextion_upload:225]: Updating Nextion ...
[02:14:25][D][nextion_upload:251]: Waiting for upgrade response
[02:14:27][D][nextion_upload:257]: Upgrade response is [84.1D.29.29.73.29.C9.EF (8)] - 8 bytes
[02:14:27][D][nextion_upload:260]: Available 0 : 0x84
[02:14:27][D][nextion_upload:260]: Available 1 : 0x1D
[02:14:27][D][nextion_upload:260]: Available 2 : 0x29
[02:14:27][D][nextion_upload:260]: Available 3 : 0x29
[02:14:27][D][nextion_upload:260]: Available 4 : 0x73
[02:14:27][D][nextion_upload:260]: Available 5 : 0x29
[02:14:27][D][nextion_upload:260]: Available 6 : 0xC9
[02:14:27][D][nextion_upload:260]: Available 7 : 0xEF
[02:14:27][D][nextion_upload:266]: preparation for tft update failed 132 "\x84))s)\xc9\xef"
[02:14:27][D][nextion_upload:329]: Restarting Nextion
[02:14:27][D][script.upload_tft:098]: Turn off Nextion
[02:14:27][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[02:14:27][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[02:14:27][D][script.upload_tft:075]: Wait 3 seconds
[02:14:30][D][script.upload_tft:101]: Turn on Nextion
[02:14:30][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[02:14:30][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[02:14:30][D][script.upload_tft:075]: Wait 10 seconds
[02:14:40][E][script.upload_tft:105]: TFT upload failed.
[02:14:40][D][script.upload_tft:106]: Turn off Nextion
[02:14:40][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[02:14:40][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[02:14:40][D][script.upload_tft:075]: Wait 2 seconds
[02:14:42][D][script.upload_tft:109]: Turn on Nextion
[02:14:42][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[02:14:42][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[02:14:42][D][script.upload_tft:111]: Restarting esphome
[02:14:42][D][script.upload_tft:075]: Wait 1 seconds
[02:14:43][D][button:010]: 'nspanel Restart' Pressed.
[02:14:43][I][restart.button:012]: Restarting device...
[02:14:43][I][app:134]: Rebooting safely...
[02:14:43][D][esp32.preferences:114]: Saving 1 preferences to flash...
[02:14:43][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
INFO Processing expected disconnect from ESPHome API for nspanel

display says

Tried pretty much all combinations of hints available in other tickets but guess I missed the correct one. any help would be appreciated!

kein0r commented 6 months ago

Same issue here. Tried to setup a brand new NSPanel but get the following error when clicking on "Update TFT display"

[21:05:36][D][button:010]: 'officepanel Update TFT display' Pressed.
[21:05:36][D][main:723]: Button pressed: Update TFT display
[21:05:36][D][script.upload_tft:091]: Try #1
[21:05:36][D][script.nextion_status:2650]: Nextion status:
[21:05:36][D][script.nextion_status:2651]:   Is detected: False
[21:05:36][D][script.nextion_status:2652]:   Is setup:    False
[21:05:36][D][script.upload_tft:093]: Setting Nextion protocol reparse mode to passive
[21:05:36][D][main:2559]: Exit reparse
[21:05:36][D][script.upload_tft:075]: Wait 2 seconds
[21:05:38][D][nextion_upload:145]: Nextion TFT upload requested
[21:05:38][D][nextion_upload:146]: url: http://10.0.0.8:8123/local/nspanel_us.tft
[21:05:38][D][nextion_upload:185]: Connected
[21:05:38][D][nextion_upload:191]: Requesting URL: http://10.0.0.8:8123/local/nspanel_us.tft
[21:05:38][D][nextion_upload:225]: Updating Nextion ...
[21:05:38][D][nextion_upload:251]: Waiting for upgrade response
[21:05:40][D][nextion_upload:257]: Upgrade response is [] - 0 bytes
[21:05:40][D][nextion_upload:266]: preparation for tft update failed 0 ""
[21:05:40][D][nextion_upload:329]: Restarting Nextion
[21:05:40][D][script.upload_tft:098]: Turn off Nextion
[21:05:40][D][switch:016]: 'officepanel Nextion display - Power' Turning OFF.
[21:05:40][D][switch:055]: 'officepanel Nextion display - Power': Sending state OFF
[21:05:40][D][script.upload_tft:075]: Wait 3 seconds
[21:05:43][D][script.upload_tft:101]: Turn on Nextion
[21:05:43][D][switch:012]: 'officepanel Nextion display - Power' Turning ON.
[21:05:43][D][switch:055]: 'officepanel Nextion display - Power': Sending state ON
[21:05:43][D][script.upload_tft:075]: Wait 10 seconds

Tried with main and dev as mentioned above

xHirscHx commented 6 months ago

same new esphome update today did it to me [20:59:35][E][on_boot:040]: No response from Nextion display

mathgoy commented 6 months ago

somehow, it's cheering me up not to be alone!

Doughboy68 commented 6 months ago

Hi, Sorry for the late reply. was travelling.

This is not a new panel. I flashed it with another custom firmware before (to be used with appdaemon) and reflashed it with NSPanel_HA_Blueprint.

I tried with blank.tft and had the same issue

Sounds like you were using Lovelace ui. Did you flash tft in it? If so then reinstall flashLovelace ui and flash blank.tft within it. Then reflash the ESPHome blueprint and then retry tft flash.

smarthomefamilyverrips commented 6 months ago

The last few issues posted over last hours sound more like having the issue (and solution) described here #1350

mathgoy commented 6 months ago

The last few issues posted over last hours sound more like having the issue (and solution) described here #1350

that didn't do the trick here

smarthomefamilyverrips commented 6 months ago

The last few issues posted over last hours sound more like having the issue (and solution) described here #1350

that didn't do the trick here

that was expected as I did say issues posted over last few hours, you reported your issue already a week ago it was mostly for @xHirscHx and @xkonni

BigHomie90 commented 6 months ago

Temporary solution from #1350 worked for me. TFT flashed and blueprint working. Thank you!

edwardtfn commented 6 months ago

Hey @mathgoy, my apologies for being quite here... I got quite involved with the issue about the system loosing communication with the screen that affected lots of people.. Well, that is gone now, so I wanna come back to your issue.

As I understood, you have updated to latest version and it still with the issue, right? Could you please share the logs from the moment your panel boots and for around 2 minutes?

mathgoy commented 6 months ago

No worries @edwardtfn , I am grateful you help.

Here is the log you asked (boot up and 2min)

I``` INFO ESPHome 2023.11.6 INFO Reading configuration /config/esphome/nspanel.yaml... INFO Updating https://github.com/esphome/esphome.git@pull/5829/head INFO Detected timezone 'Europe/Paris' INFO Starting log output from nspanel.local using esphome API INFO Successfully connected to nspanel in 0.517s INFO Successful handshake with nspanel in 0.059s [21:17:36][I][app:102]: ESPHome version 2023.11.6 compiled on Nov 28 2023, 16:20:45

[21:17:36][C][wifi:391]: Local MAC: C4:DD:57:E8:13:D8 [21:17:36][C][wifi:396]: SSID: [redacted] [21:17:36][C][wifi:397]: IP Address: 10.10.0.109 [21:17:36][C][wifi:399]: BSSID: [redacted]

[21:17:36][C][wifi:402]: Signal strength: -60 dB ▂▄▆█ [21:17:36][C][wifi:406]: Channel: 6 [21:17:36][C][wifi:407]: Subnet: 255.255.255.0 [21:17:36][C][wifi:408]: Gateway: 10.10.0.1 [21:17:36][C][wifi:409]: DNS1: 9.9.9.9 [21:17:36][C][wifi:410]: DNS2: 1.1.1.1

[21:17:36][C][logger:417]: Level: DEBUG [21:17:36][C][logger:418]: Log Baud Rate: 0 [21:17:36][C][logger:420]: Hardware UART: UART0 [21:17:36][C][uart.arduino_esp32:124]: UART Bus 0: [21:17:36][C][uart.arduino_esp32:125]: TX Pin: GPIO16 [21:17:36][C][uart.arduino_esp32:126]: RX Pin: GPIO17 [21:17:36][C][uart.arduino_esp32:128]: RX Buffer Size: 256 [21:17:36][C][uart.arduino_esp32:130]: Baud Rate: 115200 baud [21:17:36][C][uart.arduino_esp32:131]: Data Bits: 8 [21:17:36][C][uart.arduino_esp32:132]: Parity: NONE [21:17:36][C][uart.arduino_esp32:133]: Stop bits: 1 [21:17:36][C][ledc.output:164]: LEDC Output: [21:17:36][C][ledc.output:165]: Pin GPIO21 [21:17:36][C][ledc.output:166]: LEDC Channel: 0 [21:17:36][C][ledc.output:167]: PWM Frequency: 1000.0 Hz [21:17:36][C][ledc.output:168]: Bit depth: 16 [21:17:36][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display' [21:17:36][C][template.binary_sensor:028]: Device Class: 'connectivity' [21:17:36][C][template.number:050]: Template Number 'nspanel Display Brightness' [21:17:36][C][template.number:050]: Unit of Measurement: '%' [21:17:36][C][template.number:051]: Optimistic: YES [21:17:36][C][template.number:052]: Update Interval: 60.0s [21:17:36][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown' [21:17:36][C][template.number:050]: Unit of Measurement: '%' [21:17:36][C][template.number:051]: Optimistic: YES [21:17:36][C][template.number:052]: Update Interval: 60.0s [21:17:36][C][template.number:050]: Template Number 'nspanel Temperature Correction' [21:17:36][C][template.number:050]: Unit of Measurement: '°C' [21:17:36][C][template.number:051]: Optimistic: YES [21:17:36][C][template.number:052]: Update Interval: 60.0s [21:17:36][C][template.number:050]: Template Number 'nspanel Timeout Page'

[21:17:36][C][template.number:050]: Unit of Measurement: 's' [21:17:36][C][template.number:051]: Optimistic: YES [21:17:36][C][template.number:052]: Update Interval: 60.0s [21:17:36][C][template.number:050]: Template Number 'nspanel Timeout Dimming'

[21:17:36][C][template.number:050]: Unit of Measurement: 's' [21:17:36][C][template.number:051]: Optimistic: YES [21:17:36][C][template.number:052]: Update Interval: 60.0s [21:17:36][C][template.number:050]: Template Number 'nspanel Timeout Sleep'

[21:17:36][C][template.number:050]: Unit of Measurement: 's' [21:17:36][C][template.number:051]: Optimistic: YES [21:17:36][C][template.number:052]: Update Interval: 60.0s [21:17:36][C][template.select:065]: Template Select 'nspanel Wake-up page'

[21:17:36][C][template.select:066]: Update Interval: 60.0s [21:17:36][C][template.select:069]: Optimistic: YES [21:17:36][C][template.select:070]: Initial Option: home [21:17:36][C][template.select:071]: Restore Value: YES [21:17:36][C][switch.gpio:068]: GPIO Switch 'nspanel Screen Power' [21:17:36][C][switch.gpio:091]: Restore Mode: always ON [21:17:36][C][switch.gpio:031]: Pin: GPIO4 [21:17:36][C][template.text_sensor:020]: Template Sensor 'nspanel Detailed Entity'

[21:17:36][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label' [21:17:36][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text' [21:17:36][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1' [21:17:36][C][switch.gpio:091]: Restore Mode: restore defaults to OFF [21:17:36][C][switch.gpio:031]: Pin: GPIO22 [21:17:36][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2' [21:17:36][C][switch.gpio:091]: Restore Mode: restore defaults to OFF [21:17:36][C][switch.gpio:031]: Pin: GPIO19 [21:17:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button' [21:17:36][C][gpio.binary_sensor:016]: Pin: GPIO14 [21:17:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button' [21:17:36][C][gpio.binary_sensor:016]: Pin: GPIO27 [21:17:36][C][template.switch:068]: Template Switch 'nspanel Notification sound' [21:17:36][C][template.switch:091]: Restore Mode: restore defaults to OFF [21:17:36][C][template.switch:057]: Optimistic: YES [21:17:37][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local' [21:17:37][C][template.switch:091]: Restore Mode: restore defaults to OFF [21:17:37][C][template.switch:057]: Optimistic: YES [21:17:37][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local' [21:17:37][C][template.switch:091]: Restore Mode: restore defaults to OFF [21:17:37][C][template.switch:057]: Optimistic: YES [21:17:37][C][template.switch:068]: Template Switch 'nspanel Notification unread' [21:17:37][C][template.switch:091]: Restore Mode: always OFF [21:17:37][C][template.switch:057]: Optimistic: YES

[21:17:37][C][nextion:130]: Device Model: NX4832F035_011C [21:17:37][C][nextion:131]: Firmware Version: 72 [21:17:37][C][nextion:132]: Serial Number: 196634010F66AA43 [21:17:37][C][nextion:133]: Flash Size: 16777216 [21:17:37][C][nextion:134]: Wake On Touch: True [21:17:37][C][nextion:145]: Start Up Page : 8 [21:17:37][C][restart.button:017]: Restart Button 'nspanel Restart' [21:17:37][C][adc:097]: ADC Sensor 'ntc_source' [21:17:37][C][adc:097]: Device Class: 'voltage' [21:17:37][C][adc:097]: State Class: 'measurement' [21:17:37][C][adc:097]: Unit of Measurement: 'V' [21:17:37][C][adc:097]: Accuracy Decimals: 2 [21:17:37][C][adc:107]: Pin: GPIO38 [21:17:37][C][adc:122]: Attenuation: 11db [21:17:37][C][adc:142]: Update Interval: 60.0s [21:17:37][C][resistance:010]: Resistance Sensor 'resistance_sensor' [21:17:37][C][resistance:010]: State Class: 'measurement' [21:17:37][C][resistance:010]: Unit of Measurement: 'Ω' [21:17:37][C][resistance:010]: Accuracy Decimals: 1

[21:17:37][C][resistance:011]: Configuration: DOWNSTREAM [21:17:37][C][resistance:012]: Resistor: 11200.00Ω [21:17:37][C][resistance:013]: Reference Voltage: 3.3V [21:17:37][C][ntc:014]: NTC Sensor 'nspanel Temperature' [21:17:37][C][ntc:014]: Device Class: 'temperature' [21:17:37][C][ntc:014]: State Class: 'measurement' [21:17:37][C][ntc:014]: Unit of Measurement: '°C' [21:17:37][C][ntc:014]: Accuracy Decimals: 1 [21:17:37][C][homeassistant.time:010]: Home Assistant Time:

[21:17:37][C][status:034]: Status Binary Sensor 'nspanel Status' [21:17:37][C][status:034]: Device Class: 'connectivity'

[21:17:37][C][mdns:116]: Hostname: nspanel [21:17:37][C][ota:097]: Over-The-Air Updates: [21:17:37][C][ota:098]: Address: nspanel.local:3232 [21:17:37][C][ota:101]: Using Password. [21:17:37][C][api:139]: API Server: [21:17:37][C][api:140]: Address: nspanel.local:6053 [21:17:37][C][api:144]: Using noise encryption: NO [21:17:45][D][main:2485]: Exit reparse [21:18:05][E][on_boot:040]: No response from Nextion display [21:18:05][D][on_boot:041]: Turn off Nextion [21:18:05][D][switch:016]: 'nspanel Screen Power' Turning OFF. [21:18:05][D][switch:055]: 'nspanel Screen Power': Sending state OFF [21:18:07][D][on_boot:044]: Turn on Nextion [21:18:07][D][switch:012]: 'nspanel Screen Power' Turning ON. [21:18:07][D][switch:055]: 'nspanel Screen Power': Sending state ON [21:18:07][W][component:214]: Component esphome.coroutine took a long time for an operation (1.52 s). [21:18:07][W][component:215]: Components should block for at most 20-30ms. [21:18:07][W][nextion:725]: Received unknown event from nextion: 0x55 [21:18:07][D][nextion:569]: system successful start up 0 [21:18:17][D][sensor:094]: 'ntc_source': Sending state 1.82000 V with 2 decimals of accuracy [21:18:17][D][resistance:039]: 'resistance_sensor' - Resistance 13773.0Ω [21:18:17][D][sensor:094]: 'resistance_sensor': Sending state 13772.97461 Ω with 1 decimals of accuracy [21:18:17][D][ntc:026]: 'nspanel Temperature' - Temperature: 18.0°C [21:18:17][D][sensor:094]: 'nspanel Temperature': Sending state 17.96570 °C with 1 decimals of accuracy [21:18:27][E][on_boot:054]: No response from Nextion display

[21:19:17][D][sensor:094]: 'ntc_source': Sending state 1.81400 V with 2 decimals of accuracy [21:19:17][D][resistance:039]: 'resistance_sensor' - Resistance 13672.1Ω [21:19:17][D][sensor:094]: 'resistance_sensor': Sending state 13672.14062 Ω with 1 decimals of accuracy [21:19:17][D][ntc:026]: 'nspanel Temperature' - Temperature: 18.1°C [21:19:17][D][sensor:094]: 'nspanel Temperature': Sending state 18.12344 °C with 1 decimals of accuracy [21:20:17][D][sensor:094]: 'ntc_source': Sending state 1.81200 V with 2 decimals of accuracy [21:20:17][D][resistance:039]: 'resistance_sensor' - Resistance 13638.7Ω [21:20:17][D][sensor:094]: 'resistance_sensor': Sending state 13638.71094 Ω with 1 decimals of accuracy [21:20:17][D][ntc:026]: 'nspanel Temperature' - Temperature: 18.2°C [21:20:17][D][sensor:094]: 'nspanel Temperature': Sending state 18.17603 °C with 1 decimals of accuracy [21:20:17][I][ota:117]: Boot seems successful, resetting boot loop counter. [21:20:17][D][esp32.preferences:114]: Saving 1 preferences to flash... [21:20:17][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed

pinnbert23 commented 6 months ago

Ich hatte mit einem System Data Error zu kämpfen. Das Panel wollte und wollte die TFT Datei nicht aufs Panel übertragen und ich hatte dauerhaft den Status "Getrennt".

Die TFT Datei konnte ich erfolgreich mithilfe dieser Anleitung übertragen: [(https://www.hiscorebob.lu/2023/07/sonoff-nspanel-system-data-error-fix/)]

System startet ganz normal, alles sieht fein aus.

Blueprint funktioniert ohne Probleme und alle Änderungen werden übernommen!

edwardtfn commented 6 months ago

@mathgoy,

Could you please add this to your ESPHome yaml, install it (wirelessly is ok), then repeat this 2min log thing, but this time, after the 2 minutes, please press the "Upload TFT" button and send all that log, please.

time:
  - id: !extend time_provider
    on_time:
      - seconds: /3
        then:
          - lambda: |-
              ESP_LOGD("DEBUG", "ESPHome version: ${version}");
              ESP_LOGD("DEBUG", "disp1->is_detected(): %s", disp1->is_detected() ? "True" : "False");
              ESP_LOGD("DEBUG", "disp1->is_setup(): %s", disp1->is_setup() ? "True" : "False");
mathgoy commented 6 months ago

Hi @edwardtfn ,

Here you go:


[07:58:16][I][app:102]: ESPHome version 2023.11.6 compiled on Nov 29 2023, 07:55:10
[07:58:16][C][wifi:559]: WiFi:
[07:58:16][C][wifi:391]:   Local MAC: C4:DD:57:E8:13:D8
[07:58:16][C][wifi:396]:   SSID: [redacted]
[07:58:16][C][wifi:397]:   IP Address: 10.10.0.109
[07:58:16][C][wifi:399]:   BSSID: [redacted]
[07:58:16][C][wifi:400]:   Hostname: 'nspanel'
[07:58:16][C][wifi:402]:   Signal strength: -68 dB ▂▄▆█
[07:58:16][C][wifi:406]:   Channel: 6
[07:58:16][C][wifi:407]:   Subnet: 255.255.255.0
[07:58:16][C][wifi:408]:   Gateway: 10.10.0.1
[07:58:16][C][wifi:409]:   DNS1: 9.9.9.9
[07:58:16][C][wifi:410]:   DNS2: 1.1.1.1
[07:58:16][C][logger:416]: Logger:
[07:58:16][C][logger:417]:   Level: DEBUG
[07:58:16][C][logger:418]:   Log Baud Rate: 0
[07:58:16][C][logger:420]:   Hardware UART: UART0
[07:58:16][C][uart.arduino_esp32:124]: UART Bus 0:
[07:58:16][C][uart.arduino_esp32:125]:   TX Pin: GPIO16
[07:58:16][C][uart.arduino_esp32:126]:   RX Pin: GPIO17
[07:58:16][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[07:58:16][C][uart.arduino_esp32:130]:   Baud Rate: 115200 baud
[07:58:16][C][uart.arduino_esp32:131]:   Data Bits: 8
[07:58:16][C][uart.arduino_esp32:132]:   Parity: NONE
[07:58:16][C][uart.arduino_esp32:133]:   Stop bits: 1
[07:58:16][C][ledc.output:164]: LEDC Output:
[07:58:16][C][ledc.output:165]:   Pin GPIO21
[07:58:16][C][ledc.output:166]:   LEDC Channel: 0
[07:58:16][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[07:58:16][C][ledc.output:168]:   Bit depth: 16
[07:58:16][W][nextion:077]: Nextion is not connected! 
[07:58:16][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display'
[07:58:16][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[07:58:16][C][template.number:050]: Template Number 'nspanel Display Brightness'
[07:58:16][C][template.number:050]:   Unit of Measurement: '%'
[07:58:16][C][template.number:051]:   Optimistic: YES
[07:58:16][C][template.number:052]:   Update Interval: 60.0s
[07:58:16][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown'
[07:58:16][C][template.number:050]:   Unit of Measurement: '%'
[07:58:16][C][template.number:051]:   Optimistic: YES
[07:58:16][C][template.number:052]:   Update Interval: 60.0s
[07:58:16][C][template.number:050]: Template Number 'nspanel Temperature Correction'
[07:58:16][C][template.number:050]:   Unit of Measurement: '°C'
[07:58:16][C][template.number:051]:   Optimistic: YES
[07:58:16][C][template.number:052]:   Update Interval: 60.0s
[07:58:16][C][template.number:050]: Template Number 'nspanel Timeout Page'
[07:58:16][C][template.number:050]:   Icon: 'mdi:timer'
[07:58:16][C][template.number:050]: Template Number 'nspanel Timeout Sleep'
[07:58:16][C][template.number:050]:   Icon: 'mdi:timer'
[07:58:16][C][template.number:050]:   Unit of Measurement: 's'
[07:58:16][C][template.number:051]:   Optimistic: YES
[07:58:16][C][template.number:052]:   Update Interval: 60.0s
[07:58:17][C][template.select:065]: Template Select 'nspanel Wake-up page'
[07:58:17][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[07:58:17][C][template.select:066]:   Update Interval: 60.0s
[07:58:17][C][template.select:069]:   Optimistic: YES
[07:58:17][C][template.select:070]:   Initial Option: home
[07:58:17][C][template.select:071]:   Restore Value: YES
[07:58:17][C][template.text_sensor:020]: Template Sensor 'nspanel Detailed Entity'
[07:58:17][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[07:58:17][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label'
[07:58:17][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text'
[07:58:17][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1'
[07:58:17][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[07:58:17][C][switch.gpio:031]:   Pin: GPIO22
[07:58:17][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2'
[07:58:17][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[07:58:17][C][switch.gpio:031]:   Pin: GPIO19
[07:58:17][W][nextion:077]: Nextion is not connected! 
[07:58:17][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button'
[07:58:17][C][gpio.binary_sensor:016]:   Pin: GPIO14
[07:58:17][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button'
[07:58:17][C][gpio.binary_sensor:016]:   Pin: GPIO27
[07:58:17][C][switch.gpio:068]: GPIO Switch 'nspanel Nextion display - Power'
[07:58:17][C][switch.gpio:091]:   Restore Mode: always ON
[07:58:17][C][switch.gpio:031]:   Pin: GPIO4
[07:58:17][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[07:58:17][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[07:58:17][C][template.switch:057]:   Optimistic: YES
[07:58:17][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[07:58:17][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[07:58:17][C][template.switch:057]:   Optimistic: YES
[07:58:17][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[07:58:17][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[07:58:17][C][template.switch:057]:   Optimistic: YES
[07:58:17][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[07:58:17][C][template.switch:091]:   Restore Mode: always OFF
[07:58:17][C][template.switch:057]:   Optimistic: YES
[07:58:17][C][rtttl:029]: Rtttl
[07:58:17][C][nextion:124]: Nextion:
[07:58:17][C][nextion:125]:   Device Model:     
[07:58:17][C][nextion:126]:   Firmware Version: 
[07:58:17][C][nextion:127]:   Serial Number:    
[07:58:17][C][nextion:128]:   Flash Size:       
[07:58:17][C][nextion:129]:   Wake On Touch:    True
[07:58:17][C][nextion:140]:   Start Up Page :      8
[07:58:17][C][restart.button:017]: Restart Button 'nspanel Restart'
[07:58:17][W][nextion:077]: Nextion is not connected! 
[07:58:17][C][adc:097]: ADC Sensor 'ntc_source'
[07:58:17][C][adc:097]:   Device Class: 'voltage'
[07:58:17][C][adc:097]:   State Class: 'measurement'
[07:58:17][C][adc:097]:   Unit of Measurement: 'V'
[07:58:17][C][adc:097]:   Accuracy Decimals: 2
[07:58:17][C][adc:107]:   Pin: GPIO38
[07:58:17][C][adc:122]:  Attenuation: 11db
[07:58:17][C][adc:142]:   Update Interval: 60.0s
[07:58:17][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[07:58:17][C][resistance:010]:   State Class: 'measurement'
[07:58:17][C][resistance:010]:   Unit of Measurement: 'Ω'
[07:58:17][C][resistance:010]:   Accuracy Decimals: 1
[07:58:17][C][resistance:010]:   Icon: 'mdi:flash'
[07:58:17][C][resistance:011]:   Configuration: DOWNSTREAM
[07:58:17][C][resistance:012]:   Resistor: 11200.00Ω
[07:58:17][C][resistance:013]:   Reference Voltage: 3.3V
[07:58:17][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[07:58:17][C][ntc:014]:   Device Class: 'temperature'
[07:58:17][C][ntc:014]:   State Class: 'measurement'
[07:58:17][C][ntc:014]:   Unit of Measurement: '°C'
[07:58:17][C][ntc:014]:   Accuracy Decimals: 1
[07:58:18][C][homeassistant.time:010]: Home Assistant Time:
[07:58:18][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[07:58:18][C][status:034]: Status Binary Sensor 'nspanel Status'
[07:58:18][C][status:034]:   Device Class: 'connectivity'
[07:58:18][C][mdns:115]: mDNS:
[07:58:18][C][mdns:116]:   Hostname: nspanel
[07:58:18][W][nextion:077]: Nextion is not connected! 
[07:58:18][C][ota:097]: Over-The-Air Updates:
[07:58:18][C][ota:098]:   Address: nspanel.local:3232
[07:58:18][C][ota:101]:   Using Password.
[07:58:18][C][api:139]: API Server:
[07:58:18][C][api:140]:   Address: nspanel.local:6053
[07:58:18][C][api:144]:   Using noise encryption: NO
[07:58:18][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:18][D][DEBUG:035]: disp1->is_detected(): False
[07:58:18][D][DEBUG:036]: disp1->is_setup(): False
[07:58:18][W][nextion:077]: Nextion is not connected! 
[07:58:19][W][nextion:077]: Nextion is not connected! 
[07:58:19][W][nextion:077]: Nextion is not connected! 
[07:58:20][W][nextion:077]: Nextion is not connected! 
[07:58:21][W][nextion:077]: Nextion is not connected! 
[07:58:21][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:21][D][DEBUG:035]: disp1->is_detected(): False
[07:58:21][D][DEBUG:036]: disp1->is_setup(): False
[07:58:21][W][nextion:077]: Nextion is not connected! 
[07:58:22][W][nextion:077]: Nextion is not connected! 
[07:58:22][W][nextion:077]: Nextion is not connected! 
[07:58:23][W][nextion:077]: Nextion is not connected! 
[07:58:23][W][nextion:077]: Nextion is not connected! 
[07:58:24][W][nextion:077]: Nextion is not connected! 
[07:58:24][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:24][D][DEBUG:035]: disp1->is_detected(): False
[07:58:24][D][DEBUG:036]: disp1->is_setup(): False
[07:58:24][W][nextion:077]: Nextion is not connected! 
[07:58:25][W][nextion:077]: Nextion is not connected! 
[07:58:25][W][nextion:077]: Nextion is not connected! 
[07:58:26][W][nextion:077]: Nextion is not connected! 
[07:58:27][W][nextion:077]: Nextion is not connected! 
[07:58:27][W][nextion:077]: Nextion is not connected! 
[07:58:27][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:27][D][DEBUG:035]: disp1->is_detected(): False
[07:58:27][D][DEBUG:036]: disp1->is_setup(): False
[07:58:28][W][nextion:077]: Nextion is not connected! 
[07:58:28][W][nextion:077]: Nextion is not connected! 
[07:58:29][W][nextion:077]: Nextion is not connected! 
[07:58:29][W][nextion:077]: Nextion is not connected! 
[07:58:30][W][nextion:077]: Nextion is not connected! 
[07:58:30][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:30][D][DEBUG:035]: disp1->is_detected(): False
[07:58:30][D][DEBUG:036]: disp1->is_setup(): False
[07:58:30][W][nextion:077]: Nextion is not connected! 
[07:58:31][W][nextion:077]: Nextion is not connected! 
[07:58:31][W][nextion:077]: Nextion is not connected! 
[07:58:32][W][nextion:077]: Nextion is not connected! 
[07:58:32][W][nextion:077]: Nextion is not connected! 
[07:58:33][W][nextion:077]: Nextion is not connected! 
[07:58:33][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:33][D][DEBUG:035]: disp1->is_detected(): False
[07:58:33][D][DEBUG:036]: disp1->is_setup(): False
[07:58:34][W][nextion:077]: Nextion is not connected! 
[07:58:34][W][nextion:077]: Nextion is not connected! 
[07:58:35][D][main:2562]: Exit reparse
[07:58:35][W][nextion:077]: Nextion is not connected! 
[07:58:35][W][nextion:077]: Nextion is not connected! 
[07:58:36][W][nextion:077]: Nextion is not connected! 
[07:58:36][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:36][D][DEBUG:035]: disp1->is_detected(): False
[07:58:36][D][DEBUG:036]: disp1->is_setup(): False
[07:58:36][W][nextion:077]: Nextion is not connected! 
[07:58:37][W][nextion:077]: Nextion is not connected! 
[07:58:37][W][nextion:077]: Nextion is not connected! 
[07:58:38][W][nextion:077]: Nextion is not connected! 
[07:58:38][W][nextion:077]: Nextion is not connected! 
[07:58:38][D][sensor:094]: 'ntc_source': Sending state 1.78800 V with 2 decimals of accuracy
[07:58:38][D][resistance:039]: 'resistance_sensor' - Resistance 13244.4Ω
[07:58:38][D][sensor:094]: 'resistance_sensor': Sending state 13244.44434 Ω with 1 decimals of accuracy
[07:58:38][D][ntc:026]: 'nspanel Temperature' - Temperature: 18.8°C
[07:58:38][D][sensor:094]: 'nspanel Temperature': Sending state 18.80768 °C with 1 decimals of accuracy
[07:58:39][W][nextion:077]: Nextion is not connected! 
[07:58:39][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:39][D][DEBUG:035]: disp1->is_detected(): False
[07:58:39][D][DEBUG:036]: disp1->is_setup(): False
[07:58:39][W][nextion:077]: Nextion is not connected! 
[07:58:40][W][nextion:077]: Nextion is not connected! 
[07:58:40][W][nextion:077]: Nextion is not connected! 
[07:58:41][W][nextion:077]: Nextion is not connected! 
[07:58:42][W][nextion:077]: Nextion is not connected! 
[07:58:42][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:42][D][DEBUG:035]: disp1->is_detected(): False
[07:58:42][D][DEBUG:036]: disp1->is_setup(): False
[07:58:42][W][nextion:077]: Nextion is not connected! 
[07:58:43][W][nextion:077]: Nextion is not connected! 
[07:58:43][W][nextion:077]: Nextion is not connected! 
[07:58:44][W][nextion:077]: Nextion is not connected! 
[07:58:44][W][nextion:077]: Nextion is not connected! 
[07:58:45][W][nextion:077]: Nextion is not connected! 
[07:58:45][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:45][D][DEBUG:035]: disp1->is_detected(): False
[07:58:45][D][DEBUG:036]: disp1->is_setup(): False
[07:58:45][W][nextion:077]: Nextion is not connected! 
[07:58:46][W][nextion:077]: Nextion is not connected! 
[07:58:46][W][nextion:077]: Nextion is not connected! 
[07:58:47][W][nextion:077]: Nextion is not connected! 
[07:58:47][W][nextion:077]: Nextion is not connected! 
[07:58:48][W][nextion:077]: Nextion is not connected! 
[07:58:48][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:48][D][DEBUG:035]: disp1->is_detected(): False
[07:58:48][D][DEBUG:036]: disp1->is_setup(): False
[07:58:49][W][nextion:077]: Nextion is not connected! 
[07:58:49][W][nextion:077]: Nextion is not connected! 
[07:58:50][W][nextion:077]: Nextion is not connected! 
[07:58:50][W][nextion:077]: Nextion is not connected! 
[07:58:51][W][nextion:077]: Nextion is not connected! 
[07:58:51][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:51][D][DEBUG:035]: disp1->is_detected(): False
[07:58:51][D][DEBUG:036]: disp1->is_setup(): False
[07:58:51][W][nextion:077]: Nextion is not connected! 
[07:58:52][W][nextion:077]: Nextion is not connected! 
[07:58:52][W][nextion:077]: Nextion is not connected! 
[07:58:53][W][nextion:077]: Nextion is not connected! 
[07:58:53][W][nextion:077]: Nextion is not connected! 
[07:58:54][W][nextion:077]: Nextion is not connected! 
[07:58:54][D][DEBUG:034]: ESPHome version: 4.1.2
[07:58:54][D][DEBUG:035]: disp1->is_detected(): False
[07:58:54][D][DEBUG:036]: disp1->is_setup(): False
[07:58:55][W][nextion:077]: Nextion is not connected! 
[07:58:55][D][script.nextion_status:2653]: Nextion status:
[07:58:55][D][script.nextion_status:2654]:   Is detected: False
[07:58:55][D][script.nextion_status:2655]:   Is setup:    False
[07:58:55][E][on_boot:059]: No response from Nextion display
[07:58:55][D][on_boot:060]: Turn off Nextion
[07:58:55][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[07:58:55][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[07:58:55][D][on_boot:046]: Wait 2 seconds
[07:58:57][D][on_boot:063]: Turn on Nextion
[07:58:57][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[07:58:57][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[07:58:57][D][on_boot:046]: Wait 5 seconds
[07:59:02][D][script.nextion_status:2653]: Nextion status:
[07:59:02][D][script.nextion_status:2654]:   Is detected: False
[07:59:02][D][script.nextion_status:2655]:   Is setup:    False
[07:59:02][W][component:214]: Component esphome.coroutine took a long time for an operation (7.04 s).
[07:59:02][W][component:215]: Components should block for at most 20-30ms.
[07:59:02][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:02][D][DEBUG:035]: disp1->is_detected(): False
[07:59:02][D][DEBUG:036]: disp1->is_setup(): False
[07:59:02][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:02][D][DEBUG:035]: disp1->is_detected(): False
[07:59:02][D][DEBUG:036]: disp1->is_setup(): False
[07:59:02][W][nextion:077]: Nextion is not connected! 
[07:59:03][W][nextion:077]: Nextion is not connected! 
[07:59:03][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:03][D][DEBUG:035]: disp1->is_detected(): False
[07:59:03][D][DEBUG:036]: disp1->is_setup(): False
[07:59:03][W][nextion:077]: Nextion is not connected! 
[07:59:03][W][component:214]: Component nextion.display took a long time for an operation (0.05 s).
[07:59:03][W][component:215]: Components should block for at most 20-30ms.
[07:59:04][W][nextion:077]: Nextion is not connected! 
[07:59:04][W][nextion:077]: Nextion is not connected! 
[07:59:05][W][nextion:077]: Nextion is not connected! 
[07:59:05][W][nextion:077]: Nextion is not connected! 
[07:59:06][W][nextion:077]: Nextion is not connected! 
[07:59:06][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:06][D][DEBUG:035]: disp1->is_detected(): False
[07:59:06][D][DEBUG:036]: disp1->is_setup(): False
[07:59:06][W][nextion:077]: Nextion is not connected! 
[07:59:07][W][nextion:077]: Nextion is not connected! 
[07:59:07][W][nextion:077]: Nextion is not connected! 
[07:59:08][W][nextion:077]: Nextion is not connected! 
[07:59:08][W][nextion:077]: Nextion is not connected! 
[07:59:09][W][nextion:077]: Nextion is not connected! 
[07:59:09][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:09][D][DEBUG:035]: disp1->is_detected(): False
[07:59:09][D][DEBUG:036]: disp1->is_setup(): False
[07:59:10][W][nextion:077]: Nextion is not connected! 
[07:59:10][W][nextion:077]: Nextion is not connected! 
[07:59:11][W][nextion:077]: Nextion is not connected! 
[07:59:11][W][nextion:077]: Nextion is not connected! 
[07:59:12][W][nextion:077]: Nextion is not connected! 
[07:59:12][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:12][D][DEBUG:035]: disp1->is_detected(): False
[07:59:12][D][DEBUG:036]: disp1->is_setup(): False
[07:59:12][W][nextion:077]: Nextion is not connected! 
[07:59:12][W][component:214]: Component nextion.display took a long time for an operation (0.05 s).
[07:59:12][W][component:215]: Components should block for at most 20-30ms.
[07:59:13][W][nextion:077]: Nextion is not connected! 
[07:59:13][W][nextion:077]: Nextion is not connected! 
[07:59:14][W][nextion:077]: Nextion is not connected! 
[07:59:14][W][nextion:077]: Nextion is not connected! 
[07:59:15][W][nextion:077]: Nextion is not connected! 
[07:59:15][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:15][D][DEBUG:035]: disp1->is_detected(): False
[07:59:15][D][DEBUG:036]: disp1->is_setup(): False
[07:59:15][W][nextion:077]: Nextion is not connected! 
[07:59:16][W][nextion:077]: Nextion is not connected! 
[07:59:17][W][nextion:077]: Nextion is not connected! 
[07:59:17][W][nextion:077]: Nextion is not connected! 
[07:59:18][W][nextion:077]: Nextion is not connected! 
[07:59:18][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:18][D][DEBUG:035]: disp1->is_detected(): False
[07:59:18][D][DEBUG:036]: disp1->is_setup(): False
[07:59:18][W][nextion:077]: Nextion is not connected! 
[07:59:19][W][nextion:077]: Nextion is not connected! 
[07:59:19][W][nextion:077]: Nextion is not connected! 
[07:59:20][W][nextion:077]: Nextion is not connected! 
[07:59:20][W][nextion:077]: Nextion is not connected! 
[07:59:21][W][nextion:077]: Nextion is not connected! 
[07:59:21][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:21][D][DEBUG:035]: disp1->is_detected(): False
[07:59:21][D][DEBUG:036]: disp1->is_setup(): False
[07:59:21][W][nextion:077]: Nextion is not connected! 
[07:59:22][D][script.nextion_status:2653]: Nextion status:
[07:59:22][D][script.nextion_status:2654]:   Is detected: False
[07:59:22][D][script.nextion_status:2655]:   Is setup:    False
[07:59:22][E][on_boot:076]: No response from Nextion display
[07:59:22][D][on_boot:078]: Finished
[07:59:22][W][nextion:077]: Nextion is not connected! 
[07:59:22][W][nextion:077]: Nextion is not connected! 
[07:59:23][W][nextion:077]: Nextion is not connected! 
[07:59:23][W][nextion:077]: Nextion is not connected! 
[07:59:24][W][nextion:077]: Nextion is not connected! 
[07:59:24][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:24][D][DEBUG:035]: disp1->is_detected(): False
[07:59:24][D][DEBUG:036]: disp1->is_setup(): False
[07:59:25][W][nextion:077]: Nextion is not connected! 
[07:59:25][W][nextion:077]: Nextion is not connected! 
[07:59:26][W][nextion:077]: Nextion is not connected! 
[07:59:26][W][nextion:077]: Nextion is not connected! 
[07:59:27][W][nextion:077]: Nextion is not connected! 
[07:59:27][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:27][D][DEBUG:035]: disp1->is_detected(): False
[07:59:27][D][DEBUG:036]: disp1->is_setup(): False
[07:59:27][W][nextion:077]: Nextion is not connected! 
[07:59:28][W][nextion:077]: Nextion is not connected! 
[07:59:28][W][nextion:077]: Nextion is not connected! 
[07:59:29][W][nextion:077]: Nextion is not connected! 
[07:59:29][W][nextion:077]: Nextion is not connected! 
[07:59:30][W][nextion:077]: Nextion is not connected! 
[07:59:30][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:30][D][DEBUG:035]: disp1->is_detected(): False
[07:59:30][D][DEBUG:036]: disp1->is_setup(): False
[07:59:31][W][nextion:077]: Nextion is not connected! 
[07:59:31][W][nextion:077]: Nextion is not connected! 
[07:59:32][W][nextion:077]: Nextion is not connected! 
[07:59:32][W][nextion:077]: Nextion is not connected! 
[07:59:33][W][nextion:077]: Nextion is not connected! 
[07:59:33][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:33][D][DEBUG:035]: disp1->is_detected(): False
[07:59:33][D][DEBUG:036]: disp1->is_setup(): False
[07:59:33][W][nextion:077]: Nextion is not connected! 
[07:59:34][W][nextion:077]: Nextion is not connected! 
[07:59:34][W][nextion:077]: Nextion is not connected! 
[07:59:35][W][nextion:077]: Nextion is not connected! 
[07:59:35][W][nextion:077]: Nextion is not connected! 
[07:59:36][W][nextion:077]: Nextion is not connected! 
[07:59:36][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:36][D][DEBUG:035]: disp1->is_detected(): False
[07:59:36][D][DEBUG:036]: disp1->is_setup(): False
[07:59:36][W][nextion:077]: Nextion is not connected! 
[07:59:37][W][nextion:077]: Nextion is not connected! 
[07:59:38][W][nextion:077]: Nextion is not connected! 
[07:59:38][W][nextion:077]: Nextion is not connected! 
[07:59:38][D][sensor:094]: 'ntc_source': Sending state 1.78600 V with 2 decimals of accuracy
[07:59:38][D][resistance:039]: 'resistance_sensor' - Resistance 13212.2Ω
[07:59:38][D][sensor:094]: 'resistance_sensor': Sending state 13212.15430 Ω with 1 decimals of accuracy
[07:59:38][D][ntc:026]: 'nspanel Temperature' - Temperature: 18.9°C
[07:59:38][D][sensor:094]: 'nspanel Temperature': Sending state 18.86036 °C with 1 decimals of accuracy
[07:59:39][W][nextion:077]: Nextion is not connected! 
[07:59:39][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:39][D][DEBUG:035]: disp1->is_detected(): False
[07:59:39][D][DEBUG:036]: disp1->is_setup(): False
[07:59:39][W][nextion:077]: Nextion is not connected! 
[07:59:40][W][nextion:077]: Nextion is not connected! 
[07:59:40][W][nextion:077]: Nextion is not connected! 
[07:59:41][W][nextion:077]: Nextion is not connected! 
[07:59:41][W][nextion:077]: Nextion is not connected! 
[07:59:42][W][nextion:077]: Nextion is not connected! 
[07:59:42][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:42][D][DEBUG:035]: disp1->is_detected(): False
[07:59:42][D][DEBUG:036]: disp1->is_setup(): False
[07:59:42][W][nextion:077]: Nextion is not connected! 
[07:59:43][W][nextion:077]: Nextion is not connected! 
[07:59:43][W][nextion:077]: Nextion is not connected! 
[07:59:44][W][nextion:077]: Nextion is not connected! 
[07:59:44][W][nextion:077]: Nextion is not connected! 
[07:59:45][W][nextion:077]: Nextion is not connected! 
[07:59:45][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:45][D][DEBUG:035]: disp1->is_detected(): False
[07:59:45][D][DEBUG:036]: disp1->is_setup(): False
[07:59:46][W][nextion:077]: Nextion is not connected! 
[07:59:46][W][nextion:077]: Nextion is not connected! 
[07:59:47][W][nextion:077]: Nextion is not connected! 
[07:59:47][W][nextion:077]: Nextion is not connected! 
[07:59:48][W][nextion:077]: Nextion is not connected! 
[07:59:48][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:48][D][DEBUG:035]: disp1->is_detected(): False
[07:59:48][D][DEBUG:036]: disp1->is_setup(): False
[07:59:48][W][nextion:077]: Nextion is not connected! 
[07:59:49][W][nextion:077]: Nextion is not connected! 
[07:59:49][W][nextion:077]: Nextion is not connected! 
[07:59:50][W][nextion:077]: Nextion is not connected! 
[07:59:50][W][nextion:077]: Nextion is not connected! 
[07:59:51][W][nextion:077]: Nextion is not connected! 
[07:59:51][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:51][D][DEBUG:035]: disp1->is_detected(): False
[07:59:51][D][DEBUG:036]: disp1->is_setup(): False
[07:59:52][W][nextion:077]: Nextion is not connected! 
[07:59:52][W][nextion:077]: Nextion is not connected! 
[07:59:53][W][nextion:077]: Nextion is not connected! 
[07:59:53][W][nextion:077]: Nextion is not connected! 
[07:59:54][W][nextion:077]: Nextion is not connected! 
[07:59:54][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:54][D][DEBUG:035]: disp1->is_detected(): False
[07:59:54][D][DEBUG:036]: disp1->is_setup(): False
[07:59:54][W][nextion:077]: Nextion is not connected! 
[07:59:55][W][nextion:077]: Nextion is not connected! 
[07:59:55][W][nextion:077]: Nextion is not connected! 
[07:59:56][W][nextion:077]: Nextion is not connected! 
[07:59:56][W][nextion:077]: Nextion is not connected! 
[07:59:57][W][nextion:077]: Nextion is not connected! 
[07:59:57][D][DEBUG:034]: ESPHome version: 4.1.2
[07:59:57][D][DEBUG:035]: disp1->is_detected(): False
[07:59:57][D][DEBUG:036]: disp1->is_setup(): False
[07:59:57][W][nextion:077]: Nextion is not connected! 
[07:59:58][W][nextion:077]: Nextion is not connected! 
[07:59:58][W][nextion:077]: Nextion is not connected! 
[07:59:59][W][nextion:077]: Nextion is not connected! 
[08:00:00][W][nextion:077]: Nextion is not connected! 
[08:00:00][D][DEBUG:034]: ESPHome version: 4.1.2
[08:00:00][D][DEBUG:035]: disp1->is_detected(): False
[08:00:00][D][DEBUG:036]: disp1->is_setup(): False
[08:00:00][W][nextion:077]: Nextion is not connected! 
[08:00:00][D][button:010]: 'nspanel Update TFT display' Pressed.
[08:00:00][D][main:732]: Button pressed: Update TFT display
[08:00:00][D][script.upload_tft:086]: Try #1
[08:00:00][D][script.nextion_status:2653]: Nextion status:
[08:00:00][D][script.nextion_status:2654]:   Is detected: False
[08:00:00][D][script.nextion_status:2655]:   Is setup:    False
[08:00:00][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive
[08:00:00][D][main:2562]: Exit reparse
[08:00:00][D][script.upload_tft:070]: Wait 2 seconds
[08:00:02][D][nextion_upload:170]: Connected
[08:00:02][D][nextion_upload:176]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[08:00:02][D][nextion_upload:210]: Updating Nextion ...
[08:00:03][D][nextion_upload:236]: Waiting for upgrade response
[08:00:05][D][nextion_upload:240]: Upgrade response is  0
[08:00:05][D][nextion_upload:249]: preparation for tft update failed 0 ""
[08:00:05][D][nextion_upload:312]: Restarting Nextion
[08:00:05][D][script.upload_tft:093]: Turn off Nextion
[08:00:05][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:00:05][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:00:05][D][script.upload_tft:070]: Wait 3 seconds
[08:00:08][D][script.upload_tft:096]: Turn on Nextion
[08:00:08][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:00:08][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:00:08][D][script.upload_tft:070]: Wait 10 seconds
[08:00:18][D][script.upload_tft:086]: Try #2
[08:00:18][D][script.nextion_status:2653]: Nextion status:
[08:00:18][D][script.nextion_status:2654]:   Is detected: False
[08:00:18][D][script.nextion_status:2655]:   Is setup:    False
[08:00:18][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive
[08:00:18][D][main:2562]: Exit reparse
[08:00:18][D][script.upload_tft:070]: Wait 2 seconds
[08:00:20][D][nextion_upload:170]: Connected
[08:00:20][D][nextion_upload:176]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[08:00:20][D][nextion_upload:210]: Updating Nextion ...
[08:00:20][D][nextion_upload:236]: Waiting for upgrade response
[08:00:22][D][nextion_upload:240]: Upgrade response is  0
[08:00:23][D][nextion_upload:249]: preparation for tft update failed 0 ""
[08:00:23][D][nextion_upload:312]: Restarting Nextion
[08:00:23][D][script.upload_tft:093]: Turn off Nextion
[08:00:23][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:00:23][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:00:23][D][script.upload_tft:070]: Wait 3 seconds
[08:00:25][D][script.upload_tft:096]: Turn on Nextion
[08:00:25][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:00:25][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:00:25][D][script.upload_tft:070]: Wait 10 seconds
[08:00:35][D][script.upload_tft:086]: Try #3
[08:00:35][D][script.nextion_status:2653]: Nextion status:
[08:00:35][D][script.nextion_status:2654]:   Is detected: False
[08:00:35][D][script.nextion_status:2655]:   Is setup:    False
[08:00:35][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive
[08:00:35][D][main:2562]: Exit reparse
[08:00:35][D][script.upload_tft:070]: Wait 2 seconds
[08:00:37][D][nextion_upload:170]: Connected
[08:00:37][D][nextion_upload:176]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[08:00:37][D][nextion_upload:210]: Updating Nextion ...
[08:00:37][D][nextion_upload:236]: Waiting for upgrade response
[08:00:39][D][nextion_upload:240]: Upgrade response is  0
[08:00:39][D][nextion_upload:249]: preparation for tft update failed 0 ""
[08:00:39][D][nextion_upload:312]: Restarting Nextion
[08:00:39][D][script.upload_tft:093]: Turn off Nextion
[08:00:39][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:00:40][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:00:40][D][script.upload_tft:070]: Wait 3 seconds
[08:00:42][D][script.upload_tft:096]: Turn on Nextion
[08:00:42][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:00:42][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:00:42][D][script.upload_tft:070]: Wait 10 seconds
[08:00:52][E][script.upload_tft:100]: TFT upload failed.
[08:00:52][D][script.upload_tft:101]: Turn off Nextion
[08:00:52][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:00:52][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:00:52][D][script.upload_tft:070]: Wait 2 seconds
[08:00:55][D][script.upload_tft:104]: Turn on Nextion
[08:00:55][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:00:55][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:00:55][D][script.upload_tft:106]: Restarting esphome
[08:00:55][D][script.upload_tft:070]: Wait 1 seconds
[08:00:56][D][button:010]: 'nspanel Restart' Pressed.
[08:00:56][I][restart.button:012]: Restarting device...
[08:00:56][I][app:134]: Rebooting safely...
[08:00:56][D][esp32.preferences:114]: Saving 1 preferences to flash...
[08:00:56][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
edwardtfn commented 6 months ago

Please add this to your ESPHome yaml and try again:

external_components:
  - source: github://pr#5825
    components: [nextion]
    refresh: 1s
mathgoy commented 6 months ago

Here you go:

[08:20:56][I][app:102]: ESPHome version 2023.11.6 compiled on Nov 29 2023, 08:20:11
[08:20:56][C][wifi:559]: WiFi:
[08:20:56][C][wifi:391]:   Local MAC: C4:DD:57:E8:13:D8
[08:20:56][C][wifi:396]:   SSID: [redacted]
[08:20:56][C][wifi:397]:   IP Address: 10.10.0.109
[08:20:56][C][wifi:399]:   BSSID: [redacted]
[08:20:56][C][wifi:400]:   Hostname: 'nspanel'
[08:20:56][C][wifi:402]:   Signal strength: -66 dB ▂▄▆█
[08:20:56][C][wifi:406]:   Channel: 6
[08:20:56][C][wifi:407]:   Subnet: 255.255.255.0
[08:20:56][C][wifi:408]:   Gateway: 10.10.0.1
[08:20:56][C][wifi:409]:   DNS1: 9.9.9.9
[08:20:56][C][wifi:410]:   DNS2: 1.1.1.1
[08:20:56][C][logger:416]: Logger:
[08:20:56][C][logger:417]:   Level: DEBUG
[08:20:56][C][logger:418]:   Log Baud Rate: 0
[08:20:56][C][logger:420]:   Hardware UART: UART0
[08:20:56][C][uart.arduino_esp32:124]: UART Bus 0:
[08:20:56][C][uart.arduino_esp32:125]:   TX Pin: GPIO16
[08:20:56][C][uart.arduino_esp32:126]:   RX Pin: GPIO17
[08:20:56][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[08:20:56][C][uart.arduino_esp32:130]:   Baud Rate: 115200 baud
[08:20:56][C][uart.arduino_esp32:131]:   Data Bits: 8
[08:20:56][C][uart.arduino_esp32:132]:   Parity: NONE
[08:20:56][C][uart.arduino_esp32:133]:   Stop bits: 1
[08:20:56][C][ledc.output:164]: LEDC Output:
[08:20:56][C][ledc.output:165]:   Pin GPIO21
[08:20:56][C][ledc.output:166]:   LEDC Channel: 0
[08:20:56][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[08:20:56][C][ledc.output:168]:   Bit depth: 16
[08:20:56][W][nextion:077]: Nextion is not connected! 
[08:20:56][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display'
[08:20:56][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[08:20:56][C][template.number:050]: Template Number 'nspanel Display Brightness'
[08:20:56][C][template.number:050]:   Unit of Measurement: '%'
[08:20:56][C][template.number:051]:   Optimistic: YES
[08:20:57][C][template.number:052]:   Update Interval: 60.0s
[08:20:57][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown'
[08:20:57][C][template.number:050]:   Unit of Measurement: '%'
[08:20:57][C][template.number:051]:   Optimistic: YES
[08:20:57][C][template.number:052]:   Update Interval: 60.0s
[08:20:57][C][template.number:050]: Template Number 'nspanel Temperature Correction'
[08:20:57][C][template.number:050]:   Unit of Measurement: '°C'
[08:20:57][C][template.number:051]:   Optimistic: YES
[08:20:57][C][template.number:052]:   Update Interval: 60.0s
[08:20:57][C][template.number:050]: Template Number 'nspanel Timeout Page'
[08:20:57][C][template.number:050]:   Icon: 'mdi:timer'
[08:20:57][C][template.number:050]:   Unit of Measurement: 's'
[08:20:57][C][template.number:051]:   Optimistic: YES
[08:20:57][C][template.number:052]:   Update Interval: 60.0s
[08:20:57][C][template.number:050]: Template Number 'nspanel Timeout Dimming'
[08:20:57][C][template.number:050]:   Icon: 'mdi:timer'
[08:20:57][C][template.number:050]:   Unit of Measurement: 's'
[08:20:57][C][template.number:051]:   Optimistic: YES
[08:20:57][C][template.number:052]:   Update Interval: 60.0s
[08:20:57][C][template.number:050]: Template Number 'nspanel Timeout Sleep'
[08:20:57][C][template.number:050]:   Icon: 'mdi:timer'
[08:20:57][C][template.number:050]:   Unit of Measurement: 's'
[08:20:57][C][template.number:051]:   Optimistic: YES
[08:20:57][C][template.number:052]:   Update Interval: 60.0s
[08:20:57][C][template.select:065]: Template Select 'nspanel Wake-up page'
[08:20:57][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[08:20:57][C][template.select:066]:   Update Interval: 60.0s
[08:20:57][C][template.select:069]:   Optimistic: YES
[08:20:57][C][template.select:070]:   Initial Option: home
[08:20:57][C][template.select:071]:   Restore Value: YES
[08:20:57][C][template.text_sensor:020]: Template Sensor 'nspanel Detailed Entity'
[08:20:57][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[08:20:57][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label'
[08:20:57][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text'
[08:20:57][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1'
[08:20:57][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[08:20:57][C][switch.gpio:031]:   Pin: GPIO22
[08:20:57][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2'
[08:20:57][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[08:20:57][C][switch.gpio:031]:   Pin: GPIO19
[08:20:57][W][nextion:077]: Nextion is not connected! 
[08:20:57][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button'
[08:20:57][C][gpio.binary_sensor:016]:   Pin: GPIO14
[08:20:57][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button'
[08:20:57][C][gpio.binary_sensor:016]:   Pin: GPIO27
[08:20:57][C][switch.gpio:068]: GPIO Switch 'nspanel Nextion display - Power'
[08:20:57][C][switch.gpio:091]:   Restore Mode: always ON
[08:20:57][C][switch.gpio:031]:   Pin: GPIO4
[08:20:57][D][DEBUG:034]: ESPHome version: 4.1.2
[08:20:57][D][DEBUG:035]: disp1->is_detected(): False
[08:20:57][D][DEBUG:036]: disp1->is_setup(): False
[08:20:57][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[08:20:57][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:20:57][C][template.switch:057]:   Optimistic: YES
[08:20:57][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[08:20:57][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:20:57][C][template.switch:057]:   Optimistic: YES
[08:20:57][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[08:20:57][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:20:57][C][template.switch:057]:   Optimistic: YES
[08:20:57][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[08:20:57][C][template.switch:091]:   Restore Mode: always OFF
[08:20:57][C][template.switch:057]:   Optimistic: YES
[08:20:57][C][rtttl:029]: Rtttl
[08:20:57][C][nextion:124]: Nextion:
[08:20:57][C][nextion:125]:   Device Model:     
[08:20:57][C][nextion:126]:   Firmware Version: 
[08:20:57][C][nextion:127]:   Serial Number:    
[08:20:57][C][nextion:128]:   Flash Size:       
[08:20:57][C][nextion:129]:   Wake On Touch:    True
[08:20:57][C][nextion:140]:   Start Up Page :      8
[08:20:57][C][restart.button:017]: Restart Button 'nspanel Restart'
[08:20:57][W][nextion:077]: Nextion is not connected! 
[08:20:58][C][adc:097]: ADC Sensor 'ntc_source'
[08:20:58][C][adc:097]:   Device Class: 'voltage'
[08:20:58][C][adc:097]:   State Class: 'measurement'
[08:20:58][C][adc:097]:   Unit of Measurement: 'V'
[08:20:58][C][adc:097]:   Accuracy Decimals: 2
[08:20:58][C][adc:107]:   Pin: GPIO38
[08:20:58][C][adc:122]:  Attenuation: 11db
[08:20:58][C][adc:142]:   Update Interval: 60.0s
[08:20:58][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[08:20:58][C][resistance:010]:   State Class: 'measurement'
[08:20:58][C][resistance:010]:   Unit of Measurement: 'Ω'
[08:20:58][C][resistance:010]:   Accuracy Decimals: 1
[08:20:58][C][resistance:010]:   Icon: 'mdi:flash'
[08:20:58][C][resistance:011]:   Configuration: DOWNSTREAM
[08:20:58][C][resistance:012]:   Resistor: 11200.00Ω
[08:20:58][C][resistance:013]:   Reference Voltage: 3.3V
[08:20:58][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[08:20:58][C][ntc:014]:   Device Class: 'temperature'
[08:20:58][C][ntc:014]:   State Class: 'measurement'
[08:20:58][C][ntc:014]:   Unit of Measurement: '°C'
[08:20:58][C][ntc:014]:   Accuracy Decimals: 1
[08:20:58][C][homeassistant.time:010]: Home Assistant Time:
[08:20:58][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[08:20:58][C][status:034]: Status Binary Sensor 'nspanel Status'
[08:20:58][C][status:034]:   Device Class: 'connectivity'
[08:20:58][W][nextion:077]: Nextion is not connected! 
[08:20:58][C][mdns:115]: mDNS:
[08:20:58][C][mdns:116]:   Hostname: nspanel
[08:20:58][C][ota:097]: Over-The-Air Updates:
[08:20:58][C][ota:098]:   Address: nspanel.local:3232
[08:20:58][C][ota:101]:   Using Password.
[08:20:58][C][api:139]: API Server:
[08:20:58][C][api:140]:   Address: nspanel.local:6053
[08:20:58][C][api:144]:   Using noise encryption: NO
[08:20:59][W][nextion:077]: Nextion is not connected! 
[08:20:59][W][nextion:077]: Nextion is not connected! 
[08:21:00][W][nextion:077]: Nextion is not connected! 
[08:21:00][W][nextion:077]: Nextion is not connected! 
[08:21:00][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:00][D][DEBUG:035]: disp1->is_detected(): False
[08:21:00][D][DEBUG:036]: disp1->is_setup(): False
[08:21:01][W][nextion:077]: Nextion is not connected! 
[08:21:01][W][nextion:077]: Nextion is not connected! 
[08:21:02][W][nextion:077]: Nextion is not connected! 
[08:21:02][W][nextion:077]: Nextion is not connected! 
[08:21:03][W][nextion:077]: Nextion is not connected! 
[08:21:03][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:03][D][DEBUG:035]: disp1->is_detected(): False
[08:21:03][D][DEBUG:036]: disp1->is_setup(): False
[08:21:03][W][nextion:077]: Nextion is not connected! 
[08:21:04][W][nextion:077]: Nextion is not connected! 
[08:21:05][W][nextion:077]: Nextion is not connected! 
[08:21:05][W][nextion:077]: Nextion is not connected! 
[08:21:06][W][nextion:077]: Nextion is not connected! 
[08:21:06][W][nextion:077]: Nextion is not connected! 
[08:21:06][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:06][D][DEBUG:035]: disp1->is_detected(): False
[08:21:06][D][DEBUG:036]: disp1->is_setup(): False
[08:21:07][W][nextion:077]: Nextion is not connected! 
[08:21:07][W][nextion:077]: Nextion is not connected! 
[08:21:08][W][nextion:077]: Nextion is not connected! 
[08:21:08][W][nextion:077]: Nextion is not connected! 
[08:21:09][W][nextion:077]: Nextion is not connected! 
[08:21:09][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:09][D][DEBUG:035]: disp1->is_detected(): False
[08:21:09][D][DEBUG:036]: disp1->is_setup(): False
[08:21:09][W][nextion:077]: Nextion is not connected! 
[08:21:10][W][nextion:077]: Nextion is not connected! 
[08:21:10][W][nextion:077]: Nextion is not connected! 
[08:21:11][W][nextion:077]: Nextion is not connected! 
[08:21:12][W][nextion:077]: Nextion is not connected! 
[08:21:12][W][nextion:077]: Nextion is not connected! 
[08:21:12][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:12][D][DEBUG:035]: disp1->is_detected(): False
[08:21:12][D][DEBUG:036]: disp1->is_setup(): False
[08:21:13][W][nextion:077]: Nextion is not connected! 
[08:21:13][W][nextion:077]: Nextion is not connected! 
[08:21:13][D][main:2562]: Exit reparse
[08:21:14][W][nextion:077]: Nextion is not connected! 
[08:21:14][W][nextion:077]: Nextion is not connected! 
[08:21:15][W][nextion:077]: Nextion is not connected! 
[08:21:15][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:15][D][DEBUG:035]: disp1->is_detected(): False
[08:21:15][D][DEBUG:036]: disp1->is_setup(): False
[08:21:15][W][nextion:077]: Nextion is not connected! 
[08:21:16][W][nextion:077]: Nextion is not connected! 
[08:21:16][W][nextion:077]: Nextion is not connected! 
[08:21:17][W][nextion:077]: Nextion is not connected! 
[08:21:17][W][nextion:077]: Nextion is not connected! 
[08:21:18][W][nextion:077]: Nextion is not connected! 
[08:21:18][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:18][D][DEBUG:035]: disp1->is_detected(): False
[08:21:18][D][DEBUG:036]: disp1->is_setup(): False
[08:21:19][W][nextion:077]: Nextion is not connected! 
[08:21:19][W][nextion:077]: Nextion is not connected! 
[08:21:20][W][nextion:077]: Nextion is not connected! 
[08:21:20][W][nextion:077]: Nextion is not connected! 
[08:21:21][W][nextion:077]: Nextion is not connected! 
[08:21:21][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:21][D][DEBUG:035]: disp1->is_detected(): False
[08:21:21][D][DEBUG:036]: disp1->is_setup(): False
[08:21:21][W][nextion:077]: Nextion is not connected! 
[08:21:22][W][nextion:077]: Nextion is not connected! 
[08:21:22][W][nextion:077]: Nextion is not connected! 
[08:21:23][W][nextion:077]: Nextion is not connected! 
[08:21:23][W][nextion:077]: Nextion is not connected! 
[08:21:24][W][nextion:077]: Nextion is not connected! 
[08:21:24][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:24][D][DEBUG:035]: disp1->is_detected(): False
[08:21:24][D][DEBUG:036]: disp1->is_setup(): False
[08:21:25][W][nextion:077]: Nextion is not connected! 
[08:21:25][W][nextion:077]: Nextion is not connected! 
[08:21:26][W][nextion:077]: Nextion is not connected! 
[08:21:26][W][nextion:077]: Nextion is not connected! 
[08:21:27][W][nextion:077]: Nextion is not connected! 
[08:21:27][W][nextion:077]: Nextion is not connected! 
[08:21:27][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:27][D][DEBUG:035]: disp1->is_detected(): False
[08:21:27][D][DEBUG:036]: disp1->is_setup(): False
[08:21:28][W][nextion:077]: Nextion is not connected! 
[08:21:28][W][nextion:077]: Nextion is not connected! 
[08:21:29][W][nextion:077]: Nextion is not connected! 
[08:21:29][W][nextion:077]: Nextion is not connected! 
[08:21:30][W][nextion:077]: Nextion is not connected! 
[08:21:30][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:30][D][DEBUG:035]: disp1->is_detected(): False
[08:21:30][D][DEBUG:036]: disp1->is_setup(): False
[08:21:30][W][nextion:077]: Nextion is not connected! 
[08:21:31][W][nextion:077]: Nextion is not connected! 
[08:21:32][W][nextion:077]: Nextion is not connected! 
[08:21:32][W][nextion:077]: Nextion is not connected! 
[08:21:33][W][nextion:077]: Nextion is not connected! 
[08:21:33][W][nextion:077]: Nextion is not connected! 
[08:21:33][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:33][D][DEBUG:035]: disp1->is_detected(): False
[08:21:33][D][DEBUG:036]: disp1->is_setup(): False
[08:21:33][D][script.nextion_status:2653]: Nextion status:
[08:21:33][D][script.nextion_status:2654]:   Is detected: False
[08:21:33][D][script.nextion_status:2655]:   Is setup:    False
[08:21:33][E][on_boot:059]: No response from Nextion display
[08:21:33][D][on_boot:060]: Turn off Nextion
[08:21:33][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:21:33][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:21:33][D][on_boot:046]: Wait 2 seconds
[08:21:35][D][on_boot:063]: Turn on Nextion
[08:21:35][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:21:35][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:21:35][D][on_boot:046]: Wait 5 seconds
[08:21:40][D][script.nextion_status:2653]: Nextion status:
[08:21:40][D][script.nextion_status:2654]:   Is detected: False
[08:21:40][D][script.nextion_status:2655]:   Is setup:    False
[08:21:40][W][component:214]: Component esphome.coroutine took a long time for an operation (7.03 s).
[08:21:40][W][component:215]: Components should block for at most 20-30ms.
[08:21:40][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:40][D][DEBUG:035]: disp1->is_detected(): False
[08:21:40][D][DEBUG:036]: disp1->is_setup(): False
[08:21:40][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:40][D][DEBUG:035]: disp1->is_detected(): False
[08:21:40][D][DEBUG:036]: disp1->is_setup(): False
[08:21:40][W][nextion:077]: Nextion is not connected! 
[08:21:40][D][sensor:094]: 'ntc_source': Sending state 1.66400 V with 2 decimals of accuracy
[08:21:40][D][resistance:039]: 'resistance_sensor' - Resistance 11391.7Ω
[08:21:40][D][sensor:094]: 'resistance_sensor': Sending state 11391.68750 Ω with 1 decimals of accuracy
[08:21:40][D][ntc:026]: 'nspanel Temperature' - Temperature: 22.1°C
[08:21:40][D][sensor:094]: 'nspanel Temperature': Sending state 22.09622 °C with 1 decimals of accuracy
[08:21:41][W][nextion:077]: Nextion is not connected! 
[08:21:41][W][nextion:077]: Nextion is not connected! 
[08:21:41][W][component:214]: Component nextion.display took a long time for an operation (0.05 s).
[08:21:41][W][component:215]: Components should block for at most 20-30ms.
[08:21:42][W][nextion:077]: Nextion is not connected! 
[08:21:42][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:42][D][DEBUG:035]: disp1->is_detected(): False
[08:21:42][D][DEBUG:036]: disp1->is_setup(): False
[08:21:43][W][nextion:077]: Nextion is not connected! 
[08:21:43][W][nextion:077]: Nextion is not connected! 
[08:21:44][W][nextion:077]: Nextion is not connected! 
[08:21:44][W][nextion:077]: Nextion is not connected! 
[08:21:45][W][nextion:077]: Nextion is not connected! 
[08:21:45][W][nextion:077]: Nextion is not connected! 
[08:21:45][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:45][D][DEBUG:035]: disp1->is_detected(): False
[08:21:45][D][DEBUG:036]: disp1->is_setup(): False
[08:21:46][W][nextion:077]: Nextion is not connected! 
[08:21:46][W][nextion:077]: Nextion is not connected! 
[08:21:47][W][nextion:077]: Nextion is not connected! 
[08:21:47][W][nextion:077]: Nextion is not connected! 
[08:21:48][W][nextion:077]: Nextion is not connected! 
[08:21:48][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:48][D][DEBUG:035]: disp1->is_detected(): False
[08:21:48][D][DEBUG:036]: disp1->is_setup(): False
[08:21:48][W][nextion:077]: Nextion is not connected! 
[08:21:49][W][nextion:077]: Nextion is not connected! 
[08:21:49][W][nextion:077]: Nextion is not connected! 
[08:21:50][W][nextion:077]: Nextion is not connected! 
[08:21:50][W][nextion:077]: Nextion is not connected! 
[08:21:51][W][nextion:077]: Nextion is not connected! 
[08:21:51][W][component:214]: Component nextion.display took a long time for an operation (0.05 s).
[08:21:51][W][component:215]: Components should block for at most 20-30ms.
[08:21:51][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:51][D][DEBUG:035]: disp1->is_detected(): False
[08:21:51][D][DEBUG:036]: disp1->is_setup(): False
[08:21:52][W][nextion:077]: Nextion is not connected! 
[08:21:52][W][nextion:077]: Nextion is not connected! 
[08:21:53][W][nextion:077]: Nextion is not connected! 
[08:21:53][W][nextion:077]: Nextion is not connected! 
[08:21:54][W][nextion:077]: Nextion is not connected! 
[08:21:54][W][nextion:077]: Nextion is not connected! 
[08:21:54][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:54][D][DEBUG:035]: disp1->is_detected(): False
[08:21:54][D][DEBUG:036]: disp1->is_setup(): False
[08:21:55][W][nextion:077]: Nextion is not connected! 
[08:21:55][W][nextion:077]: Nextion is not connected! 
[08:21:56][W][nextion:077]: Nextion is not connected! 
[08:21:56][W][nextion:077]: Nextion is not connected! 
[08:21:57][W][nextion:077]: Nextion is not connected! 
[08:21:57][D][DEBUG:034]: ESPHome version: 4.1.2
[08:21:57][D][DEBUG:035]: disp1->is_detected(): False
[08:21:57][D][DEBUG:036]: disp1->is_setup(): False
[08:21:57][W][nextion:077]: Nextion is not connected! 
[08:21:58][W][nextion:077]: Nextion is not connected! 
[08:21:58][W][nextion:077]: Nextion is not connected! 
[08:21:59][W][nextion:077]: Nextion is not connected! 
[08:22:00][W][nextion:077]: Nextion is not connected! 
[08:22:00][W][nextion:077]: Nextion is not connected! 
[08:22:00][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:00][D][DEBUG:035]: disp1->is_detected(): False
[08:22:00][D][DEBUG:036]: disp1->is_setup(): False
[08:22:00][D][script.nextion_status:2653]: Nextion status:
[08:22:00][D][script.nextion_status:2654]:   Is detected: False
[08:22:00][D][script.nextion_status:2655]:   Is setup:    False
[08:22:00][E][on_boot:076]: No response from Nextion display
[08:22:00][D][on_boot:078]: Finished
[08:22:01][W][nextion:077]: Nextion is not connected! 
[08:22:01][W][nextion:077]: Nextion is not connected! 
[08:22:02][W][nextion:077]: Nextion is not connected! 
[08:22:02][W][nextion:077]: Nextion is not connected! 
[08:22:03][W][nextion:077]: Nextion is not connected! 
[08:22:03][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:03][D][DEBUG:035]: disp1->is_detected(): False
[08:22:03][D][DEBUG:036]: disp1->is_setup(): False
[08:22:03][W][nextion:077]: Nextion is not connected! 
[08:22:04][W][nextion:077]: Nextion is not connected! 
[08:22:04][W][nextion:077]: Nextion is not connected! 
[08:22:05][W][nextion:077]: Nextion is not connected! 
[08:22:05][W][nextion:077]: Nextion is not connected! 
[08:22:06][W][nextion:077]: Nextion is not connected! 
[08:22:06][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:06][D][DEBUG:035]: disp1->is_detected(): False
[08:22:06][D][DEBUG:036]: disp1->is_setup(): False
[08:22:07][W][nextion:077]: Nextion is not connected! 
[08:22:07][W][nextion:077]: Nextion is not connected! 
[08:22:08][W][nextion:077]: Nextion is not connected! 
[08:22:08][W][nextion:077]: Nextion is not connected! 
[08:22:09][W][nextion:077]: Nextion is not connected! 
[08:22:09][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:09][D][DEBUG:035]: disp1->is_detected(): False
[08:22:09][D][DEBUG:036]: disp1->is_setup(): False
[08:22:09][W][nextion:077]: Nextion is not connected! 
[08:22:10][W][nextion:077]: Nextion is not connected! 
[08:22:10][W][nextion:077]: Nextion is not connected! 
[08:22:11][W][nextion:077]: Nextion is not connected! 
[08:22:11][W][nextion:077]: Nextion is not connected! 
[08:22:12][W][nextion:077]: Nextion is not connected! 
[08:22:12][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:12][D][DEBUG:035]: disp1->is_detected(): False
[08:22:12][D][DEBUG:036]: disp1->is_setup(): False
[08:22:13][W][nextion:077]: Nextion is not connected! 
[08:22:13][W][nextion:077]: Nextion is not connected! 
[08:22:14][W][nextion:077]: Nextion is not connected! 
[08:22:14][W][nextion:077]: Nextion is not connected! 
[08:22:15][W][nextion:077]: Nextion is not connected! 
[08:22:15][W][nextion:077]: Nextion is not connected! 
[08:22:15][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:15][D][DEBUG:035]: disp1->is_detected(): False
[08:22:15][D][DEBUG:036]: disp1->is_setup(): False
[08:22:16][W][nextion:077]: Nextion is not connected! 
[08:22:16][W][nextion:077]: Nextion is not connected! 
[08:22:17][W][nextion:077]: Nextion is not connected! 
[08:22:17][W][nextion:077]: Nextion is not connected! 
[08:22:18][W][nextion:077]: Nextion is not connected! 
[08:22:18][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:18][D][DEBUG:035]: disp1->is_detected(): False
[08:22:18][D][DEBUG:036]: disp1->is_setup(): False
[08:22:18][W][nextion:077]: Nextion is not connected! 
[08:22:19][W][nextion:077]: Nextion is not connected! 
[08:22:20][W][nextion:077]: Nextion is not connected! 
[08:22:20][W][nextion:077]: Nextion is not connected! 
[08:22:21][W][nextion:077]: Nextion is not connected! 
[08:22:21][W][nextion:077]: Nextion is not connected! 
[08:22:21][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:21][D][DEBUG:035]: disp1->is_detected(): False
[08:22:21][D][DEBUG:036]: disp1->is_setup(): False
[08:22:22][W][nextion:077]: Nextion is not connected! 
[08:22:22][W][nextion:077]: Nextion is not connected! 
[08:22:23][W][nextion:077]: Nextion is not connected! 
[08:22:23][W][nextion:077]: Nextion is not connected! 
[08:22:24][W][nextion:077]: Nextion is not connected! 
[08:22:24][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:24][D][DEBUG:035]: disp1->is_detected(): False
[08:22:24][D][DEBUG:036]: disp1->is_setup(): False
[08:22:24][W][nextion:077]: Nextion is not connected! 
[08:22:25][W][nextion:077]: Nextion is not connected! 
[08:22:25][W][nextion:077]: Nextion is not connected! 
[08:22:26][W][nextion:077]: Nextion is not connected! 
[08:22:27][W][nextion:077]: Nextion is not connected! 
[08:22:27][W][nextion:077]: Nextion is not connected! 
[08:22:27][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:27][D][DEBUG:035]: disp1->is_detected(): False
[08:22:27][D][DEBUG:036]: disp1->is_setup(): False
[08:22:28][W][nextion:077]: Nextion is not connected! 
[08:22:28][W][nextion:077]: Nextion is not connected! 
[08:22:29][W][nextion:077]: Nextion is not connected! 
[08:22:29][W][nextion:077]: Nextion is not connected! 
[08:22:30][W][nextion:077]: Nextion is not connected! 
[08:22:30][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:30][D][DEBUG:035]: disp1->is_detected(): False
[08:22:30][D][DEBUG:036]: disp1->is_setup(): False
[08:22:30][W][nextion:077]: Nextion is not connected! 
[08:22:31][W][nextion:077]: Nextion is not connected! 
[08:22:31][W][nextion:077]: Nextion is not connected! 
[08:22:32][W][nextion:077]: Nextion is not connected! 
[08:22:32][W][nextion:077]: Nextion is not connected! 
[08:22:33][W][nextion:077]: Nextion is not connected! 
[08:22:33][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:33][D][DEBUG:035]: disp1->is_detected(): False
[08:22:33][D][DEBUG:036]: disp1->is_setup(): False
[08:22:34][W][nextion:077]: Nextion is not connected! 
[08:22:34][W][nextion:077]: Nextion is not connected! 
[08:22:35][W][nextion:077]: Nextion is not connected! 
[08:22:35][W][nextion:077]: Nextion is not connected! 
[08:22:36][W][nextion:077]: Nextion is not connected! 
[08:22:36][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:36][D][DEBUG:035]: disp1->is_detected(): False
[08:22:36][D][DEBUG:036]: disp1->is_setup(): False
[08:22:36][W][nextion:077]: Nextion is not connected! 
[08:22:37][W][nextion:077]: Nextion is not connected! 
[08:22:37][W][nextion:077]: Nextion is not connected! 
[08:22:38][W][nextion:077]: Nextion is not connected! 
[08:22:38][W][nextion:077]: Nextion is not connected! 
[08:22:39][W][nextion:077]: Nextion is not connected! 
[08:22:39][D][sensor:094]: 'ntc_source': Sending state 1.66200 V with 2 decimals of accuracy
[08:22:39][D][resistance:039]: 'resistance_sensor' - Resistance 11364.1Ω
[08:22:39][D][sensor:094]: 'resistance_sensor': Sending state 11364.10254 Ω with 1 decimals of accuracy
[08:22:39][D][ntc:026]: 'nspanel Temperature' - Temperature: 22.1°C
[08:22:39][D][sensor:094]: 'nspanel Temperature': Sending state 22.14974 °C with 1 decimals of accuracy
[08:22:39][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:39][D][DEBUG:035]: disp1->is_detected(): False
[08:22:39][D][DEBUG:036]: disp1->is_setup(): False
[08:22:40][W][nextion:077]: Nextion is not connected! 
[08:22:40][W][nextion:077]: Nextion is not connected! 
[08:22:41][W][nextion:077]: Nextion is not connected! 
[08:22:41][W][nextion:077]: Nextion is not connected! 
[08:22:42][W][nextion:077]: Nextion is not connected! 
[08:22:42][W][nextion:077]: Nextion is not connected! 
[08:22:42][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:42][D][DEBUG:035]: disp1->is_detected(): False
[08:22:42][D][DEBUG:036]: disp1->is_setup(): False
[08:22:43][W][nextion:077]: Nextion is not connected! 
[08:22:43][W][nextion:077]: Nextion is not connected! 
[08:22:44][W][nextion:077]: Nextion is not connected! 
[08:22:44][W][nextion:077]: Nextion is not connected! 
[08:22:45][W][nextion:077]: Nextion is not connected! 
[08:22:45][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:45][D][DEBUG:035]: disp1->is_detected(): False
[08:22:45][D][DEBUG:036]: disp1->is_setup(): False
[08:22:45][W][nextion:077]: Nextion is not connected! 
[08:22:46][W][nextion:077]: Nextion is not connected! 
[08:22:46][W][nextion:077]: Nextion is not connected! 
[08:22:47][W][nextion:077]: Nextion is not connected! 
[08:22:48][W][nextion:077]: Nextion is not connected! 
[08:22:48][W][nextion:077]: Nextion is not connected! 
[08:22:48][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:48][D][DEBUG:035]: disp1->is_detected(): False
[08:22:48][D][DEBUG:036]: disp1->is_setup(): False
[08:22:49][W][nextion:077]: Nextion is not connected! 
[08:22:49][W][nextion:077]: Nextion is not connected! 
[08:22:50][W][nextion:077]: Nextion is not connected! 
[08:22:50][W][nextion:077]: Nextion is not connected! 
[08:22:51][W][nextion:077]: Nextion is not connected! 
[08:22:51][D][DEBUG:034]: ESPHome version: 4.1.2
[08:22:51][D][DEBUG:035]: disp1->is_detected(): False
[08:22:51][D][DEBUG:036]: disp1->is_setup(): False
[08:22:51][W][nextion:077]: Nextion is not connected! 
[08:22:52][D][button:010]: 'nspanel Update TFT display' Pressed.
[08:22:52][D][main:732]: Button pressed: Update TFT display
[08:22:52][D][script.upload_tft:086]: Try #1
[08:22:52][D][script.nextion_status:2653]: Nextion status:
[08:22:52][D][script.nextion_status:2654]:   Is detected: False
[08:22:52][D][script.nextion_status:2655]:   Is setup:    False
[08:22:52][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive
[08:22:52][D][main:2562]: Exit reparse
[08:22:52][D][script.upload_tft:070]: Wait 2 seconds
[08:22:54][D][nextion_upload:170]: Connected
[08:22:54][D][nextion_upload:176]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[08:22:54][D][nextion_upload:210]: Updating Nextion ...
[08:22:54][D][nextion_upload:236]: Waiting for upgrade response
[08:22:56][D][nextion_upload:240]: Upgrade response is  0
[08:22:56][D][nextion_upload:249]: preparation for tft update failed 0 ""
[08:22:56][D][nextion_upload:312]: Restarting Nextion
[08:22:56][D][script.upload_tft:093]: Turn off Nextion
[08:22:56][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:22:56][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:22:56][D][script.upload_tft:070]: Wait 3 seconds
[08:22:59][D][script.upload_tft:096]: Turn on Nextion
[08:22:59][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:22:59][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:22:59][D][script.upload_tft:070]: Wait 10 seconds
[08:23:09][D][script.upload_tft:086]: Try #2
[08:23:09][D][script.nextion_status:2653]: Nextion status:
[08:23:09][D][script.nextion_status:2654]:   Is detected: False
[08:23:09][D][script.nextion_status:2655]:   Is setup:    False
[08:23:09][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive
[08:23:09][D][main:2562]: Exit reparse
[08:23:09][D][script.upload_tft:070]: Wait 2 seconds
[08:23:11][D][nextion_upload:170]: Connected
[08:23:11][D][nextion_upload:176]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[08:23:11][D][nextion_upload:210]: Updating Nextion ...
[08:23:12][D][nextion_upload:236]: Waiting for upgrade response
[08:23:14][D][nextion_upload:240]: Upgrade response is  0
[08:23:14][D][nextion_upload:249]: preparation for tft update failed 0 ""
[08:23:14][D][nextion_upload:312]: Restarting Nextion
[08:23:14][D][script.upload_tft:093]: Turn off Nextion
[08:23:14][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:23:14][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:23:14][D][script.upload_tft:070]: Wait 3 seconds
[08:23:17][D][script.upload_tft:096]: Turn on Nextion
[08:23:17][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:23:17][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:23:17][D][script.upload_tft:070]: Wait 10 seconds
[08:23:27][D][script.upload_tft:086]: Try #3
[08:23:27][D][script.nextion_status:2653]: Nextion status:
[08:23:27][D][script.nextion_status:2654]:   Is detected: False
[08:23:27][D][script.nextion_status:2655]:   Is setup:    False
[08:23:27][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive
[08:23:27][D][main:2562]: Exit reparse
[08:23:27][D][script.upload_tft:070]: Wait 2 seconds
[08:23:29][D][nextion_upload:170]: Connected
[08:23:29][D][nextion_upload:176]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[08:23:29][D][nextion_upload:210]: Updating Nextion ...
[08:23:29][D][nextion_upload:236]: Waiting for upgrade response
[08:23:31][D][nextion_upload:240]: Upgrade response is  0
[08:23:31][D][nextion_upload:249]: preparation for tft update failed 0 ""
[08:23:31][D][nextion_upload:312]: Restarting Nextion
[08:23:31][D][script.upload_tft:093]: Turn off Nextion
[08:23:31][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:23:31][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:23:31][D][script.upload_tft:070]: Wait 3 seconds
[08:23:34][D][script.upload_tft:096]: Turn on Nextion
[08:23:34][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:23:34][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:23:34][D][script.upload_tft:070]: Wait 10 seconds
[08:23:44][E][script.upload_tft:100]: TFT upload failed.
[08:23:44][D][script.upload_tft:101]: Turn off Nextion
[08:23:44][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:23:44][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:23:44][D][script.upload_tft:070]: Wait 2 seconds
[08:23:46][D][script.upload_tft:104]: Turn on Nextion
[08:23:46][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:23:46][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:23:46][D][script.upload_tft:106]: Restarting esphome
[08:23:46][D][script.upload_tft:070]: Wait 1 seconds
[08:23:47][D][button:010]: 'nspanel Restart' Pressed.
[08:23:47][I][restart.button:012]: Restarting device...
[08:23:47][I][app:134]: Rebooting safely...
BigHomie90 commented 6 months ago

@mathgoy I had the exact same logs when i added the "external_component". Maybe it has to do with timing when you press the update tft. I pressed it after the spam "Nextion is not connected" where it stops for a bit and shows "exit reparse"and it started the update process.

edwardtfn commented 6 months ago

@mathgoy, please try the following:

Remove any of this extra code (customization) I've proposed earlier and do the following changes to your ESPHome yaml in order it will look like this:

substitutions:
  ###### CHANGE ME START ######
  device_name: "nspanel" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  #  nextion_update_url: "http://homeassistant.local:8123/local/nspanel_eu.tft" # URL to local tft File
  nextion_update_url: "http://10.10.0.20:8123/local/nspanel_eu.tft"
  ##### CHANGE ME END #####

packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    # ref: main
    ref: tft-transfer
    files:
      # - nspanel_esphome.yaml # Core package
      - nspanel_esphome_upload_tft.yaml # Temporary alternative code for uploading TFT to a new panel
      # - 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

Before install it in your panel, please go to the ESPHome dashboard, on the 3-dot menu related to your device, select "Clean build files", to make sure no old code will be used.

Then install it (wirelessly is ok), capture as much log as possible.

Once you have installed this, there's no integration to Home Assistant, so you will have to press the hardware buttons to transfer the TFT files or long press to call "Exit reparse" (which shouldn't be necessary unless you have Sonoff page in your screen). I know the user experience is not the best at this moment, but we just want to validate the code before investing more time on that.

Let me know your results (with logs, please).

After that, please revert your code back to this (again, clean build files before installing it):

substitutions:
  ###### CHANGE ME START ######
  device_name: "nspanel" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  #  nextion_update_url: "http://homeassistant.local:8123/local/nspanel_eu.tft" # URL to local tft File
  nextion_update_url: "http://10.10.0.20:8123/local/nspanel_eu.tft"
  ##### CHANGE ME END #####

packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    # ref: tft-transfer
    files:
      - nspanel_esphome.yaml # Core package
      # - nspanel_esphome_upload_tft.yaml # Temporary alternative code for uploading TFT to a new panel
      # - 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
mathgoy commented 6 months ago

Hi @edwardtfn ,

I flashed with:

substitutions:
  ###### CHANGE ME START ######
  device_name: "nspanel" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  #  nextion_update_url: "http://homeassistant.local:8123/local/nspanel_eu.tft" # URL to local tft File
  nextion_update_url: "http://10.10.0.20:8123/local/nspanel_eu.tft"
  ##### CHANGE ME END #####

packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    # ref: main
    ref: tft-transfer
    files:
      # - nspanel_esphome.yaml # Core package
      - nspanel_esphome_upload_tft.yaml # Temporary alternative code for uploading TFT to a new panel
      # - 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

I also cleaned up the build files

But then, when I connect to the device to see the log, I have an issue:


INFO ESPHome 2023.11.6
INFO Reading configuration /config/esphome/nspanel.yaml...
INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@tft-transfer
INFO Starting log output from nspanel.local using esphome API
WARNING Can't connect to ESPHome API for nspanel: Error connecting to ('10.10.0.109', 6053): [Errno 111] Connect call failed ('10.10.0.109', 6053) (SocketAPIError)
INFO Trying to connect to nspanel in the background
edwardtfn commented 6 months ago

Ok, I will take a look. By the way, what happens when you press the hardware buttons? It should start TFT transfer.

mathgoy commented 6 months ago

When I press the hardware buttons the device beeps but the log shows what I copy pasted before

kein0r commented 6 months ago

First version beeps after starting and when I press the lower button (us version) the display is updated and afterwards a qr-code is displayed. Clean build with the second version does the following

INFO Uploading .esphome/build/officepanel/.pioenvs/officepanel/firmware.bin (1270976 bytes)
Uploading: [============================================================] 100% Done...

INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from officepanel.local using esphome API
INFO Successfully connected to officepanel.local
[17:09:15][I][app:102]: ESPHome version 2023.7.0 compiled on Nov 29 2023, 17:08:16
[17:09:15][C][wifi:543]: WiFi:
[17:09:15][C][wifi:379]:   Local MAC: 80:64:6F:C3:52:6C
[17:09:15][C][wifi:380]:   SSID: 'WifiName'
[17:09:15][C][wifi:381]:   IP Address: x.x.x.x
[17:09:15][C][wifi:383]:   BSSID: 60:38:E0:83:2F:0C
[17:09:15][C][wifi:384]:   Hostname: 'officepanel'
[17:09:15][C][wifi:386]:   Signal strength: -72 dB ▂▄▆█
[17:09:15][C][wifi:390]:   Channel: 11
[17:09:15][C][wifi:391]:   Subnet: 255.255.255.0
[17:09:15][C][wifi:392]:   Gateway: x.x.x.x
[17:09:15][C][wifi:393]:   DNS1: x.x.x.x
[17:09:15][C][wifi:394]:   DNS2: x.x.x.x
[17:09:15][C][logger:301]: Logger:
[17:09:15][C][logger:302]:   Level: DEBUG
[17:09:15][C][logger:303]:   Log Baud Rate: 115200
[17:09:15][C][logger:305]:   Hardware UART: UART0
[17:09:15][C][uart.arduino_esp32:124]: UART Bus 1:
[17:09:15][C][uart.arduino_esp32:125]:   TX Pin: GPIO16
[17:09:15][C][uart.arduino_esp32:126]:   RX Pin: GPIO17
[17:09:15][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[17:09:15][C][uart.arduino_esp32:130]:   Baud Rate: 115200 baud
[17:09:15][C][uart.arduino_esp32:131]:   Data Bits: 8
[17:09:15][C][uart.arduino_esp32:132]:   Parity: NONE
[17:09:15][C][uart.arduino_esp32:133]:   Stop bits: 1
[17:09:15][C][ledc.output:160]: LEDC Output:
[17:09:15][C][ledc.output:161]:   Pin GPIO21
[17:09:15][C][ledc.output:162]:   LEDC Channel: 0
[17:09:15][C][ledc.output:163]:   PWM Frequency: 1000.0 Hz
[17:09:15][C][ledc.output:164]:   Bit depth: 16
[17:09:15][C][template.binary_sensor:028]: Template Binary Sensor 'officepanel Nextion display'
[17:09:15][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[17:09:15][C][uptime.sensor:031]: Uptime Sensor 'officepanel Uptime seconds'
[17:09:15][C][uptime.sensor:031]:   Device Class: 'duration'
[17:09:15][C][uptime.sensor:031]:   State Class: 'total_increasing'
[17:09:15][C][uptime.sensor:031]:   Unit of Measurement: 's'
[17:09:15][C][uptime.sensor:031]:   Accuracy Decimals: 0
[17:09:15][C][uptime.sensor:031]:   Icon: 'mdi:timer-outline'
[17:09:15][C][template.sensor:022]: Template Sensor 'officepanel API uptime'
[17:09:15][C][template.sensor:022]:   Device Class: 'timestamp'
[17:09:15][C][template.sensor:022]:   State Class: ''
[17:09:15][C][template.sensor:022]:   Unit of Measurement: ''
[17:09:15][C][template.sensor:022]:   Accuracy Decimals: 0
[17:09:15][C][template.sensor:023]:   Update Interval: never
[17:09:15][W][nextion:072]: Nextion is not connected! 
[17:09:15][C][template.sensor:022]: Template Sensor 'officepanel Device uptime'
[17:09:15][C][template.sensor:022]:   Device Class: 'timestamp'
[17:09:15][C][template.sensor:022]:   State Class: ''
[17:09:15][C][template.sensor:022]:   Unit of Measurement: ''
[17:09:15][C][template.sensor:022]:   Accuracy Decimals: 0
[17:09:15][C][template.sensor:023]:   Update Interval: never
[17:09:15][C][template.text_sensor:020]: Template Sensor 'officepanel Notification Label'
[17:09:15][C][template.text_sensor:020]: Template Sensor 'officepanel Notification Text'
[17:09:15][C][template.switch:068]: Template Switch 'officepanel Notification sound'
[17:09:15][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[17:09:15][C][template.switch:057]:   Optimistic: YES
[17:09:15][D][api:102]: Accepted x.x.x.x
[17:09:15][C][switch.gpio:068]: GPIO Switch 'officepanel Screen Power'
[17:09:15][C][switch.gpio:091]:   Restore Mode: always ON
[17:09:15][C][switch.gpio:031]:   Pin: GPIO4
[17:09:15][D][api.connection:1031]: Home Assistant 2023.11.3 (x.x.x.x): Connected successfully
[17:09:15][C][template.switch:068]: Template Switch 'officepanel Relay 1 Local'
[17:09:15][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[17:09:15][C][template.switch:057]:   Optimistic: YES
[17:09:15][D][time:045]: Synchronized time: 2023-11-29 17:09:15
[17:09:15][D][sensor:094]: 'officepanel API uptime': Sending state 1701295744.00000  with 0 decimals of accuracy
[17:09:15][D][sensor:094]: 'officepanel Device uptime': Sending state 1701295744.00000  with 0 decimals of accuracy
[17:09:15][D][main:1778]: System clock synchronized
[17:09:15][C][template.switch:068]: Template Switch 'officepanel Relay 2 Local'
[17:09:15][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[17:09:15][C][template.switch:057]:   Optimistic: YES
[17:09:15][C][template.number:050]: Template Number 'officepanel Display Brightness'
[17:09:15][C][template.number:050]:   Unit of Measurement: '%'
[17:09:15][C][template.number:051]:   Optimistic: YES
[17:09:15][C][template.number:052]:   Update Interval: 60.0s
[17:09:15][C][template.number:050]: Template Number 'officepanel Display Brightness Dimdown'
[17:09:15][C][template.number:050]:   Unit of Measurement: '%'
[17:09:15][C][template.number:051]:   Optimistic: YES
[17:09:15][C][template.number:052]:   Update Interval: 60.0s
[17:09:15][C][template.number:050]: Template Number 'officepanel Temperature Correction'
[17:09:15][C][template.number:050]:   Unit of Measurement: '°C'
[17:09:15][C][template.number:051]:   Optimistic: YES
[17:09:15][C][template.number:052]:   Update Interval: 60.0s
[17:09:15][C][template.number:050]: Template Number 'officepanel Timeout Page'
[17:09:15][C][template.number:050]:   Icon: 'mdi:timer'
[17:09:15][C][template.number:050]:   Unit of Measurement: 's'
[17:09:15][C][template.number:051]:   Optimistic: YES
[17:09:15][C][template.number:052]:   Update Interval: 60.0s
[17:09:15][C][template.number:050]: Template Number 'officepanel Timeout Dimming'
[17:09:15][C][template.number:050]:   Icon: 'mdi:timer'
[17:09:15][C][template.number:050]:   Unit of Measurement: 's'
[17:09:15][C][template.number:051]:   Optimistic: YES
[17:09:15][C][template.number:052]:   Update Interval: 60.0s
[17:09:16][C][template.number:050]: Template Number 'officepanel Timeout Sleep'
[17:09:16][C][template.number:050]:   Icon: 'mdi:timer'
[17:09:16][C][template.number:050]:   Unit of Measurement: 's'
[17:09:16][C][template.number:051]:   Optimistic: YES
[17:09:16][C][template.number:052]:   Update Interval: 60.0s
[17:09:16][W][nextion:072]: Nextion is not connected! 
[17:09:16][C][template.select:065]: Template Select 'officepanel Wake-up page'
[17:09:16][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[17:09:16][C][template.select:066]:   Update Interval: 60.0s
[17:09:16][C][template.select:069]:   Optimistic: YES
[17:09:16][C][template.select:070]:   Initial Option: home
[17:09:16][C][template.select:071]:   Restore Value: YES
[17:09:16][C][switch.gpio:068]: GPIO Switch 'officepanel Relay 1'
[17:09:16][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[17:09:16][C][switch.gpio:031]:   Pin: GPIO22
[17:09:16][C][switch.gpio:068]: GPIO Switch 'officepanel Relay 2'
[17:09:16][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[17:09:16][C][switch.gpio:031]:   Pin: GPIO19
[17:09:16][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'officepanel Left Button'
[17:09:16][C][gpio.binary_sensor:016]:   Pin: GPIO14
[17:09:16][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'officepanel Right Button'
[17:09:16][C][gpio.binary_sensor:016]:   Pin: GPIO27
[17:09:16][C][template.text_sensor:020]: Template Sensor 'officepanel Current page'
[17:09:16][C][template.switch:068]: Template Switch 'officepanel Notification unread'
[17:09:16][C][template.switch:091]:   Restore Mode: always OFF
[17:09:16][C][template.switch:057]:   Optimistic: YES
[17:09:16][C][rtttl:018]: Rtttl
[17:09:16][C][restart.button:017]: Restart Button 'officepanel Restart'
[17:09:16][C][adc:094]: ADC Sensor 'ntc_source'
[17:09:16][C][adc:094]:   Device Class: 'voltage'
[17:09:16][C][adc:094]:   State Class: 'measurement'
[17:09:16][C][adc:094]:   Unit of Measurement: 'V'
[17:09:16][C][adc:094]:   Accuracy Decimals: 2
[17:09:16][C][adc:104]:   Pin: GPIO38
[17:09:16][C][adc:119]:  Attenuation: 11db
[17:09:16][C][adc:133]:   Update Interval: 60.0s
[17:09:16][W][nextion:072]: Nextion is not connected! 
[17:09:16][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[17:09:16][C][resistance:010]:   State Class: 'measurement'
[17:09:16][C][resistance:010]:   Unit of Measurement: 'Ω'
[17:09:16][C][resistance:010]:   Accuracy Decimals: 1
[17:09:16][C][resistance:010]:   Icon: 'mdi:flash'
[17:09:16][C][resistance:011]:   Configuration: DOWNSTREAM
[17:09:16][C][resistance:012]:   Resistor: 11200.00Ω
[17:09:16][C][resistance:013]:   Reference Voltage: 3.3V
[17:09:16][C][version.text_sensor:021]: Version Text Sensor 'officepanel ESPhome Version'
[17:09:16][C][version.text_sensor:021]:   Icon: 'mdi:new-box'
[17:09:16][C][nextion:117]: Nextion:
[17:09:16][C][nextion:118]:   Device Model:     
[17:09:16][C][nextion:119]:   Firmware Version: 
[17:09:16][C][nextion:120]:   Serial Number:    
[17:09:16][C][nextion:121]:   Flash Size:       
[17:09:16][C][nextion:122]:   Wake On Touch:    True
[17:09:16][C][homeassistant.time:010]: Home Assistant Time:
[17:09:16][C][homeassistant.time:011]:   Timezone: 'EST5EDT,M3.2.0,M11.1.0'
[17:09:16][C][status:034]: Status Binary Sensor 'officepanel Status'
[17:09:16][C][status:034]:   Device Class: 'connectivity'
[17:09:16][C][ntc:014]: NTC Sensor 'officepanel Temperature'
[17:09:16][C][ntc:014]:   Device Class: 'temperature'
[17:09:16][C][ntc:014]:   State Class: 'measurement'
[17:09:16][C][ntc:014]:   Unit of Measurement: '°C'
[17:09:16][C][ntc:014]:   Accuracy Decimals: 1
[17:09:17][C][captive_portal:088]: Captive Portal:
[17:09:17][C][web_server:161]: Web Server:
[17:09:17][C][web_server:162]:   Address: officepanel.local:80
[17:09:17][W][nextion:072]: Nextion is not connected! 
[17:09:17][C][mdns:112]: mDNS:
[17:09:17][C][mdns:113]:   Hostname: officepanel
[17:09:17][C][ota:093]: Over-The-Air Updates:
[17:09:17][C][ota:094]:   Address: officepanel.local:3232
[17:09:17][C][ota:097]:   Using Password.
[17:09:17][C][api:138]: API Server:
[17:09:17][C][api:139]:   Address: officepanel.local:6053
[17:09:17][C][api:143]:   Using noise encryption: NO
[17:09:17][C][wifi_info:009]: WifiInfo IPAddress 'officepanel IP'
[17:09:17][C][wifi_info:011]: WifiInfo SSID 'officepanel SSID'
[17:09:17][C][wifi_info:012]: WifiInfo BSSID 'officepanel BSSID'
[17:09:17][C][wifi_signal.sensor:009]: WiFi Signal 'officepanel RSSI'
[17:09:17][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[17:09:17][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[17:09:17][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[17:09:17][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[17:09:17][W][nextion:072]: Nextion is not connected! 
[17:09:18][W][nextion:072]: Nextion is not connected! 
[17:09:18][W][nextion:072]: Nextion is not connected! 
[17:09:19][W][nextion:072]: Nextion is not connected! 
[17:09:19][W][nextion:072]: Nextion is not connected! 
[17:09:20][W][nextion:072]: Nextion is not connected! 
[17:09:21][W][nextion:072]: Nextion is not connected! 
[17:09:21][W][nextion:072]: Nextion is not connected! 
[17:09:22][W][nextion:072]: Nextion is not connected! 
[17:09:22][W][nextion:072]: Nextion is not connected! 
[17:09:23][W][nextion:072]: Nextion is not connected! 
[17:09:23][W][nextion:072]: Nextion is not connected! 
[17:09:24][W][nextion:072]: Nextion is not connected! 
[17:09:24][W][nextion:072]: Nextion is not connected! 
[17:09:25][W][nextion:072]: Nextion is not connected! 
[17:09:25][W][nextion:072]: Nextion is not connected! 
[17:09:26][W][nextion:072]: Nextion is not connected! 
[17:09:26][W][nextion:072]: Nextion is not connected! 
[17:09:27][W][nextion:072]: Nextion is not connected! 
[17:09:27][W][nextion:072]: Nextion is not connected! 
[17:09:28][W][nextion:072]: Nextion is not connected! 
[17:09:29][W][nextion:072]: Nextion is not connected! 
[17:09:29][W][nextion:072]: Nextion is not connected! 
[17:09:30][W][nextion:072]: Nextion is not connected! 
[17:09:30][W][nextion:072]: Nextion is not connected! 
[17:09:31][W][nextion:072]: Nextion is not connected! 
[17:09:31][W][nextion:072]: Nextion is not connected! 
[17:09:32][W][nextion:072]: Nextion is not connected! 
[17:09:32][W][nextion:072]: Nextion is not connected! 
[17:09:33][W][nextion:072]: Nextion is not connected! 
[17:09:33][W][nextion:072]: Nextion is not connected! 
[17:09:34][W][nextion:072]: Nextion is not connected! 
...
[17:10:42][E][uart:015]: Reading from UART timed out at byte 0!
[17:10:42][W][nextion:072]: Nextion is not connected! 
[17:10:42][W][component:204]: Component nextion.display took a long time for an operation (0.11 s).
[17:10:42][W][component:205]: Components should block for at most 20-30ms.
[17:10:42][E][uart:015]: Reading from UART timed out at byte 0!
[17:10:42][W][nextion:072]: Nextion is not connected! 
[17:10:42][W][component:204]: Component nextion.display took a long time for an operation (0.11 s).
[17:10:42][W][component:205]: Components should block for at most 20-30ms.
[17:10:43][E][uart:015]: Reading from UART timed out at byte 0!
[17:10:43][W][nextion:072]: Nextion is not connected! 
[17:10:43][W][component:204]: Component nextion.display took a long time for an operation (0.11 s).
[17:10:43][W][component:205]: Components should block for at most 20-30ms.
[17:10:44][W][nextion:072]: Nextion is not connected! 
[17:10:45][E][uart:015]: Reading from UART timed out at byte 0!
[17:10:45][W][nextion:072]: Nextion is not connected! 
[17:10:45][W][component:204]: Component nextion.display took a long time for an operation (0.11 s).
[17:10:45][W][component:205]: Components should block for at most 20-30ms.
...
[17:11:11][I][nextion:078]: Nextion is connected
[17:11:11][C][nextion:117]: Nextion:
[17:11:11][C][nextion:118]:   Device Model:     NX4832F035_011C
[17:11:11][C][nextion:119]:   Firmware Version: 72
[17:11:11][C][nextion:120]:   Serial Number:    CA8C34018EB22237
[17:11:11][C][nextion:121]:   Flash Size:       16777216
[17:11:11][C][nextion:122]:   Wake On Touch:    True
[17:11:11][W][component:204]: Component nextion.display took a long time for an operation (0.10 s).
[17:11:11][W][component:205]: Components should block for at most 20-30ms.
[17:11:16][D][script.timer_dim:1784]: Dimming the display to 10%
[17:11:19][D][nextion:251]: Manually set nextion report ready
[17:11:19][D][nextion:329]: Nextion is setup
[17:11:19][D][script:077]: Script 'timer_sleep' restarting (mode: restart)
[17:11:19][D][text_sensor:064]: 'officepanel NSPanel event': Sending state '{"page": "blank", "component": "currentpage", "value": "pagechange", "version": "2023.11.0"}'
[17:11:19][D][script:077]: Script 'timer_dim' restarting (mode: restart)
[17:11:19][D][script:077]: Script 'timer_sleep' restarting (mode: restart)
[17:11:19][D][text_sensor:064]: 'officepanel Current page': Sending state 'blank'
[17:11:19][D][text_sensor.current_page:1134]: New page: blank
[17:11:19][D][script:077]: Script 'timer_page' restarting (mode: restart)
[17:11:19][D][script:077]: Script 'timer_dim' restarting (mode: restart)
[17:11:19][D][script:077]: Script 'timer_sleep' restarting (mode: restart)
[17:11:19][D][nextion_textsensor:014]: Processed text_sensor "nspanelevent" state "{"page": "blank", "component": "currentpage", "value": "pagechange", "version": "2023.11.0"}"
[17:11:19][W][component:204]: Component nextion.display took a long time for an operation (0.10 s).
[17:11:19][W][component:205]: Components should block for at most 20-30ms.
[17:11:19][W][nextion:341]: Nextion reported page ID invalid!
[17:11:19][W][nextion:396]: Nextion reported variable name invalid!
[17:11:19][W][nextion:337]: Nextion reported component ID or name invalid!
[17:11:19][W][nextion:396]: Nextion reported variable name invalid!
[17:11:19][E][nextion:260]: Nextion queue is empty!

After a few restarts the display stays black

edwardtfn commented 6 months ago

After a few restarts the display stays black

You have nspanel_blank.tft installed, which is a good first step (you got rid of Sonoff's Reparse mode), but now you have to install the final TFT (either nspanel_eu.tft, nspanel_us.tft or nspanel_us_land.tft).

kein0r commented 6 months ago

You're right, should have thought about this right away ..... pressing the "Update TFT Display" button updated the display. I now get "System Data ERROR!". Will check how to get rid of this

kein0r commented 6 months ago

I keep getting the following now. Display just shows "System Data ERROR!"

[18:35:38][D][api:102]: Accepted x.x.x.x
[18:35:38][D][api.connection:1031]: Home Assistant 2023.11.3 (x.x.x.x): Connected successfully
[18:35:38][D][time:045]: Synchronized time: 2023-11-29 18:35:38
[18:35:38][D][sensor:094]: 'officepanel API uptime': Sending state 1701300992.00000  with 0 decimals of accuracy
[18:35:38][D][sensor:094]: 'officepanel Device uptime': Sending state 1701300992.00000  with 0 decimals of accuracy
[18:35:38][D][main:1778]: System clock synchronized
[18:35:38][W][nextion:396]: Nextion reported variable name invalid!
[18:35:38][W][nextion:396]: Nextion reported variable name invalid!
[18:35:48][W][nextion:396]: Nextion reported variable name invalid!
[18:35:48][W][nextion:396]: Nextion reported variable name invalid!
[18:35:57][D][sensor:094]: 'officepanel Uptime seconds': Sending state 30.67200 s with 0 decimals of accuracy
[18:36:00][W][nextion:396]: Nextion reported variable name invalid!
[18:36:00][W][nextion:396]: Nextion reported variable name invalid!
[18:36:07][D][script.timer_dim:1784]: Dimming the display to 10%
[18:36:19][D][sensor:094]: 'ntc_source': Sending state 1.59900 V with 2 decimals of accuracy
[18:36:19][D][resistance:039]: 'resistance_sensor' - Resistance 10528.4Ω
[18:36:19][D][sensor:094]: 'resistance_sensor': Sending state 10528.39551 Ω with 1 decimals of accuracy
[18:36:19][D][ntc:026]: 'officepanel Temperature' - Temperature: 23.8°C
[18:36:19][D][sensor:094]: 'officepanel Temperature': Sending state 20.24570 °C with 1 decimals of accuracy
[18:36:30][D][sensor:094]: 'officepanel RSSI': Sending state -69.00000 dBm with 0 decimals of accuracy
[18:36:30][W][nextion:396]: Nextion reported variable name invalid!
[18:36:30][W][nextion:396]: Nextion reported variable name invalid!
[18:36:30][W][nextion:396]: Nextion reported variable name invalid!
[18:36:37][D][script.timer_sleep:1804]: Going to sleep
[18:36:37][W][nextion:341]: Nextion reported page ID invalid!
kein0r commented 6 months ago

Did it all over again flashed the first version - the one with nspanel_esphome_upload_tft.yaml - again, then flashed the second version - the one with - nspanel_esphome_upload_tft.yaml -, and now it is working! Not sure what I did wrong the first time, thanks for your help!

rtm-soft commented 6 months ago

I flashed a bunch of these panels and it never worked the first time. But all panels took the download after the 3rd reboot. Just power the panel up wait a few minutes. Then click update TFT (which will fail) then click reboot panel on the same page, wait 3 minutes and repeat the same. All 3 panels took a download the 3rd time. Btw make sure ref: dev and not main in esphome. Had no luck what so ever with the main version. Cheers

mathgoy commented 6 months ago

Hi @edwardtfn, I am still stuck here. Clicking the hardware button to initiate the download doesn't work .

edwardtfn commented 6 months ago

Sorry for the silence here. I'm working in a fix for this.

May I ask for another test? Please use this one:

substitutions:
  ###### CHANGE ME START ######
  device_name: "nspanel" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  #  nextion_update_url: "http://homeassistant.local:8123/local/nspanel_eu.tft" # URL to local tft File
  nextion_update_url: "http://10.10.0.20:8123/local/nspanel_eu.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

This is based on the normal code, so not special code with pressing buttons. Please go the way it is on the docs to update your panel, which means goin to Settings > Devices & Services > ESPHome > Your panel's device page > Press "Upload TFT".

Logs, please. 😉

edwardtfn commented 6 months ago

[17:09:15][I][app:102]: ESPHome version 2023.7.0 compiled on Nov 29 2023, 17:08:16

@kein0r, any special reason for you not being with the latest ESPHome? v2023.7.0 shouldn't be an issue, but I haven't tested the latest code with that version.

mathgoy commented 6 months ago

Hi, @edwardtfn , no worries. Here is the log after flashing:


[08:32:52][I][app:102]: ESPHome version 2023.11.6 compiled on Nov 30 2023, 08:32:07
[08:32:52][C][wifi:559]: WiFi:
[08:32:52][C][wifi:391]:   Local MAC: C4:DD:57:E8:13:D8
[08:32:52][C][wifi:396]:   SSID: [redacted]
[08:32:52][C][wifi:397]:   IP Address: 10.10.0.109
[08:32:52][C][wifi:399]:   BSSID: [redacted]
[08:32:52][C][wifi:400]:   Hostname: 'nspanel'
[08:32:52][C][wifi:402]:   Signal strength: -70 dB ▂▄▆█
[08:32:52][C][wifi:406]:   Channel: 1
[08:32:52][C][wifi:407]:   Subnet: 255.255.255.0
[08:32:52][C][wifi:408]:   Gateway: 10.10.0.1
[08:32:52][C][wifi:409]:   DNS1: 9.9.9.9
[08:32:52][C][wifi:410]:   DNS2: 1.1.1.1
[08:32:52][C][logger:416]: Logger:
[08:32:52][C][logger:417]:   Level: DEBUG
[08:32:52][C][logger:418]:   Log Baud Rate: 0
[08:32:52][C][logger:420]:   Hardware UART: UART0
[08:32:52][C][uart.arduino_esp32:124]: UART Bus 0:
[08:32:52][C][uart.arduino_esp32:125]:   TX Pin: GPIO16
[08:32:52][C][uart.arduino_esp32:126]:   RX Pin: GPIO17
[08:32:52][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[08:32:52][C][uart.arduino_esp32:130]:   Baud Rate: 115200 baud
[08:32:52][C][uart.arduino_esp32:131]:   Data Bits: 8
[08:32:52][C][uart.arduino_esp32:132]:   Parity: NONE
[08:32:52][C][uart.arduino_esp32:133]:   Stop bits: 1
[08:32:52][W][nextion:077]: Nextion is not connected! 
[08:32:52][C][ledc.output:164]: LEDC Output:
[08:32:52][C][ledc.output:165]:   Pin GPIO21
[08:32:52][C][ledc.output:166]:   LEDC Channel: 0
[08:32:52][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[08:32:52][C][ledc.output:168]:   Bit depth: 16
[08:32:52][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display'
[08:32:52][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[08:32:52][C][template.number:050]: Template Number 'nspanel Display Brightness'
[08:32:52][C][template.number:050]:   Unit of Measurement: '%'
[08:32:52][C][template.number:051]:   Optimistic: YES
[08:32:52][C][template.number:052]:   Update Interval: 60.0s
[08:32:52][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown'
[08:32:52][C][template.number:050]:   Unit of Measurement: '%'
[08:32:52][C][template.number:051]:   Optimistic: YES
[08:32:52][C][template.number:052]:   Update Interval: 60.0s
[08:32:52][C][template.number:050]: Template Number 'nspanel Temperature Correction'
[08:32:52][C][template.number:050]:   Unit of Measurement: '°C'
[08:32:52][C][template.number:051]:   Optimistic: YES
[08:32:52][C][template.number:052]:   Update Interval: 60.0s
[08:32:52][C][template.number:050]: Template Number 'nspanel Timeout Page'
[08:32:52][C][template.number:050]:   Icon: 'mdi:timer'
[08:32:52][C][template.number:050]:   Unit of Measurement: 's'
[08:32:52][C][template.number:051]:   Optimistic: YES
[08:32:52][C][template.number:052]:   Update Interval: 60.0s
[08:32:52][C][template.number:050]: Template Number 'nspanel Timeout Dimming'
[08:32:52][C][template.number:050]:   Icon: 'mdi:timer'
[08:32:52][C][template.number:050]:   Unit of Measurement: 's'
[08:32:52][C][template.number:051]:   Optimistic: YES
[08:32:52][C][template.number:052]:   Update Interval: 60.0s
[08:32:52][C][template.number:050]: Template Number 'nspanel Timeout Sleep'
[08:32:52][C][template.number:050]:   Icon: 'mdi:timer'
[08:32:52][C][template.number:050]:   Unit of Measurement: 's'
[08:32:52][C][template.number:051]:   Optimistic: YES
[08:32:52][C][template.number:052]:   Update Interval: 60.0s
[08:32:52][C][template.select:065]: Template Select 'nspanel Wake-up page'
[08:32:52][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[08:32:52][C][template.select:066]:   Update Interval: 60.0s
[08:32:52][C][template.select:069]:   Optimistic: YES
[08:32:52][C][template.select:070]:   Initial Option: home
[08:32:52][C][template.select:071]:   Restore Value: YES
[08:32:52][C][template.text_sensor:020]: Template Sensor 'nspanel Detailed Entity'
[08:32:52][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[08:32:52][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label'
[08:32:52][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text'
[08:32:52][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1'
[08:32:52][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[08:32:52][C][switch.gpio:031]:   Pin: GPIO22
[08:32:52][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2'
[08:32:52][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[08:32:52][C][switch.gpio:031]:   Pin: GPIO19
[08:32:52][W][nextion:077]: Nextion is not connected! 
[08:32:53][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button'
[08:32:53][C][gpio.binary_sensor:016]:   Pin: GPIO14
[08:32:53][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button'
[08:32:53][C][gpio.binary_sensor:016]:   Pin: GPIO27
[08:32:53][C][switch.gpio:068]: GPIO Switch 'nspanel Nextion display - Power'
[08:32:53][C][switch.gpio:091]:   Restore Mode: always ON
[08:32:53][C][switch.gpio:031]:   Pin: GPIO4
[08:32:53][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[08:32:53][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:32:53][C][template.switch:057]:   Optimistic: YES
[08:32:53][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[08:32:53][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:32:53][C][template.switch:057]:   Optimistic: YES
[08:32:53][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[08:32:53][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:32:53][C][template.switch:057]:   Optimistic: YES
[08:32:53][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[08:32:53][C][template.switch:091]:   Restore Mode: always OFF
[08:32:53][C][template.switch:057]:   Optimistic: YES
[08:32:53][C][rtttl:029]: Rtttl
[08:32:53][W][nextion:077]: Nextion is not connected! 
[08:32:53][C][nextion:124]: Nextion:
[08:32:53][C][nextion:125]:   Device Model:     
[08:32:53][C][nextion:126]:   Firmware Version: 
[08:32:53][C][nextion:127]:   Serial Number:    
[08:32:53][C][nextion:128]:   Flash Size:       
[08:32:53][C][nextion:129]:   Wake On Touch:    True
[08:32:53][C][nextion:140]:   Start Up Page :      8
[08:32:53][C][restart.button:017]: Restart Button 'nspanel Restart'
[08:32:53][C][adc:097]: ADC Sensor 'ntc_source'
[08:32:53][C][adc:097]:   Device Class: 'voltage'
[08:32:53][C][adc:097]:   State Class: 'measurement'
[08:32:53][C][adc:097]:   Unit of Measurement: 'V'
[08:32:53][C][adc:097]:   Accuracy Decimals: 2
[08:32:53][C][adc:107]:   Pin: GPIO38
[08:32:53][C][adc:122]:  Attenuation: 11db
[08:32:53][C][adc:142]:   Update Interval: 60.0s
[08:32:53][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[08:32:53][C][resistance:010]:   State Class: 'measurement'
[08:32:53][C][resistance:010]:   Unit of Measurement: 'Ω'
[08:32:53][C][resistance:010]:   Accuracy Decimals: 1
[08:32:53][C][resistance:010]:   Icon: 'mdi:flash'
[08:32:53][C][resistance:011]:   Configuration: DOWNSTREAM
[08:32:53][C][resistance:012]:   Resistor: 11200.00Ω
[08:32:53][C][resistance:013]:   Reference Voltage: 3.3V
[08:32:53][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[08:32:53][C][ntc:014]:   Device Class: 'temperature'
[08:32:53][C][ntc:014]:   State Class: 'measurement'
[08:32:53][C][ntc:014]:   Unit of Measurement: '°C'
[08:32:53][C][ntc:014]:   Accuracy Decimals: 1
[08:32:53][C][homeassistant.time:010]: Home Assistant Time:
[08:32:53][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[08:32:53][C][status:034]: Status Binary Sensor 'nspanel Status'
[08:32:53][C][status:034]:   Device Class: 'connectivity'
[08:32:54][W][nextion:077]: Nextion is not connected! 
[08:32:54][C][mdns:115]: mDNS:
[08:32:54][C][mdns:116]:   Hostname: nspanel
[08:32:54][C][ota:097]: Over-The-Air Updates:
[08:32:54][C][ota:098]:   Address: nspanel.local:3232
[08:32:54][C][ota:101]:   Using Password.
[08:32:54][C][api:139]: API Server:
[08:32:54][C][api:140]:   Address: nspanel.local:6053
[08:32:54][C][api:144]:   Using noise encryption: NO
[08:32:54][W][nextion:077]: Nextion is not connected! 
[08:32:55][W][nextion:077]: Nextion is not connected! 
[08:32:55][W][nextion:077]: Nextion is not connected! 
[08:32:56][W][nextion:077]: Nextion is not connected! 
[08:32:56][W][nextion:077]: Nextion is not connected! 
[08:32:57][W][nextion:077]: Nextion is not connected! 
[08:32:57][W][nextion:077]: Nextion is not connected! 
[08:32:58][W][nextion:077]: Nextion is not connected! 
[08:32:58][W][nextion:077]: Nextion is not connected! 
[08:32:59][W][nextion:077]: Nextion is not connected! 
[08:32:59][W][nextion:077]: Nextion is not connected! 
[08:33:00][W][nextion:077]: Nextion is not connected! 
[08:33:01][W][nextion:077]: Nextion is not connected! 
[08:33:01][W][nextion:077]: Nextion is not connected! 
[08:33:02][W][nextion:077]: Nextion is not connected! 
[08:33:02][W][nextion:077]: Nextion is not connected! 
[08:33:03][W][nextion:077]: Nextion is not connected! 
[08:33:03][W][nextion:077]: Nextion is not connected! 
[08:33:04][W][nextion:077]: Nextion is not connected! 
[08:33:04][W][nextion:077]: Nextion is not connected! 
[08:33:05][W][nextion:077]: Nextion is not connected! 
[08:33:05][W][nextion:077]: Nextion is not connected! 
[08:33:06][W][nextion:077]: Nextion is not connected! 
[08:33:06][W][nextion:077]: Nextion is not connected! 
[08:33:07][W][nextion:077]: Nextion is not connected! 
[08:33:08][W][nextion:077]: Nextion is not connected! 
[08:33:08][W][nextion:077]: Nextion is not connected! 
[08:33:09][W][nextion:077]: Nextion is not connected! 
[08:33:09][D][main:2562]: Exit reparse
[08:33:09][W][nextion:077]: Nextion is not connected! 
[08:33:10][W][nextion:077]: Nextion is not connected! 
[08:33:10][W][nextion:077]: Nextion is not connected! 
[08:33:11][W][nextion:077]: Nextion is not connected! 
[08:33:11][W][nextion:077]: Nextion is not connected! 
[08:33:12][W][nextion:077]: Nextion is not connected! 
[08:33:12][W][nextion:077]: Nextion is not connected! 
[08:33:13][W][nextion:077]: Nextion is not connected! 
[08:33:13][W][nextion:077]: Nextion is not connected! 
[08:33:14][W][nextion:077]: Nextion is not connected! 
[08:33:15][W][nextion:077]: Nextion is not connected! 
[08:33:15][W][nextion:077]: Nextion is not connected! 
[08:33:16][W][nextion:077]: Nextion is not connected! 
[08:33:16][W][nextion:077]: Nextion is not connected! 
[08:33:17][W][nextion:077]: Nextion is not connected! 
[08:33:17][W][nextion:077]: Nextion is not connected! 
[08:33:18][W][nextion:077]: Nextion is not connected! 
[08:33:18][W][nextion:077]: Nextion is not connected! 
[08:33:19][W][nextion:077]: Nextion is not connected! 
[08:33:19][W][nextion:077]: Nextion is not connected! 
[08:33:20][W][nextion:077]: Nextion is not connected! 
[08:33:20][W][nextion:077]: Nextion is not connected! 
[08:33:21][W][nextion:077]: Nextion is not connected! 
[08:33:22][W][nextion:077]: Nextion is not connected! 
[08:33:22][W][nextion:077]: Nextion is not connected! 
[08:33:23][W][nextion:077]: Nextion is not connected! 
[08:33:23][W][nextion:077]: Nextion is not connected! 
[08:33:24][W][nextion:077]: Nextion is not connected! 
[08:33:24][W][nextion:077]: Nextion is not connected! 
[08:33:25][W][nextion:077]: Nextion is not connected! 
[08:33:25][W][nextion:077]: Nextion is not connected! 
[08:33:26][W][nextion:077]: Nextion is not connected! 
[08:33:26][W][nextion:077]: Nextion is not connected! 
[08:33:27][W][nextion:077]: Nextion is not connected! 
[08:33:27][W][nextion:077]: Nextion is not connected! 
[08:33:28][W][nextion:077]: Nextion is not connected! 
[08:33:29][W][nextion:077]: Nextion is not connected! 
[08:33:29][D][script.nextion_status:2653]: Nextion status:
[08:33:29][D][script.nextion_status:2654]:   Is detected: False
[08:33:29][D][script.nextion_status:2655]:   Is setup:    False
[08:33:29][E][on_boot:059]: No response from Nextion display
[08:33:29][D][on_boot:060]: Turn off Nextion
[08:33:29][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:33:29][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:33:29][D][on_boot:046]: Wait 2 seconds
[08:33:31][D][on_boot:063]: Turn on Nextion
[08:33:31][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:33:31][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:33:31][D][on_boot:046]: Wait 5 seconds
[08:33:36][D][script.nextion_status:2653]: Nextion status:
[08:33:36][D][script.nextion_status:2654]:   Is detected: False
[08:33:36][D][script.nextion_status:2655]:   Is setup:    False
[08:33:36][W][component:214]: Component esphome.coroutine took a long time for an operation (7.06 s).
[08:33:36][W][component:215]: Components should block for at most 20-30ms.
[08:33:36][W][nextion:077]: Nextion is not connected! 
[08:33:36][D][sensor:094]: 'ntc_source': Sending state 1.63800 V with 2 decimals of accuracy
[08:33:36][D][resistance:039]: 'resistance_sensor' - Resistance 11038.3Ω
[08:33:36][D][sensor:094]: 'resistance_sensor': Sending state 11038.26758 Ω with 1 decimals of accuracy
[08:33:36][D][ntc:026]: 'nspanel Temperature' - Temperature: 22.8°C
[08:33:36][D][sensor:094]: 'nspanel Temperature': Sending state 22.79337 °C with 1 decimals of accuracy
[08:33:36][W][nextion:077]: Nextion is not connected! 
[08:33:37][W][nextion:077]: Nextion is not connected! 
[08:33:37][W][nextion:077]: Nextion is not connected! 
[08:33:38][W][nextion:077]: Nextion is not connected! 
[08:33:38][W][nextion:077]: Nextion is not connected! 
[08:33:39][W][nextion:077]: Nextion is not connected! 
[08:33:39][W][nextion:077]: Nextion is not connected! 
[08:33:40][W][nextion:077]: Nextion is not connected! 
[08:33:40][W][nextion:077]: Nextion is not connected! 
[08:33:41][W][nextion:077]: Nextion is not connected! 
[08:33:42][W][nextion:077]: Nextion is not connected! 
[08:33:42][W][nextion:077]: Nextion is not connected! 
[08:33:43][W][nextion:077]: Nextion is not connected! 
[08:33:43][W][nextion:077]: Nextion is not connected! 
[08:33:44][W][nextion:077]: Nextion is not connected! 
[08:33:44][W][nextion:077]: Nextion is not connected! 
[08:33:45][W][nextion:077]: Nextion is not connected! 
[08:33:45][W][nextion:077]: Nextion is not connected! 
[08:33:46][W][nextion:077]: Nextion is not connected! 
[08:33:46][W][nextion:077]: Nextion is not connected! 
[08:33:46][W][component:214]: Component nextion.display took a long time for an operation (0.05 s).
[08:33:46][W][component:215]: Components should block for at most 20-30ms.
[08:33:47][W][nextion:077]: Nextion is not connected! 
[08:33:47][W][nextion:077]: Nextion is not connected! 
[08:33:48][W][nextion:077]: Nextion is not connected! 
[08:33:48][W][nextion:077]: Nextion is not connected! 
[08:33:49][W][nextion:077]: Nextion is not connected! 
[08:33:50][W][nextion:077]: Nextion is not connected! 
[08:33:50][W][nextion:077]: Nextion is not connected! 
[08:33:51][W][nextion:077]: Nextion is not connected! 
[08:33:51][W][nextion:077]: Nextion is not connected! 
[08:33:52][W][nextion:077]: Nextion is not connected! 
[08:33:52][W][nextion:077]: Nextion is not connected! 
[08:33:53][W][nextion:077]: Nextion is not connected! 
[08:33:53][W][nextion:077]: Nextion is not connected! 
[08:33:54][W][nextion:077]: Nextion is not connected! 
[08:33:54][W][nextion:077]: Nextion is not connected! 
[08:33:55][W][nextion:077]: Nextion is not connected! 
[08:33:55][W][nextion:077]: Nextion is not connected! 
[08:33:56][D][script.nextion_status:2653]: Nextion status:
[08:33:56][D][script.nextion_status:2654]:   Is detected: False
[08:33:56][D][script.nextion_status:2655]:   Is setup:    False
[08:33:56][E][on_boot:076]: No response from Nextion display
[08:33:56][D][on_boot:078]: Finished
[08:33:56][W][nextion:077]: Nextion is not connected! 
[08:33:56][W][nextion:077]: Nextion is not connected! 
[08:33:57][W][nextion:077]: Nextion is not connected! 
[08:33:58][W][nextion:077]: Nextion is not connected! 
[08:33:58][W][nextion:077]: Nextion is not connected! 
[08:33:59][W][nextion:077]: Nextion is not connected! 
[08:33:59][W][nextion:077]: Nextion is not connected! 
[08:34:00][W][nextion:077]: Nextion is not connected! 
[08:34:00][W][nextion:077]: Nextion is not connected! 
[08:34:01][W][nextion:077]: Nextion is not connected! 
[08:34:01][W][nextion:077]: Nextion is not connected! 
[08:34:02][W][nextion:077]: Nextion is not connected! 
[08:34:02][W][nextion:077]: Nextion is not connected! 
[08:34:03][W][nextion:077]: Nextion is not connected! 
[08:34:03][W][nextion:077]: Nextion is not connected! 
[08:34:04][W][nextion:077]: Nextion is not connected! 
[08:34:05][W][nextion:077]: Nextion is not connected! 
[08:34:05][W][nextion:077]: Nextion is not connected! 
[08:34:06][W][nextion:077]: Nextion is not connected! 
[08:34:06][W][nextion:077]: Nextion is not connected! 
[08:34:07][W][nextion:077]: Nextion is not connected! 
[08:34:07][W][nextion:077]: Nextion is not connected! 
[08:34:08][W][nextion:077]: Nextion is not connected! 
[08:34:08][W][nextion:077]: Nextion is not connected! 
[08:34:09][W][nextion:077]: Nextion is not connected! 
[08:34:09][W][nextion:077]: Nextion is not connected! 
[08:34:10][W][nextion:077]: Nextion is not connected! 
[08:34:10][W][nextion:077]: Nextion is not connected! 
[08:34:11][W][nextion:077]: Nextion is not connected! 
[08:34:12][W][nextion:077]: Nextion is not connected! 
[08:34:12][W][nextion:077]: Nextion is not connected! 
[08:34:13][W][nextion:077]: Nextion is not connected! 
[08:34:13][W][nextion:077]: Nextion is not connected! 
[08:34:14][W][nextion:077]: Nextion is not connected! 
[08:34:14][W][nextion:077]: Nextion is not connected! 
[08:34:15][W][nextion:077]: Nextion is not connected! 
[08:34:15][W][nextion:077]: Nextion is not connected! 
[08:34:16][W][nextion:077]: Nextion is not connected! 
[08:34:16][W][nextion:077]: Nextion is not connected! 
[08:34:17][W][nextion:077]: Nextion is not connected! 
[08:34:17][W][nextion:077]: Nextion is not connected! 
[08:34:18][W][nextion:077]: Nextion is not connected! 
[08:34:19][W][nextion:077]: Nextion is not connected! 
[08:34:19][W][nextion:077]: Nextion is not connected! 
[08:34:20][W][nextion:077]: Nextion is not connected! 
[08:34:20][W][nextion:077]: Nextion is not connected! 
[08:34:21][W][nextion:077]: Nextion is not connected! 
[08:34:21][W][nextion:077]: Nextion is not connected! 
[08:34:22][W][nextion:077]: Nextion is not connected! 
[08:34:22][W][nextion:077]: Nextion is not connected! 
[08:34:23][W][nextion:077]: Nextion is not connected! 
[08:34:23][W][nextion:077]: Nextion is not connected! 
[08:34:24][W][nextion:077]: Nextion is not connected! 
[08:34:24][W][nextion:077]: Nextion is not connected! 
[08:34:25][W][nextion:077]: Nextion is not connected! 
[08:34:26][W][nextion:077]: Nextion is not connected! 
[08:34:26][W][nextion:077]: Nextion is not connected! 
[08:34:27][W][nextion:077]: Nextion is not connected! 
[08:34:27][W][nextion:077]: Nextion is not connected! 
[08:34:28][W][nextion:077]: Nextion is not connected! 
[08:34:28][W][nextion:077]: Nextion is not connected! 
[08:34:29][W][nextion:077]: Nextion is not connected! 
[08:34:29][W][nextion:077]: Nextion is not connected! 
[08:34:30][W][nextion:077]: Nextion is not connected! 
[08:34:30][W][nextion:077]: Nextion is not connected! 
[08:34:31][W][nextion:077]: Nextion is not connected! 
[08:34:31][W][nextion:077]: Nextion is not connected! 
[08:34:32][W][nextion:077]: Nextion is not connected! 
[08:34:33][W][nextion:077]: Nextion is not connected! 
[08:34:33][W][nextion:077]: Nextion is not connected! 
[08:34:34][W][nextion:077]: Nextion is not connected! 
[08:34:34][W][nextion:077]: Nextion is not connected! 
[08:34:35][W][nextion:077]: Nextion is not connected! 
[08:34:35][W][nextion:077]: Nextion is not connected! 
[08:34:36][W][nextion:077]: Nextion is not connected! 
[08:34:36][D][sensor:094]: 'ntc_source': Sending state 1.62900 V with 2 decimals of accuracy
[08:34:36][D][resistance:039]: 'resistance_sensor' - Resistance 10918.5Ω
[08:34:36][D][sensor:094]: 'resistance_sensor': Sending state 10918.49121 Ω with 1 decimals of accuracy
[08:34:36][D][ntc:026]: 'nspanel Temperature' - Temperature: 23.0°C
[08:34:36][D][sensor:094]: 'nspanel Temperature': Sending state 23.03548 °C with 1 decimals of accuracy

and here is the log after I press upload TFT:


[08:36:10][D][button:010]: 'nspanel Update TFT display' Pressed.
[08:36:10][D][main:732]: Button pressed: Update TFT display
[08:36:10][D][script.upload_tft:086]: Try #1
[08:36:10][D][script.nextion_status:2653]: Nextion status:
[08:36:10][D][script.nextion_status:2654]:   Is detected: False
[08:36:10][D][script.nextion_status:2655]:   Is setup:    False
[08:36:10][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive
[08:36:10][D][main:2562]: Exit reparse
[08:36:10][D][script.upload_tft:070]: Wait 2 seconds
[08:36:12][D][nextion_upload:170]: Connected
[08:36:12][D][nextion_upload:176]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[08:36:12][D][nextion_upload:210]: Updating Nextion ...
[08:36:12][D][nextion_upload:236]: Waiting for upgrade response
[08:36:14][D][nextion_upload:240]: Upgrade response is  0
[08:36:14][D][nextion_upload:249]: preparation for tft update failed 0 ""
[08:36:14][D][nextion_upload:312]: Restarting Nextion
[08:36:14][D][script.upload_tft:093]: Turn off Nextion
[08:36:14][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:36:14][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:36:14][D][script.upload_tft:070]: Wait 3 seconds
[08:36:17][D][script.upload_tft:096]: Turn on Nextion
[08:36:17][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:36:17][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:36:17][D][script.upload_tft:070]: Wait 10 seconds
[08:36:27][D][script.upload_tft:086]: Try #2
[08:36:27][D][script.nextion_status:2653]: Nextion status:
[08:36:27][D][script.nextion_status:2654]:   Is detected: False
[08:36:27][D][script.nextion_status:2655]:   Is setup:    False
[08:36:27][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive
[08:36:27][D][main:2562]: Exit reparse
[08:36:27][D][script.upload_tft:070]: Wait 2 seconds
[08:36:29][D][nextion_upload:170]: Connected
[08:36:29][D][nextion_upload:176]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[08:36:30][D][nextion_upload:210]: Updating Nextion ...
[08:36:30][D][nextion_upload:236]: Waiting for upgrade response
[08:36:32][D][nextion_upload:240]: Upgrade response is  0
[08:36:32][D][nextion_upload:249]: preparation for tft update failed 0 ""
[08:36:32][D][nextion_upload:312]: Restarting Nextion
[08:36:32][D][script.upload_tft:093]: Turn off Nextion
[08:36:32][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:36:32][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:36:32][D][script.upload_tft:070]: Wait 3 seconds
[08:36:35][D][script.upload_tft:096]: Turn on Nextion
[08:36:35][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:36:35][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:36:35][D][script.upload_tft:070]: Wait 10 seconds
[08:36:45][D][script.upload_tft:086]: Try #3
[08:36:45][D][script.nextion_status:2653]: Nextion status:
[08:36:45][D][script.nextion_status:2654]:   Is detected: False
[08:36:45][D][script.nextion_status:2655]:   Is setup:    False
[08:36:45][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive
[08:36:45][D][main:2562]: Exit reparse
[08:36:45][D][script.upload_tft:070]: Wait 2 seconds
[08:36:47][D][nextion_upload:170]: Connected
[08:36:47][D][nextion_upload:176]: Requesting URL: http://10.10.0.20:8123/local/nspanel_eu.tft
[08:36:47][D][nextion_upload:210]: Updating Nextion ...
[08:36:47][D][nextion_upload:236]: Waiting for upgrade response
[08:36:49][D][nextion_upload:240]: Upgrade response is  0
[08:36:49][D][nextion_upload:249]: preparation for tft update failed 0 ""
[08:36:49][D][nextion_upload:312]: Restarting Nextion
[08:36:49][D][script.upload_tft:093]: Turn off Nextion
[08:36:49][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:36:49][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:36:49][D][script.upload_tft:070]: Wait 3 seconds
[08:36:52][D][script.upload_tft:096]: Turn on Nextion
[08:36:52][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:36:52][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:36:52][D][script.upload_tft:070]: Wait 10 seconds
[08:37:02][E][script.upload_tft:100]: TFT upload failed.
[08:37:02][D][script.upload_tft:101]: Turn off Nextion
[08:37:02][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:37:02][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:37:02][D][script.upload_tft:070]: Wait 2 seconds
[08:37:04][D][script.upload_tft:104]: Turn on Nextion
[08:37:04][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:37:04][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:37:04][D][script.upload_tft:106]: Restarting esphome
[08:37:04][D][script.upload_tft:070]: Wait 1 seconds
[08:37:05][D][button:010]: 'nspanel Restart' Pressed.
[08:37:05][I][restart.button:012]: Restarting device...
[08:37:05][I][app:134]: Rebooting safely...
INFO Processing expected disconnect from ESPHome API for nspanel
WARNING Disconnected from API
INFO Successfully connected to nspanel in 3.223s
INFO Successful handshake with nspanel in 0.049s
[08:37:14][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[08:37:14][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:37:14][C][template.switch:057]:   Optimistic: YES
[08:37:14][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[08:37:14][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:37:14][C][template.switch:057]:   Optimistic: YES
[08:37:14][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[08:37:14][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:37:14][C][template.switch:057]:   Optimistic: YES
[08:37:14][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[08:37:14][C][template.switch:091]:   Restore Mode: always OFF
[08:37:14][C][template.switch:057]:   Optimistic: YES
[08:37:14][W][nextion:077]: Nextion is not connected! 
[08:37:14][C][rtttl:029]: Rtttl
[08:37:14][C][nextion:124]: Nextion:
[08:37:14][C][nextion:125]:   Device Model:     
[08:37:14][C][nextion:126]:   Firmware Version: 
[08:37:14][C][nextion:127]:   Serial Number:    
[08:37:14][C][nextion:128]:   Flash Size:       
[08:37:14][C][nextion:129]:   Wake On Touch:    True
[08:37:14][C][nextion:140]:   Start Up Page :      8
[08:37:14][C][restart.button:017]: Restart Button 'nspanel Restart'
[08:37:14][C][adc:097]: ADC Sensor 'ntc_source'
[08:37:14][C][adc:097]:   Device Class: 'voltage'
[08:37:14][C][adc:097]:   State Class: 'measurement'
[08:37:14][C][adc:097]:   Unit of Measurement: 'V'
[08:37:14][C][adc:097]:   Accuracy Decimals: 2
[08:37:14][C][adc:107]:   Pin: GPIO38
[08:37:14][C][adc:122]:  Attenuation: 11db
[08:37:14][C][adc:142]:   Update Interval: 60.0s
[08:37:14][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[08:37:14][C][resistance:010]:   State Class: 'measurement'
[08:37:14][C][resistance:010]:   Unit of Measurement: 'Ω'
[08:37:14][C][resistance:010]:   Accuracy Decimals: 1
[08:37:14][C][resistance:010]:   Icon: 'mdi:flash'
[08:37:14][C][resistance:011]:   Configuration: DOWNSTREAM
[08:37:14][C][resistance:012]:   Resistor: 11200.00Ω
[08:37:14][C][resistance:013]:   Reference Voltage: 3.3V
[08:37:14][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[08:37:14][C][ntc:014]:   Device Class: 'temperature'
[08:37:14][C][ntc:014]:   State Class: 'measurement'
[08:37:14][C][ntc:014]:   Unit of Measurement: '°C'
[08:37:14][C][ntc:014]:   Accuracy Decimals: 1
[08:37:14][C][homeassistant.time:010]: Home Assistant Time:
[08:37:14][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[08:37:14][C][status:034]: Status Binary Sensor 'nspanel Status'
[08:37:14][C][status:034]:   Device Class: 'connectivity'
[08:37:14][W][nextion:077]: Nextion is not connected! 
[08:37:15][C][mdns:115]: mDNS:
[08:37:15][C][mdns:116]:   Hostname: nspanel
[08:37:15][C][ota:097]: Over-The-Air Updates:
[08:37:15][C][ota:098]:   Address: nspanel.local:3232
[08:37:15][C][ota:101]:   Using Password.
[08:37:15][C][api:139]: API Server:
[08:37:15][C][api:140]:   Address: nspanel.local:6053
[08:37:15][C][api:144]:   Using noise encryption: NO
[08:37:15][W][nextion:077]: Nextion is not connected! 
[08:37:15][W][nextion:077]: Nextion is not connected! 
[08:37:16][W][nextion:077]: Nextion is not connected! 
[08:37:17][W][nextion:077]: Nextion is not connected! 
[08:37:17][W][nextion:077]: Nextion is not connected! 
[08:37:18][W][nextion:077]: Nextion is not connected! 
[08:37:18][W][nextion:077]: Nextion is not connected! 
[08:37:19][W][nextion:077]: Nextion is not connected! 
[08:37:19][W][nextion:077]: Nextion is not connected! 
[08:37:20][W][nextion:077]: Nextion is not connected! 
[08:37:20][W][nextion:077]: Nextion is not connected! 
[08:37:21][W][nextion:077]: Nextion is not connected! 
[08:37:21][W][nextion:077]: Nextion is not connected! 
[08:37:22][W][nextion:077]: Nextion is not connected! 
[08:37:22][W][nextion:077]: Nextion is not connected! 
[08:37:23][W][nextion:077]: Nextion is not connected! 
[08:37:24][W][nextion:077]: Nextion is not connected! 
[08:37:24][W][nextion:077]: Nextion is not connected! 
[08:37:25][W][nextion:077]: Nextion is not connected! 
[08:37:25][W][nextion:077]: Nextion is not connected! 
[08:37:26][W][nextion:077]: Nextion is not connected! 
[08:37:26][W][nextion:077]: Nextion is not connected! 
[08:37:27][W][nextion:077]: Nextion is not connected! 
[08:37:27][W][nextion:077]: Nextion is not connected! 
[08:37:28][W][nextion:077]: Nextion is not connected! 
[08:37:28][W][nextion:077]: Nextion is not connected! 
[08:37:29][W][nextion:077]: Nextion is not connected! 
[08:37:30][W][nextion:077]: Nextion is not connected! 
[08:37:30][W][nextion:077]: Nextion is not connected! 
[08:37:31][W][nextion:077]: Nextion is not connected! 
[08:37:31][W][nextion:077]: Nextion is not connected! 
[08:37:32][W][nextion:077]: Nextion is not connected! 
[08:37:32][W][nextion:077]: Nextion is not connected! 
[08:37:33][W][nextion:077]: Nextion is not connected! 
[08:37:33][W][nextion:077]: Nextion is not connected! 
[08:37:34][D][main:2562]: Exit reparse
[08:37:34][W][nextion:077]: Nextion is not connected! 
[08:37:34][W][nextion:077]: Nextion is not connected! 
[08:37:35][W][nextion:077]: Nextion is not connected! 
[08:37:35][W][nextion:077]: Nextion is not connected! 
[08:37:36][W][nextion:077]: Nextion is not connected! 
[08:37:37][W][nextion:077]: Nextion is not connected! 
[08:37:37][W][nextion:077]: Nextion is not connected! 
[08:37:38][W][nextion:077]: Nextion is not connected! 
[08:37:38][W][nextion:077]: Nextion is not connected! 
[08:37:39][W][nextion:077]: Nextion is not connected! 
[08:37:39][W][nextion:077]: Nextion is not connected! 
[08:37:40][W][nextion:077]: Nextion is not connected! 
[08:37:40][W][nextion:077]: Nextion is not connected! 
[08:37:41][W][nextion:077]: Nextion is not connected! 
[08:37:41][W][nextion:077]: Nextion is not connected! 
[08:37:42][W][nextion:077]: Nextion is not connected! 
[08:37:43][W][nextion:077]: Nextion is not connected! 
[08:37:43][W][nextion:077]: Nextion is not connected! 
[08:37:44][W][nextion:077]: Nextion is not connected! 
[08:37:44][W][nextion:077]: Nextion is not connected! 
[08:37:45][W][nextion:077]: Nextion is not connected! 
[08:37:45][W][nextion:077]: Nextion is not connected! 
[08:37:46][W][nextion:077]: Nextion is not connected! 
[08:37:46][W][nextion:077]: Nextion is not connected! 
[08:37:47][W][nextion:077]: Nextion is not connected! 
[08:37:47][W][nextion:077]: Nextion is not connected! 
[08:37:48][W][nextion:077]: Nextion is not connected! 
[08:37:48][W][nextion:077]: Nextion is not connected! 
[08:37:49][D][sensor:094]: 'ntc_source': Sending state 1.63000 V with 2 decimals of accuracy
[08:37:49][D][resistance:039]: 'resistance_sensor' - Resistance 10931.7Ω
[08:37:49][D][sensor:094]: 'resistance_sensor': Sending state 10931.73730 Ω with 1 decimals of accuracy
[08:37:49][D][ntc:026]: 'nspanel Temperature' - Temperature: 23.0°C
[08:37:49][D][sensor:094]: 'nspanel Temperature': Sending state 23.00855 °C with 1 decimals of accuracy
[08:37:49][W][nextion:077]: Nextion is not connected! 
[08:37:50][W][nextion:077]: Nextion is not connected! 
[08:37:50][W][nextion:077]: Nextion is not connected! 
[08:37:51][W][nextion:077]: Nextion is not connected! 
[08:37:51][W][nextion:077]: Nextion is not connected! 
[08:37:52][W][nextion:077]: Nextion is not connected! 
[08:37:52][W][nextion:077]: Nextion is not connected! 
[08:37:53][W][nextion:077]: Nextion is not connected! 
[08:37:53][W][nextion:077]: Nextion is not connected! 
[08:37:54][D][script.nextion_status:2653]: Nextion status:
[08:37:54][D][script.nextion_status:2654]:   Is detected: False
[08:37:54][D][script.nextion_status:2655]:   Is setup:    False
[08:37:54][E][on_boot:059]: No response from Nextion display
[08:37:54][D][on_boot:060]: Turn off Nextion
[08:37:54][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:37:54][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:37:54][D][on_boot:046]: Wait 2 seconds
[08:37:56][D][on_boot:063]: Turn on Nextion
[08:37:56][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:37:56][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:37:56][D][on_boot:046]: Wait 5 seconds
[08:38:01][D][script.nextion_status:2653]: Nextion status:
[08:38:01][D][script.nextion_status:2654]:   Is detected: False
[08:38:01][D][script.nextion_status:2655]:   Is setup:    False
[08:38:01][W][component:214]: Component esphome.coroutine took a long time for an operation (7.04 s).
[08:38:01][W][component:215]: Components should block for at most 20-30ms.
[08:38:01][W][nextion:077]: Nextion is not connected! 
[08:38:01][W][nextion:077]: Nextion is not connected! 
[08:38:02][W][nextion:077]: Nextion is not connected! 
[08:38:02][W][nextion:077]: Nextion is not connected! 
[08:38:02][W][component:214]: Component nextion.display took a long time for an operation (0.05 s).
[08:38:02][W][component:215]: Components should block for at most 20-30ms.
[08:38:03][W][nextion:077]: Nextion is not connected! 
[08:38:03][W][nextion:077]: Nextion is not connected! 
[08:38:04][W][nextion:077]: Nextion is not connected! 
[08:38:05][W][nextion:077]: Nextion is not connected! 
[08:38:05][W][nextion:077]: Nextion is not connected! 
[08:38:06][W][nextion:077]: Nextion is not connected! 
[08:38:06][W][nextion:077]: Nextion is not connected! 
[08:38:07][W][nextion:077]: Nextion is not connected! 
[08:38:07][W][nextion:077]: Nextion is not connected! 
[08:38:08][W][nextion:077]: Nextion is not connected! 
[08:38:08][W][nextion:077]: Nextion is not connected! 
[08:38:09][W][nextion:077]: Nextion is not connected! 
[08:38:09][W][nextion:077]: Nextion is not connected! 
[08:38:10][W][nextion:077]: Nextion is not connected! 
[08:38:10][W][nextion:077]: Nextion is not connected! 
[08:38:11][W][nextion:077]: Nextion is not connected! 
[08:38:12][W][nextion:077]: Nextion is not connected! 
[08:38:12][W][component:214]: Component nextion.display took a long time for an operation (0.05 s).
[08:38:12][W][component:215]: Components should block for at most 20-30ms.
[08:38:12][W][nextion:077]: Nextion is not connected! 
[08:38:13][W][nextion:077]: Nextion is not connected! 
[08:38:13][W][nextion:077]: Nextion is not connected! 
[08:38:14][W][nextion:077]: Nextion is not connected! 
[08:38:14][W][nextion:077]: Nextion is not connected! 
[08:38:15][W][nextion:077]: Nextion is not connected! 
[08:38:15][W][nextion:077]: Nextion is not connected! 
[08:38:16][W][nextion:077]: Nextion is not connected! 
[08:38:16][W][nextion:077]: Nextion is not connected! 
[08:38:17][W][nextion:077]: Nextion is not connected! 
[08:38:17][W][nextion:077]: Nextion is not connected! 
[08:38:18][W][nextion:077]: Nextion is not connected! 
[08:38:18][W][nextion:077]: Nextion is not connected! 
[08:38:19][W][nextion:077]: Nextion is not connected! 
[08:38:19][W][nextion:077]: Nextion is not connected! 
[08:38:20][W][nextion:077]: Nextion is not connected! 
[08:38:21][W][nextion:077]: Nextion is not connected! 
[08:38:21][D][script.nextion_status:2653]: Nextion status:
[08:38:21][D][script.nextion_status:2654]:   Is detected: False
[08:38:21][D][script.nextion_status:2655]:   Is setup:    False
[08:38:21][E][on_boot:076]: No response from Nextion display
[08:38:21][D][on_boot:078]: Finished
edwardtfn commented 6 months ago

Looks like you are not with the latest code. Could you please "Clean build files" and then install it to your panel again?

mathgoy commented 6 months ago

Something new happened after I flashed it:


[08:58:30][I][app:102]: ESPHome version 2023.11.6 compiled on Nov 30 2023, 08:57:44
[08:58:30][C][wifi:559]: WiFi:
[08:58:30][C][wifi:391]:   Local MAC: C4:DD:57:E8:13:D8
[08:58:30][C][wifi:396]:   SSID: [redacted]
[08:58:30][C][wifi:397]:   IP Address: 10.10.0.109
[08:58:30][C][wifi:399]:   BSSID: [redacted]
[08:58:30][C][wifi:400]:   Hostname: 'nspanel'
[08:58:30][C][wifi:402]:   Signal strength: -71 dB ▂▄▆█
[08:58:30][C][wifi:406]:   Channel: 1
[08:58:30][C][wifi:407]:   Subnet: 255.255.255.0
[08:58:30][C][wifi:408]:   Gateway: 10.10.0.1
[08:58:30][C][wifi:409]:   DNS1: 9.9.9.9
[08:58:30][C][wifi:410]:   DNS2: 1.1.1.1
[08:58:30][C][logger:416]: Logger:
[08:58:30][C][logger:417]:   Level: DEBUG
[08:58:30][C][logger:418]:   Log Baud Rate: 0
[08:58:30][C][uart.arduino_esp32:124]: UART Bus 0:
[08:58:30][C][uart.arduino_esp32:125]:   TX Pin: GPIO16
[08:58:30][C][uart.arduino_esp32:126]:   RX Pin: GPIO17
[08:58:30][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[08:58:30][C][uart.arduino_esp32:130]:   Baud Rate: 115200 baud
[08:58:30][C][uart.arduino_esp32:131]:   Data Bits: 8
[08:58:30][C][uart.arduino_esp32:132]:   Parity: NONE
[08:58:30][C][uart.arduino_esp32:133]:   Stop bits: 1
[08:58:30][W][nextion:077]: Nextion is not connected! 
[08:58:30][C][ledc.output:164]: LEDC Output:
[08:58:30][C][ledc.output:165]:   Pin GPIO21
[08:58:30][C][ledc.output:166]:   LEDC Channel: 0
[08:58:30][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[08:58:30][C][ledc.output:168]:   Bit depth: 16
[08:58:30][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display'
[08:58:30][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[08:58:30][C][template.number:050]: Template Number 'nspanel Display Brightness'
[08:58:30][C][template.number:050]:   Unit of Measurement: '%'
[08:58:30][C][template.number:051]:   Optimistic: YES
[08:58:30][C][template.number:052]:   Update Interval: 60.0s
[08:58:30][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown'
[08:58:30][C][template.number:050]:   Unit of Measurement: '%'
[08:58:30][C][template.number:051]:   Optimistic: YES
[08:58:30][C][template.number:052]:   Update Interval: 60.0s
[08:58:30][C][template.number:050]: Template Number 'nspanel Temperature Correction'
[08:58:30][C][template.number:050]:   Unit of Measurement: '°C'
[08:58:30][C][template.number:051]:   Optimistic: YES
[08:58:30][C][template.number:052]:   Update Interval: 60.0s
[08:58:30][C][template.number:050]: Template Number 'nspanel Timeout Page'
[08:58:30][C][template.number:050]:   Icon: 'mdi:timer'
[08:58:30][C][template.number:050]:   Unit of Measurement: 's'
[08:58:30][C][template.number:051]:   Optimistic: YES
[08:58:30][C][template.number:052]:   Update Interval: 60.0s
[08:58:30][C][template.number:050]: Template Number 'nspanel Timeout Dimming'
[08:58:30][C][template.number:050]:   Icon: 'mdi:timer'
[08:58:30][C][template.number:050]:   Unit of Measurement: 's'
[08:58:30][C][template.number:051]:   Optimistic: YES
[08:58:30][C][template.number:052]:   Update Interval: 60.0s
[08:58:30][C][template.number:050]: Template Number 'nspanel Timeout Sleep'
[08:58:30][C][template.number:050]:   Icon: 'mdi:timer'
[08:58:30][C][template.number:050]:   Unit of Measurement: 's'
[08:58:30][C][template.number:051]:   Optimistic: YES
[08:58:30][C][template.number:052]:   Update Interval: 60.0s
[08:58:30][C][template.select:065]: Template Select 'nspanel Wake-up page'
[08:58:30][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[08:58:30][C][template.select:066]:   Update Interval: 60.0s
[08:58:30][C][template.select:069]:   Optimistic: YES
[08:58:30][C][template.select:070]:   Initial Option: home
[08:58:30][C][template.select:071]:   Restore Value: YES
[08:58:30][C][template.text_sensor:020]: Template Sensor 'nspanel Detailed Entity'
[08:58:30][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[08:58:30][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label'
[08:58:30][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text'
[08:58:30][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1'
[08:58:30][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[08:58:30][C][switch.gpio:031]:   Pin: GPIO22
[08:58:30][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2'
[08:58:30][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[08:58:30][C][switch.gpio:031]:   Pin: GPIO19
[08:58:30][W][nextion:077]: Nextion is not connected! 
[08:58:31][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button'
[08:58:31][C][gpio.binary_sensor:016]:   Pin: GPIO14
[08:58:31][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button'
[08:58:31][C][gpio.binary_sensor:016]:   Pin: GPIO27
[08:58:31][C][switch.gpio:068]: GPIO Switch 'nspanel Nextion display - Power'
[08:58:31][C][switch.gpio:091]:   Restore Mode: always ON
[08:58:31][C][switch.gpio:031]:   Pin: GPIO4
[08:58:31][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[08:58:31][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:58:31][C][template.switch:057]:   Optimistic: YES
[08:58:31][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[08:58:31][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:58:31][C][template.switch:057]:   Optimistic: YES
[08:58:31][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[08:58:31][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[08:58:31][C][template.switch:057]:   Optimistic: YES
[08:58:31][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[08:58:31][C][template.switch:091]:   Restore Mode: always OFF
[08:58:31][C][template.switch:057]:   Optimistic: YES
[08:58:31][W][nextion:077]: Nextion is not connected! 
[08:58:31][C][rtttl:029]: Rtttl
[08:58:31][C][nextion:123]: Nextion:
[08:58:31][C][nextion:124]:   Device Model:     
[08:58:31][C][nextion:125]:   Firmware Version: 
[08:58:31][C][nextion:126]:   Serial Number:    
[08:58:31][C][nextion:127]:   Flash Size:       
[08:58:31][C][nextion:128]:   Wake On Touch:    True
[08:58:31][C][nextion:139]:   Start Up Page :      8
[08:58:31][C][restart.button:017]: Restart Button 'nspanel Restart'
[08:58:31][C][adc:097]: ADC Sensor 'ntc_source'
[08:58:31][C][adc:097]:   Device Class: 'voltage'
[08:58:31][C][adc:097]:   State Class: 'measurement'
[08:58:31][C][adc:097]:   Unit of Measurement: 'V'
[08:58:31][C][adc:097]:   Accuracy Decimals: 2
[08:58:31][C][adc:107]:   Pin: GPIO38
[08:58:31][C][adc:122]:  Attenuation: 11db
[08:58:31][C][adc:142]:   Update Interval: 60.0s
[08:58:31][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[08:58:31][C][resistance:010]:   State Class: 'measurement'
[08:58:31][C][resistance:010]:   Unit of Measurement: 'Ω'
[08:58:31][C][resistance:010]:   Accuracy Decimals: 1
[08:58:31][C][resistance:010]:   Icon: 'mdi:flash'
[08:58:31][C][resistance:011]:   Configuration: DOWNSTREAM
[08:58:31][C][resistance:012]:   Resistor: 11200.00Ω
[08:58:31][C][resistance:013]:   Reference Voltage: 3.3V
[08:58:31][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[08:58:31][C][ntc:014]:   Device Class: 'temperature'
[08:58:31][C][ntc:014]:   State Class: 'measurement'
[08:58:31][C][ntc:014]:   Unit of Measurement: '°C'
[08:58:31][C][ntc:014]:   Accuracy Decimals: 1
[08:58:31][C][homeassistant.time:010]: Home Assistant Time:
[08:58:31][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[08:58:31][C][status:034]: Status Binary Sensor 'nspanel Status'
[08:58:31][C][status:034]:   Device Class: 'connectivity'
[08:58:31][W][nextion:077]: Nextion is not connected! 
[08:58:32][C][mdns:115]: mDNS:
[08:58:32][C][mdns:116]:   Hostname: nspanel
[08:58:32][C][ota:097]: Over-The-Air Updates:
[08:58:32][C][ota:098]:   Address: nspanel.local:3232
[08:58:32][C][ota:101]:   Using Password.
[08:58:32][C][api:139]: API Server:
[08:58:32][C][api:140]:   Address: nspanel.local:6053
[08:58:32][C][api:144]:   Using noise encryption: NO
[08:58:32][C][http_request:013]: HTTP Request:
[08:58:32][C][http_request:014]:   Timeout: 5000ms
[08:58:32][C][http_request:015]:   User-Agent: ESPHome
[08:58:32][C][http_request:016]:   Follow Redirects: 1
[08:58:32][C][http_request:017]:   Redirect limit: 3
[08:58:32][W][nextion:077]: Nextion is not connected! 
[08:58:32][W][nextion:077]: Nextion is not connected! 
[08:58:33][W][nextion:077]: Nextion is not connected! 
[08:58:33][W][nextion:077]: Nextion is not connected! 
[08:58:34][W][nextion:077]: Nextion is not connected! 
[08:58:34][W][nextion:077]: Nextion is not connected! 
[08:58:35][W][nextion:077]: Nextion is not connected! 
[08:58:36][W][nextion:077]: Nextion is not connected! 
[08:58:36][W][nextion:077]: Nextion is not connected! 
[08:58:37][W][nextion:077]: Nextion is not connected! 
[08:58:37][W][nextion:077]: Nextion is not connected! 
[08:58:38][W][nextion:077]: Nextion is not connected! 
[08:58:38][W][nextion:077]: Nextion is not connected! 
[08:58:39][W][nextion:077]: Nextion is not connected! 
[08:58:39][W][nextion:077]: Nextion is not connected! 
[08:58:40][W][nextion:077]: Nextion is not connected! 
[08:58:40][W][nextion:077]: Nextion is not connected! 
[08:58:41][W][nextion:077]: Nextion is not connected! 
[08:58:41][W][nextion:077]: Nextion is not connected! 
[08:58:42][W][nextion:077]: Nextion is not connected! 
[08:58:43][W][nextion:077]: Nextion is not connected! 
[08:58:43][W][nextion:077]: Nextion is not connected! 
[08:58:44][W][nextion:077]: Nextion is not connected! 
[08:58:44][W][nextion:077]: Nextion is not connected! 
[08:58:45][W][nextion:077]: Nextion is not connected! 
[08:58:45][W][nextion:077]: Nextion is not connected! 
[08:58:46][W][nextion:077]: Nextion is not connected! 
[08:58:46][W][nextion:077]: Nextion is not connected! 
[08:58:47][D][main:2562]: Exit reparse
[08:58:47][W][nextion:077]: Nextion is not connected! 
[08:58:47][W][nextion:077]: Nextion is not connected! 
[08:58:48][W][nextion:077]: Nextion is not connected! 
[08:58:48][W][nextion:077]: Nextion is not connected! 
[08:58:49][W][nextion:077]: Nextion is not connected! 
[08:58:49][W][nextion:077]: Nextion is not connected! 
[08:58:50][W][nextion:077]: Nextion is not connected! 
[08:58:51][W][nextion:077]: Nextion is not connected! 
[08:58:51][W][nextion:077]: Nextion is not connected! 
[08:58:52][W][nextion:077]: Nextion is not connected! 
[08:58:52][W][nextion:077]: Nextion is not connected! 
[08:58:53][W][nextion:077]: Nextion is not connected! 
[08:58:53][W][nextion:077]: Nextion is not connected! 
[08:58:54][W][nextion:077]: Nextion is not connected! 
[08:58:54][W][nextion:077]: Nextion is not connected! 
[08:58:55][W][nextion:077]: Nextion is not connected! 
[08:58:55][W][nextion:077]: Nextion is not connected! 
[08:58:56][W][nextion:077]: Nextion is not connected! 
[08:58:56][W][nextion:077]: Nextion is not connected! 
[08:58:57][W][nextion:077]: Nextion is not connected! 
[08:58:57][W][nextion:077]: Nextion is not connected! 
[08:58:58][W][nextion:077]: Nextion is not connected! 
[08:58:59][W][nextion:077]: Nextion is not connected! 
[08:58:59][W][nextion:077]: Nextion is not connected! 
[08:59:00][W][nextion:077]: Nextion is not connected! 
[08:59:00][W][nextion:077]: Nextion is not connected! 
[08:59:01][W][nextion:077]: Nextion is not connected! 
[08:59:01][W][nextion:077]: Nextion is not connected! 
[08:59:02][W][nextion:077]: Nextion is not connected! 
[08:59:02][W][nextion:077]: Nextion is not connected! 
[08:59:03][W][nextion:077]: Nextion is not connected! 
[08:59:03][W][nextion:077]: Nextion is not connected! 
[08:59:04][W][nextion:077]: Nextion is not connected! 
[08:59:04][W][nextion:077]: Nextion is not connected! 
[08:59:05][W][nextion:077]: Nextion is not connected! 
[08:59:06][W][nextion:077]: Nextion is not connected! 
[08:59:06][W][nextion:077]: Nextion is not connected! 
[08:59:07][W][nextion:077]: Nextion is not connected! 
[08:59:07][D][script.nextion_status:2653]: Nextion status:
[08:59:07][D][script.nextion_status:2655]:   Is setup:    False
[08:59:07][E][on_boot:059]: No response from Nextion display
[08:59:07][D][on_boot:060]: Turn off Nextion
[08:59:07][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[08:59:07][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[08:59:07][D][on_boot:046]: Wait 2 seconds
[08:59:09][D][on_boot:063]: Turn on Nextion
[08:59:09][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[08:59:09][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[08:59:09][D][on_boot:046]: Wait 5 seconds
[08:59:14][D][script.nextion_status:2653]: Nextion status:
[08:59:14][D][script.nextion_status:2655]:   Is setup:    False
[08:59:14][W][component:214]: Component esphome.coroutine took a long time for an operation (7.05 s).
[08:59:14][W][component:215]: Components should block for at most 20-30ms.
[08:59:14][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:14][W][nextion:077]: Nextion is not connected! 
[08:59:14][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:14][W][component:215]: Components should block for at most 20-30ms.
[08:59:15][D][sensor:094]: 'ntc_source': Sending state 1.62000 V with 2 decimals of accuracy
[08:59:15][D][resistance:039]: 'resistance_sensor' - Resistance 10800.0Ω
[08:59:15][D][sensor:094]: 'resistance_sensor': Sending state 10800.00000 Ω with 1 decimals of accuracy
[08:59:15][D][ntc:026]: 'nspanel Temperature' - Temperature: 23.3°C
[08:59:15][D][sensor:094]: 'nspanel Temperature': Sending state 23.27802 °C with 1 decimals of accuracy
[08:59:15][W][nextion:077]: Nextion is not connected! 
[08:59:15][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:15][W][nextion:077]: Nextion is not connected! 
[08:59:15][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:15][W][component:215]: Components should block for at most 20-30ms.
[08:59:16][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:16][W][nextion:077]: Nextion is not connected! 
[08:59:16][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:16][W][component:215]: Components should block for at most 20-30ms.
[08:59:17][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:17][W][nextion:077]: Nextion is not connected! 
[08:59:17][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:17][W][component:215]: Components should block for at most 20-30ms.
[08:59:17][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:17][W][nextion:077]: Nextion is not connected! 
[08:59:17][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:17][W][component:215]: Components should block for at most 20-30ms.
[08:59:18][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:18][W][nextion:077]: Nextion is not connected! 
[08:59:18][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:18][W][component:215]: Components should block for at most 20-30ms.
[08:59:19][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:19][W][nextion:077]: Nextion is not connected! 
[08:59:19][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:19][W][component:215]: Components should block for at most 20-30ms.
[08:59:19][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:19][W][nextion:077]: Nextion is not connected! 
[08:59:19][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:19][W][component:215]: Components should block for at most 20-30ms.
[08:59:20][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:20][W][nextion:077]: Nextion is not connected! 
[08:59:20][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:20][W][component:215]: Components should block for at most 20-30ms.
[08:59:21][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:21][W][nextion:077]: Nextion is not connected! 
[08:59:21][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:21][W][component:215]: Components should block for at most 20-30ms.
[08:59:21][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:21][W][nextion:077]: Nextion is not connected! 
[08:59:21][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:21][W][component:215]: Components should block for at most 20-30ms.
[08:59:22][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:22][W][nextion:077]: Nextion is not connected! 
[08:59:22][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:22][W][component:215]: Components should block for at most 20-30ms.
[08:59:23][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:23][W][nextion:077]: Nextion is not connected! 
[08:59:23][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:23][W][component:215]: Components should block for at most 20-30ms.
[08:59:23][W][nextion:077]: Nextion is not connected! 
[08:59:24][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:24][W][nextion:077]: Nextion is not connected! 
[08:59:24][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:24][W][component:215]: Components should block for at most 20-30ms.
[08:59:24][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:24][W][nextion:077]: Nextion is not connected! 
[08:59:24][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:24][W][component:215]: Components should block for at most 20-30ms.
[08:59:25][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:25][W][nextion:077]: Nextion is not connected! 
[08:59:25][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:25][W][component:215]: Components should block for at most 20-30ms.
[08:59:26][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:26][W][nextion:077]: Nextion is not connected! 
[08:59:26][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:26][W][component:215]: Components should block for at most 20-30ms.
[08:59:26][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:26][W][nextion:077]: Nextion is not connected! 
[08:59:26][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:26][W][component:215]: Components should block for at most 20-30ms.
[08:59:27][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:27][W][nextion:077]: Nextion is not connected! 
[08:59:27][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:27][W][component:215]: Components should block for at most 20-30ms.
[08:59:28][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:28][W][nextion:077]: Nextion is not connected! 
[08:59:28][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:28][W][component:215]: Components should block for at most 20-30ms.
[08:59:28][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:28][W][nextion:077]: Nextion is not connected! 
[08:59:28][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:28][W][component:215]: Components should block for at most 20-30ms.
[08:59:29][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:29][W][nextion:077]: Nextion is not connected! 
[08:59:29][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:29][W][component:215]: Components should block for at most 20-30ms.
[08:59:30][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:30][W][nextion:077]: Nextion is not connected! 
[08:59:30][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:30][W][component:215]: Components should block for at most 20-30ms.
[08:59:30][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:30][W][nextion:077]: Nextion is not connected! 
[08:59:30][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:30][W][component:215]: Components should block for at most 20-30ms.
[08:59:31][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:31][W][nextion:077]: Nextion is not connected! 
[08:59:31][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:31][W][component:215]: Components should block for at most 20-30ms.
[08:59:31][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:31][W][nextion:077]: Nextion is not connected! 
[08:59:31][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:31][W][component:215]: Components should block for at most 20-30ms.
[08:59:32][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:32][W][nextion:077]: Nextion is not connected! 
[08:59:32][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:32][W][component:215]: Components should block for at most 20-30ms.
[08:59:33][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:33][W][nextion:077]: Nextion is not connected! 
[08:59:33][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:33][W][component:215]: Components should block for at most 20-30ms.
[08:59:33][E][uart:015]: Reading from UART timed out at byte 0!
[08:59:33][W][nextion:077]: Nextion is not connected! 
[08:59:33][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[08:59:33][W][component:215]: Components should block for at most 20-30ms.
[08:59:34][D][script.nextion_status:2653]: Nextion status:
[08:59:34][D][script.nextion_status:2655]:   Is setup:    False
[08:59:34][E][on_boot:076]: No response from Nextion display
[08:59:34][D][on_boot:078]: Finished
[08:59:34][E][uart:015]: Reading from UART timed out at byte 0!