Sonoff NSPanel Blueprint - Configure your own custom NSPanel easy via a Blueprint

I don’t see a delay like you are talking about. I can change an input_boolean in HA and see it update nearly immediately on the NS Panel.

Hello,

I am trying to configure the panel according to the instructions at the Blackymas github. I have parts of it working, but it won’t update the display. from the logs, the Nextion upload is failing. Does anyone have any tricks of tips for getting that to work?

Thanks.

16:37:07	[D]	[switch:055]	
'office_panel Screen Power': Sending state OFF
16:37:10	[D]	[script.upload_tft:100]	
Turn on Nextion
16:37:10	[D]	[switch:012]	
'office_panel Screen Power' Turning ON.
16:37:10	[D]	[switch:055]	
'office_panel Screen Power': Sending state ON
16:37:12	[D]	[script.upload_tft:091]	
Try #2
16:37:12	[D]	[script.upload_tft:092]	
Setting Nextion protocol reparse mode to passive
16:37:12	[D]	[main:2485]	
Exit reparse
16:37:14	[D]	[nextion_upload:145]	
Nextion TFT upload requested
16:37:14	[D]	[nextion_upload:146]	
url: http://192.168.1.4:8123/local/nspanel_us.tft
16:37:14	[D]	[nextion_upload:185]	
Connected
16:37:14	[D]	[nextion_upload:191]	
Requesting URL: http://192.168.1.4:8123/local/nspanel_us.tft
16:37:14	[D]	[nextion_upload:225]	
Updating Nextion ...
16:37:15	[D]	[nextion_upload:251]	
Waiting for upgrade response
16:37:17	[D]	[nextion_upload:257]	
Upgrade response is [] - 0 bytes
16:37:17	[D]	[nextion_upload:266]	
preparation for tft update failed 0 ""
16:37:17	[D]	[nextion_upload:329]	
Restarting Nextion
16:37:17	[D]	[script.upload_tft:097]	
Turn off Nextion
16:37:17	[D]	[switch:016]	
'office_panel Screen Power' Turning OFF.
16:37:17	[D]	[switch:055]	
'office_panel Screen Power': Sending state OFF
16:37:20	[D]	[script.upload_tft:100]	
Turn on Nextion
16:37:20	[D]	[switch:012]	
'office_panel Screen Power' Turning ON.
16:37:20	[D]	[switch:055]	
'office_panel Screen Power': Sending state ON
16:37:22	[D]	[script.upload_tft:091]	
Try #3
16:37:22	[D]	[script.upload_tft:092]	
Setting Nextion protocol reparse mode to passive
16:37:22	[D]	[main:2485]	
Exit reparse
16:37:24	[D]	[nextion_upload:145]	
Nextion TFT upload requested
16:37:24	[D]	[nextion_upload:146]	
url: http://192.168.1.4:8123/local/nspanel_us.tft
16:37:24	[D]	[nextion_upload:185]	
Connected
16:37:24	[D]	[nextion_upload:185]	
Connected
16:37:24	[D]	[nextion_upload:191]	
Requesting URL: http://192.168.1.4:8123/local/nspanel_us.tft
16:37:24	[D]	[nextion_upload:191]	
Requesting URL: http://192.168.1.4:8123/local/nspanel_us.tft
16:37:24	[D]	[nextion_upload:225]	
Updating Nextion ...
16:37:24	[D]	[nextion_upload:251]	
Waiting for upgrade response
16:37:26	[D]	[nextion_upload:257]	
Upgrade response is [] - 0 bytes
16:37:26	[D]	[nextion_upload:266]	
preparation for tft update failed 0 ""
16:37:26	[D]	[nextion_upload:329]	
Restarting Nextion
16:37:26	[D]	[script.upload_tft:097]	
Turn off Nextion
16:37:26	[D]	[switch:016]	
'office_panel Screen Power' Turning OFF.
16:37:26	[D]	[switch:055]	
'office_panel Screen Power': Sending state OFF
16:37:29	[D]	[script.upload_tft:100]	
Turn on Nextion
16:37:29	[D]	[switch:012]	
'office_panel Screen Power' Turning ON.
16:37:29	[D]	[switch:055]	
'office_panel Screen Power': Sending state ON
16:37:31	[E]	[script.upload_tft:104]	
TFT upload failed.

This morning I updated my NSPanel with ESPHome version from 2023.11.4 to 2023.11.6. Unforfunatly the Nspanel does not start up; still got the status ‘Initializing…’ Also after restart and power off the NSPanel.

