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

When Big update is coming, I have trouble :-( #1639

Closed pillemats closed 9 months ago

pillemats commented 9 months ago

TFT Version

4.2.1

ESPHome Version

4.2.1

Blueprint Version

4.3.3

Panel Model

NSPanel EU Model

What is the bug?

display is empty / only the background

Steps to Reproduce

esphome updated to the newest version and i download the newest tft version and updated it too

Your panel's YAML

substitutions:

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

  device_name: "nspanel-dachboden" 
  wifi_ssid: "xxx"
  wifi_password: "xxx"

  nextion_update_url: "http://192.xxx.xxx.xxx:8123/local/nspaneleu.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: beta
    files: [nspanel_esphome.yaml]
    refresh: 300s

##### DO NOT CHANGE ANYTHING! #####

ESPHome logs

INFO ESPHome 2023.12.6
INFO Reading configuration /config/esphome/nspanel-dachboden.yaml...
INFO Detected timezone 'Europe/Berlin'
INFO Starting log output from 192.168.178.86 using esphome API
INFO Successfully connected to nspanel-dachboden @ 192.168.178.86 in 3.114s
INFO Successful handshake with nspanel-dachboden @ 192.168.178.86 in 0.047s
[21:22:53][I][app:102]: ESPHome version 2023.12.6 compiled on Jan 15 2024, 21:12:27
[21:22:53][C][wifi:573]: WiFi:
[21:22:53][C][wifi:405]:   Local MAC: 3C:E9:0E:87:B3:EC
[21:22:53][C][wifi:410]:   SSID: [redacted]
[21:22:53][C][wifi:411]:   IP Address: 192.168.178.86
[21:22:53][C][wifi:413]:   BSSID: [redacted]
[21:22:53][C][wifi:414]:   Hostname: 'nspanel-dachboden'
[21:22:53][C][wifi:416]:   Signal strength: -47 dB ▂▄▆█
[21:22:53][C][wifi:420]:   Channel: 1
[21:22:53][C][wifi:421]:   Subnet: 255.255.255.0
[21:22:53][C][wifi:422]:   Gateway: 192.168.178.1
[21:22:53][C][wifi:423]:   DNS1: 192.168.178.1
[21:22:53][C][wifi:424]:   DNS2: 0.0.0.0
[21:22:53][D][api:102]: Accepted 192.168.178.205
[21:22:53][C][logger:439]: Logger:
[21:22:53][C][logger:440]:   Level: DEBUG
[21:22:53][C][logger:441]:   Log Baud Rate: 0
[21:22:53][C][logger:443]:   Hardware UART: UART0
[21:22:53][D][api.connection:1121]: Home Assistant 2024.1.3 (192.168.178.205): Connected successfully
[21:22:53][I][script.watchdog:3103]: Wi-Fi:         Excellent (-47 dBm)
[21:22:53][I][script.watchdog:3123]: API:           Connected
[21:22:53][W][script.watchdog:3143]: Blueprint:     Pending
[21:22:53][I][script.watchdog:3144]: Requesting blueprint settings
[21:22:53][I][script.watchdog:3154]: ESPHome:
[21:22:53][I][script.watchdog:3155]:   Version:     4.2.1
[21:22:53][I][script.watchdog:3158]:   Framework:   arduino
[21:22:53][I][script.watchdog:3164]: UART:
[21:22:53][I][script.watchdog:3165]:   Baud rate:   115200 bps
[21:22:53][I][script.watchdog:3166]:   Queue size:  8
[21:22:53][I][script.watchdog:3170]: Nextion:
[21:22:53][I][script.watchdog:3171]:   Queue size:  2
[21:22:53][I][script.watchdog:3173]:   Is setup:    True
[21:22:53][W][script.watchdog:3184]:   Init:        False
[21:22:53][I][script.watchdog:3188]:   TFT:         4.2.1
[21:22:53][D][script:077]: Script 'report_settings' restarting (mode: restart)
[21:22:53][W][component:214]: Component api took a long time for an operation (0.06 s).
[21:22:53][W][component:215]: Components should block for at most 20-30ms.
[21:22:53][D][time:045]: Synchronized time: 2024-01-15 21:22:53
[21:22:53][D][main:118]: System clock synchronized
[21:22:53][C][uart.arduino_esp32:137]: UART Bus 0:
[21:22:53][C][uart.arduino_esp32:138]:   TX Pin: GPIO16
[21:22:53][C][uart.arduino_esp32:139]:   RX Pin: GPIO17
[21:22:53][C][uart.arduino_esp32:141]:   RX Buffer Size: 256
[21:22:53][C][uart.arduino_esp32:143]:   Baud Rate: 115200 baud
[21:22:53][C][uart.arduino_esp32:144]:   Data Bits: 8
[21:22:53][C][uart.arduino_esp32:145]:   Parity: NONE
[21:22:53][C][uart.arduino_esp32:146]:   Stop bits: 1
[21:22:53][C][ledc.output:164]: LEDC Output:
[21:22:53][C][ledc.output:165]:   Pin GPIO21
[21:22:53][C][ledc.output:166]:   LEDC Channel: 0
[21:22:53][C][ledc.output:167]:   PWM Frequency: 1000.0 Hz
[21:22:53][C][ledc.output:168]:   Bit depth: 16
[21:22:53][C][template.binary_sensor:028]: Template Binary Sensor 'nspanel-dachboden Nextion display'
[21:22:53][C][template.binary_sensor:028]:   Device Class: 'connectivity'
[21:22:53][C][template.number:050]: Template Number 'nspanel-dachboden Display Brightness'
[21:22:53][C][template.number:050]:   Unit of Measurement: '%'
[21:22:53][C][template.number:051]:   Optimistic: YES
[21:22:53][C][template.number:052]:   Update Interval: 60.0s
[21:22:53][C][template.number:050]: Template Number 'nspanel-dachboden Display Brightness Dimdown'
[21:22:53][C][template.number:050]:   Unit of Measurement: '%'
[21:22:53][C][template.number:051]:   Optimistic: YES
[21:22:53][C][template.number:052]:   Update Interval: 60.0s
[21:22:53][C][template.number:050]: Template Number 'nspanel-dachboden Display Brightness Sleep'
[21:22:53][C][template.number:050]:   Unit of Measurement: '%'
[21:22:53][C][template.number:051]:   Optimistic: YES
[21:22:53][C][template.number:052]:   Update Interval: 60.0s
[21:22:53][C][template.number:050]: Template Number 'nspanel-dachboden Temperature Correction'
[21:22:53][C][template.number:050]:   Unit of Measurement: '°C'
[21:22:53][C][template.number:051]:   Optimistic: YES
[21:22:53][C][template.number:052]:   Update Interval: 60.0s
[21:22:53][C][template.number:050]: Template Number 'nspanel-dachboden Timeout Page'
[21:22:53][C][template.number:050]:   Icon: 'mdi:timer'
[21:22:53][C][template.number:050]:   Unit of Measurement: 's'
[21:22:53][C][template.number:051]:   Optimistic: YES
[21:22:53][C][template.number:052]:   Update Interval: 60.0s
[21:22:53][C][template.number:050]: Template Number 'nspanel-dachboden Timeout Dimming'
[21:22:53][C][template.number:050]:   Icon: 'mdi:timer'
[21:22:53][C][template.number:050]:   Unit of Measurement: 's'
[21:22:53][C][template.number:051]:   Optimistic: YES
[21:22:53][C][template.number:052]:   Update Interval: 60.0s
[21:22:53][C][template.number:050]: Template Number 'nspanel-dachboden Timeout Sleep'
[21:22:53][C][template.number:050]:   Icon: 'mdi:timer'
[21:22:53][C][template.number:050]:   Unit of Measurement: 's'
[21:22:53][C][template.number:051]:   Optimistic: YES
[21:22:53][C][template.number:052]:   Update Interval: 60.0s
[21:22:53][C][template.select:065]: Template Select 'nspanel-dachboden Baud rate'
[21:22:53][C][template.select:065]:   Icon: 'mdi:swap-horizontal'
[21:22:53][C][template.select:066]:   Update Interval: 60.0s
[21:22:53][C][template.select:069]:   Optimistic: YES
[21:22:53][C][template.select:070]:   Initial Option: 115200
[21:22:53][C][template.select:071]:   Restore Value: YES
[21:22:53][C][template.select:065]: Template Select 'nspanel-dachboden Wake-up page'
[21:22:53][C][template.select:065]:   Icon: 'mdi:page-next-outline'
[21:22:53][C][template.select:066]:   Update Interval: 60.0s
[21:22:53][C][template.select:069]:   Optimistic: YES
[21:22:53][C][template.select:070]:   Initial Option: home
[21:22:53][C][template.select:071]:   Restore Value: YES
[21:22:53][C][template.select:065]: Template Select 'nspanel-dachboden Update TFT display - Branch'
[21:22:53][C][template.select:065]:   Icon: 'mdi:file-sync'
[21:22:53][C][template.select:066]:   Update Interval: 60.0s
[21:22:53][C][template.select:069]:   Optimistic: YES
[21:22:53][C][template.select:070]:   Initial Option: main
[21:22:53][C][template.select:071]:   Restore Value: YES
[21:22:53][C][template.select:065]: Template Select 'nspanel-dachboden Update TFT display - Model'
[21:22:53][C][template.select:065]:   Icon: 'mdi:file-sync'
[21:22:53][C][template.select:066]:   Update Interval: 60.0s
[21:22:53][C][template.select:069]:   Optimistic: YES
[21:22:53][C][template.select:070]:   Initial Option: Use nextion_update_url
[21:22:53][C][template.select:071]:   Restore Value: YES
[21:22:53][C][template.text_sensor:020]: Template Sensor 'nspanel-dachboden Detailed Entity'
[21:22:53][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[21:22:53][C][template.text_sensor:020]: Template Sensor 'nspanel-dachboden Current page'
[21:22:53][C][template.text_sensor:020]:   Icon: 'mdi:tablet-dashboard'
[21:22:53][C][template.text_sensor:020]: Template Sensor 'nspanel-dachboden Notification Label'
[21:22:53][C][template.text_sensor:020]: Template Sensor 'nspanel-dachboden Notification Text'
[21:22:53][C][switch.gpio:068]: GPIO Switch 'nspanel-dachboden Relay 1'
[21:22:53][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[21:22:53][C][switch.gpio:031]:   Pin: GPIO22
[21:22:54][C][switch.gpio:068]: GPIO Switch 'nspanel-dachboden Relay 2'
[21:22:54][C][switch.gpio:091]:   Restore Mode: restore defaults to OFF
[21:22:54][C][switch.gpio:031]:   Pin: GPIO19
[21:22:54][D][script.setup_sequence:2742]: Set dimming values
[21:22:54][D][number:012]: 'nspanel-dachboden Display Brightness': Sending state 50.000000
[21:22:54][D][number:012]: 'nspanel-dachboden Display Brightness Dimdown': Sending state 50.000000
[21:22:54][D][script.set_brightness:2496]: brightness: 50%
[21:22:54][D][script.setup_sequence:2746]: Set page Settings
[21:22:54][D][script.setup_sequence:2752]: Report to Home Assistant
[21:22:54][D][binary_sensor:036]: 'nspanel-dachboden Nextion display': Sending state ON
[21:22:54][D][script:077]: Script 'timer_dim' restarting (mode: restart)
[21:22:54][D][text_sensor:064]: 'nspanel-dachboden Notification Label': Sending state ''
[21:22:54][D][text_sensor:064]: 'nspanel-dachboden Notification Text': Sending state ''
[21:22:54][D][switch:016]: 'nspanel-dachboden Notification unread' Turning OFF.
[21:22:54][D][script.setup_sequence:2782]: Wait for leaving boot page
[21:22:54][W][component:214]: Component script took a long time for an operation (0.08 s).
[21:22:54][W][component:215]: Components should block for at most 20-30ms.
[21:22:54][W][nextion:405]: Nextion reported variable name invalid!
[21:22:54][E][script.set_component_color:2611]:   Component:       home.bt_notific
[21:22:54][E][script.set_component_color:2612]:   Foreground size: 0
[21:22:54][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel-dachboden Left Button'
[21:22:54][C][gpio.binary_sensor:016]:   Pin: GPIO14
[21:22:54][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nspanel-dachboden Right Button'
[21:22:54][C][gpio.binary_sensor:016]:   Pin: GPIO27
[21:22:54][C][switch.gpio:068]: GPIO Switch 'nspanel-dachboden Nextion display - Power'
[21:22:54][C][switch.gpio:091]:   Restore Mode: always ON
[21:22:54][C][switch.gpio:031]:   Pin: GPIO4
[21:22:55][C][template.switch:068]: Template Switch 'nspanel-dachboden Notification sound'
[21:22:55][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[21:22:55][C][template.switch:057]:   Optimistic: YES
[21:22:55][C][template.switch:068]: Template Switch 'nspanel-dachboden Relay 1 Local'
[21:22:55][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[21:22:55][C][template.switch:057]:   Optimistic: YES
[21:22:55][C][template.switch:068]: Template Switch 'nspanel-dachboden Relay 2 Local'
[21:22:55][C][template.switch:091]:   Restore Mode: restore defaults to OFF
[21:22:55][C][template.switch:057]:   Optimistic: YES
[21:22:55][C][template.switch:068]: Template Switch 'nspanel-dachboden Notification unread'
[21:22:55][C][template.switch:091]:   Restore Mode: always OFF
[21:22:55][C][template.switch:057]:   Optimistic: YES
[21:22:55][C][rtttl:029]: Rtttl
[21:22:55][C][nextion:128]: Nextion:
[21:22:55][C][nextion:129]:   Device Model:     NX4832F035_011C
[21:22:55][C][nextion:130]:   Firmware Version: 72
[21:22:55][C][nextion:131]:   Serial Number:    41B03401D5E45D62
[21:22:55][C][nextion:132]:   Flash Size:       16777216
[21:22:55][C][nextion:133]:   Wake On Touch:    YES
[21:22:55][C][nextion:134]:   Exit reparse:     YES
[21:22:55][C][restart.button:017]: Restart Button 'nspanel-dachboden Restart'
[21:22:55][C][adc:097]: ADC Sensor 'ntc_source'
[21:22:55][C][adc:097]:   Device Class: 'voltage'
[21:22:55][C][adc:097]:   State Class: 'measurement'
[21:22:55][C][adc:097]:   Unit of Measurement: 'V'
[21:22:55][C][adc:097]:   Accuracy Decimals: 2
[21:22:55][C][adc:107]:   Pin: GPIO38
[21:22:55][C][adc:122]:  Attenuation: 11db
[21:22:55][C][adc:142]:   Update Interval: 60.0s
[21:22:55][C][resistance:010]: Resistance Sensor 'resistance_sensor'
[21:22:55][C][resistance:010]:   State Class: 'measurement'
[21:22:55][C][resistance:010]:   Unit of Measurement: 'Ω'
[21:22:55][C][resistance:010]:   Accuracy Decimals: 1
[21:22:55][C][resistance:010]:   Icon: 'mdi:flash'
[21:22:55][C][resistance:011]:   Configuration: DOWNSTREAM
[21:22:55][C][resistance:012]:   Resistor: 11200.00Ω
[21:22:55][C][resistance:013]:   Reference Voltage: 3.3V
[21:22:55][C][ntc:014]: NTC Sensor 'nspanel-dachboden Temperature'
[21:22:55][C][ntc:014]:   Device Class: 'temperature'
[21:22:55][C][ntc:014]:   State Class: 'measurement'
[21:22:55][C][ntc:014]:   Unit of Measurement: '°C'
[21:22:55][C][ntc:014]:   Accuracy Decimals: 1
[21:22:55][C][homeassistant.time:010]: Home Assistant Time:
[21:22:55][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[21:22:56][C][status:034]: Status Binary Sensor 'nspanel-dachboden Status'
[21:22:56][C][status:034]:   Device Class: 'connectivity'
[21:22:57][C][mdns:115]: mDNS:
[21:22:57][C][mdns:116]:   Hostname: nspanel-dachboden
[21:22:57][C][ota:097]: Over-The-Air Updates:
[21:22:57][C][ota:098]:   Address: nspanel-dachboden.local:3232
[21:22:57][C][ota:101]:   Using Password.
[21:22:57][C][api:139]: API Server:
[21:22:57][C][api:140]:   Address: nspanel-dachboden.local:6053
[21:22:57][C][api:144]:   Using noise encryption: NO
[21:22:57][C][wifi_signal.sensor:009]: WiFi Signal 'nspanel-dachboden RSSI'
[21:22:57][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[21:22:57][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[21:22:57][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[21:22:57][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[21:23:04][D][script.setup_sequence:2798]: Nextion setup sequence finished!
[21:23:04][D][nextion:464]: Got new page: 0
[21:23:04][D][display.disp1.on_page:714]: Nextion page changed
[21:23:04][D][display.disp1.on_page:715]: New page: home (0)
[21:23:04][D][text_sensor:064]: 'nspanel-dachboden Current page': Sending state 'home'
[21:23:04][D][text_sensor:064]: 'nspanel-dachboden Detailed Entity': Sending state ''
[21:23:04][D][script.page_changed:2108]: New page: home
[21:23:04][D][script:077]: Script 'timer_dim' restarting (mode: restart)
[21:23:04][D][script.timer_dim:2923]: Waking up on page: home
[21:23:04][D][script.set_brightness:2496]: brightness: 50%
[21:23:04][D][sensor:094]: 'nspanel-dachboden Page Id': Sending state 0.00000  with 2 decimals of accuracy
[21:23:04][D][sensor.page_id:1368]: New page Id: 0
[21:23:08][I][addon_upload_tft.script.report_settings:189]: TFT URL: http://192.168.178.205:8123/local/nspaneleu.tft
[21:23:08][I][addon_upload_tft.script.report_settings:190]: Substitutions:
[21:23:08][I][addon_upload_tft.script.report_settings:191]:   nextion_update_url:        http://192.168.178.205:8123/local/nspaneleu.tft
[21:23:08][I][addon_upload_tft.script.report_settings:192]:   nextion_update_base_url:   https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/
[21:23:08][I][addon_upload_tft.script.report_settings:193]:   upload_tft_chunk_size_max: 32768
[21:23:08][I][addon_upload_tft.script.report_settings:194]:   upload_tft_baud_rate:      921600
[21:23:22][D][sensor:094]: 'ntc_source': Sending state 1.70800 V with 2 decimals of accuracy
[21:23:22][D][resistance:039]: 'resistance_sensor' - Resistance 12016.1Ω
[21:23:22][D][sensor:094]: 'resistance_sensor': Sending state 12016.08008 Ω with 1 decimals of accuracy
[21:23:22][D][ntc:026]: 'nspanel-dachboden Temperature' - Temperature: 20.9°C
[21:23:22][D][sensor:094]: 'nspanel-dachboden Temperature': Sending state 20.92329 °C with 1 decimals of accuracy
[21:23:26][D][sensor:094]: 'nspanel-dachboden RSSI': Sending state -47.00000 dBm with 0 decimals of accuracy
[21:23:30][I][script.watchdog:3103]: Wi-Fi:         Excellent (-47 dBm)
[21:23:30][I][script.watchdog:3123]: API:           Connected
[21:23:30][W][script.watchdog:3143]: Blueprint:     Pending
[21:23:30][I][script.watchdog:3144]: Requesting blueprint settings
[21:23:30][I][script.watchdog:3154]: ESPHome:
[21:23:30][I][script.watchdog:3155]:   Version:     4.2.1
[21:23:30][I][script.watchdog:3158]:   Framework:   arduino
[21:23:30][I][script.watchdog:3164]: UART:
[21:23:30][I][script.watchdog:3165]:   Baud rate:   115200 bps
[21:23:30][I][script.watchdog:3166]:   Queue size:  8
[21:23:30][I][script.watchdog:3170]: Nextion:
[21:23:30][I][script.watchdog:3171]:   Queue size:  2
[21:23:30][I][script.watchdog:3173]:   Is setup:    True
[21:23:30][I][script.watchdog:3180]:   Init:        True
[21:23:30][I][script.watchdog:3188]:   TFT:         4.2.1

Home Assistant logs

No response

Bildschirmfoto 2024-01-15 um 21 24 32

IMG_4519

IMG_4520

edwardtfn commented 9 months ago

You must update the Blueprint also: https://github.com/Blackymas/NSPanel_HA_Blueprint/blob/main/docs/howto.md#update-blueprint

pillemats commented 9 months ago

thats it!!! Thanks again !!!!!