Blackymas / NSPanel_HA_Blueprint

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

TFT Update Failed #1406

Closed MKme closed 10 months ago

MKme commented 10 months ago

Well I finally installed my second panel which was working fine in early Nov but after update I cant connect to the TFT. Followed the guide for everything that you need to know, tried all the tricks in recent closed issues (I think), swapped to ESP-IDF, reimported, power cycled, tried beta, tried the older branch mentioned in closed issue, etc etc. Havent found the trick yet, just refuses to make any ack of the update attempts. Triple verified the file size, location, tried blank tft with triple verify size and location. Both act the same like the tft simply isnt connected but it it showing init screen just fine.

Thanks very much in advance. Tearing my hair out.

image

esp32dev by Espressif Firmware: 2023.11.6 (Dec 9 2023, 21:03:45)

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

  nextion_update_url: "http://192.168.0.53:8123/local/nspanel_us.tft"
  #nextion_update_url: "http://192.168.0.53:8123/local/blank.tft"
   # https://github.com/Blackymas/NSPanel_HA_Blueprint/blob/main/nspanel_us.tft

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

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

# Enable Home Assistant API
api:
  encryption:
    key: "redact"

ota:
  password: "redact"

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
INFO ESPHome 2023.11.6
INFO Reading configuration /config/esphome/nspanel.yaml...
INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main
INFO Detected timezone 'America/Toronto'
INFO Starting log output from nspanel.local using esphome API
INFO Successfully connected to nspanel in 0.205s
INFO Successful handshake with nspanel in 0.216s
[21:08:52][I][app:102]: ESPHome version 2023.11.6 compiled on Dec  9 2023, 21:03:45
[21:08:52][C][wifi:559]: WiFi:
[21:08:52][C][wifi:391]:   Local MAC: C4:DD:57:EA:C8:0C
[21:08:52][C][wifi:396]:   SSID: [redacted]
[21:08:52][C][wifi:397]:   IP Address: 192.168.0.228
[21:08:52][C][wifi:399]:   BSSID: [redacted]
[21:08:52][C][wifi:400]:   Hostname: 'nspanel'
[21:08:52][C][wifi:402]:   Signal strength: -38 dB ▂▄▆█
[21:08:52][C][wifi:406]:   Channel: 7
[21:08:52][C][wifi:407]:   Subnet: 255.255.255.0
[21:08:52][C][wifi:408]:   Gateway: 192.168.0.1
[21:08:52][C][wifi:409]:   DNS1: 192.168.0.1
[21:08:52][C][wifi:410]:   DNS2: 0.0.0.0
[21:08:52][C][logger:416]: Logger:
[21:08:52][C][logger:417]:   Level: DEBUG
[21:08:52][C][logger:418]:   Log Baud Rate: 0
[21:08:52][C][logger:420]:   Hardware UART: UART0
[21:08:52][C][uart.arduino_esp32:124]: UART Bus 0:
[21:08:52][C][uart.arduino_esp32:125]:   TX Pin: GPIO16
[21:08:52][C][uart.arduino_esp32:126]:   RX Pin: GPIO17
[21:08:52][C][uart.arduino_esp32:128]:   RX Buffer Size: 256
[21:08:52][C][uart.arduino_esp32:130]:   Baud Rate: 115200 baud
[21:08:52][C][uart.arduino_esp32:131]:   Data Bits: 8
[21:08:52][C][uart.arduino_esp32:132]:   Parity: NONE
[21:08:52][C][uart.arduino_esp32:133]:   Stop bits: 1
[21:08:52][C][ledc.output:164]: LEDC Output:
[21:08:52][C][ledc.output:165]:   Pin GPIO21
[21:08:52][C][ledc.output:166]:   LEDC Channel: 0
[21:08:52][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[21:08:52][C][ledc.output:168]:   Bit depth: 16
[21:08:52][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display'
[21:08:52][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[21:08:52][W][nextion:077]: Nextion is not connected! 
[21:08:52][C][template.number:050]: Template Number 'nspanel Display Brightness'
[21:08:52][C][template.number:050]: Template Number 'nspanel Timeout Dimming'
[21:08:52][C][template.number:050]:   Icon: 'mdi:timer'
[21:08:52][C][template.number:050]:   Unit of Measurement: 's'
[21:08:52][C][template.number:051]:   Optimistic: YES
[21:08:52][C][template.number:052]:   Update Interval: 60.0s
[21:08:52][C][template.number:050]: Template Number 'nspanel Timeout Sleep'
[21:08:52][C][template.number:050]:   Icon: 'mdi:timer'
[21:08:52][C][template.number:050]:   Unit of Measurement: 's'
[21:08:52][C][template.number:051]:   Optimistic: YES
[21:08:52][C][template.number:052]:   Update Interval: 60.0s
[21:08:52][C][template.select:065]: Template Select 'nspanel Wake-up page'
[21:08:52][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[21:08:53][C][template.select:066]:   Update Interval: 60.0s
[21:08:53][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:53][W][nextion:077]: Nextion is not connected! 
[21:08:53][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:53][W][component:215]: Components should block for at most 20-30ms.
[21:08:53][D][api:102]: Accepted 192.168.0.53
[21:08:53][D][api.connection:1089]: Home Assistant 2023.12.1 (192.168.0.53): Connected successfully
[21:08:53][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button'
[21:08:53][C][gpio.binary_sensor:016]:   Pin: GPIO14
[21:08:53][D][time:045]: Synchronized time: 2023-12-09 21:08:53
[21:08:53][D][main:090]: System clock synchronized
[21:08:53][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button'
[21:08:53][C][gpio.binary_sensor:016]:   Pin: GPIO27
[21:08:53][C][switch.gpio:068]: GPIO Switch 'nspanel Nextion display - Power'
[21:08:53][C][switch.gpio:091]:   Restore Mode: always ON
[21:08:53][C][switch.gpio:031]:   Pin: GPIO4
[21:08:53][C][template.switch:068]: Template Switch 'nspanel Notification sound'
[21:08:53][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[21:08:53][C][template.switch:057]:   Optimistic: YES
[21:08:53][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local'
[21:08:53][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[21:08:53][C][template.switch:057]:   Optimistic: YES
[21:08:53][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local'
[21:08:53][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[21:08:53][C][template.switch:057]:   Optimistic: YES
[21:08:53][C][template.switch:068]: Template Switch 'nspanel Notification unread'
[21:08:53][C][template.switch:091]:   Restore Mode: always OFF
[21:08:53][C][template.switch:057]:   Optimistic: YES
[21:08:53][C][rtttl:029]: Rtttl
[21:08:53][C][nextion:123]: Nextion:
[21:08:53][C][nextion:124]:   Device Model:     
[21:08:53][C][nextion:125]:   Firmware Version: 
[21:08:53][C][nextion:126]:   Serial Number:    
[21:08:53][C][nextion:127]:   Flash Size:       
[21:08:53][C][nextion:128]:   Wake On Touch:    True
[21:08:53][C][nextion:139]:   Start Up Page :      8
[21:08:53][C][restart.button:017]: Restart Button 'nspanel Restart'
[21:08:53][C][adc:097]: ADC Sensor 'ntc_source'
[21:08:53][C][adc:097]:   Device Class: 'voltage'
[21:08:53][C][adc:097]:   State Class: 'measurement'
[21:08:53][C][adc:097]:   Unit of Measurement: 'V'
[21:08:53][C][adc:097]:   Accuracy Decimals: 2
[21:08:53][C][adc:107]:   Pin: GPIO38
[21:08:53][C][adc:122]:  Attenuation: 11db
[21:08:53][C][adc:142]:   Update Interval: 60.0s
[21:08:53][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[21:08:53][C][resistance:010]:   State Class: 'measurement'
[21:08:53][C][resistance:010]:   Unit of Measurement: 'Ω'
[21:08:53][C][resistance:010]:   Accuracy Decimals: 1
[21:08:53][C][resistance:010]:   Icon: 'mdi:flash'
[21:08:53][C][resistance:011]:   Configuration: DOWNSTREAM
[21:08:53][C][resistance:012]:   Resistor: 11200.00Ω
[21:08:53][C][resistance:013]:   Reference Voltage: 3.3V
[21:08:54][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:54][W][nextion:077]: Nextion is not connected! 
[21:08:54][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:54][W][component:215]: Components should block for at most 20-30ms.
[21:08:54][C][ntc:014]: NTC Sensor 'nspanel Temperature'
[21:08:54][C][ntc:014]:   Device Class: 'temperature'
[21:08:54][C][ntc:014]:   State Class: 'measurement'
[21:08:54][C][ntc:014]:   Unit of Measurement: '°C'
[21:08:54][C][ntc:014]:   Accuracy Decimals: 1
[21:08:54][C][homeassistant.time:010]: Home Assistant Time:
[21:08:54][C][homeassistant.time:011]:   Timezone: 'EST5EDT,M3.2.0,M11.1.0'
[21:08:54][C][status:034]: Status Binary Sensor 'nspanel Status'
[21:08:54][C][status:034]:   Device Class: 'connectivity'
[21:08:54][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:54][W][nextion:077]: Nextion is not connected! 
[21:08:54][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:54][W][component:215]: Components should block for at most 20-30ms.
[21:08:54][C][mdns:115]: mDNS:
[21:08:54][C][mdns:116]:   Hostname: nspanel
[21:08:54][C][ota:097]: Over-The-Air Updates:
[21:08:54][C][ota:098]:   Address: nspanel.local:3232
[21:08:54][C][ota:101]:   Using Password.
[21:08:54][C][api:139]: API Server:
[21:08:54][C][api:140]:   Address: nspanel.local:6053
[21:08:54][C][api:142]:   Using noise encryption: YES
[21:08:54][C][http_request:013]: HTTP Request:
[21:08:54][C][http_request:014]:   Timeout: 5000ms
[21:08:54][C][http_request:015]:   User-Agent: ESPHome
[21:08:54][C][http_request:016]:   Follow Redirects: 1
[21:08:54][C][http_request:017]:   Redirect limit: 3
[21:08:55][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:55][W][nextion:077]: Nextion is not connected! 
[21:08:55][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:55][W][component:215]: Components should block for at most 20-30ms.
[21:08:55][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:55][W][nextion:077]: Nextion is not connected! 
[21:08:55][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:55][W][component:215]: Components should block for at most 20-30ms.
[21:08:56][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:56][W][nextion:077]: Nextion is not connected! 
[21:08:56][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:56][W][component:215]: Components should block for at most 20-30ms.
[21:08:57][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:57][W][nextion:077]: Nextion is not connected! 
[21:08:57][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:57][W][component:215]: Components should block for at most 20-30ms.
[21:08:57][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:57][W][nextion:077]: Nextion is not connected! 
[21:08:57][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:57][W][component:215]: Components should block for at most 20-30ms.
[21:08:58][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:58][W][nextion:077]: Nextion is not connected! 
[21:08:58][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:58][W][component:215]: Components should block for at most 20-30ms.
[21:08:59][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:59][W][nextion:077]: Nextion is not connected! 
[21:08:59][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:59][W][component:215]: Components should block for at most 20-30ms.
[21:08:59][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:59][W][nextion:077]: Nextion is not connected! 
[21:08:59][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:08:59][W][component:215]: Components should block for at most 20-30ms.
[21:09:00][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:00][W][nextion:077]: Nextion is not connected! 
[21:09:00][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:00][W][component:215]: Components should block for at most 20-30ms.
[21:09:01][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:01][W][nextion:077]: Nextion is not connected! 
[21:09:01][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:01][W][component:215]: Components should block for at most 20-30ms.
[21:09:01][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:01][W][nextion:077]: Nextion is not connected! 
[21:09:01][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:01][W][component:215]: Components should block for at most 20-30ms.
[21:09:02][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:02][W][nextion:077]: Nextion is not connected! 
[21:09:02][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:02][W][component:215]: Components should block for at most 20-30ms.
[21:09:03][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:03][W][nextion:077]: Nextion is not connected! 
[21:09:03][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:03][W][component:215]: Components should block for at most 20-30ms.
[21:09:03][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:03][W][nextion:077]: Nextion is not connected! 
[21:09:03][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:03][W][component:215]: Components should block for at most 20-30ms.
[21:09:04][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:04][W][nextion:077]: Nextion is not connected! 
[21:09:04][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:04][W][component:215]: Components should block for at most 20-30ms.
[21:09:04][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:04][W][nextion:077]: Nextion is not connected! 
[21:09:04][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:04][W][component:215]: Components should block for at most 20-30ms.
[21:09:05][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:05][W][nextion:077]: Nextion is not connected! 
[21:09:05][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:05][W][component:215]: Components should block for at most 20-30ms.
[21:09:06][E][uart:015]: Reading from UART timed out at byte 0!
[21:09:06][W][nextion:077]: Nextion is not connected! 
[21:09:06][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:09:06][W][component:215]: Components should block for at most 20-30ms.
[21:09:06][D][button:010]: 'nspanel Update TFT display' Pressed.
[21:09:06][D][main:733]: Button pressed: Update TFT display
[21:09:06][D][script.upload_tft:141]: Starting...
[21:09:06][D][script.stop_all:2735]: Stopping scripts...
[21:09:06][D][script.stop_all:2784]: Finished
[21:09:06][D][script.upload_tft:799]: Try #1 at 921600 bps
[21:09:06][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested
[21:09:06][D][script.upload_tft.upload_tft_arduino:402]:   url: http://192.168.0.53:8123/local/nspanel_us.tft
[21:09:06][D][script.upload_tft.upload_tft_arduino:403]:   baud_rate: 921600
[21:09:06][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive
[21:09:06][D][main:2591]: Exit reparse
[21:09:06][D][script.upload_tft:144]: Wait 5 seconds
[21:09:11][D][script.upload_tft.upload_tft_arduino:434]: Connected
[21:09:11][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.53:8123/local/nspanel_us.tft
[21:09:11][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion
[21:09:11][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 0
[21:09:11][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 7255776,921600,1
[21:09:11][C][uart.arduino_esp32:077]: Setting up UART...
[21:09:11][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response
[21:09:16][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is []
[21:09:16][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 0 ""
[21:09:16][D][script.upload_tft.upload_end_:274]: Completed: 0
[21:09:18][D][script.upload_tft.upload_end_:284]: Nextion TFT upload will try again
[21:09:18][W][script.upload_tft:805]: Try #1 failed
[21:09:18][D][script.upload_tft:144]: Wait 5 seconds
[21:09:23][D][script.upload_tft:808]: Try #2 at 921600 bps
[21:09:23][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested
[21:09:23][D][script.upload_tft.upload_tft_arduino:402]:   url: http://192.168.0.53:8123/local/nspanel_us.tft
[21:09:23][D][script.upload_tft.upload_tft_arduino:403]:   baud_rate: 921600
[21:09:23][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive
[21:09:23][D][main:2591]: Exit reparse
[21:09:23][D][script.upload_tft:144]: Wait 5 seconds
[21:09:28][D][script.upload_tft.upload_tft_arduino:434]: Connected
[21:09:28][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.53:8123/local/nspanel_us.tft
[21:09:28][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion
[21:09:28][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 0
[21:09:28][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 7255776,921600,1
[21:09:28][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response
[21:09:33][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is []
[21:09:33][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 0 ""
[21:09:33][D][script.upload_tft.upload_end_:274]: Completed: 0
[21:09:34][D][script.upload_tft.upload_end_:284]: Nextion TFT upload will try again
[21:09:34][W][script.upload_tft:810]: Try #2 failed
[21:09:34][D][script.upload_tft:144]: Wait 5 seconds
[21:09:39][D][script.upload_tft:813]: Try #3 at 115200 bps
[21:09:39][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested
[21:09:39][D][script.upload_tft.upload_tft_arduino:402]:   url: http://192.168.0.53:8123/local/nspanel_us.tft
[21:09:39][D][script.upload_tft.upload_tft_arduino:403]:   baud_rate: 115200
[21:09:39][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive
[21:09:39][D][main:2591]: Exit reparse
[21:09:39][D][script.upload_tft:144]: Wait 5 seconds
[21:09:44][D][script.upload_tft.upload_tft_arduino:434]: Connected
[21:09:44][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.53:8123/local/nspanel_us.tft
[21:09:44][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion
[21:09:44][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 0
[21:09:44][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 7255776,115200,1
[21:09:44][C][uart.arduino_esp32:077]: Setting up UART...
[21:09:44][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response
[21:09:49][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is []
[21:09:49][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 0 ""
[21:09:49][D][script.upload_tft.upload_end_:274]: Completed: 0
[21:09:51][D][script.upload_tft.upload_end_:284]: Nextion TFT upload will try again
[21:09:51][W][script.upload_tft:815]: Try #3 failed
[21:09:51][D][script.upload_tft:820]: Turn off Nextion
[21:09:51][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[21:09:51][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[21:09:51][D][script.upload_tft:144]: Wait 2 seconds
[21:09:53][D][script.upload_tft:823]: Turn on Nextion
[21:09:53][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[21:09:53][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[21:09:53][D][script.upload_tft:144]: Wait 10 seconds
[21:10:03][D][script.upload_tft:826]: Try #4 at 115200 bps
[21:10:03][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested
[21:10:03][D][script.upload_tft.upload_tft_arduino:402]:   url: http://192.168.0.53:8123/local/nspanel_us.tft
[21:10:03][D][script.upload_tft.upload_tft_arduino:403]:   baud_rate: 115200
[21:10:03][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive
[21:10:03][D][main:2591]: Exit reparse
[21:10:03][D][script.upload_tft:144]: Wait 5 seconds
[21:10:08][D][script.upload_tft.upload_tft_arduino:434]: Connected
[21:10:08][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.53:8123/local/nspanel_us.tft
[21:10:08][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion
[21:10:08][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 177
[21:10:08][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 7255776,115200,1
[21:10:08][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response
[21:10:13][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is []
[21:10:13][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 0 ""
[21:10:13][D][script.upload_tft.upload_end_:274]: Completed: 0
[21:10:15][D][script.upload_tft.upload_end_:284]: Nextion TFT upload will try again
[21:10:15][E][script.upload_tft:828]: TFT upload failed
[21:10:15][D][script.upload_tft:829]: Turn off Nextion
[21:10:15][D][switch:016]: 'nspanel Nextion display - Power' Turning OFF.
[21:10:15][D][switch:055]: 'nspanel Nextion display - Power': Sending state OFF
[21:10:15][D][script.upload_tft:144]: Wait 2 seconds
[21:10:17][D][script.upload_tft:832]: Turn on Nextion
[21:10:17][D][switch:012]: 'nspanel Nextion display - Power' Turning ON.
[21:10:17][D][switch:055]: 'nspanel Nextion display - Power': Sending state ON
[21:10:17][D][script.upload_tft:834]: Restarting ESPHome
[21:10:17][D][script.upload_tft:144]: Wait 2 seconds
[21:10:19][D][button:010]: 'nspanel Restart' Pressed.
[21:10:19][I][restart.button:012]: Restarting device...
[21:10:19][I][app:134]: Rebooting safely...
[21:10:19][D][esp32.preferences:114]: Saving 1 preferences to flash...
[21:10:19][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 7.383s
INFO Successful handshake with nspanel in 0.424s
[21:10:32][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:32][W][nextion:077]: Nextion is not connected! 
[21:10:32][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:32][W][component:215]: Components should block for at most 20-30ms.
[21:10:33][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:33][W][nextion:077]: Nextion is not connected! 
[21:10:33][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:33][W][component:215]: Components should block for at most 20-30ms.
[21:10:33][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:33][W][nextion:077]: Nextion is not connected! 
[21:10:33][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:33][W][component:215]: Components should block for at most 20-30ms.
[21:10:34][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:34][W][nextion:077]: Nextion is not connected! 
[21:10:34][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:34][W][component:215]: Components should block for at most 20-30ms.
[21:10:35][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:35][W][nextion:077]: Nextion is not connected! 
[21:10:35][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:35][W][component:215]: Components should block for at most 20-30ms.
[21:10:35][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:35][W][nextion:077]: Nextion is not connected! 
[21:10:35][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:35][W][component:215]: Components should block for at most 20-30ms.
[21:10:36][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:36][W][nextion:077]: Nextion is not connected! 
[21:10:36][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:36][W][component:215]: Components should block for at most 20-30ms.
[21:10:37][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:37][W][nextion:077]: Nextion is not connected! 
[21:10:37][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:37][W][component:215]: Components should block for at most 20-30ms.
[21:10:37][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:37][W][nextion:077]: Nextion is not connected! 
[21:10:37][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:37][W][component:215]: Components should block for at most 20-30ms.
[21:10:38][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:38][W][nextion:077]: Nextion is not connected! 
[21:10:38][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:38][W][component:215]: Components should block for at most 20-30ms.
[21:10:39][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:39][W][nextion:077]: Nextion is not connected! 
[21:10:39][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:39][W][component:215]: Components should block for at most 20-30ms.
[21:10:39][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:39][W][nextion:077]: Nextion is not connected! 
[21:10:39][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:39][W][component:215]: Components should block for at most 20-30ms.
[21:10:40][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:40][W][nextion:077]: Nextion is not connected! 
[21:10:40][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:40][W][component:215]: Components should block for at most 20-30ms.
[21:10:40][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:41][W][nextion:077]: Nextion is not connected! 
[21:10:41][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:41][W][component:215]: Components should block for at most 20-30ms.
[21:10:41][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:41][W][nextion:077]: Nextion is not connected! 
[21:10:41][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:41][W][component:215]: Components should block for at most 20-30ms.
[21:10:42][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:42][W][nextion:077]: Nextion is not connected! 
[21:10:42][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:42][W][component:215]: Components should block for at most 20-30ms.
[21:10:42][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:42][W][nextion:077]: Nextion is not connected! 
[21:10:42][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:42][W][component:215]: Components should block for at most 20-30ms.
[21:10:43][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:43][W][nextion:077]: Nextion is not connected! 
[21:10:43][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:43][W][component:215]: Components should block for at most 20-30ms.
[21:10:44][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:44][W][nextion:077]: Nextion is not connected! 
[21:10:44][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:44][W][component:215]: Components should block for at most 20-30ms.
[21:10:44][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:44][W][nextion:077]: Nextion is not connected! 
[21:10:44][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:44][W][component:215]: Components should block for at most 20-30ms.
[21:10:45][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:45][W][nextion:077]: Nextion is not connected! 
[21:10:45][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:45][W][component:215]: Components should block for at most 20-30ms.
[21:10:46][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:46][W][nextion:077]: Nextion is not connected! 
[21:10:46][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:46][W][component:215]: Components should block for at most 20-30ms.
[21:10:46][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:46][W][nextion:077]: Nextion is not connected! 
[21:10:46][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:46][W][component:215]: Components should block for at most 20-30ms.
[21:10:47][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:47][W][nextion:077]: Nextion is not connected! 
[21:10:47][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:47][W][component:215]: Components should block for at most 20-30ms.
[21:10:48][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:48][W][nextion:077]: Nextion is not connected! 
[21:10:48][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:48][W][component:215]: Components should block for at most 20-30ms.
[21:10:48][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:48][W][nextion:077]: Nextion is not connected! 
[21:10:48][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:48][W][component:215]: Components should block for at most 20-30ms.
[21:10:49][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:49][W][nextion:077]: Nextion is not connected! 
[21:10:49][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:49][W][component:215]: Components should block for at most 20-30ms.
[21:10:49][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:49][W][nextion:077]: Nextion is not connected! 
[21:10:49][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:49][W][component:215]: Components should block for at most 20-30ms.
[21:10:50][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:50][W][nextion:077]: Nextion is not connected! 
[21:10:50][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:50][W][component:215]: Components should block for at most 20-30ms.
[21:10:51][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:51][W][nextion:077]: Nextion is not connected! 
[21:10:51][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:51][W][component:215]: Components should block for at most 20-30ms.
[21:10:51][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:51][W][nextion:077]: Nextion is not connected! 
[21:10:51][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:51][W][component:215]: Components should block for at most 20-30ms.
[21:10:51][D][main:2591]: Exit reparse
[21:10:52][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:52][W][nextion:077]: Nextion is not connected! 
[21:10:52][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:52][W][component:215]: Components should block for at most 20-30ms.
[21:10:53][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:53][W][nextion:077]: Nextion is not connected! 
[21:10:53][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:53][W][component:215]: Components should block for at most 20-30ms.
[21:10:53][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:53][W][nextion:077]: Nextion is not connected! 
[21:10:53][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:53][W][component:215]: Components should block for at most 20-30ms.
[21:10:54][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:54][W][nextion:077]: Nextion is not connected! 
[21:10:54][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:54][W][component:215]: Components should block for at most 20-30ms.
[21:10:55][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:55][W][nextion:077]: Nextion is not connected! 
[21:10:55][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:55][W][component:215]: Components should block for at most 20-30ms.
[21:10:55][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:55][W][nextion:077]: Nextion is not connected! 
[21:10:55][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:55][W][component:215]: Components should block for at most 20-30ms.
[21:10:56][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:56][W][nextion:077]: Nextion is not connected! 
[21:10:56][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:56][W][component:215]: Components should block for at most 20-30ms.
[21:10:56][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:56][W][nextion:077]: Nextion is not connected! 
[21:10:56][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:56][W][component:215]: Components should block for at most 20-30ms.
[21:10:57][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:57][W][nextion:077]: Nextion is not connected! 
[21:10:57][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:57][W][component:215]: Components should block for at most 20-30ms.
[21:10:58][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:58][W][nextion:077]: Nextion is not connected! 
[21:10:58][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:58][W][component:215]: Components should block for at most 20-30ms.
[21:10:58][E][uart:015]: Reading from UART timed out at byte 0!
[21:10:58][W][nextion:077]: Nextion is not connected! 
[21:10:58][W][component:214]: Component nextion.display took a long time for an operation (0.11 s).
[21:10:58][W][component:215]: Components should block for at most 20-30ms.
[21:10:59][D][script.upload_tft:141]: Starting...
[21:10:59][D][script.stop_all:2735]: Stopping scripts...
[21:10:59][D][script.stop_all:2784]: Finished
[21:10:59][D][script.upload_tft:799]: Try #1 at 921600 bps
[21:10:59][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested
[21:10:59][D][script.upload_tft.upload_tft_arduino:402]:   url: http://192.168.0.53:8123/local/nspanel_blank.tft
[21:10:59][D][script.upload_tft.upload_tft_arduino:403]:   baud_rate: 921600
[21:10:59][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive
[21:10:59][D][main:2591]: Exit reparse
[21:10:59][D][script.upload_tft:144]: Wait 5 seconds
[21:11:04][D][script.upload_tft.upload_tft_arduino:434]: Connected
[21:11:04][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.53:8123/local/nspanel_blank.tft
[21:11:04][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion
[21:11:04][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 0
[21:11:04][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 275440,921600,1
[21:11:04][C][uart.arduino_esp32:077]: Setting up UART...
[21:11:04][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response
[21:11:09][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is []
[21:11:09][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 0 ""
[21:11:09][D][script.upload_tft.upload_end_:274]: Completed: 0
[21:11:11][D][script.upload_tft.upload_end_:284]: Nextion TFT upload will try again
[21:11:11][W][script.upload_tft:805]: Try #1 failed
[21:11:11][D][script.upload_tft:144]: Wait 5 seconds
[21:11:16][D][script.upload_tft:808]: Try #2 at 921600 bps
[21:11:16][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested
[21:11:16][D][script.upload_tft.upload_tft_arduino:402]:   url: http://192.168.0.53:8123/local/nspanel_blank.tft
[21:11:16][D][script.upload_tft.upload_tft_arduino:403]:   baud_rate: 921600
[21:11:16][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive
[21:11:16][D][main:2591]: Exit reparse
[21:11:16][D][script.upload_tft:144]: Wait 5 seconds
[21:11:21][D][script.upload_tft.upload_tft_arduino:434]: Connected
[21:11:21][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.53:8123/local/nspanel_blank.tft
[21:11:21][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion
[21:11:21][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 0
[21:11:21][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 275440,921600,1
[21:11:21][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response
[21:11:26][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is [00.00.00.00.80.80.80.00.80.00.80.80.00.80.00.80.80.80.80.00.80.00.80.80.80.80.00.80.00.80.80.80.80.00.80.00.80.80.00.80.80.00.80.80.80.00.00.00.00.80.80.00.80.80.00.80.80.80.00.80.00.00.00.00.80.00.00.00.00.00.00.00.00.80.80.80.80.80.80.80.00.80.80.00.00.00.00.80.00.00.00.00.00.00.80.80.00.80.00.80.80.80.80.00.80.00.80.80.00.80.80.00.00.00.00.80.00.00.00.00.00.00.00.80.80.80.00.80.80.80.80.80.80.80.80.00.80.80.80.80.80.80.80.80.00.8
[21:11:26][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 0 ""
[21:11:26][D][script.upload_tft.upload_end_:274]: Completed: 0
[21:11:27][D][script.upload_tft.upload_end_:284]: Nextion TFT upload will try again
[21:11:27][W][script.upload_tft:810]: Try #2 failed
[21:11:27][D][script.upload_tft:144]: Wait 5 seconds
[21:11:32][D][script.upload_tft:813]: Try #3 at 115200 bps
[21:11:32][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested
[21:11:32][D][script.upload_tft.upload_tft_arduino:402]:   url: http://192.168.0.53:8123/local/nspanel_blank.tft
[21:11:32][D][script.upload_tft.upload_tft_arduino:403]:   baud_rate: 115200
[21:11:32][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive
[21:11:32][D][main:2591]: Exit reparse
[21:11:32][D][script.upload_tft:144]: Wait 5 seconds
[21:11:37][D][script.upload_tft.upload_tft_arduino:434]: Connected
[21:11:37][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.53:8123/local/nspanel_blank.tft
[21:11:38][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion
[21:11:38][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 0
[21:11:38][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 275440,115200,1
[21:11:38][C][uart.arduino_esp32:077]: Setting up UART...
[21:11:38][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response

image

trace automation.nspanel_garage 2023-12-10T02_26_51.128940+00_00.json

alias: NSPanel Garage
description: ""
use_blueprint:
  path: Blackymas/nspanel_blueprint.yaml
  input:
    weather_entity: weather.home
    outdoortemp: sensor.outside_temp_temperature
    indoortemp: sensor.kitchen_temp_temperature
    home_value01: sensor.hot_tub_hot_tub_temperature_th10
    home_value01_icon: mdi:hot-tub
    home_value02: sensor.nspanel_temperature
    home_value02_icon: mdi:garage
    home_value03: sensor.kitchen_temp_humidity
    home_value03_icon: mdi:water-percent
    chip01_icon: mdi:desk-lamp
    chip02_icon: mdi:power-socket
    chip03: switch.kitchen_sink
    chip03_icon: mdi:lightbulb
    chip04: switch.studio_socket_1
    chip04_icon: mdi:lightbulb
    chip05_icon: ""
    chip06_icon: ""
    chip07_icon: ""
    home_custom_button01_icon: mdi:bookmark-music
    home_custom_button01: script.play_country_103_9_everywhere
    alarm: alarm_control_panel.alarmo
    qrcode_enabled: true
    qrcode_label: Dashboard
    qrcode_value: http://homeassistant.local:8123/
    left_button_name: Lights
    right_button_name: lights
    show_while_loading: true
    nspanel_name: 7fb6f0ddd0ab46df750f79c35c6c0244
    climate_value01: sensor.nspanel_temperature
    climate_value02: sensor.kitchen_temp_temperature
    climate_value03: sensor.esp8266_dht11_my_temperature
    climate_value03_icon: ""
    climate_value04: sensor.kitchen_temp_humidity
    button_page01_label: Lights
    entity01: switch.hot_tub_light
    entity01_name: Hot Tub Light
    entity02: switch.kitchen_sink
    entity01_icon: ""
    entity02_name: Kitchen Sink
    entity03: light.bar_1_2
    entity04: light.bar_2_2
    entity05: light.studio_ceiling_2_2
    entity06: light.spotlight
    entity06_icon: ""
    entity06_name: Garage Spotlight
    entity07: switch.studio_socket_1
    entity07_icon: ""
    entity08: light.printer_light
    button_page02_label: Outlets
    entity09: switch.etekcity_15a_outlet
    entity10: switch.sonoff_s31_lite_zb_switch_2
    entity11: switch.sonoff_s40lite_switch
    entity12: switch.sonoff_s40lite_switch_2
    entity13: switch.sps1_outlet_switch
    entity14: switch.sps3_outlet_switch
    entity15: switch.sps4_outlet_switch
    entity16: switch.garage_outlet_switch
    entity_page01_label: Hydro
    entities_entity01: sensor.power_monitor_power_sensor_live_power
    entities_entity01_name: Phase1 KW
    entities_entity02: sensor.power_monitor2_power_sensor_live_power2
    entities_entity02_name: Phase2 KW
    entities_entity03: sensor.power_monitor_6c_total_kwh
    entities_entity04: sensor.power_monitor2_powermonitor2_total_kwh
    entities_entity03_icon: ""
    entities_entity02_icon: ""
    entities_entity03_name: 1 Total KWh
    entities_entity04_name: 2 Total KWh
    entities_entity05: sensor.tree_current_power
    entities_entity06: sensor.sps1_outlet_active_power
    entities_entity07: sensor.sps3_outlet_active_power
    entities_entity08: sensor.sps4_outlet_active_power
    entitypages_enabled: true
    entities_entity25: vacuum.upstairs
    entity_page02_label: HVAC
    entities_entity09: sensor.outside_temp_temperature
    entities_entity10: sensor.kitchen_temp_temperature
    entities_entity11: sensor.kitchen_temp_humidity
    entities_entity12: sensor.esp8266_dht11_my_temperature
    entities_entity12_name: Bedroom Temp
    entities_entity13: sensor.esp8266_dht11_my_humidity
    entities_entity13_name: Bedroom Humidity
    entities_entity14: sensor.nspanel_temperature
    entities_entity14_name: Garage Temp
    entities_entity15: sensor.ewelink_th01_temperature_2
    entities_entity16: sensor.outside_temp_humidity
    entities_entity16_name: "Outside Humidity "
    entity_page03_label: "Battery Levels "
    entities_entity17: sensor.back_door_battery
    entities_entity18: sensor.basement_battery_level
    entities_entity19: sensor.ewelink_ds01_battery
    entities_entity20: sensor.kitchen_temp_battery
    entities_entity21: sensor.furnace_water_sensor_battery
    entities_entity22: sensor.tz3000_t6jriawg_ts0207_battery
    entities_entity23: sensor.ewelink_ms01_battery
    entities_entity24: sensor.porch_motion_battery
    entity_page04_label: Roomba
    entities_entity26: sensor.upstairs_battery_level
    entities_entity27: sensor.upstairs_average_mission_time
    entities_entity28: vacuum.basement
    entities_entity29: sensor.basement_battery_level
    entities_entity30: sensor.basement_average_mission_time
    right_button_entity: switch.nspanel_relay_2
    left_button_entity: switch.nspanel_relay_1
    relay_1_local_fallback: true
    relay_2_local_fallback: true
    left_button_hold_select: Default
    home_custom_button02: switch.hot_tub_light
    home_custom_button02_icon: mdi:track-light
    entity10_name: 3D Printer
    entity11_name: Dehumidifier
    entity12_name: Battery Chargers
    entity13_name: SPS1 Outlet
    entity14_name: SPS2 Outlet
    entity15_icon: ""
    entity15_name: SPS4 outlet
    entity16_name: Garage Outlet
    entity17: switch.laser_cutter
    entity18: switch.laser_cutter_socket_1
    entity18_name: Laser Cutter
    entity19: switch.sonoff_s31_lite_zb_switch
    entity19_name: Kitchen Outlet
    entity20: binary_sensor.nspanel_left_button
    entity20_name: Garage Lights
    entity21: switch.nspanelfrontdoor_relay_1
    entity21_name: Porch Light
    entity22: switch.nspanelfrontdoor_relay_2
    entity22_name: "Front Steps "
    entity23: light.printer_light
    entity24: switch.studio_socket_1
    entities_entity06_name: SPS1 Power
    entities_entity07_name: SPS2 Power
    entities_entity08_name: SPS4 Power
    entities_entity09_name: OutdoorTemp
    entities_entity10_name: Kitchen Temp
    entities_entity17_name: BackdoorBatt
    entities_entity18_name: BasementBatt
    entities_entity19_name: FrontDoorBatt
    entities_entity20_name: KitchenTempBatt
    entities_entity21_name: FurnaceWaterBatt
    entities_entity22_name: BlackwaterBatt
    entities_entity23_name: GarageMotionBatt
    entities_entity24_name: PorchMotionBatt
    entities_entity27_name: UpstairsMissionTime
    entities_entity30_name: BasementMissionTime
    climate_value01_icon: mdi:garage
    chip01: switch.studio_socket_1
    chip02: switch.dehumidifier_socket_1
    chip01_icon_color:
      - 255
      - 0
      - 0
    chip02_icon_color:
      - 255
      - 0
      - 0
    chip03_icon_color:
      - 255
      - 0
      - 0
    chip04_icon_color:
      - 255
      - 0
      - 0
    climate_button08: binary_sensor.433_motion
    delay: 0
edwardtfn commented 10 months ago

Please set it back to esp-idf, install it into your panel, wait 3 minutes after the boot, so we make sure the boot sequence completed), then press the Upload TFT button. I woukd appreciate the logs of this try.

MKme commented 10 months ago

Absolutely. Here they are.

PS- Thanks for your work on this. By far the most powerful and useful interface to HA. Incredible work.

Eric logs_nspanel_run.txt

MKme commented 10 months ago

In case it is relevant image

MKme commented 10 months ago

Another note- The automation doesnt seem to update the ESP function either. My lights can toggle via the slider for relay 1 but the phsical button doesnt toggle then despite being set so image

MKme commented 10 months ago

Tried another depower (nspanel is hardwired in light switch). Left power off for ~20 minutes. Noting different on boot so tried again to validate/install. No change. Re-imported blueprint manually from web page and chose overwrite- run automation and still no change.

Not sure what to say. Im totally confused. It was indeed fine on the previous version as were 2 more fresh purchases (all required an upload of blank tft via the Nextion Editor when they were new) One since has been upgraded fine (~3 weeks ago maybe). But this one just wont play ball.

Still trying but low on ideas :)

edwardtfn commented 10 months ago

My apologies for my late reply here.

In fact, I'm a bit out of ideas now, but based on your logs, the issue is in the communication between ESPHome and the Nextion display:

[21:08:55][E][uart:015]: Reading from UART timed out at byte 0!
[21:08:55][W][nextion:077]: Nextion is not connected! 

With that said, I don't think upload the Blueprint or change it settings woukd help. In the end, while Nextion isn't connected, the ESPHome part won't inform the Blueprint about it's availability, so the Blueprint itself will not run. You can still control the relays as this is onky using the ESPHome APIs, and not the Blueprint.

Focusing on the Nextion communication, there are 3 things I would suggest:

  1. Open your panel and double check if the cable connecting the board to the screen is properly connected. This shouldn't be an issue if you haven't opened your pane since it worked last, but as this will be one of the possible symptoms of a cable not conned cted properly, I think that worth a try.
  2. As you are opening your panel, try to flash it again using serial (and set it to esp-idf framework). It does make a difference to flash via seria when compared to OTA when you are changing frameworks.
  3. You can try a different baud rate, as an incorrect baud rate woukd result on this symptom. In order to change it, add this to your yaml:

Set Nextion comms baud rate to 921600 bps

uart:

Those are all the different baud rates support by Nextion: Valid values are: 2400, 4800, 9600, 19200, 31250, 38400, 57600, 115200, 230400, 250000, 256000, 512000, and 921600

MKme commented 10 months ago

Thanks. Will report back. Fingers crossed I can baudrate around it. Since the display is still working I doubt it has a connection problem with the flatflex but it is always possible.

edwardtfn commented 10 months ago

Since the display is still working I doubt it has a connection problem with the flatflex but it is always possible.

Well, the display have it's own processor, firmware and programing and running independently of ESPHome, so once a TFT in installed and the display is powered, it will show exactly what you are seeing, including the counting of retries for the Blueprint (which is executed by the disokay/tft, not by ESPHome).

MKme commented 10 months ago

Brain fart yeah 100% it would show just that. Thanks. Going hunting....

MKme commented 10 months ago

You=My hero (again).

Safe bet this was not the software after all. Fatflex was perfectly seated so I took a look around under my trinocular microscope (sorry hdmi was down so no pics)

Surfed around the board for a bit and was just about to give up when I noticed a small whisker of solder laying on the board by the radio module right by the rx/tx pads for the display. It looked like it might have been from the can to board contact. Cant tell if it was connected since it fell right off. Removed. And reassembled.

Validate>Install then display started talking. Upload TFT and full logs of upload. Finsish and now I have connected in ESPhome.

Finally :) Doubt there is anything of use in the logs since I think rx/tx were possibly shorted together. Shouldnt be any harm as uarts are usually protected by design for a short condition. Just in case anyone finds value in making a no-com supervision or whatever Ill attach the log here for you.

Happy logs... image

Thanks again. Chalk one up to a very sneaky hardware fault (probably shorted in the act of installing the switch just from carrying it around). logs_nspanel_run (1).txt

Thanks again for the amazing integration/functions.

edwardtfn commented 10 months ago

Nice! I'm happy to hear you found the issue. Enjoy your panel.