Which version of esphome are you using? I think you are on a really old one.
At some point I can remember you need to add an of on repository to be able to update esphome.
hello amai this is a very step-by-step plan can I approach you here in a different way via discord or via dm? would I like to do this too?
that was the correct idea! I already figured out.
No the problem is that the flashing was running and a cable connection was interrupted. So the installation stopped. After trying again a new error message is appearing which was not there before… strange
I just deleted everything regarding the nspanel and try everything again.
This is strange. No I receive this error message. Before the flash process was interrupted everything was fine. Now this:
I made no modification. So I don’t understand why this massege is suddenly appearing.
Validation is fine!
hello @EdwardTFN have new nspanel in today wow this flash with this version but i get everything done until i want to upload the tft it doesn’t want to do it if not via local or the online tft file this is my config in esphome i am very sorry that this is not hope you can help me?
substitutions:
###### CHANGE ME START ######
device_name: "nspanelblueprint"
wifi_ssid: !secret wifi_ssid
wifi_password: !secret wifi_password
# nextion_update_url: "http://192.168.0.184:8123/local/nspanel_eu.tft" # URL to local tft File
nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft" # URL to Github
##### CHANGE ME END #####
##### DO NOT CHANGE ANYTHING! #####
packages:
##### download esphome code from Github
remote_package:
url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: main
files: [nspanel_esphome.yaml]
refresh: 300s
##### DO NOT CHANGE ANYTHING! #####
Have you tried the new Exit reparse
button?
Please take a look on this info from the latest release notes:
3. “Exit reparse” button
One of the biggest challenges to a new user is to upload the TFT file for the first time. This is due to Sonoff using the Protocol Reparse Mode to control the communication with the Nextion display. This prevents ESPHome to communicate with the display using its default libraries and therefore prevents installing the new TFT.
With this version you will have a new button named “Exit reparse”, which will send a command to the Nextion to exit that mode for a few seconds, giving to the use a chance to then upload the TFT file without the need to change your ESPHome settings or using older Nextion libraries.
Once you have successfully uploaded any of the TFT files from this project (nspanel_blank.tft
, nspanel_eu.tft
or nspanel_us.tft
), the reparse mode will be permanently disabled and this button is not needed anymore.
If you have your panel displaying the Sonoff original screen, please follow the following steps to install your TFT file:
- Go to the front of your panel with a portable device with access to Home Assistant
- Open the device related to your panel under Settings > Device & Services > ESPHome
- Press the new button “Exit reparse” and wait for your panel to change it’s screen to another page (which will take around 10s)
- While the new page is shown (it will be there for just a couple of seconds), press the button “Upload TFT”
- You should then see the progress bar in your display and after no more than 20 minutes the new TFT will be displayed.
Hi.
I’m ging to switch from tasmota lovelace ui to esphome incl. Blueprint.
What is the best way to change?
What mistakes can i do?
Hope you can help me…
Install the TFT file while you are with Tasmota. It’s much smoother than ESPHome.
After uploading TFT, I think you can do the move without any other recommendation. At least nothing coming to my mind right now.
Upload the blank tft?
You can update the final TFT (nspanel_eu.tft
or nspanel_us.tft.tft
) using tasmota. But usually the issue is just with the first update, so if you wanna do nspanel_blank.tft
with Tasmota and then the others with ESPHome you shouldn’t have major issues.
Hi Edward, I just updated my NS Panels to the new version with these changes and wanted to thank you for getting Chips working with True/False entities. Love you work mate
If I understand correctly you cannot transfer the file from your http or github site. If so, you have the same problem as me. I solved it by creating my own http webserver, using an unused Raspberry that I had at home. There are many guides on the internet to create it, and at the moment I don’t remember which one I used. Once the file was created and downloaded on the webserver I was able to download it on the nspanel!
hello @EdwardTFN I’m just busy setting up the nspanel now I have a few questions on the beginning screen I see the icon of weather & yield solar panel & agenda and so how do I set it up would you like to have this too then you have a question too bad that there is no media player for TV to operate?
hello if you test search for the new version you are trying I really want to do it I also think it’s very nice those new icons can I help test it?
Unfortunately the install progress has gotten worse with the latest updates. I had 6 NSPanels running and have been trying to add 4 more the past week. None of the prior workarounds work any more. The blank tft loads successful, but the full one keeps hanging at 25-75% or takes hours and ends up being corrupted. Have not gotten a single new device working even though I have 6 prior ones running for 3+ weeks. All that sitting right next to a WiFi AP…
Hi Oliver…Not sure if you have read the post I wrote about updating to v3.2.2? Maybe it can be of help. I was having some issues and removing the “_” from the TFT filename seems to have solve it.
From v3.2.2 to v3.3 is even simpler and faster.
That’s true. Until version 3.1 this project was using an older library for the Nextion display which was easier to remove the panel from the reparse mode, which is set by Sonoff in the original display.
With v3.3, however, it was introduced the “Exit reparse” button, which was mentioned in this post, and this makes possible again to install the TFT in a new panel without having to roll back to that older library.
If the “Exit reparse” button is not helping in your case, you can always force your panel to use that old library, just add this code to your ESPHome file:
external_components:
- source: github://pr#2956
components: [nextion]
refresh: 1h
After transfering the TFT, you can the remove the code above and you be using the latest library again.
Well, if you got to the nspanel_blank.tft
installed (now you will see a QR code in the screen), then the problem, is not in the reparse mode anymore and the code above won’t help.
In this case, I can tell the problem is in your Wi-Fi network, in your Web server, or some problem in the file you have locally.
I would suggest you to use your browser (in your laptop) to download the file using the same url as your panel is trying to use. Then double check if the downloaded file have the same size as the one in GitHub. If you have a size mismatch, try to download from GitHub again and update the file in your www server, until you can download from there with the right size.
If you cannot have the right file with your computer, the panel won’t be able to get the right file.
The normal upload process shouldn’t take more than 15 to 20 minutes. It takes more than 30min, I doubt it will work. Everytime I see someone mentioning it took hours, they always says it failed by the end.
Again, for new devices the “Exit reparse” button or the code above should help until you get to the nspanel_blank.tft
. Once you get there, it’s about your network and your local www server.
Would this ‘exit reparse’ be able to fix an NS Panel which constantly shows 'System Data ERROR!'
after booting? (It can’t communicate with the TFT)
As you have “System data error” message then the original TFT is not there anymore and the panel shouldn’t be in reparse mode anymore, so, you don’t need that button.
You probably got to this point due to a corrupt TFT file, then my suggestion is to download the TFT file from GitHub again, upload it to your local www server again and then, try to use your local url to download from your computer before bothering trying with the panel.
You should always be able to download using you computer, with your browser, using the same url as your panel is trying to use. After this download, make sure the new download fila have the sine file size as the original one in GitHub (approx 259kb for nspanel_blank.tft
, approx 6.1Mb for nspanel_eu.tft
and approx 7.6Mb for nspanel_us.tft
). If it fails for your computer, it will fail for your panel. If you have the right file for your computer, it should work for your panel.
With the right file in your local www server, try the normal transfer process again. No need to “Exit reparse” or using the old library.
Always try nspanel_blank.tft
first, as it is much smaller and will help you understanding where the problem is. You should see a QR code in your panel’s screen when you succeed with nspanel_blank.tft
, then you can progress to the bigger TFT file.
If nothing helps, please share details on what happens in your screen when you press the “Upload TFT” button. At this point, I’m more interested with what happens in your screen than with logs.
You can try to force a lower baud rate, although I think the chance this is the issue is very low. For a lower baud rate, just add baud_rate: "9600"
to your substitutions in you ESPHome yaml, but please remember to remove this after your try.
If nothing works, you can try to transfer the TFT via serial. It’s a bit more work. You can find details here: Error: Model does not match-Nextion Display bricked-Solution · Issue #166 · Blackymas/NSPanel_HA_Blueprint · GitHub
This happened on my very first NS Panel which I put aside and then successfully set up 2 others. I previously logged an issue on GitHub about it but it turns out, it’s similar to problems others also had.
I was never able to get the TFT upload sent OTA to this particular NSP (the data error message just stays there) despite me following the same process successfully with the others. I tried the manual/serial TFT upload but had issues. I’ll try the serial upload again but last time I got the error
onnection failed
Forced interrupt!
in the Nextion editor.