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

blueprint mismatch #1271

Closed lecrams closed 11 months ago

lecrams commented 11 months ago

I replaced the blueprint in the blueprint folder and reloaded it. pasted the new code from the readme in my panel yaml code, build it and uploaded it. so far so good however when the panel starts I get a blueprint mismatch error despite the following logging:'

[09:48:18][D][script.set_brightness:1608]: brightness: 5% [09:48:37][D][sensor:094]: 'ntc_source': Sending state 1.73600 V with 2 decimals of accuracy [09:48:37][D][resistance:039]: 'resistance_sensor' - Resistance 12431.7Ω [09:48:38][D][sensor:094]: 'resistance_sensor': Sending state 12431.71289 Ω with 1 decimals of accuracy [09:48:38][D][ntc:026]: 'nspanel1 Temperature' - Temperature: 20.2°C [09:48:38][D][sensor:094]: 'nspanel1 Temperature': Sending state 20.18068 °C with 1 decimals of accuracy [09:48:47][D][text_sensor:064]: 'nspanel1 NSPanel event': Sending state '{"page": "boot", "event": "timeout", "value": 1, "version": "4.0.2", "display_mode": "1"}'

[09:48:47][E][text_sensor.disp1_nspanel_event:1366]: page: boot [09:48:47][E][text_sensor.disp1_nspanel_event:1367]: component: null [09:48:47][E][text_sensor.disp1_nspanel_event:1368]: value: 1

[09:48:47][D][nextion_textsensor:014]: Processed text_sensor "nspanelevent" state "{"page": "boot", "event": "timeout", "value": 1, "version": "4.0.2", "display_mode": "1"}" [09:48:47][W][component:214]: Component nextion.display took a long time for an operation (0.05 s). [09:48:47][W][component:215]: Components should block for at most 20-30ms. [09:48:51][D][script.check_versions:2049]: ESPHome version: 4.1 [09:48:51][D][script.check_versions:2050]: TFT version: 4.0.2 [09:48:51][E][script.check_versions:2051]: TFT version mismatch! [09:48:51][D][script.check_versions:2052]: Blueprint version: 4.1 [09:48:51][D][script.check_versions:2061]: Framework: arduino [09:48:51][D][script.check_versions:2062]: Baud rate: 115200

techunleadit commented 11 months ago

Hi, here full log

