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

Going back to an older version of NSPanel_HA_Blueprint #992

Closed Ma-Maison-Intelligente closed 1 year ago

Ma-Maison-Intelligente commented 1 year ago

Hi all,

I used NSPanel_HA-Blueprint since some months without poblem.

Some days ago , I changed my internet box so I was oblige to upload the new SSID end PW to the NSPanel. For that, still connected to my old box I change the SSID/PW in nspanel.yaml and install the file updated with only these changes.

Unfortunatly by doing that, my panel didn't work anymore. I supposed that come from an update done automatically due to the code includ in the nspanel.yaml file

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 ###################

So I decided to upload the last version of NSPanel_HA_Blueprint. I install it and also the last version of ESPHome. Unfortunately, impossible for me to upload correctly in the NSPanel the last version of nspanel_eu.tft. I can upload correctly the nspanel_blank.tft and I try the differnet solution mention on your Git tu upload the nspanel_eu.tft but without success.

When I updated the blueprint the only file I remove before installing the newone was the nspanel_blueprint.yaml located in the folder Config/blueprints/automation/Blackymas. Is it correct ???

So due to the fact that the old wersion worked before, is it possible to install the old version and if yes can you explain me step by step how to do ?

Thank you in advance for your help.

edwardtfn commented 1 year ago
  1. Do you know which version you had before?
  2. What do you see in your panel's screen now?
  3. Do you have any error message related to your panel in Home Assistant logs (Settings > System > Logs) or ESPHome logs?
Ma-Maison-Intelligente commented 1 year ago

Hi edwardtfn,

  1. Sorry but I don't remerber the version I had before who works well.
  2. Screen of my NSPanel is fully white
  3. No error message related to my NSPanel in Home Assistant logss and log of ESPHome are below:

for your information at this time my NSPanel in not lock to the module including relay and power. Power is directly done in 5v with the internal pins.

INFO ESPHome 2023.8.2 INFO Reading configuration /config/esphome/nspanel.yaml... INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main 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 nspanel.local using esphome API INFO Successfully connected to nspanel.local [13:57:57][I][app:102]: ESPHome version 2023.8.2 compiled on Aug 22 2023, 19:34:59

[13:57:57][C][wifi:379]: Local MAC: -------- [13:57:57][C][wifi:380]: SSID: [redacted] [13:57:57][C][wifi:381]: IP Address: xxx.xxx.xx.xx [13:57:57][C][wifi:383]: BSSID: [redacted]

[13:57:57][C][wifi:386]: Signal strength: -22 dB ▂▄▆█ [13:57:57][C][wifi:390]: Channel: 11 [13:57:57][C][wifi:391]: Subnet: xxx.xxx.xx.xx [13:57:57][C][wifi:392]: Gateway: xxx.xxx.xx.xx [13:57:57][C][wifi:393]: DNS1: xxx.xxx.xx.xx [13:57:57][C][wifi:394]: DNS2: 0.0.0.0

