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

On the outdoor temp sensor:

Outdoor Temperature Sensor (Optional)

Have you tried v3.2.1? It fixed a bunch of those errors related to “Loading…” screen.

1 Like

solved, corrupted download

1 Like

First off love this and finally can use the four of these that I purchased. I am struggling though with the format/command to set an ICON for specific items, bettons, etc… Thanks in advance for any help.

In your created automation at the top of the page, there some usefull links as “Home Assistant Icons Page” HA Icons page. When you have chosen the icon click on “U” on the left of the hexa code of the icon and paste it in your button/entity icon field … in your automation.

1 Like

New Version online

4 Likes

Hi,

Maybe I’m blind, but I don’t know how to get these icons on the display.

image

I only have one icon there. Can anyone help me with this?

the functions do not yet exist and are in development

Help needed.

I have tried to go from Tasmota to esphome.
But it’s like they’re still some Tasmota running.
Screen looks like Tasmota circling screen says waiting for content.

And here is my log from esp


INFO Reading configuration /config/esphome/nspanel.yaml...
WARNING GPIO4 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from esptest.local using esphome API
INFO Successfully connected to esptest.local
[17:12:04][I][app:102]: ESPHome version 2023.3.2 compiled on Apr 12 2023, 16:20:02
[17:12:04][C][wifi:504]: WiFi:
[17:12:04][C][wifi:362]:   Local MAC: 44:17:93:7C:0B:EC
[17:12:04][C][wifi:363]:   SSID: [redacted]
[17:12:04][C][wifi:364]:   IP Address: 192.168.0.148
[17:12:04][C][wifi:366]:   BSSID: [redacted]
[17:12:04][C][wifi:367]:   Hostname: 'esptest'
[17:12:04][C][wifi:369]:   Signal strength: -44 dB ▂▄▆█

17:12:46][C][wifi:373]:   Channel: 11
[17:12:46][C][wifi:374]:   Subnet: 255.255.255.0
[17:12:46][C][wifi:375]:   Gateway: 192.168.0.2
[17:12:46][C][wifi:376]:   DNS1: 192.168.0.2
[17:12:46][C][wifi:377]:   DNS2: 0.0.0.0
[17:12:46][C][logger:293]: Logger:
[17:12:46][C][logger:294]:   Level: DEBUG
[17:12:46][C][logger:295]:   Log Baud Rate: 115200
[17:12:46][C][logger:296]:   Hardware UART: UART0
[17:12:46][C][uart.arduino_esp32:108]: UART Bus 1:
[17:12:46][C][uart.arduino_esp32:109]:   TX Pin: GPIO16
[17:12:46][C][uart.arduino_esp32:110]:   RX Pin: GPIO17
[17:12:46][C][uart.arduino_esp32:112]:   RX Buffer Size: 256
[17:12:46][C][uart.arduino_esp32:114]:   Baud Rate: 115200 baud
[17:12:46][C][uart.arduino_esp32:115]:   Data Bits: 8
[17:12:46][C][uart.arduino_esp32:116]:   Parity: NONE
[17:12:46][C][uart.arduino_esp32:117]:   Stop bits: 1
[17:12:46][C][ledc.output:160]: LEDC Output:
[17:12:46][C][ledc.output:161]:   Pin GPIO21
[17:12:46][C][ledc.output:162]:   LEDC Channel: 0
[17:12:46][C][ledc.output:163]:   PWM Frequency: 1000.0 Hz
[17:12:46][C][ledc.output:164]:   Bit depth: 16
[17:12:46][C][template.binary_sensor:018]: Template Binary Sensor 'esptest Left Button'
[17:12:46][C][template.binary_sensor:018]: Template Binary Sensor 'esptest Right Button'
[17:12:46][C][uptime.sensor:031]: Uptime Sensor 'esptest uptime'
[17:12:46][C][uptime.sensor:031]:   Device Class: 'duration'
[17:12:46][C][uptime.sensor:031]:   State Class: 'total_increasing'
[17:12:46][C][uptime.sensor:031]:   Unit of Measurement: 's'
[17:12:46][C][uptime.sensor:031]:   Accuracy Decimals: 0
[17:12:46][C][uptime.sensor:031]:   Icon: 'mdi:timer-outline'
[17:12:46][C][template.sensor:023]: Template Sensor 'esptest Display Target Temperature'
[17:12:46][C][template.sensor:023]:   State Class: ''
[17:12:46][C][template.sensor:023]:   Unit of Measurement: ''
[17:12:46][C][template.sensor:023]:   Accuracy Decimals: 1
[17:12:46][C][template.sensor:024]:   Update Interval: 10.0s
[17:12:46][C][template.text_sensor:021]: Template Sensor 'esptest Notification Label'
[17:12:46][C][template.text_sensor:021]: Template Sensor 'esptest Notification Text'
[17:12:46][C][template.switch:076]: Template Switch 'esptest Nextion inited'
[17:12:46][C][template.switch:099]:   Restore Mode: restore defaults to OFF
[17:12:46][C][template.switch:060]:   Restore State: NO
[17:12:46][C][template.switch:061]:   Optimistic: YES

