NSPanel-Easy

Troubleshooting TFT transfer

[!IMPORTANT]
If you have already installed the version “nspanel-lovelace-ui” from joBr99 on your NSPanel, an intermediate step is necessary - otherwise, it is not possible to install this or any other version.

See [Common Issues TFT Upload when NSPanel Lovelace UI has been installed](/NSPanel-Easy/howto.html)

Common Issues and Troubleshooting

The following is a list of common issues affecting the TFT upload, along with suggested solutions. These issues are not specific to the NSPanel HA Blueprint project but are common to Nextion displays and ESPHome.

Resolving “System data ERROR!” on Display

System Data ERROR

Don’t Panic

The “System data ERROR!” message, sometimes displayed upside-down, appears when a TFT upload is incomplete. While it may seem alarming, this message simply indicates that the TFT file on the display is invalid. A successful TFT upload will resolve this issue.

Resolving “Model does not match” on Display

Model Does Not Match

This is one more case where the message sounds more alarming than it actually is. Often, a simple reboot of the panel is enough to restore the previous TFT file. This issue typically arises from a corrupt TFT file or server response issues. For troubleshooting, refer to the following sections:

[!TIP] If the TFT transfer has started, your panel might not respond to the reset button on the device’s page in Home Assistant or to holding the hardware button for 15 seconds. In such cases, you can either power cycle your device using the room’s relay on your electrical plate or use a pin to press the hardware restart button in a small hole behind the device. Image

If using manual IP, make sure you have a DNS server configured

At least one DNS server is required to enable TFT transfer directly from GitHub; otherwise use nextion_update_url. If you are setting up a manual IP as a customization, please remember to add a valid DNS server for your panel.

Using the nspanel_blank.tft File to Assist

Many TFT upload problems are associated with the Nextion Active Reparse Mode, which is used in some implementations like the original Sonoff firmware or other popular custom firmwares. Installing any TFT file from this project will disable this mode. However, the size of a typical TFT file (7 to 12 Mb) can be challenging for devices with limited memory, such as the ESP32 in your panel, especially over a serial interface.

To facilitate the process, we’ve created the nspanel_blank.tft file. Although it’s not a fully functional TFT file, it’s sufficient to disable the Reparse Mode and is significantly smaller (less than 300kb).

If you encounter any issues, try installing the nspanel_blank.tft file first. This should make it easier to subsequently install larger, fully functional TFT files.

Enabling TFT upload components

If the components necessary for uploading a TFT file are not available in the device’s page under Settings > Devices & services > ESPHome, and you cannot simply enable the entity on it’s settings, please try removing the device integration from there, restart your Home Assistant instance and then add the device again. It should be automatically detected as a new integration, but if this is not happening, click the Add integration button, select ESPHome, add the device hostname or IP address and follow the steps required.

Wait a Bit Before Starting the TFT Upload

Using a Local Source (Home Assistant)

HTTP Instead of HTTPS

Remove Customizations

Use IP Address Instead of DNS

Check the File Size by Downloading to Your Computer

Power Cycle Your Panel

[!TIP] If you don’t have easy access to your relay’s panel, an alternative is to use a pin to press the hardware restart button, located in a small hole behind the device. Although this action does not replicate a full power cycle, it might resolve the issue in some cases. Hardware Reset Button

Consider changing the framework

[!WARNING] Arduino framework is deprecated as of v4.3.22 and no longer officially supported. If you’re experiencing issues with Arduino framework, please migrate to ESP-IDF.

You can set the framework you want by adding this to your ESPHome yaml:

esp32:
  framework:
    type: esp-idf

Arduino (DEPRECATED - NOT SUPPORTED)

[!WARNING] DEPRECATED: Arduino framework support has been discontinued as of v4.3.22.

esp32:
  framework:
    type: arduino

Flash your panel again

Try an alternative http service

Additional Tips and Resources

After troubleshooting, if issues persist, consult the Issues and please open a new issue for tailored help.

Please share as much info as possible, like:

  1. Describing (or a picture of) what is in your screen
  2. Are updating from a previous version of this same project, or coming from another NSPanel customization (which one?) or customizing for the first time a panel with original Sonoff settings?
  3. Please share the ESPHome logs from when your panel starts to the moment the upload fails.
  4. Describe what you have already tried.

Important note

Remember, these steps are a guideline and might vary slightly based on your specific setup and previously installed system.