[13:57:57][C][logger:302]: Level: DEBUG [13:57:57][C][logger:303]: Log Baud Rate: 0 [13:57:57][C][logger:305]: Hardware UART: UART0 [13:57:57][C][uart.arduino_esp32:124]: UART Bus 0: [13:57:57][C][uart.arduino_esp32:125]: TX Pin: GPIO16 [13:57:57][C][uart.arduino_esp32:126]: RX Pin: GPIO17 [13:57:57][C][uart.arduino_esp32:128]: RX Buffer Size: 256 [13:57:57][C][uart.arduino_esp32:130]: Baud Rate: 115200 baud [13:57:57][C][uart.arduino_esp32:131]: Data Bits: 8 [13:57:57][C][uart.arduino_esp32:132]: Parity: NONE [13:57:57][C][uart.arduino_esp32:133]: Stop bits: 1 [13:57:57][C][ledc.output:164]: LEDC Output: [13:57:57][C][ledc.output:165]: Pin GPIO21 [13:57:57][C][ledc.output:166]: LEDC Channel: 0 [13:57:57][C][ledc.output:167]: PWM Frequency: 1000.0 Hz [13:57:57][C][ledc.output:168]: Bit depth: 16 [13:57:57][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel Nextion display' [13:57:57][C][template.binary_sensor:028]: Device Class: 'connectivity' [13:57:57][C][uptime.sensor:031]: Uptime Sensor 'nspanel uptime' [13:57:57][C][uptime.sensor:031]: Device Class: 'duration' [13:57:57][C][uptime.sensor:031]: State Class: 'total_increasing' [13:57:57][C][uptime.sensor:031]: Unit of Measurement: 's' [13:57:57][C][uptime.sensor:031]: Accuracy Decimals: 0

[13:57:57][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Label' [13:57:57][C][template.text_sensor:020]: Template Sensor 'nspanel Notification Text' [13:57:57][C][template.text_sensor:020]: Template Sensor 'nspanel Settings Entity' [13:57:57][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 1' [13:57:57][C][switch.gpio:091]: Restore Mode: restore defaults to OFF [13:57:57][C][switch.gpio:031]: Pin: GPIO22 [13:57:57][C][switch.gpio:068]: GPIO Switch 'nspanel Relay 2' [13:57:57][C][switch.gpio:091]: Restore Mode: restore defaults to OFF [13:57:57][C][switch.gpio:031]: Pin: GPIO19 [13:57:57][C][switch.gpio:068]: GPIO Switch 'nspanel Screen Power' [13:57:57][C][switch.gpio:091]: Restore Mode: always ON [13:57:57][C][switch.gpio:031]: Pin: GPIO4 [13:57:57][C][template.number:050]: Template Number 'nspanel Display Brightness' [13:57:57][C][template.number:050]: Unit of Measurement: '%' [13:57:57][C][template.number:051]: Optimistic: YES [13:57:57][C][template.number:052]: Update Interval: 60.0s [13:57:57][C][template.number:050]: Template Number 'nspanel Display Brightness Dimdown' [13:57:57][C][template.number:050]: Unit of Measurement: '%' [13:57:57][C][template.number:051]: Optimistic: YES [13:57:57][C][template.number:052]: Update Interval: 60.0s [13:57:58][C][template.number:050]: Template Number 'nspanel Temperature Correction' [13:57:58][C][template.number:050]: Unit of Measurement: '°C' [13:57:58][C][template.number:051]: Optimistic: YES [13:57:58][C][template.number:052]: Update Interval: 60.0s [13:57:58][C][template.number:050]: Template Number 'nspanel Page Timeout' [13:57:58][C][template.number:051]: Optimistic: YES [13:57:58][C][template.number:052]: Update Interval: 60.0s [13:57:58][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Left Button' [13:57:58][C][gpio.binary_sensor:016]: Pin: GPIO14 [13:57:58][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel Right Button' [13:57:58][C][gpio.binary_sensor:016]: Pin: GPIO27 [13:57:58][C][template.switch:068]: Template Switch 'nspanel Notification unread' [13:57:58][C][template.switch:091]: Restore Mode: restore defaults to OFF [13:57:58][C][template.switch:057]: Optimistic: YES [13:57:58][C][template.switch:068]: Template Switch 'nspanel Notification sound' [13:57:58][C][template.switch:091]: Restore Mode: restore defaults to OFF [13:57:58][C][template.switch:057]: Optimistic: YES [13:57:58][C][template.switch:068]: Template Switch 'nspanel Confirmation Message' [13:57:58][C][template.switch:091]: Restore Mode: restore defaults to OFF [13:57:58][C][template.switch:057]: Optimistic: YES [13:57:58][C][template.switch:068]: Template Switch 'nspanel Sleep mode' [13:57:58][C][template.switch:079]: Device Class: 'switch' [13:57:58][C][template.switch:091]: Restore Mode: restore defaults to OFF [13:57:58][C][template.switch:057]: Optimistic: NO [13:57:58][C][template.switch:068]: Template Switch 'nspanel Relay 1 Local Fallback' [13:57:58][C][template.switch:091]: Restore Mode: restore defaults to OFF [13:57:58][C][template.switch:057]: Optimistic: YES [13:57:58][C][template.switch:068]: Template Switch 'nspanel Relay 2 Local Fallback' [13:57:58][C][template.switch:091]: Restore Mode: restore defaults to OFF [13:57:58][C][template.switch:057]: Optimistic: YES

[13:57:58][C][restart.button:017]: Restart Button 'nspanel Restart' [13:57:58][C][status:034]: Status Binary Sensor 'nspanel Status' [13:57:58][C][status:034]: Device Class: 'connectivity' [13:57:58][C][adc:094]: ADC Sensor 'ntc_source' [13:57:58][C][adc:094]: Device Class: 'voltage' [13:57:58][C][adc:094]: State Class: 'measurement' [13:57:58][C][adc:094]: Unit of Measurement: 'V' [13:57:58][C][adc:094]: Accuracy Decimals: 2 [13:57:58][C][adc:104]: Pin: GPIO38 [13:57:58][C][adc:119]: Attenuation: 11db [13:57:58][C][adc:133]: Update Interval: 60.0s [13:57:58][C][resistance:010]: Resistance Sensor 'resistance_sensor' [13:57:58][C][resistance:010]: State Class: 'measurement' [13:57:58][C][resistance:010]: Unit of Measurement: 'Ω' [13:57:58][C][resistance:010]: Accuracy Decimals: 1

[13:57:58][C][resistance:011]: Configuration: DOWNSTREAM [13:57:58][C][resistance:012]: Resistor: 11200.00Ω [13:57:58][C][resistance:013]: Reference Voltage: 3.3V [13:57:58][C][version.text_sensor:021]: Version Text Sensor 'nspanel ESPhome Version'

[13:57:58][C][nextion:118]: Device Model: NX4832F035_011C [13:57:58][C][nextion:119]: Firmware Version: 72 [13:57:58][C][nextion:120]: Serial Number: 45B03401FC2D3E78 [13:57:58][C][nextion:121]: Flash Size: 16777216 [13:57:58][C][nextion:122]: Wake On Touch: True [13:57:58][C][ntc:014]: NTC Sensor 'nspanel Temperature' [13:57:58][C][ntc:014]: Device Class: 'temperature' [13:57:58][C][ntc:014]: State Class: 'measurement' [13:57:58][C][ntc:014]: Unit of Measurement: '°C' [13:57:58][C][ntc:014]: Accuracy Decimals: 1 [13:57:59][C][captive_portal:088]: Captive Portal: [13:57:59][C][web_server:161]: Web Server: [13:57:59][C][web_server:162]: Address: nspanel.local:80

[13:57:59][C][mdns:113]: Hostname: nspanel [13:57:59][C][ota:093]: Over-The-Air Updates: [13:57:59][C][ota:094]: Address: nspanel.local:3232 [13:57:59][C][ota:097]: Using Password. [13:57:59][C][api:138]: API Server: [13:57:59][C][api:139]: Address: nspanel.local:6053 [13:57:59][C][api:143]: Using noise encryption: NO [13:57:59][C][wifi_info:009]: WifiInfo IPAddress 'nspanel IP' [13:57:59][C][wifi_info:011]: WifiInfo SSID 'nspanel SSID' [13:57:59][C][wifi_info:012]: WifiInfo BSSID 'nspanel BSSID' [13:57:59][C][wifi_signal.sensor:009]: WiFi Signal 'nspanel RSSI' [13:57:59][C][wifi_signal.sensor:009]: Device Class: 'signal_strength' [13:57:59][C][wifi_signal.sensor:009]: State Class: 'measurement' [13:57:59][C][wifi_signal.sensor:009]: Unit of Measurement: 'dBm' [13:57:59][C][wifi_signal.sensor:009]: Accuracy Decimals: 0 [13:57:59][D][sensor:094]: 'ntc_source': Sending state 1.49100 V with 2 decimals of accuracy [13:57:59][D][resistance:039]: 'resistance_sensor' - Resistance 9231.2Ω [13:57:59][D][sensor:094]: 'resistance_sensor': Sending state 9231.17871 Ω with 1 decimals of accuracy [13:57:59][D][ntc:026]: 'nspanel Temperature' - Temperature: 26.8°C [13:57:59][D][sensor:094]: 'nspanel Temperature': Sending state 26.81127 °C with 1 decimals of accuracy [13:58:00][W][nextion:396]: Nextion reported variable name invalid! [13:58:00][W][nextion:396]: Nextion reported variable name invalid! [13:58:00][W][nextion:396]: Nextion reported variable name invalid! [13:58:00][W][nextion:396]: Nextion reported variable name invalid! [13:58:10][D][sensor:094]: 'nspanel RSSI': Sending state -21.00000 dBm with 0 decimals of accuracy [13:58:10][W][nextion:396]: Nextion reported variable name invalid! [13:58:47][D][sensor:094]: 'nspanel uptime': Sending state 8854.76465 s with 0 decimals of accuracy [13:58:59][D][sensor:094]: 'ntc_source': Sending state 1.49100 V with 2 decimals of accuracy [13:58:59][D][resistance:039]: 'resistance_sensor' - Resistance 9231.2Ω [13:58:59][D][sensor:094]: 'resistance_sensor': Sending state 9231.17871 Ω with 1 decimals of accuracy [13:58:59][D][ntc:026]: 'nspanel Temperature' - Temperature: 26.8°C [13:58:59][D][sensor:094]: 'nspanel Temperature': Sending state 26.81127 °C with 1 decimals of accuracy [13:59:00][W][nextion:396]: Nextion reported variable name invalid! [13:59:00][W][nextion:396]: Nextion reported variable name invalid! [13:59:00][W][nextion:396]: Nextion reported variable name invalid! [13:59:00][W][nextion:396]: Nextion reported variable name invalid! [13:59:10][D][sensor:094]: 'nspanel RSSI': Sending state -22.00000 dBm with 0 decimals of accuracy [13:59:10][W][nextion:396]: Nextion reported variable name invalid! [13:59:47][D][sensor:094]: 'nspanel uptime': Sending state 8914.76465 s with 0 decimals of accuracy [13:59:59][D][sensor:094]: 'ntc_source': Sending state 1.49100 V with 2 decimals of accuracy [13:59:59][D][resistance:039]: 'resistance_sensor' - Resistance 9231.2Ω [13:59:59][D][sensor:094]: 'resistance_sensor': Sending state 9231.17871 Ω with 1 decimals of accuracy [13:59:59][D][ntc:026]: 'nspanel Temperature' - Temperature: 26.8°C [13:59:59][D][sensor:094]: 'nspanel Temperature': Sending state 26.81127 °C with 1 decimals of accuracy [14:00:00][W][nextion:396]: Nextion reported variable name invalid! [14:00:00][W][nextion:396]: Nextion reported variable name invalid! [14:00:00][W][nextion:396]: Nextion reported variable name invalid! [14:00:00][W][nextion:396]: Nextion reported variable name invalid!

edwardtfn commented 1 year ago
  1. Could you please share the ESPHome yaml used to setup this panel? Please remove any sensitive info before sharing.
  2. Could you please press the button "Upload TFT" in the device page (Settings > Devices and Services > ESPHome) and then capture the log from when you press that to the following few seconds?

You mentioned you have a white screen. The 'nspanel_blank.tft` was a white screen before, but since a few versions ago it should display a QR code, so please make sure you have the latest files from GitHub.

edwardtfn commented 1 year ago

I'm closing this as no answer since a while. Please feel free to open again if you still having trouble.