Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.23k stars 227 forks source link

`Bug` NSPanel invalid Blueprint version #2001

Closed Lice2 closed 2 months ago

Lice2 commented 2 months ago

TFT Version

TFT: 4.3.1

ESPHome Version

2024.3.1

Blueprint Version

4.3.1

Panel Model

EU

What is the bug?

The panel freezes sporadically. Not every day . Today it hung up again. My guess is that if there are no more Sonsor values coming from my solar inverter, that's why the panel hangs up. IMG_20240329_211118 IMG_20240329_211438

Steps to Reproduce

Unfortunately I can't

Your Panel's YAML

substitutions:

###### CHANGE ME START ######

  device_name: "nspanel" 
  wifi_ssid: "HOME - MineLice"
  wifi_password: !secret wifi_password

  nextion_update_url: "http://192.168.0.161:8123/local/nspanel_eu.tft" # URL to local tft File
#  nextion_update_url: "http://192.168.0.161:8123/local/nspanel_blank.tft" # URL to Blank Screen
#  nextion_update_url: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft" # URL to Github

##### CHANGE ME END #####

# Customization area
##### My customization - Start #####

# Set IP address manually
wifi:
  networks:
    - id: !extend wifi_default
      manual_ip:
        static_ip: 192.168.0.199
        gateway: 192.168.0.240
        subnet: 255.255.255.0
        dns1: 192.168.0.240
##### My customization - 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! #####

##### Temporary code #####
#external_components:
#  - source: github://pr#5829
#    components:
#      - nextion
#    refresh: 1s

ESPHome Logs