What to do?

Have you uploaded the TFT file to your panel?
That could be a start…

Yes, have tried the blank tft the nspanel tft from local server. And upload from developer service.

I get errors exactly like this guy https://github.com/esphome/issues/issues/3519

There is a long thread about that, but please try this: After flashing new device, Nextion is not connected · Issue #641 · Blackymas/NSPanel_HA_Blueprint · GitHub

Same thing here is the log

49	[D]	[nextion_upload:175]	
Requesting URL: http://192.168.0.119:8123/local/nspanelblank.tft
17:53:50	[D]	[nextion_upload:209]	
Updating Nextion ...
17:53:50	[D]	[nextion_upload:235]	
Waiting for upgrade response
17:53:50	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:50	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:50	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:50	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:50	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:50	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:51	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:51	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:51	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:51	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:51	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:51	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:51	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:51	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:51	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:52	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:52	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:52	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:52	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:52	[E]	[uart:015]	
Reading from UART timed out at byte 0!
17:53:52	[D]	[nextion_upload:239]	
Upgrade response is  20
17:53:52	[D]	[nextion_upload:242]	
Available 0 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 1 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 2 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 3 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 3 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 4 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 5 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 6 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 7 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 7 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 8 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 9 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 10 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 10 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 11 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 12 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 13 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 14 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 15 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 16 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 17 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 18 : 0x00
17:53:52	[D]	[nextion_upload:242]	
Available 19 : 0x00
17:53:52	[D]	[nextion_upload:248]	
preparation for tft update failed 0 ""
17:53:52	[D]	[nextion_upload:324]	
Restarting Nextion

Could you please share the yaml of your ESPHome? Please remove the WiFi password before sharing here.

By the way, don’t you want to report this as an issue in github?

substitutions:

  device_name: "esptest" 
  wifi_ssid: "wifi"
  wifi_password: "password"
  

  nextion_update_url: "http://192.168.0.119:8123/local/nspanel.tft" 


external_components:
  - source: github://pr#2956
    components: [nextion]
    refresh: 1h


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


ota:
  password: "password"

web_server:
  port: 80
  auth:
    username: admin
    password: password
    

If you paste this url ij your browser (in your computer), do you have the TFT file downloaded to your computer? Does the file have the right size?

What about http://192.168.0.119:8123/local/nspanelblank.tft?

If those files are downloading, so you PR www server is OK. In this case, I would suggest to try this:

substitutions:

  device_name: "esptest" 
  wifi_ssid: "wifi"
  wifi_password: "password"
  

  nextion_update_url: "http://192.168.0.119:8123/local/nspanel.tft" 

  baud_rate: "9600"


external_components:
  - source: github://pr#2956
    components: [nextion]
    refresh: 1h


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


ota:
  password: "password"

web_server:
  port: 80
  auth:
    username: admin
    password: password

If you succeed transferring the nspanel_blank.tft, then please revert it back to your original settings and then try to transfer nspanel_eu.tft/nspanel_us.tft:

substitutions:

  device_name: "esptest" 
  wifi_ssid: "wifi"
  wifi_password: "password"
  
  nextion_update_url: "http://192.168.0.119:8123/local/nspanel.tft" 


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


ota:
  password: "password"

web_server:
  port: 80
  auth:
    username: admin
    password: password

Ok, We have progress.
Helped with a power reboot.
No more nextion error load.

But still can’t upload the blank tft.




And still the old screen

Try this now:

→ I’ve remove the baud_rate settings (so it will use the default 115200) and changed ref from dev to main in the remote package.

substitutions:

  device_name: "esptest" 
  wifi_ssid: "wifi"
  wifi_password: "password"
  

  nextion_update_url: "http://192.168.0.119:8123/local/nspanel.tft" 

  #baud_rate: "9600"


external_components:
  - source: github://pr#2956
    components: [nextion]
    refresh: 1h


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


ota:
  password: "password"

web_server:
  port: 80
  auth:
    username: admin
    password: password
1 Like

Thanks Edward, for trying to help.
I have tried almost everything, but I can’t get the tft uploaded.

So now I have installed tasmota again and uploaded the tft.

Backlog UrlFetch https://raw.githubusercontent.com/joBr99/nspanel-lovelace-ui/main/tasmota/autoexec.be; Restart 1
FlashNextion http://192.168.10.15:8123/nspanel_blank.tft
FlashNextion http://192.168.10.15:8123/nspanel_eu.tft

Easiest way

1 Like

So, is your panel working fine now?