`INFO ESPHome 2023.11.0 INFO Reading configuration /config/esphome/nslobby.yaml... INFO Detected timezone 'Europe/Rome' INFO Generating C++ source... INFO Compiling app... Processing nslobby (board: esp32dev; framework: arduino; platform: platformio/espressif32@5.4.0)

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash

INFO Waiting for result... INFO OTA successful INFO Successfully uploaded program. INFO Starting log output from nslobby.local using esphome API INFO Successfully connected to nslobby in 18.680s INFO Successful handshake with nslobby in 1.086s [10:47:02][I][app:102]: ESPHome version 2023.11.0 compiled on Nov 15 2023, 10:45:59

[10:47:02][C][wifi:391]: Local MAC: C4:DD:57:E9:D6:28 [10:47:02][C][wifi:396]: SSID: [redacted] [10:47:02][C][wifi:397]: IP Address: 192.168.4.34 [10:47:02][C][wifi:399]: BSSID: [redacted]

[10:47:02][C][wifi:402]: Signal strength: -51 dB ▂▄▆█ [10:47:02][C][wifi:406]: Channel: 1 [10:47:02][C][wifi:407]: Subnet: 255.255.255.0 [10:47:02][C][wifi:408]: Gateway: 192.168.4.1 [10:47:02][C][wifi:409]: DNS1: 192.168.4.1 [10:47:02][C][wifi:410]: DNS2: 0.0.0.0

[10:47:02][C][logger:417]: Level: DEBUG [10:47:02][C][logger:418]: Log Baud Rate: 0 [10:47:02][C][logger:420]: Hardware UART: UART0 [10:47:02][D][time:045]: Synchronized time: 2023-11-15 10:47:02 [10:47:02][D][main:068]: System clock synchronized [10:47:02][C][uart.arduino_esp32:124]: UART Bus 0: [10:47:02][C][uart.arduino_esp32:125]: TX Pin: GPIO16 [10:47:02][C][uart.arduino_esp32:126]: RX Pin: GPIO17 [10:47:02][C][uart.arduino_esp32:128]: RX Buffer Size: 256 [10:47:02][C][uart.arduino_esp32:130]: Baud Rate: 115200 baud [10:47:02][C][uart.arduino_esp32:131]: Data Bits: 8 [10:47:02][C][uart.arduino_esp32:132]: Parity: NONE [10:47:02][C][uart.arduino_esp32:133]: Stop bits: 1 [10:47:02][C][ledc.output:164]: LEDC Output: [10:47:02][C][ledc.output:165]: Pin GPIO21 [10:47:02][C][ledc.output:166]: LEDC Channel: 0 [10:47:02][C][ledc.output:167]: PWM Frequency: 1000.0 Hz [10:47:02][C][ledc.output:168]: Bit depth: 16 [10:47:02][C][template.binary_sensor:028]: Template Binary Sensor 'nslobby Nextion display' [10:47:02][C][template.binary_sensor:028]: Device Class: 'connectivity' [10:47:02][C][template.number:050]: Template Number 'nslobby Display Brightness' [10:47:02][C][template.number:050]: Unit of Measurement: '%' [10:47:02][C][template.number:051]: Optimistic: YES [10:47:02][C][template.number:052]: Update Interval: 60.0s [10:47:02][C][template.number:050]: Template Number 'nslobby Display Brightness Dimdown' [10:47:02][C][template.number:050]: Unit of Measurement: '%' [10:47:02][C][template.number:051]: Optimistic: YES [10:47:02][C][template.number:052]: Update Interval: 60.0s [10:47:02][C][template.number:050]: Template Number 'nslobby Temperature Correction' [10:47:02][C][template.number:050]: Unit of Measurement: '°C' [10:47:02][C][template.number:051]: Optimistic: YES [10:47:02][C][template.number:052]: Update Interval: 60.0s [10:47:02][C][template.number:050]: Template Number 'nslobby Timeout Page'

[10:47:02][C][template.number:050]: Unit of Measurement: 's' [10:47:02][C][template.number:051]: Optimistic: YES [10:47:02][C][template.number:052]: Update Interval: 60.0s [10:47:02][C][template.number:050]: Template Number 'nslobby Timeout Dimming'

[10:47:02][C][template.number:050]: Unit of Measurement: 's' [10:47:02][C][template.number:051]: Optimistic: YES [10:47:02][C][template.number:052]: Update Interval: 60.0s [10:47:02][C][template.number:050]: Template Number 'nslobby Timeout Sleep'

[10:47:02][C][template.number:050]: Unit of Measurement: 's' [10:47:02][C][template.number:051]: Optimistic: YES [10:47:02][C][template.number:052]: Update Interval: 60.0s [10:47:02][C][template.select:065]: Template Select 'nslobby Wake-up page'

[10:47:02][C][template.select:066]: Update Interval: 60.0s [10:47:02][C][template.select:069]: Optimistic: YES [10:47:02][C][template.select:070]: Initial Option: home [10:47:02][C][template.select:071]: Restore Value: YES [10:47:02][C][switch.gpio:068]: GPIO Switch 'nslobby Screen Power' [10:47:02][C][switch.gpio:091]: Restore Mode: always ON [10:47:02][C][switch.gpio:031]: Pin: GPIO4 [10:47:02][C][template.text_sensor:020]: Template Sensor 'nslobby Detailed Entity'

[10:47:02][C][template.text_sensor:020]: Template Sensor 'nslobby Notification Label' [10:47:02][C][template.text_sensor:020]: Template Sensor 'nslobby Notification Text' [10:47:02][C][switch.gpio:068]: GPIO Switch 'nslobby Relay 1' [10:47:02][C][switch.gpio:091]: Restore Mode: restore defaults to OFF [10:47:02][C][switch.gpio:031]: Pin: GPIO22 [10:47:02][C][switch.gpio:068]: GPIO Switch 'nslobby Relay 2' [10:47:02][C][switch.gpio:091]: Restore Mode: restore defaults to OFF [10:47:02][C][switch.gpio:031]: Pin: GPIO19 [10:47:03][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nslobby Left Button' [10:47:03][C][gpio.binary_sensor:016]: Pin: GPIO14 [10:47:03][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'nslobby Right Button' [10:47:03][C][gpio.binary_sensor:016]: Pin: GPIO27 [10:47:03][C][template.switch:068]: Template Switch 'nslobby Notification sound' [10:47:03][C][template.switch:091]: Restore Mode: restore defaults to OFF [10:47:03][C][template.switch:057]: Optimistic: YES [10:47:03][C][template.switch:068]: Template Switch 'nslobby Relay 1 Local' [10:47:03][C][template.switch:091]: Restore Mode: restore defaults to OFF [10:47:03][C][template.switch:057]: Optimistic: YES [10:47:03][C][template.switch:068]: Template Switch 'nslobby Relay 2 Local' [10:47:03][C][template.switch:091]: Restore Mode: restore defaults to OFF [10:47:03][C][template.switch:057]: Optimistic: YES [10:47:03][C][template.switch:068]: Template Switch 'nslobby Notification unread' [10:47:03][C][template.switch:091]: Restore Mode: always OFF [10:47:03][C][template.switch:057]: Optimistic: YES

[10:47:03][C][nextion:124]: Device Model: NX4832F035_011C [10:47:03][C][nextion:125]: Firmware Version: 72 [10:47:03][C][nextion:126]: Serial Number: 1D66340197885150 [10:47:03][C][nextion:127]: Flash Size: 16777216 [10:47:03][C][nextion:128]: Wake On Touch: True [10:47:03][C][nextion:139]: Start Up Page : 8 [10:47:03][C][restart.button:017]: Restart Button 'nslobby Restart' [10:47:03][C][adc:097]: ADC Sensor 'ntc_source' [10:47:03][C][adc:097]: Device Class: 'voltage' [10:47:03][C][adc:097]: State Class: 'measurement' [10:47:03][C][adc:097]: Unit of Measurement: 'V' [10:47:03][C][adc:097]: Accuracy Decimals: 2 [10:47:03][C][adc:107]: Pin: GPIO38 [10:47:03][C][adc:122]: Attenuation: 11db [10:47:03][C][adc:142]: Update Interval: 60.0s [10:47:03][C][resistance:010]: Resistance Sensor 'resistance_sensor' [10:47:03][C][resistance:010]: State Class: 'measurement' [10:47:03][C][resistance:010]: Unit of Measurement: 'Ω' [10:47:03][C][resistance:010]: Accuracy Decimals: 1

[10:47:03][C][resistance:011]: Configuration: DOWNSTREAM [10:47:03][C][resistance:012]: Resistor: 11200.00Ω [10:47:03][C][resistance:013]: Reference Voltage: 3.3V [10:47:03][C][ntc:014]: NTC Sensor 'nslobby Temperature' [10:47:03][C][ntc:014]: Device Class: 'temperature' [10:47:03][C][ntc:014]: State Class: 'measurement' [10:47:03][C][ntc:014]: Unit of Measurement: '°C' [10:47:03][C][ntc:014]: Accuracy Decimals: 1 [10:47:03][C][homeassistant.time:010]: Home Assistant Time:

[10:47:04][C][status:034]: Status Binary Sensor 'nslobby Status' [10:47:04][C][status:034]: Device Class: 'connectivity'

[10:47:04][C][mdns:116]: Hostname: nslobby [10:47:04][C][ota:097]: Over-The-Air Updates: [10:47:04][C][ota:098]: Address: nslobby.local:3232 [10:47:04][C][ota:101]: Using Password. [10:47:04][C][api:139]: API Server: [10:47:04][C][api:140]: Address: nslobby.local:6053 [10:47:04][C][api:144]: Using noise encryption: NO [10:47:18][D][sensor:094]: 'ntc_source': Sending state 1.62600 V with 2 decimals of accuracy [10:47:18][D][resistance:039]: 'resistance_sensor' - Resistance 10878.9Ω [10:47:18][D][sensor:094]: 'resistance_sensor': Sending state 10878.85352 Ω with 1 decimals of accuracy [10:47:18][D][ntc:026]: 'nslobby Temperature' - Temperature: 23.1°C [10:47:18][D][sensor:094]: 'nslobby Temperature': Sending state 22.11627 °C with 1 decimals of accuracy [10:47:18][D][switch:012]: 'nslobby Relay 1' Turning ON. [10:47:18][D][switch:055]: 'nslobby Relay 1': Sending state ON [10:47:32][D][script.set_brightness:1608]: brightness: 10% [10:47:39][D][esp32.preferences:114]: Saving 1 preferences to flash... [10:47:39][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed [10:47:43][D][script.check_versions:2049]: ESPHome version: 4.1 [10:47:43][D][script.check_versions:2050]: TFT version: 4.0.2 [10:47:43][E][script.check_versions:2051]: TFT version mismatch! [10:47:43][D][script.check_versions:2052]: Blueprint version: [10:47:43][E][script.check_versions:2053]: Blueprint version mismatch! [10:47:43][D][script.check_versions:2061]: Framework: arduino [10:47:43][D][script.check_versions:2062]: Baud rate: 115200 [10:47:48][D][text_sensor:064]: 'nslobby NSPanel event': Sending state '{"page": "boot", "event": "timeout", "value": 1, "version": "4.0.2", "display_mode": "1"}'

[10:47:48][E][text_sensor.disp1_nspanel_event:1366]: page: boot [10:47:48][E][text_sensor.disp1_nspanel_event:1367]: component: null [10:47:48][E][text_sensor.disp1_nspanel_event:1368]: value: 1

[10:47:48][D][nextion_textsensor:014]: Processed text_sensor "nspanelevent" state "{"page": "boot", "event": "timeout", "value": 1, "version": "4.0.2", "display_mode": "1"}" `