INFO ESPHome 2024.3.1
INFO Reading configuration /config/esphome/nspanel.yaml...
INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main
INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main
INFO Updating https://github.com/edwardtfn/esphome@nextion-v431
INFO Updating https://github.com/edwardtfn/esphome@adc-sampling
INFO Detected timezone 'Europe/Berlin'
INFO Starting log output from 192.168.0.199 using esphome API
INFO Successfully connected to nspanel @ 192.168.0.199 in 0.038s
INFO Successful handshake with nspanel @ 192.168.0.199 in 0.022s
[21:17:16][I][app:102]: ESPHome version 2024.3.1 compiled on Mar 28 2024, 21:06:31
[21:17:16][C][wifi:580]: WiFi:
[21:17:16][C][wifi:408]:   Local MAC: 3C:E9:0E:87:E2:2C
[21:17:16][C][wifi:413]:   SSID: [redacted]
[21:17:16][C][wifi:416]:   IP Address: 192.168.0.199
[21:17:16][C][wifi:420]:   BSSID: [redacted]
[21:17:16][C][wifi:421]:   Hostname: 'nspanel'
[21:17:16][C][wifi:423]:   Signal strength: -56 dB ▂▄▆█
[21:17:16][C][wifi:427]:   Channel: 5
[21:17:16][C][wifi:428]:   Subnet: 255.255.255.0
[21:17:16][C][wifi:429]:   Gateway: 192.168.0.240
[21:17:16][C][wifi:430]:   DNS1: 192.168.0.240
[21:17:16][C][wifi:431]:   DNS2: 0.0.0.0
[21:17:16][C][logger:166]: Logger:
[21:17:16][C][logger:167]:   Level: DEBUG
[21:17:16][C][logger:169]:   Log Baud Rate: 0
[21:17:16][C][logger:170]:   Hardware UART: UART0
[21:17:16][C][uart.idf:139]: UART Bus 0:
[21:17:16][C][uart.idf:140]:   TX Pin: GPIO16
[21:17:16][C][uart.idf:141]:   RX Pin: GPIO17
[21:17:16][C][uart.idf:143]:   RX Buffer Size: 256
[21:17:16][C][uart.idf:145]:   Baud Rate: 115200 baud
[21:17:16][C][uart.idf:146]:   Data Bits: 8
[21:17:16][C][uart.idf:147]:   Parity: NONE
[21:17:16][C][uart.idf:148]:   Stop bits: 1
[21:17:16][C][ledc.output:164]: LEDC Output:
[21:17:16][C][ledc.output:165]:   Pin GPIO21
[21:17:16][C][ledc.output:166]:   LEDC Channel: 0
[21:17:16][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[21:17:16][C][ledc.output:168]:   Bit depth: 16
[21:17:16][C][template.binary_sensor:028]: Template Binary Sensor 'Nextion display'
[21:17:16][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[21:17:16][C][template.number:050]: Template Number 'Display Brightness'
[21:17:16][C][template.number:050]:   Unit of Measurement: '%'
[21:17:16][C][template.number:051]:   Optimistic: YES
[21:17:16][C][template.number:052]:   Update Interval: 60.0s
[21:17:16][C][template.number:050]: Template Number 'Display Brightness Dimdown'
[21:17:16][C][template.number:050]:   Unit of Measurement: '%'
[21:17:16][C][template.number:051]:   Optimistic: YES
[21:17:16][C][template.number:052]:   Update Interval: 60.0s
[21:17:16][C][template.number:050]: Template Number 'Display Brightness Sleep'
[21:17:16][C][template.number:050]:   Unit of Measurement: '%'
[21:17:16][C][template.number:051]:   Optimistic: YES
[21:17:16][C][template.number:052]:   Update Interval: 60.0s
[21:17:16][C][template.number:050]: Template Number 'Temperature Correction'
[21:17:16][C][template.number:050]:   Unit of Measurement: '°C'
[21:17:16][C][template.number:051]:   Optimistic: YES
[21:17:16][C][template.number:052]:   Update Interval: 60.0s
[21:17:16][C][template.number:050]: Template Number 'Timeout Page'
[21:17:16][C][template.number:050]:   Icon: 'mdi:timer'
[21:17:16][C][template.number:050]:   Unit of Measurement: 's'
[21:17:16][C][template.number:051]:   Optimistic: YES
[21:17:16][C][template.number:052]:   Update Interval: 60.0s
[21:17:16][C][template.number:050]: Template Number 'Timeout Dimming'
[21:17:16][C][template.number:050]:   Icon: 'mdi:timer'
[21:17:16][C][template.number:050]:   Unit of Measurement: 's'
[21:17:16][C][template.number:051]:   Optimistic: YES
[21:17:16][C][template.number:052]:   Update Interval: 60.0s
[21:17:16][C][template.number:050]: Template Number 'Timeout Sleep'
[21:17:16][C][template.number:050]:   Icon: 'mdi:timer'
[21:17:16][C][template.number:050]:   Unit of Measurement: 's'
[21:17:16][C][template.number:051]:   Optimistic: YES
[21:17:16][C][template.number:052]:   Update Interval: 60.0s
[21:17:16][C][template.select:065]: Template Select 'Baud rate'
[21:17:16][C][template.select:065]:   Icon: 'mdi:swap-horizontal'
[21:17:16][C][template.select:066]:   Update Interval: 60.0s
[21:17:16][C][template.select:069]:   Optimistic: YES
[21:17:16][C][template.select:070]:   Initial Option: 115200
[21:17:16][C][template.select:071]:   Restore Value: YES
[21:17:16][C][template.select:065]: Template Select 'Wake-up page'
[21:17:16][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[21:17:16][C][template.select:066]:   Update Interval: 60.0s
[21:17:16][C][template.select:069]:   Optimistic: YES
[21:17:16][C][template.select:070]:   Initial Option: home
[21:17:16][C][template.select:071]:   Restore Value: YES
[21:17:16][C][template.select:065]: Template Select 'Update TFT display - Model'
[21:17:16][C][template.select:065]:   Icon: 'mdi:file-sync'
[21:17:16][C][template.select:066]:   Update Interval: 60.0s
[21:17:16][C][template.select:069]:   Optimistic: YES
[21:17:16][C][template.select:070]:   Initial Option: NSPanel EU
[21:17:16][C][template.select:071]:   Restore Value: YES
[21:17:16][C][template.select:065]: Template Select 'Update TFT display - Baud rate'
[21:17:16][C][template.select:065]:   Icon: 'mdi:swap-horizontal'
[21:17:16][C][template.select:066]:   Update Interval: 60.0s
[21:17:16][C][template.select:069]:   Optimistic: YES
[21:17:16][C][template.select:070]:   Initial Option: 921600
[21:17:16][C][template.select:071]:   Restore Value: YES
[21:17:16][C][switch.gpio:068]: GPIO Switch 'Nextion display - Power'
[21:17:16][C][switch.gpio:091]:   Restore Mode: always ON
[21:17:16][C][switch.gpio:031]:   Pin: GPIO4
[21:17:16][C][template.text_sensor:020]: Template Sensor 'Device Name'
[21:17:16][C][template.text_sensor:020]:   Icon: 'mdi:identifier'
[21:17:16][C][template.text_sensor:020]: Template Sensor 'Detailed Entity'
[21:17:17][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[21:17:17][C][template.text_sensor:020]: Template Sensor 'Notification Label'
[21:17:17][C][template.text_sensor:020]: Template Sensor 'Notification Text'
[21:17:17][C][template.sensor:022]: Template Sensor 'Blueprint'
[21:17:17][C][template.sensor:022]:   State Class: ''
[21:17:17][C][template.sensor:022]:   Unit of Measurement: '%'
[21:17:17][C][template.sensor:022]:   Accuracy Decimals: 1
[21:17:17][C][template.sensor:022]:   Icon: 'mdi:link-variant'
[21:17:17][C][template.sensor:023]:   Update Interval: 60.0s
[21:17:17][C][switch.gpio:068]: GPIO Switch 'Relay 1'
[21:17:17][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[21:17:17][C][switch.gpio:031]:   Pin: GPIO22
[21:17:17][C][switch.gpio:068]: GPIO Switch 'Relay 2'
[21:17:17][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[21:17:17][C][switch.gpio:031]:   Pin: GPIO19
[21:17:17][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Left Button'
[21:17:17][C][gpio.binary_sensor:016]:   Pin: GPIO14
[21:17:17][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Right Button'
[21:17:17][C][gpio.binary_sensor:016]:   Pin: GPIO27
[21:17:17][C][template.switch:068]: Template Switch 'Notification unread'
[21:17:17][C][template.switch:091]:   Restore Mode: always OFF
[21:17:17][C][template.switch:057]:   Optimistic: YES
[21:17:17][C][template.switch:068]: Template Switch 'Notification sound'
[21:17:17][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[21:17:17][C][template.switch:057]:   Optimistic: YES
[21:17:17][C][rtttl:029]: Rtttl
[21:17:17][C][nextion:128]: Nextion:
[21:17:17][C][nextion:129]:   Device Model:     NX4832F035_011C
[21:17:17][C][nextion:130]:   Firmware Version: 72
[21:17:17][C][nextion:131]:   Serial Number:    F3AF3401586F685B
[21:17:17][C][nextion:132]:   Flash Size:       16777216
[21:17:17][C][nextion:133]:   Wake On Touch:    YES
[21:17:17][C][nextion:134]:   Exit reparse:     YES
[21:17:17][C][nextion:145]:   Start Up Page:    0
[21:17:17][C][factory_reset.button:011]: Factory Reset Button 'Factory reset'
[21:17:18][C][factory_reset.button:011]:   Icon: 'mdi:restart-alert'
[21:17:18][C][restart.button:017]: Restart Button 'Restart'
[21:17:18][C][adc:097]: ADC Sensor 'ntc_source'
[21:17:18][C][adc:097]:   Device Class: 'voltage'
[21:17:18][C][adc:097]:   State Class: 'measurement'
[21:17:18][C][adc:097]:   Unit of Measurement: 'V'
[21:17:18][C][adc:097]:   Accuracy Decimals: 2
[21:17:18][C][adc:107]:   Pin: GPIO38
[21:17:18][C][adc:122]:   Attenuation: 11db
[21:17:18][C][adc:141]:   Samples: 12
[21:17:18][C][adc:142]:   Update Interval: 60.0s
[21:17:18][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[21:17:18][C][resistance:010]:   State Class: 'measurement'
[21:17:18][C][resistance:010]:   Unit of Measurement: 'Ω'
[21:17:18][C][resistance:010]:   Accuracy Decimals: 1
[21:17:18][C][resistance:010]:   Icon: 'mdi:flash'
[21:17:18][C][resistance:011]:   Configuration: DOWNSTREAM
[21:17:18][C][resistance:012]:   Resistor: 11200.00Ω
[21:17:18][C][resistance:013]:   Reference Voltage: 3.3V
[21:17:18][C][ntc:014]: NTC Sensor 'Temperature'
[21:17:18][C][ntc:014]:   Device Class: 'temperature'
[21:17:18][C][ntc:014]:   State Class: 'measurement'
[21:17:18][C][ntc:014]:   Unit of Measurement: '°C'
[21:17:18][C][ntc:014]:   Accuracy Decimals: 1
[21:17:18][C][homeassistant.time:010]: Home Assistant Time:
[21:17:18][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[21:17:19][C][mdns:115]: mDNS:
[21:17:19][C][mdns:116]:   Hostname: nspanel
[21:17:19][C][ota:096]: Over-The-Air Updates:
[21:17:19][C][ota:097]:   Address: 192.168.0.199:3232
[21:17:19][C][ota:100]:   Using Password.
[21:17:19][C][ota:103]:   OTA version: 2.
[21:17:19][C][api:139]: API Server:
[21:17:19][C][api:140]:   Address: 192.168.0.199:6053
[21:17:19][C][api:144]:   Using noise encryption: NO
[21:17:19][C][wifi_signal.sensor:009]: WiFi Signal 'RSSI'
[21:17:19][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[21:17:19][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[21:17:19][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[21:17:19][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[21:17:19][C][wifi_signal.sensor:009]:   Icon: 'mdi:wifi'

Home Assistant Logs

I have an automation when motion is detected at a certain time. the display should be shown. And when the right hardware button is pressed. NSPanel-Anzeigen

edwardtfn commented 2 months ago

You mentioned the panel freezes... Even the time gets frozen or is that updating every minute? Does it still going to sleep? Can you open the settings page? Anything else is updated in the screen? Does the panel recovers by itself after a while or how are you doing to recover it?

Any additional info you can provide may help understanding what is causing this. 🙂

Lice2 commented 2 months ago

Nothing is updated on the panel anymore. I can no longer click anything on the display. Just like the hardware buttons can no longer be pressed. Otherwise I have to unplug the panel and switch it on again. Yesterday I was lucky enough to be able to restart it using the restart button via home assistant. But yesterday I was still able to press the hardware buttons. It's like the display is more or less frozen. But you can always see the red Home Assistant symbol when it hangs up.

edwardtfn commented 2 months ago

Ok, thanks. I will look at that. In the meanwhile, you should try using the reset button in the bottom of your panel as that should be the almost the same (and much easier) than unplugging your panel from power.

Reset button

Lice2 commented 2 months ago

My panel is connected to its own fuse in the electricity meter cabinet. And the panel is built directly into the wall where the electricity meter is. But yes, thank you very much!

edwardtfn commented 2 months ago

I believe I found a fix to this, already implemented to dev and will be included in the next release. At least this may get more info to help us troubleshooting if the issue persists. I will close this for now to make the backlog cleaner, but please feel free to reopen if the issue persists after the new release.

Lice2 commented 2 months ago

ok Thank you !