TFT version: 4.1
ESPHome :4.1
Blueprint 4.1

I updated Blueprint to version 4.1.1, try to updated ESPhome and pasted the new nspanel_eu.tft -file local for updating, but get the error ‘[E][script.upload_tft:104]: TFT upload failed.’

I made also an issue on the ESPhome Github Something with the ‘Component esphome.coroutine’ I guess

Same for me…stop working with ESP Version 2023.11.6
I have update the ESP Add-on and the NSPanel from 2023.11.4 to 2023.11.6

any option to rollback?

Same for me. The devices are still on the network and connected to HA, just not loading properly.

I run two instances of the ESPhome add-on and have one set to last month’s version so I have a way out, but would rather try to help fix the issue.

Unfortunately, no errors in the log to help out

Same for me. Was already at 4.1.1 for all three components. Updated ESPHome firmware 2023.11.6 from 2023.11.4 previously installed.

Now stuck onto the initializing screen. NSPanel still shown on network though.

Watching discussion for resolution.

v4.1.2 - Bug fixes and minor enhancements

Welcome to the v4.1.2 patch!

This update fixes some bugs and enable the use of your panel with ESPHome 2023.11.6.

Below is a detailed list of changes. We recommend reviewing them to understand how this update impacts your setup.

Compatibility Note: This patch is fully compatible with components from v4.1 and v4.1.1. Your system will operate seamlessly with a mix of v4.1, v4.1.1 and v4.1.2 components, though we advise updating all components to the latest version for optimal performance.

Update Instructions

For detailed update procedures, please visit:

Overview of Changes

Change Criticality Page/Area Components Affected
Fix Nextion not communicating with ESPHome 2023.11.6 Critical N/A ESPHome
Fix for icons not updating on Home page Medium home Blueprint
Fix light icon color not being used for buttons Minor buttonpageXX Blueprint
Don’t show thermostat chip when state is auto and no action is available Minor home Blueprint
Fallback to legacy forecast (attributes based) when new method (service based) fails Minor weatherXX Blueprint
Fix for button image update when local fallback is enabled Minor home ESPHome
Add option to wake-up to Climate page Enhancement climate ESPHome
New switch “Nextion display - Power” which can turn the screen on/off Enhancement Diagnostics ESPHome
9 Likes

it’s impressive how fast you fixed this nextion issue.
thank you very much.

This is the 3th breaking non-breaking change in esphome this month touching 1 of the projects I use.

2 Likes

Thanks for the fast fix @EdwardTFN!
I updated the blueprint, the ESPHome and NSpanel with version 4.1.2 Unfortunatly, the dispay/NSPanel is quite slow now. In particular my climate screen. Sometimes it shows nothing, sometime a few entities.

2

1

3

Do you have any error message in the Home Assistant logs (Settings > System > Logs)?

The error I can see is the following:

Logger: aioesphomeapi.connection
Source: runner.py:188
First occurred: 28 november 2023 om 18:57:57 (43 occurrences)
Last logged: 29 november 2023 om 16:31:17

nspanel @ 192.168.1.15: Connection error occurred: Ping response not received after 90.0 seconds
nspanel @ 192.168.1.15: Connection error occurred: [Errno 104] Connection reset by peer
nspanel @ 192.168.1.15: Connection error occurred: nspanel @ 192.168.1.15: EOF received

Newbie question - I have purchased the NSPanel and this https://de.aliexpress.com/item/1005005441337818.html TTL cable. It says
Red: 5v
Power supply: 5v
Ttl Ebene: 3,3 v

Would I fry my NSPanel if I flash it with this cable?

Doesn’t look like it…

TTL wise you’re okay, but you also need a 3.3 powersupply….

What you need is something like this
USB to TTL serial
https://a.aliexpress.com/_EI4dVxP

2 Likes

Does this support the new NSPanel Pro?

Nope. The pro version is not esp based as far as I know.

hello i need help with my nspanel.and i dont have the option to Re-import blueprint

I think you should still create an automation using the blueprint?
In this automation. One of the options is to select the Nspanel.

how can i update the blueprint to latest version? the problem is am getting error message about the Blueprint version mismatch :pensive:

Open the blueprint file using file or vs code add on. And overwrite its content.
Blueprints are in the blueprint folder.

1 Like

Thanks to replying me.where can i get the correct Blueprint version