lecrams commented 11 months ago

After I also updated the TFT the issue is not seen anymore

wobi07 commented 11 months ago

After I also updated the TFT the issue is not seen anymore

But how did you manage to update the TFT?

techunleadit commented 11 months ago

After I also updated the TFT the issue is not seen anymore

I've updated the TFT to the latest without any fix, are you using the dev version? @lecrams

lecrams commented 11 months ago

I visited the panel on its IP address and pressed the update TFT button

techunleadit commented 11 months ago

But with the latest version the webserver is deprecated

lecrams commented 11 months ago

your right. I thought I used the IP address but did it differently: settings-> integrations->esphome->panel

edwardtfn commented 11 months ago

That's right. You will find the same "Upload TFT" button in Home Assistant under Settings > Devices and Services > ESPHome (and find your panel).

omayhemo commented 10 months ago

I have this problem, I haven't found a solution. I have uploaded the TFT.



[17:25:13][E][script.check_versions:2179]: Blueprint version mismatch!
[17:25:13][D][script.check_versions:2187]: Framework: esp-idf
[17:25:13][D][script.check_versions:2188]: Baud rate: 115200
[17:25:18][D][text_sensor:064]: 'dougpanel NSPanel event': Sending state '{"page": "boot", "event": "timeout", "value": 1, "version": "4.1.4", "display_mode": "2"}'
[17:25:18][E][text_sensor.disp1_nspanel_event:1452]: Starting
[17:25:18][E][text_sensor.disp1_nspanel_event:1460]: page: boot
[17:25:18][E][text_sensor.disp1_nspanel_event:1461]: component: null
[17:25:18][E][text_sensor.disp1_nspanel_event:1462]: value: 1
[17:25:18][E][text_sensor.disp1_nspanel_event:1463]: entity: ```
edwardtfn commented 10 months ago

Let's take this on #1436