Blackymas / NSPanel_HA_Blueprint

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

BluePrint Retry when booting . Nextion reported variable name invalid! #1472

Closed thefirstavi closed 10 months ago

thefirstavi commented 10 months ago

image

I have loaded and reloaded the TFT. changing the config to point at the nspanel_blank.tft and back again. I'm still getting BluePrint Retry issue. I can;t see any logged issues with a resiolution that fits what i'm seeing. Anyone any ideas ?

I have attached the logs post updating the TFT to the nspanel eu.

[10:24:15][D][script.upload_tft.upload_range_esp_idf_:625]: Uploaded 99.63 %, remaining 26916 bytes
[10:24:15][D][script.upload_tft.upload_range_esp_idf_:625]: Uploaded 99.69 %, remaining 22820 bytes
[10:24:15][D][script.upload_tft.upload_range_esp_idf_:625]: Uploaded 99.74 %, remaining 18724 bytes
[10:24:15][D][script.upload_tft.upload_range_esp_idf_:625]: Uploaded 99.80 %, remaining 14628 bytes
[10:24:16][D][script.upload_tft.upload_range_esp_idf_:625]: Uploaded 99.85 %, remaining 10532 bytes
[10:24:16][D][script.upload_tft.upload_range_esp_idf_:625]: Uploaded 99.91 %, remaining 6436 bytes
[10:24:16][D][script.upload_tft.upload_range_esp_idf_:625]: Uploaded 99.97 %, remaining 2340 bytes
[10:24:16][D][script.upload_tft.upload_range_esp_idf_:625]: Uploaded 100.00 %, remaining 0 bytes
[10:24:16][D][script.upload_tft.upload_tft_esp_idf:790]: Successfully updated Nextion!
[10:24:16][D][script.upload_tft.upload_tft_esp_idf:792]: Close HTTP connection
[10:24:16][D][script.upload_tft.upload_end_:274]: Completed: 1
[10:24:16][D][button:010]: 'nspanel1 Restart' Pressed.
[10:24:16][I][restart.button:012]: Restarting device...
[10:24:16][I][app:134]: Rebooting safely...
[10:24:16][D][esp32.preferences:114]: Saving 1 preferences to flash...
[10:24:16][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
INFO Processing expected disconnect from ESPHome API for nspanel1 @ 192.168.2.29
WARNING Disconnected from API
INFO Successfully connected to nspanel1 @ 192.168.2.29 in 3.085s
INFO Successful handshake with nspanel1 @ 192.168.2.29 in 0.310s
[10:24:27][D][nextion:276]: Manually set nextion report ready
[10:24:27][D][nextion:354]: Nextion is setup
[10:24:27][D][script.boot_sequence:2604]: Starting boot sequence
[10:24:27][D][script.boot_sequence:2605]: Wait for TFT version
[10:24:27][D][text_sensor:064]: 'nspanel1 Current page': Sending state 'boot'
[10:24:27][D][text_sensor:064]: 'nspanel1 Detailed Entity': Sending state ''
[10:24:27][D][script.page_changed:2228]: New page: boot
[10:24:27][D][script.set_brightness:1712]: brightness: 100%
[10:24:27][D][nextion_textsensor:014]: Processed text_sensor "currentpage" state "boot"
[10:24:27][D][text_sensor:064]: 'nspanel1 NSPanel local event': Sending state '{"page": "boot", "event": "pagechanged", "version": "4.1.4", "display_mode": "1"}'
[10:24:27][D][script.set_brightness:1712]: brightness: 100%
[10:24:27][D][nextion_textsensor:014]: Processed text_sensor "localevent" state "{"page": "boot", "event": "pagechanged", "version": "4.1.4", "display_mode": "1"}"
[10:24:27][D][script.boot_sequence:2610]: TFT version: 4.1.4
[10:24:27][D][script.set_brightness:1712]: brightness: 100%
[10:24:27][D][script:077]: Script 'timer_dim' restarting (mode: restart)
[10:24:27][D][script.boot_sequence:2619]: Wait for API
[10:24:27][D][script.boot_sequence:2625]: Publish IP address
[10:24:27][D][script.set_brightness:1712]: brightness: 100%
[10:24:27][D][script.boot_sequence:2629]: Report to Home Assistant
[10:24:28][D][number:012]: 'nspanel1 Display Brightness': Sending state 100.000000
[10:24:28][D][number:012]: 'nspanel1 Display Brightness Dimdown': Sending state 10.000000
[10:24:28][D][script.set_brightness:1712]: brightness: 100%
[10:24:28][D][script.boot_sequence:2645]: Report to Home Assistant
[10:24:28][D][binary_sensor:036]: 'nspanel1 Nextion display': Sending state ON
[10:24:28][D][script:077]: Script 'timer_dim' restarting (mode: restart)
[10:24:28][D][text_sensor:064]: 'nspanel1 Notification Label': Sending state ''
[10:24:28][D][text_sensor:064]: 'nspanel1 Notification Text': Sending state ''
[10:24:28][D][switch:016]: 'nspanel1 Notification unread' Turning OFF.
[10:24:28][D][script.boot_sequence:2664]: Boot sequence finished!
[10:24:28][W][component:214]: Component script took a long time for an operation (1.08 s).
[10:24:28][W][component:215]: Components should block for at most 20-30ms.
[10:24:28][D][main:2591]: Exit reparse
[10:24:28][D][script.nextion_status:2682]: Nextion status:
[10:24:28][D][script.nextion_status:2684]:   Is setup:    True
[10:24:28][D][script.nextion_status:2682]: Nextion status:
[10:24:28][D][script.nextion_status:2684]:   Is setup:    True
[10:24:28][D][on_boot:078]: Finished
[10:24:28][E][nextion:285]: Nextion queue is empty!
[10:24:28][W][nextion:405]: Nextion reported variable name invalid!
[10:24:28][E][nextion:285]: Nextion queue is empty!
[10:24:54][D][sensor:094]: 'ntc_source': Sending state 1.79900 V with 2 decimals of accuracy
[10:24:54][D][resistance:039]: 'resistance_sensor' - Resistance 13423.6Ω
[10:24:54][D][sensor:094]: 'resistance_sensor': Sending state 13423.58496 Ω with 1 decimals of accuracy
[10:24:54][D][ntc:026]: 'nspanel1 Temperature' - Temperature: 18.5°C
[10:24:54][D][sensor:094]: 'nspanel1 Temperature': Sending state 18.51804 °C with 1 decimals of accuracy
[10:25:27][D][script.check_versions:2175]: ESPHome version: 4.1.4
[10:25:27][D][script.check_versions:2176]: TFT version: 4.1.4
[10:25:27][D][script.check_versions:2178]: Blueprint version: 
[10:25:27][E][script.check_versions:2179]: Blueprint version mismatch!
[10:25:27][D][script.check_versions:2187]: Framework: esp-idf
[10:25:27][D][script.check_versions:2188]: Baud rate: 115200
[10:25:32][D][text_sensor:064]: 'nspanel1 NSPanel event': Sending state '{"page": "boot", "event": "timeout", "value": 1, "version": "4.1.4", "display_mode": "1"}'
[10:25:32][E][text_sensor.disp1_nspanel_event:1452]: Starting
[10:25:32][E][text_sensor.disp1_nspanel_event:1460]: page: boot
[10:25:32][E][text_sensor.disp1_nspanel_event:1461]: component: null
[10:25:32][E][text_sensor.disp1_nspanel_event:1462]: value: 1
[10:25:32][E][text_sensor.disp1_nspanel_event:1463]: entity: 
[10:25:32][D][nextion_textsensor:014]: Processed text_sensor "nspanelevent" state "{"page": "boot", "event": "timeout", "value": 1, "version": "4.1.4", "display_mode": "1"}"
[10:25:54][D][sensor:094]: 'ntc_source': Sending state 1.79100 V with 2 decimals of accuracy
[10:25:54][D][resistance:039]: 'resistance_sensor' - Resistance 13293.0Ω
[10:25:54][D][sensor:094]: 'resistance_sensor': Sending state 13293.04297 Ω with 1 decimals of accuracy
[10:25:54][D][ntc:026]: 'nspanel1 Temperature' - Temperature: 18.7°C
[10:25:54][D][sensor:094]: 'nspanel1 Temperature': Sending state 18.72866 °C with 1 decimals of accuracy
[10:26:01][D][api.connection:197]: Home Assistant 2023.12.3 (192.168.1.95) requested disconnected
edwardtfn commented 10 months ago

Have you updated your blueprint? If so, try to remove/delete your device from Home Assistant (Settings > Devices and Services > ESPHome), restart Home Assistant and then agg the device back. Don't remove it from ESPHome dashboard, it's just Home Assistant devices and services.

thefirstavi commented 10 months ago

Thanks. I tried that without success. Interesting new error in my HA notifications

image

thefirstavi commented 10 months ago

Yaml from esphome if that helps

image

thefirstavi commented 10 months ago

I have reinstalled the blueprint. I validated the yaml and reinstalled

image

edwardtfn commented 10 months ago

Can you see anything related to this on Home Assistant logs (Settings > System > Logs)?

edwardtfn commented 10 months ago

Thanks. I tried that without success. Interesting new error in my HA notifications

image

This shows you have everything in v4.1.4 installed, so no need to install TFT again.

The Blueprint isn't reporting itself to Home Assistant...

Have you rename entities on the ESPHome device page? Can you see duplicated entities there?

thefirstavi commented 10 months ago

Success..

I went rhough the process of removing the Home Assistant devices again and then restarted home assistant . Allowed it to discover my nspanel and added again. Then i went to reimport blueprint (which ive done before). As soon as the blueprint reimported. it all started working.

Thankyou for having a look at this with me on xmas eve.