-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems updating - blank tft good, but rest not #680
Comments
If nspanel_blank.tft is loaded, you should be seen a totally white screen, with no text and no way to turn off other than disconnecting power supply. Could you please share the ESPHOME yaml you are using? Please remove any sensitive information (wifi settings, etc) before sharing. |
@edwardtfn Yes, that is the case (white screen). here is my esphome yaml - sorry for the weird formatting ##################################################################################################### NSPANEL ESPHOME created by Blackymas - https://github.com/Blackymas/NSPanel_HA_BlueprintADVANCED CONFIG + FULL ESPHOME CODE!PLEASE only make changes if it is necessary and also the required knowledge is available.For normal use with the Blueprint, no changes are necessary.##################################################################################################### ADVANCED CONFIGURATION - activate only when you know what you dosubstitutions: ## usage of secrets-file ## -> comment in ###### Change MEdevice_name: "nspanel01" # Wird im Blueprint benötigt! ## static ip configip: "10.0.0.7"gw: "10.0.0.138"subnet: "255.255.255.0"dns: "10.0.0.138"domain: ".local"if you rename this file to .nspanel_esphome.yaml then you can activate nested configuse the ADVANCED CONFIG-Section as device configurationhttps://esphome.io/guides/configuration-types.html#yaml-insertion-operator<<: !include .nspanel_esphome.yamlEND OF ADVANCED CONFIGURATIONWIFI SETUPwifi: advanced config - uncomment to use static IP-Configmanual_ip:static_ip: ${ip}gateway: ${gw}subnet: ${subnet}dns1: ${dns}domain: ${domain}Enable fallback hotspot (captive portal) in case wifi connection failsap: ESPHOME CONFIGURATIONesphome: TYPE OF ESP BOARDesp32: captive_portal: web_server: OTA PASSWORDota: advanced config - change to use ota_passwordpassword: ${ota_password}safe_mode: true LOGGERlogger: baud_rate: 0level: WARNCONFIGURE INTERNAL BUZZERoutput:
ENABLE RINGTONE MUSIC SUPPORTrtttl: UART FOR NEXTION DISPLAYuart: START - BUTTON CONFIGURATIONbutton: REBOOT BUTTON
UPDATE TFT DISPLAY
START - API CONFIGURATIONapi: advanced config - activate to use api_passwordpassword: ${api_password}services:
START - GLOBALS CONFIGURATIONglobals: Save Display Brightness for NSPanel reboot
Save Display DIM Brightness for NSPanel reboot
Temperature Correction
Save Display DIM Brightness for NSPanel reboot
lastclick_general State
lastclick_lightsettings State
lastclick_coversettings State
lastclick_climatesettings State
lastclick_currentpage State
START - BINARY SENSOR CONFIGURATIONbinary_sensor: LEFT BUTTON BELOW DISPLAY TO TOGGLE RELAY#####
RIGHT BUTTON BELOW DISPLAY TO TOGGLE RELAY
JUMP PAGE TO SETTING PAGE
Restart NSPanel Button - Setting Page
Restart NSPanel Button - Boot Page
Sleep Modus NSPanel Button
Hotwater Charge- platform: nextionname: ${device_name} Hotwater Chargepage_id: 6component_id: 20
START - SENSOR CONFIGURATIONsensor: Uptime
WIFI Signal stregth
INTERNAL TEMPERATURE SENSOR, ADC VALUE
INTERNAL TEMPERATURE SENSOR, adc reading converted to resistance (calculation)#####
INTERNAL TEMPERATURE SENSOR, resistance to temperature (calculation)
on_value:then:- wait_until:switch.is_on: nextion_init- lambda: id(disp1).set_component_text_printf("home.current_temp", "%.1f°", id(temp_nspanel).state); # onboard temp (thermostat temp) to home page.- lambda: id(disp1).set_component_text_printf("climate.current_temp", "%.1f", id(temp_nspanel).state);current value of page-climate target_temp
Display Brightness GET VALUE FROM NSPanel SLIDER
Display DIM Brightness GET VALUE FROM NSPanel SLIDER
Send current page to HA- platform: nextionid: current_pagename: "${device_name} Current Page"variable_name: dpupdate_interval: 1saccuracy_decimals: 0filters:- delta: 1.0- lambda: return int(x);START - TEXT SENSOR CONFIGURATIONtext_sensor: ESPhome version used to compile the app
last click sensor, the main action variable - push to HA
last click lightsettings page, the main action variable - push to HA
last click coversettings page, the main action variable - push to HA
last click climate page, the main action variable - push to HA
currentpage sensor, the main action variable - push to HA
touchevent sensor, Reset the page timeout
START - SWITCH CONFIGURATIONswitch: ##### Restart switch- platform: restartname: ${device_name} Restart##### Restart in safe-mode- platform: safe_modename: ${device_name} Restart (Safe Mode)global variable to keep track on whether the Nextion display is ready or not. Delays initial info from HA to the display
Notification unread
Notification sound
Confirmation Message
PHYSICAL SWITCH 1
PHYSICAL SWITCH 2
DISPLAY ALWAYS ON
Switch Display Sleep Modus
Relay Local control Fallback
START - NUMBER CONFIGURATIONnumber: SCREEN BRIGHTNESS
SCREEN BRIGHTNESS DIMMED DOWN
Temperature Correction
page-timeout
START - DISPLAY START CONFIGURATIONdisplay:
Script for page_timerscript:
|
If you go to Developer Tools > Services and then look for service |
Then I get this error (in the logs of my panel): `
and then see the 'Model does not match' on my screen. Here the full log:
I have tried the flashing with an USB setup with the right TFT and also wireless upgrade. Also tried another www server to host the TFT file, but get exactly the same issue. |
This is weird. I wouldn't expect this error when the TFT blank is already installed. It looks like your panel is in reparse mode, but that should be the case when nspanel_blank.tft is installed. I would suggest installing the beta version temporarily, so will be able to try different baud rates, but let's start with this:
And please let me know what you see when you try to update TFT. |
@edwardtfn exactly the same issue - output on the display is 'Model does not match' And still the blank screen after rebooting |
This looks like a corrupt TFT fille. Which one have you used? nspanel_blank.tft or nspanel_eu.tft? |
Nope! |
@edwardtfn yes I see it. when I do 'save as' of the TFT file from Github the file is smaller. If I indeed do a full git clone I see that the file is 6MB. I will try the new file. Do you advise to use the beta version? |
nspanel_eu.tft from main is 6.19Mb: https://github.com/Blackymas/NSPanel_HA_Blueprint/raw/main/nspanel_eu.tft |
No. Try the MAIN first. On beta we fixed a lot of bugs, but you might find unknown new bugs, so main is probably a better choice to start, then you go beta later if you want. |
When you have successfully uplodade TFT, you should have your ESPHome file looking like this:
|
Try to click "Download" button instead: |
I have the same issue. I followed the external_compents to update TFT and get the following. It seems this update removed all the variable mismatches initially on reboot. It runs up to 90% quickly and then hangs. Going to try the blank one with this ext comp setup [10:49:02][D][button:013]: 'livingnsp Update TFT display' Pressed. |
Uploading the file directly from GitHub increases a lot the chances for something in the network to fail, making the whole process too fragile, given the long time it takes. I would highly suggest to host the TFT files locally and use that local url instead. |
I get the following when trying to do a remote pull of the blank tft. I generally do a local load of the TFT files but was trying remote to see if the local file had any issues. [10:57:21][D][button:013]: 'livingnsp Update TFT display' Pressed. I did a local download and was able to load this blank file. Once loaded switched back to the nspanel_us.tft and it loaded from 0% to done successfully. Maybe this is something to do with the CRC checking to skip the first 90% (had 3.2.0 previously) as the external_compents did not help until I flashed the blank file from a local HA file. Also do still see time outs when loading but they go away. Maybe just timing for UART setup. There seems to be a few posts on this nextion issue. As I mentioned in another before finding this one I have 3 units. 1 loaded tft just fine. Second timed out with Panel Mismatch and a power cycle and tft load second time fixed. Third went from 90->93 and hung for and hour then a power cycle showed System Data ERROR! A tft update afterwards would speed to 90% and then hang with the UART timed out error. This was the one I loaded the blank tft on and then could load the us tft file again successfully all using local files. Below is log from the blank file load. [11:04:10][D][button:013]: 'livingnsp Update TFT display' Pressed. |
Are you all good now? With final TFT and panel working properly? |
Yes!
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Edward Firmo ***@***.***>
Sent: Sunday, April 16, 2023 8:41:36 PM
To: Blackymas/NSPanel_HA_Blueprint ***@***.***>
Cc: Remco Ploeg ***@***.***>; Author ***@***.***>
Subject: Re: [Blackymas/NSPanel_HA_Blueprint] Problems updating - blank tft good, but rest not (Issue #680)
Are you all good now? With fi Al TFT and pa El working properly?
—
Reply to this email directly, view it on GitHub<#680 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AL3SSDLR56Q477A3JFNAEPLXBQ4OBANCNFSM6AAAAAAW7J26BA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Great! Thanks for sharing. |
hi @rploeg how are you? how do you fix the "Nextion reported variable name invalid!" message? |
This message can be related to an incorrect TFT file installed or a know bug that is already fixed on |
Yes, the device is working without issues :) |
my problem was that I used a 'save as' in GitHub on the EU TFT file (and did not downloaded the full repo). This became a smaller version of the original file. Downloading the whole repo and use the TFT file from their did the trick for me |
I tried to update yesterday my devices to 3.2.2 (blueprint, TFT and ESP yaml). I was stuck like some other people with the [11:54:05][W][nextion:396]: Nextion reported variable name invalid!'
So updated my device with the blank tft image, that was successful (but still including the above error). But then I tried to update the TFT eu version and still my blank tft was loaded. So it looks like my blank TFT is loaded, but nothing more is possible. I have tried to update flashing via cables (not wireless), but still the blank image is loaded (looks like). When I try do it wirelessly I see it's successful, but again the blank tft is loaded with the same error.
Compiling /data/nspanel01/.pioenvs/nspanel01/src/main.cpp.o
Linking /data/nspanel01/.pioenvs/nspanel01/firmware.elf
RAM: [= ] 13.4% (used 44024 bytes from 327680 bytes)
Flash: [====== ] 62.9% (used 1153501 bytes from 1835008 bytes)
Building /data/nspanel01/.pioenvs/nspanel01/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin(["/data/nspanel01/.pioenvs/nspanel01/firmware.bin"], ["/data/nspanel01/.pioenvs/nspanel01/firmware.elf"])
Wrote 0x12b070 bytes to file /data/nspanel01/.pioenvs/nspanel01/firmware-factory.bin, ready to flash to offset 0x0
========================= [SUCCESS] Took 31.33 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of nspanel01.local
INFO -> 192.168.1.116
INFO Uploading /data/nspanel01/.pioenvs/nspanel01/firmware.bin (1159280 bytes)
Uploading: [============================================================] 100% Done...
INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from nspanel01.local using esphome API
[11:53:58][W][nextion:396]: Nextion reported variable name invalid!_
And again the blank TFT is loaded with the above variable invalid error.
Then I click on TFT update and get the error on my screen:
Model does not match
And see then this in my logs
`
The text was updated successfully, but these errors were encountered: